I2C Part 1 - Using ...
 
Notifications
Clear all

I2C Part 1 - Using 2 Arduinos

1 Posts
1 Users
0 Likes
734 Views
(@dronebot-workshop)
Workshop Guru Admin
Joined: 5 years ago
Posts: 1085
Topic starter  

I2C communications is a very important topic, so important that I’ve decided to do several videos about it. In this first video, I will explain what I2C is and how to use it to communicate between two Arduino's.

Full article at https://dbot.ws/i2c01

Today we will discuss I2C, or “Inter-Integrated Circuit” communications.

I2C is a two-wire, low-speed serial communications format that was originally developed by Phillips (now NXP) in 1982. Although its original use was to allow integrated circuits in televisions to communicate with one another it has evolved into a standard communications method used by a myriad of devices.

I2C works with the concept of “Master” and “Slave” devices. The master device provides the clock signal and initiates communications with the slaves. An I2C bus can have multiple masters and slaves, but only one master can be active at any given time.

We have used I2C devices in lots of projects and tutorials before. Today we will use I2C to communicate between two Arduinos.

In future videos I will show you more about using I2C:

Creating your own I2C devices out of common sensors and small Arduino's.
Communicating between Raspberry Pi and Arduino with I2C.
Using multiple masters on an I2C bus.

Today we will just cover the basics. We will first exchange information between two Arduinos and then we will use a potentiometer on one Arduino to control an LED on a second one via I2C.

Here is what is in today's video:

00:00 - Introduction
04:28 - Understanding I2C
07:40 - Exchanging data between two Arduino's
15:25 - Controlling one Arduino with another one

As always you can get the sketches on the article that accompanies this video, just go to https://dbot.ws/i2c01

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
Quote