I2C Part 1 - Using 2 Arduinos

  Рет қаралды 405,308

DroneBot Workshop

DroneBot Workshop

Күн бұрын

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 dronebotworkshop.com/i2c-ardu...
More articles and tutorials: dronebotworkshop.com
Join the conversation on the forum: forum.dronebotworkshop.com
Subscribe to the newsletter and stay in touch: dronebotworkshop.com/subscribe/
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. While you're on the website feel free to check out the other articles I have, and be sure to sign up for my newsletter .
As always I appreciate your support, thanks for watching!

Пікірлер: 338
@TalkingGIJoe
@TalkingGIJoe 3 жыл бұрын
If my shop was this clean, I'd never get any work done... I'd just sit there and stare at how beautiful it is! Nice video too...
@whitefields5595
@whitefields5595 5 жыл бұрын
Very professional, perfect pace, top quality presentation.
@r1273m
@r1273m 5 жыл бұрын
Excellent video as always. The quality of your production is unsurpassed. I am really looking forward the follow up videos. Bob
@Slimey117
@Slimey117 Жыл бұрын
as much as i agree with you, GreatScott is better
@amnesie6615
@amnesie6615 5 жыл бұрын
This is the best video I found on the web! Thank you very much, exactly what I was looking for, because I am running out of pins on my arduino, with this master-slave via I2C I could "expand" my pins via another arduino! GREAT!
@MartinBgelund
@MartinBgelund 5 жыл бұрын
GREAT choice of topic(s)!!! This is a perfect match with what I'm fiddling with on my robot, and there's a lot to take into account and many choices to make, so I am very excited about you taking up I2C on your channel.
@dwsan1tx
@dwsan1tx 2 жыл бұрын
Thank you. It’s evident you have put a lot of effort to document your presentation and present it very well. Bravo sir!
@AgeingBoyPsychic
@AgeingBoyPsychic 4 жыл бұрын
Just started with Arduino recently and this channel is a godsend! Clear, concise and really well produced. Thank you for making these!
@cschmitz
@cschmitz 5 жыл бұрын
This was a fantastic video and explanation. Def looking forward to part 2!!
@devikwolf
@devikwolf Жыл бұрын
I've been playing with circuits and microcontrollers for a couple decades at this point... but thanks to your videos, a lot of things which I had previously learned to do 'by rote' I now have a better fundamental understanding of. You importantly explain not only the 'how' but also the 'why' when you do something, and that 'why' is what really allows ME to engage my own creativity!
@afah6850
@afah6850 10 ай бұрын
hey im doing my diploma in computer engineering but what job could i get if im really good at this circuits and microcontrollers, Im really interested in them
@estar4480
@estar4480 2 жыл бұрын
It is one of the best videos I have seen when it comes to explaining anything related to electronics. EXCELLENT WORK!!
@irgski
@irgski 5 жыл бұрын
Good example, good editing and a clean and organized lab!
@bluescream7463
@bluescream7463 5 жыл бұрын
Wow, This is an eye opener for me. Thanks for this clear presentation. Appreciation to your work ! Many Thanks !
@anonymous.youtuber
@anonymous.youtuber 3 жыл бұрын
Thank you so much . You truly have the gift of teaching. Respect. 🙏🏻
@andrewparker2751
@andrewparker2751 2 жыл бұрын
That was the best description & explanation of I2C I've found. Excellent work, and thanks for the video!
@davidfarning8246
@davidfarning8246 5 жыл бұрын
Fantastic Series. I am currently familiarizing myself with Arm Cortex M Microprocessors using a TI Launchpad. For the last several weeks I have been watching your Arduino videos to learn the concepts and then figure out how to implement them on the launchpad.
@MrBanzoid
@MrBanzoid 3 жыл бұрын
Top class video as usual. Thanks very much. I've just taken my box of Arduino bits'n'bobs out of retirement and following your vids from the start trying all the experiments that I have the modules for.
@grayfaux_
@grayfaux_ 2 жыл бұрын
You make learning about i2c simple. Love it.
@paulwright4765
@paulwright4765 5 жыл бұрын
As always, another great video. Thank you!
@DDA40Xman
@DDA40Xman 5 жыл бұрын
Thanks for the video, I'm learning I²C so great timing. I bought a I²CDriver monitor board to help understand signaling and commands.
@hc1770
@hc1770 5 жыл бұрын
Very informative and clear explanation. Can’t wait for the up coming videos!
@renaldsurpris115
@renaldsurpris115 4 жыл бұрын
You are the best teacher I have ever seen. Fantastic job. Love it
@josephotieno898
@josephotieno898 5 жыл бұрын
Great job and Excellent explanations as usual. Can’t be more clear...
@Javier_Corado
@Javier_Corado 5 жыл бұрын
Loved the video, cant wait for the video where you explain the integration of i2c with a normal sensor
@espenbgh2540
@espenbgh2540 5 жыл бұрын
Very excellent video, calm voice and pace, as it's easy to follow - keep up the god work.
@josefaschwanden1502
@josefaschwanden1502 4 жыл бұрын
Thats blasphemy
@liukaiyu683
@liukaiyu683 3 жыл бұрын
Thank you, professional and clear explanations! EXCELLENT!!!
@paulvanwagoner7273
@paulvanwagoner7273 2 жыл бұрын
Excellent demo of using I2c, exactly what I was looking for
@guyd6
@guyd6 4 жыл бұрын
Another time against, it's excellent. We need someone like you. Thanks
@konturgestalter
@konturgestalter 5 жыл бұрын
Great Series!!! Please continue the great work!!
@DailyCakeSlice
@DailyCakeSlice 5 жыл бұрын
I literally JUST started a project where I wanted to use this! Perfect timing, thanks! :)
@DownTownDowns
@DownTownDowns 5 жыл бұрын
What a coincidence, me as well
@michaellove7912
@michaellove7912 3 жыл бұрын
People like you make the world a better place
@tomdilen7062
@tomdilen7062 4 жыл бұрын
best teacher of the universum, thanx sir
@JerryEricsson
@JerryEricsson 4 жыл бұрын
Thanks a billion, I have been using and loving the I2C for years now, but never really understood how it worked, I just knew it did and loved the way it did. Now I have a much better understanding of the history and actions capable using the bus, it all makes much more sense now.
@matztron1872
@matztron1872 4 жыл бұрын
Good pacing and great introduction into I2C. Thanks!
@MyJaniu
@MyJaniu Жыл бұрын
Wielkie dzięki za konkretną informację . Pozdrawiam.
@Ninjamstrboy
@Ninjamstrboy 5 жыл бұрын
Great work! Thank you for the beautiful video.
@PhG1961
@PhG1961 5 жыл бұрын
Excellent video and crystal clear explained ! Well done !
@ModestMaker
@ModestMaker 4 жыл бұрын
Thanks for the code and the tutorial which helped me solve a challenging problem. Your information is acknowledged in code and information I've posted on my own channel; most helpful!
@patrickmclaughlin6013
@patrickmclaughlin6013 3 жыл бұрын
Thanks Bill. Very thorough introduction.
@3nagib
@3nagib 5 жыл бұрын
Another great video.thanks again Waiting for the next one
@northshorepx
@northshorepx 5 жыл бұрын
excellent tutorial. I now get how to do both sides of the Wire protocol.
@rickcook5335
@rickcook5335 5 жыл бұрын
Great video. Really helped me with my arduino adventure
@geoffwade8144
@geoffwade8144 3 жыл бұрын
I enjoyed this lesson and found it very helpful, thank you.
@jankuhlmann9196
@jankuhlmann9196 5 жыл бұрын
Thanks for all the hard work you do. Just wanted to let you know that the example code on the website for the LED slave example has some extra code included, there are two setup() code blocks.
@gasko2762
@gasko2762 5 жыл бұрын
Thank you so much for this tutorial. Very excellent video.
@newburypi
@newburypi 5 жыл бұрын
Great one! Clearified some questions I had on using wire. Thanks.
@Lorenzo0077
@Lorenzo0077 5 жыл бұрын
your videos are really interesting and well explain, thanks !
@PLanBBeaTZ
@PLanBBeaTZ Жыл бұрын
Very clear to the point video! Thanks for uploading
@RastaJediX
@RastaJediX 3 жыл бұрын
Wonderful video. Thank you so much! I've never heard the clock line referred to as "SDC", only "SCL".
@Nick-ye5kk
@Nick-ye5kk 2 жыл бұрын
Please keep making these excellent videos.
@vladstrulev
@vladstrulev 4 жыл бұрын
Thank you for your work! Much appreciated.
@khulekanindlovu2773
@khulekanindlovu2773 4 жыл бұрын
Good video, quality and thoroughness
@SimonsRandomRants
@SimonsRandomRants 3 жыл бұрын
Love your videos. Thank you. I use cheap Chinese Arduino UNO's. I had to put in the pull up resistors to 5V before communications could work. Thank you.
@ukwerna
@ukwerna 5 жыл бұрын
Hope all is well, thanks, as always!
@dieterrahn2720
@dieterrahn2720 3 жыл бұрын
Many thanks for sharing your expirience with us!
@JonBck
@JonBck 4 жыл бұрын
Nice video. Exactly what I was looking for. Thanks!!!
@erinasimpson4289
@erinasimpson4289 10 ай бұрын
I have no idea who you are, but I would like you to know that you have saved my life
@marcofe82
@marcofe82 4 жыл бұрын
Really excellent video! Great job and thank you so much!
@bigheat86
@bigheat86 5 жыл бұрын
nice one. always wanted to know more about I2C
@moinshaikh6684
@moinshaikh6684 3 жыл бұрын
Excellent tutorials sir, became a fan!
@nalinux
@nalinux 4 жыл бұрын
Thanks, it's very clear and easy to understand.
@Christoph1888
@Christoph1888 2 жыл бұрын
Your just such a good teacher!
@SHANUSHAH
@SHANUSHAH 5 жыл бұрын
Well presented again , cool video.
@ericgrante7043
@ericgrante7043 4 жыл бұрын
Bonjour, Excellent vidéo, langage clair et agréable. Merci pour tes video. bonne journée
@matthieuvanderbugh9749
@matthieuvanderbugh9749 3 жыл бұрын
I am from Holland and I injoy all what I see here Thank you Smile2U
@inayathussain9236
@inayathussain9236 5 жыл бұрын
wait is over.... i was waiting for this topic since a couple of months
@vonries
@vonries 5 жыл бұрын
Hold on to your hat; you're in for a ride. This is a multi- part series so more is coming down the road. Plus if you're not a long time viewer, you can always go back and watch his previous I2C videos. Sadly I did not see a playlist, but he did say at the beginning of the videos which devices he has already covered that use I2C. You might be able to find them that way. Good luck, and have a great week waiting for the next video.
@inayathussain9236
@inayathussain9236 5 жыл бұрын
@@vonries thanks. I've seen every video of dronebot workshop. i remember first video was IR sensor
@frankjonathansaenz1911
@frankjonathansaenz1911 4 жыл бұрын
I love your videos!! Keep making such great videos. They are very helpfull, too. :)
@p.g.pg38
@p.g.pg38 5 жыл бұрын
Thanks a lot for this video (and for the futures) and thank you for the full article which is essential for those whose English is not the native language.😜
@zebratangozebra
@zebratangozebra 5 жыл бұрын
Very cool and excellently demonstrated.
@dsbohra
@dsbohra Жыл бұрын
Excellent explanation.
@ovidiurosu6632
@ovidiurosu6632 5 жыл бұрын
very good video; looking forward to the next one :)
@marknailis
@marknailis 2 жыл бұрын
Excellent explanation
@AhmadAsmndr
@AhmadAsmndr 4 жыл бұрын
thank you very much your Videos are the best.
@ahajet3450
@ahajet3450 2 жыл бұрын
thank you for your effort , It is a wonderful video
@bperkins
@bperkins 5 жыл бұрын
Very informative. Thanks!
@thecraftsman8083
@thecraftsman8083 4 жыл бұрын
Best tutor online!
@usamabinrafique127
@usamabinrafique127 4 жыл бұрын
What a nice and fine explanation.. Thank you :)
@felaflame
@felaflame 4 жыл бұрын
Excellent explanation!
@mehmetaltinsoy525
@mehmetaltinsoy525 Жыл бұрын
Great video. Thanks
@chigypt
@chigypt 5 жыл бұрын
Niice Video again, very good work DroneBot
@ninhnguyen8488
@ninhnguyen8488 4 жыл бұрын
nice work! very easy to understand
@ayushkaiwart2451
@ayushkaiwart2451 3 жыл бұрын
Quality content.
@user-hj4bm1kz2l
@user-hj4bm1kz2l Жыл бұрын
Just perfect. Thanks
@tamilmaranc
@tamilmaranc 3 жыл бұрын
Great explanations sir
@mr.bianchirider8126
@mr.bianchirider8126 5 жыл бұрын
Great video. I hope you be covering the use of the TCA9548A multiplexer with two or more identical I2C sensors (like the BME280) on one Arduino Uno.
@hrhodes2768
@hrhodes2768 4 жыл бұрын
thank you, I needed to find a method of 1 wire communication on Arduino
@blackbox330
@blackbox330 Жыл бұрын
Sir, Great video
@BluCasper
@BluCasper 5 жыл бұрын
wow. amazing. the best video on i2C. sir please make a video on SPI. waiting for your new videos
@LtShifty
@LtShifty 10 ай бұрын
Thanks so much for this video, ots exactly what i wanted to learn. Im looking to build a home cockpit and one of my requirements is to use a single USB (or a max of 3) for the entire thing. This looks perfect to wire up all of thr switches and controls on micro pros and then run them all from just one or two masters. The coding for this is remarkably simple as well.
@mtalhakhalid1679
@mtalhakhalid1679 2 жыл бұрын
Best videos ever sir keep that awosm work❣💓
@gustavovd
@gustavovd 4 жыл бұрын
What a beauty! Magical!
@markuswerner1166
@markuswerner1166 3 жыл бұрын
thank you for this vid. Merry xmas
@Kingzila2
@Kingzila2 5 жыл бұрын
Excellent video! Thank you so much for making this tutorial, it really helped me!
@leeaudio027
@leeaudio027 3 жыл бұрын
Awesome, thanks for sharing!!!!
@ezangrobotsvideos9286
@ezangrobotsvideos9286 Жыл бұрын
Thanks , great info
@flashcorp76
@flashcorp76 4 жыл бұрын
Excellent tuto !
@hadireg
@hadireg 4 жыл бұрын
Great teaching skills & content quality! 👍👍 jus a tiny detail: NXP, Philips has a single L... Thank you sir!
@jonathanchan2067
@jonathanchan2067 3 жыл бұрын
Very good video very good explanation
@jjjxxxaime
@jjjxxxaime 3 жыл бұрын
Excelent and very useful tanks a lot
@waterhouse8465
@waterhouse8465 4 жыл бұрын
I love this guy
@turanyasar3375
@turanyasar3375 3 жыл бұрын
Ur literally a legend.
I2C Part 2 - Build a I2C Sensor
33:47
DroneBot Workshop
Рет қаралды 129 М.
Solving I2C Address Conflicts - TCA9548A I2C Multiplexer
24:29
DroneBot Workshop
Рет қаралды 100 М.
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 57 МЛН
FOOTBALL WITH PLAY BUTTONS ▶️❤️ #roadto100million
00:20
Celine Dept
Рет қаралды 36 МЛН
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 6 МЛН
Op-Amps  - Using Operational Amplifiers
44:21
DroneBot Workshop
Рет қаралды 270 М.
SPI: The serial peripheral interface
33:00
Ben Eater
Рет қаралды 668 М.
Connecting Arduino with multiple I2C devices
6:22
BlueDot
Рет қаралды 190 М.
Understanding I2C
10:58
Rohde Schwarz
Рет қаралды 65 М.
The EASIEST Way to Connect to a Car's CAN Bus
4:46
MrDIY
Рет қаралды 254 М.
PROTOCOLS: UART - I2C - SPI - Serial communications #001
11:58
Electronoobs
Рет қаралды 1,4 МЛН
Electronic Basics #19: I2C and how to use it
6:09
GreatScott!
Рет қаралды 413 М.
Basics of I2C communication | Hardware implementation of I2C bus
6:48
Foolish Engineer
Рет қаралды 73 М.
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 2,9 МЛН
Using EEPROM with Arduino - Internal & External
31:54
DroneBot Workshop
Рет қаралды 192 М.
🍜🤤Leo Didn't Want To Eat The Noodles🤪🤗
0:28
BorisKateFamily
Рет қаралды 7 МЛН
Невестка с приколом 😱
0:23
ТРЕНДИ ШОРТС
Рет қаралды 2,6 МЛН
Он самый молодой профессиональный камнерез
0:19