2 Arduinos Talking How-To I2C / TWI

preview_player
Показать описание
The Code:

.ino files, using 1.0.1


Thanks to all the Patrons for dropping a few bucks in the tip jar to help make these videos happen!

For inquiries or design services:
Рекомендации по теме
Комментарии
Автор

yes, you can go into arduino and change the font. I've been making it larger for my newer videos

Kevindarrah
Автор

Hey, great vid Kevin. You cover a lot of bases when it comes to the woes of 2 way communication with master and slave. It's helped bring me some perspective to my own project where I have 3 arduinos, one running a network of sensors for obstacle avoidance, one for motor control and another for assembling RTK GPS info. If you think this project had you banging your head against the wall, I bet we have you beat! What a PITA!!! But it's been a fantastic learning experience though! Thanks a ton for the great video!

rustyshivers
Автор

I may do a video on that. For me, it only depends on the device I'm connecting to, like the compass module was only offered with I2C, so I had no choice, but there are pros and cons to both. Speed wise, SPI is the way to go since you can clock data in and out at your crystal frequency/2 I2C is a little better as far as dealing with a network of devices since everything is addressed. There's plenty out there on this topic, thats just what I think

Kevindarrah
Автор

hmmm, maybe I'll revisit this one someday and see for myself

Kevindarrah
Автор

Yea, I guess sooner or later they would be necessary... was kinda surprised it worked so well without em

Kevindarrah
Автор

After watching this, I wish the rest of the tutorial videos are out already. Oh well, I'll just watch a marathon session of walking dead till it comes out.

smiley
Автор

I think the pull-up resistors are recommended because without them the arduino will detect random states as the - HIGH and LOW. Obviously that would mess up everything.

doodh_jalebi
Автор

Thanks for the videos, I have been watching your other serial communication videos as well. They are really very helpful. Keep up the great work!
If I may ask what is the advantage of using I2C over SPI?
Could you make a video on SPI as well?

nishantlokhandwala
Автор

I wonder what will happen if we connected 128 arduinos together!!!

doodh_jalebi
Автор

Could you do a tutorial on interfacing I2C devices with AVR microcontrollers in C, using atmel studio 6, as this is not an easy protocol to learn about without clear instruction

adamt
Автор

I've heard multiple masters are hard

NCHLAS
Автор

Wow.
Horribly complicated for a simple fading LED. Anyone ever use this to make something usable and maybe created a video?

charlyoak