How I2C Communication Works and How To Use It with Arduino

  Рет қаралды 1,519,340

How To Mechatronics

How To Mechatronics

Күн бұрын

howtomechatronics.com/tutoria... ► Find more details, circuit schematics and source codes here.
If you enjoy and find the content that I make useful, please consider supporting me on Patreon: / howtomechatronics
In this tutorial we will learn how the I2C communication protocol works and also we will make a practical example of it with the Arduino Board and a sensor which uses this protocol. You can watch the following video or read the written tutorial below.
Visit HowToMechatronics.com for more Tutorials, Tips, Projects and How It Works videos:
► howtomechatronics.com/
Like my page on Facebook:
► / howtomechatronics
Add me on Google+:
►plus.google.com/+Howtomechatr...
Music: Aduro by Jens Kiilstofte (machinimasound.com/music)

Пікірлер: 494
@rahulfromkerala
@rahulfromkerala 5 жыл бұрын
2 hours of reading and then here comes this video where everything is well explained in under 10 minutes... You tube is spoiling me...
@thesauceboss5995
@thesauceboss5995 2 жыл бұрын
This is one of the only videos I've found that explains how pull up resistors can affect the speed at which data can travel on the SDA line. Fantastic video that explains how I2C works. Great job.
@vijaykumar-hc6jz
@vijaykumar-hc6jz 3 жыл бұрын
The bit sequence was so well explained that I had to print the screenshot of it for future reference.
@mark879
@mark879 7 жыл бұрын
Awesome video! I especially appreciated the protocol/packet breakdown. Thanks very much!
@kamuizero
@kamuizero 7 жыл бұрын
What a great video! Very clear explanation and simple demonstration on how to use it. Thank you very much.
7 жыл бұрын
Very useful for beginner like me, thank you! :)
@RamswaroopSorencool
@RamswaroopSorencool 7 жыл бұрын
This is so beginner friendly! Thank you so much. I used the same illustrations to make few students understand the same. :)
@kiranbs5057
@kiranbs5057 3 жыл бұрын
Watched many videos on this protocol I was never able to grab the concept clearly and I found your tutorial and it made my life simple . Thanks man u have explained and visualised the concept neatly .
@nobodyspecial313
@nobodyspecial313 8 жыл бұрын
Sweet tutorial! Really like the illustrations that went along with your explanation. After looking at a few cool project videos where people are using Arduinos and other microcontrollers, it makes me wish my college had a class on these!
@iancorcoran7560
@iancorcoran7560 7 жыл бұрын
Dejan Nedelkovski
@Gupatik
@Gupatik 5 ай бұрын
it's been 8 years now or so, are you still alive bud, and did you learn this arduino and microcontrollers stuff. Anyways, hope you are doing good
@elonmuskmtmt886
@elonmuskmtmt886 5 жыл бұрын
This is by far the most thorough and yet still concise explanation I have found! Awesome video!
@HowToMechatronics
@HowToMechatronics 5 жыл бұрын
Thank you!
@AliHSyed
@AliHSyed 6 жыл бұрын
OMG thank you so much, I've been so lost with i2c until I watched this video!
@PhDFernandoCoach
@PhDFernandoCoach 7 жыл бұрын
Thank you very much for this video, Dejan! The information is clear, well organized and dynamically illustrated!
@fleshTH
@fleshTH 7 жыл бұрын
This was extremely well done! Good job! It was very clear and now i'm off to do some new projects.
@morgard211
@morgard211 6 жыл бұрын
Thanks! I didn't want to memorize it, but to understand it and it worked! :)
@ronimine
@ronimine 7 жыл бұрын
Very clear and instructive. Well done. Thank you !
@mohanmanoharan1387
@mohanmanoharan1387 8 жыл бұрын
super, really appreciate for the tutorial. Request similar other Serial protocols SPI explanation. CAN, UART. thanks
@MrJeppeholt
@MrJeppeholt 6 жыл бұрын
OMG dude that was perfect. I have been struggeling with i2c for a while now but this made it click. THANKS! :D
@minanovkiril
@minanovkiril 7 жыл бұрын
дејан секоја чест! браво за споделеното знаење! сеа дознав за твојот канал, ќе разгледам што си споделил со задоволство.
@GetElectronics
@GetElectronics 5 жыл бұрын
I always like tutorials that show how to use sensores without relying on 3rd party libraries other than the wire one. Very useful for learning.
@MkmeOrg
@MkmeOrg 8 жыл бұрын
This is fantastic! Sharing on Mondays live show. Great vid. Cheers!
@markconger8049
@markconger8049 3 жыл бұрын
Thank you for this tutorial! I knew the overview of how i2c works but not the specifics. It looks similar to packets in TCP/IP.
@ExtantFrodo2
@ExtantFrodo2 8 жыл бұрын
I now understand what I could not understand previously. Thank you.
@omaralharran
@omaralharran 2 жыл бұрын
You are the best. Thank you for taking the time to explain I2C on such indepth level.
@clearwavepro100
@clearwavepro100 8 жыл бұрын
Thank you! This is really well done, clear and interesting!
@stevetobias4890
@stevetobias4890 4 жыл бұрын
Excellent explanation. Also helps me in a project where I will be using breakout boards for the first time. Thank you
@IRgEEK
@IRgEEK 6 жыл бұрын
Great and informative video! Thanks so much!
@mrcamperon
@mrcamperon 8 жыл бұрын
thank you Dejan. great tutorials, very well done the clip too
@chasenjohnson797
@chasenjohnson797 5 жыл бұрын
Great description of I2C. Thanks:)
@pacokun1
@pacokun1 8 жыл бұрын
Thanks, I understand how it's work now :D It's will really help me :D
@iiDougieii
@iiDougieii 5 жыл бұрын
Thank you for this video. I needed a refresh of what I already learnt in the past. Good work !!
@HowToMechatronics
@HowToMechatronics 5 жыл бұрын
Thanks!
@naboulsikhalid7763
@naboulsikhalid7763 5 жыл бұрын
Hi, Mentor. What to say, thank you won't be enough. great, detailed video.
@devarajan2291
@devarajan2291 7 жыл бұрын
excellent. thanks a lot. you helped me in my interview preparation.
@thtr9647
@thtr9647 7 жыл бұрын
Omg, this is so good animation. Appreciate !
@danielrufenacht3722
@danielrufenacht3722 8 жыл бұрын
Hello Dejan Many thanks for your time to spend in order to explain us these very clear tutorials. Daniel from Switzerland
@lan5053
@lan5053 5 жыл бұрын
So easy to understand. Thank you!
@nalorin
@nalorin 2 жыл бұрын
SUPER helpful tutorial! Thank you so much! I have an ALS31313, and all the code examples I could find online (including the manufacturer's website) don't work. Your tutorial makes things SO much clearer and I managed to get my magnetometer working within 15 minutes of watching your video! THANK YOU!!!
@HowToMechatronics
@HowToMechatronics 2 жыл бұрын
Glad to hear it, cheers!
@excite236
@excite236 8 жыл бұрын
saved me so much time working gy-80 thanks man
@poojithaborra1650
@poojithaborra1650 6 жыл бұрын
Clear explanations... Tnx
@templocal
@templocal 2 жыл бұрын
You explain things very accurately! Thank you!
@erniea5843
@erniea5843 18 күн бұрын
this video is still providing value after all these years!
@HowToMechatronics
@HowToMechatronics 17 күн бұрын
Happy to hear it!
@mitkopetrovik259
@mitkopetrovik259 7 жыл бұрын
Nice, it is desirable in the following tutorials to explain the I2S protocol and what is exactly the difference with I2C
@ramazans8114
@ramazans8114 6 жыл бұрын
Thanks, really very clear explanation and very effective.
@michaelvogt7787
@michaelvogt7787 8 жыл бұрын
Dejan, I was looking through youtube for a decent tutorial about the I2C bus as implemented on the Arduino. I have a class of high school students who could use a good demo. I didnt expect to find your EXCELLENT tutorial, one that would be useful even to professional electronics engineers. I wanted to let you know you did a nice job, and it was appreciated. Dr. Michael Vogt - North American Robotics
@michaelliles6755
@michaelliles6755 8 жыл бұрын
Finally someone who knows what he's talking about ! Thank you! Not one person on the Arduino site or any other place online have suggested hooking up scl to scl and sda to sda . Everyone says hook it up to A4 and A5 . I bought two units so far thinking that either I broke it or it was doa. well turns out that both work fine. why is this info missing from the arduino site?? anyway thank you very much!
@igorradevski9147
@igorradevski9147 8 жыл бұрын
Thanks Dejan for this great tutorial. It helps me a lot! :)
6 жыл бұрын
This is an amazing tutorial. Thank you very much.
@glikar1
@glikar1 5 жыл бұрын
Thanks, very good in depth tutorial!
@harshatechvideos1859
@harshatechvideos1859 5 жыл бұрын
Nice work and thank you very much for providing these quality videos.
@clirimmurati6183
@clirimmurati6183 5 жыл бұрын
AHH such explanations, love it
@druggles1
@druggles1 7 жыл бұрын
Nice presentation along with a great explanation. Thank you, for sharing, Dejan!!
@chinhcd
@chinhcd 8 жыл бұрын
It saved me so much time and hassle. Good job!
@iconofsin1043
@iconofsin1043 7 жыл бұрын
Very well explained, thank you very much!
@totalnewbie8619
@totalnewbie8619 5 жыл бұрын
This was an informative and helpful video. I also liked how you explained with graphics. It made things easier to understand.Thank you and please keep doing more videos like this for beginners like me. Best regards.
@HowToMechatronics
@HowToMechatronics 5 жыл бұрын
Thanks, I'm glad to hear that!
@andrebernardmennicken4685
@andrebernardmennicken4685 6 жыл бұрын
Verywell explained, clear, direct to the point, Thank you...
@arvydasstankevicius5277
@arvydasstankevicius5277 5 жыл бұрын
So well explained!!! Thanks. Subscribed.
@narekisaghulyan
@narekisaghulyan 6 жыл бұрын
amazing tutorial, thank you!!!
@Taran72
@Taran72 5 жыл бұрын
great Tutorial! thanks!!
@fahadmubeen6272
@fahadmubeen6272 4 жыл бұрын
To the point, simple and clear, well done! which most people struggle to explain. ~This is coming from a Professional Embedded engineer.
@HowToMechatronics
@HowToMechatronics 4 жыл бұрын
Glad to hear it, thanks!
@thomasalexander1563
@thomasalexander1563 7 жыл бұрын
Great Tutorial,,, Make more .. Absolutely waiting for all your tutorials,,
@alexpelagaggi
@alexpelagaggi 6 жыл бұрын
Dejan Nedelkovski, you are the best. Thank you very much for making this video.
@spbains1966
@spbains1966 6 жыл бұрын
Excellent tutorial bringing out the details very clearly
@KunalGautam
@KunalGautam 7 жыл бұрын
Thanks, it helped me a lot to understand how I2C works.
@warsini5386
@warsini5386 3 жыл бұрын
Wayagkulot
@aragonv1
@aragonv1 8 жыл бұрын
ΤΗΑΝΚ ΥΟU.. ! A VERY CLEAR EXPLANATION OF i2C DEVICES
@ksawery6568
@ksawery6568 5 жыл бұрын
Great tutorial, thank you!
@miguelluisrodrigues3704
@miguelluisrodrigues3704 4 жыл бұрын
Thank you brother, you help me a lot in my projects
@user-yw5yr4mk2c
@user-yw5yr4mk2c 5 жыл бұрын
Good explanation of the protocols' packet. thanks
@junaidasim1021
@junaidasim1021 5 жыл бұрын
Accurate and up to the mark explanation thank you so much
@maxpolaris99
@maxpolaris99 3 жыл бұрын
Your examples are very helpful for us slow pokes with little to no insight. Good Job.
@senai_mecatronicabeta3737
@senai_mecatronicabeta3737 7 жыл бұрын
Muito bom este tutorial, parabéns.
@rafaelmarroquin4429
@rafaelmarroquin4429 8 жыл бұрын
really great thanks for your time, and explain this. I show similar to shift register :D
@PiCoVienna
@PiCoVienna 6 жыл бұрын
Excellent, easy to understand, very precise!
@erichertsens
@erichertsens 8 жыл бұрын
thanks, appreciated from the Dominican Republic
@krozareq
@krozareq Жыл бұрын
Good to know how all this works. I've used the Linux i2c and SMbus userspace tools, but never really knew the hardware functionality behind it. GPU lighting is generally i2c and motherboard controllers use SMbus (both very similar though). Knew just enough to be dangerous and change RGB colors or monitor temps with a very light shell script and even shell functions. The OpenRGB project has the addresses for most hardware, including USB (mouse, keyboards, and some mobos use USB for communication to controllers).
@pietrotosoratti799
@pietrotosoratti799 3 жыл бұрын
Thank you for this useful video !! You explained the topic in such a clear way !!
@simplynilsw
@simplynilsw 7 жыл бұрын
You said 124 devices instead of 1024 devices (0:52 min), but great video it helped me alot, thanks :))
@alentech6091
@alentech6091 7 жыл бұрын
Amazingly well explained!
@fromdeepitcame
@fromdeepitcame 8 жыл бұрын
Yep, this is great. Thanks!
@suzesiviter6083
@suzesiviter6083 6 жыл бұрын
To clarify; the I2C lines are either high impedance or 0, you never drive the bus line high directly; that is achieved by de-asserting the '0' and letting the internal pull up resistors tie it to Vcc. The high impedance or low state on the bus prevents bus contention; that is a ground connecting to Vcc directly causing a short between any masters or slaves.
@youseebruce5426
@youseebruce5426 5 жыл бұрын
A very clean and neat explanation... I understood clearly... Thank you very much.
@abdelrhmansafwat6191
@abdelrhmansafwat6191 6 жыл бұрын
Thank you very much buddy for your great illustrations :)
@aubreydebliquy8051
@aubreydebliquy8051 3 жыл бұрын
Thank you for a clear explanation. I used only SPI to date but now I know how to use I2C ... thanks...
@roidroid
@roidroid 8 жыл бұрын
6:00 just a headsup: You have the Arduino connected to two GNDs, with no 5V line.
@AdityakrishnaMr
@AdityakrishnaMr 5 жыл бұрын
Yes, that bothered me too.
@AngryRamboShow
@AngryRamboShow 5 жыл бұрын
@Blondie SL the white race needs you to make blond haired blue eyed babies. Stop being a degenerate and man up.
@taimooramin1272
@taimooramin1272 5 жыл бұрын
Bro thats not a big deal he is also a human and if he has done any mistake that does not matter because if you have used arduino or any other types of microcontroller in past u can correct the connections easily
@ksawery6568
@ksawery6568 5 жыл бұрын
@Blondie SL Well that escalated quickly.
@cinibar
@cinibar 5 жыл бұрын
@Blondie SL Dark matter....hmmmm I once cut open a dead flashlight battery and found it to be very dark, black as coal in fact. I just figure it got full of the dark that it was displacing with light, and died when it got full. :)
@mikelemon5109
@mikelemon5109 8 жыл бұрын
Awesome tutorial thanks a lot where have you been where I didn't understand that communication at all.
@MathewPendleton
@MathewPendleton 7 жыл бұрын
explained perfectly. thanks!
@EmciGad
@EmciGad 2 жыл бұрын
Very good and clear explanations! well done!
@LaurinusPonpon
@LaurinusPonpon 3 жыл бұрын
I watched a few videos and this is the BEST explanation for I2C. Thanks
@HowToMechatronics
@HowToMechatronics 3 жыл бұрын
Glad it was helpful!
@narendravasu6607
@narendravasu6607 6 жыл бұрын
Thank you sir Your explanation very simple and clearly. Very useful to me . onces again thank you sir
@TheAkyatbahay
@TheAkyatbahay 6 жыл бұрын
thank you! i finally understand now!
@victorchan8685
@victorchan8685 8 жыл бұрын
Appreciate for your excellent video, you speak very clear and explain in detail! You are wonderful! Help a lot!
@andremendes5116
@andremendes5116 8 жыл бұрын
Nice explanation... the protocol I2c is very usefull, fast and need... Thank's for your time and information.
@Patrick-ky7ez
@Patrick-ky7ez 4 жыл бұрын
Amazing video. SOO many hours of reading pdfs with unnecessary tech jargon. You explained it perfectly.
@lxndrskv
@lxndrskv 6 жыл бұрын
Thanks man, I appreciate the video. I wonder what kind of issues you could run into if you ran 1024 10 bit devices on the same line. Electromagnetic interference may become a concern.
@roboticacreativa9851
@roboticacreativa9851 8 жыл бұрын
Great!, Thank you for the contribution.
@jackm416
@jackm416 4 жыл бұрын
Great job of explanation ! Good graphics and clear explanation of the timing !
@HowToMechatronics
@HowToMechatronics 4 жыл бұрын
Thank you!
@marklowe7431
@marklowe7431 8 жыл бұрын
Perfect explanation. Thank you.
@skeeveskeeve
@skeeveskeeve 3 жыл бұрын
Best video I have seen on the subject.
@reydus6651
@reydus6651 4 жыл бұрын
superb video mate. Explained it very easily.
@georgekontellis3856
@georgekontellis3856 6 жыл бұрын
Great work. Can we also see somewhere the procession of raw data into actual measurements? Do you use the sensor's librarys for that? We want to connect a CO2 sensor, a humidity sensor and two accelerometers. Also a BMP180... Thank you...
@henearkrip
@henearkrip 4 жыл бұрын
Nice Work! Very clear and simple explanation!!
@nemorotatory
@nemorotatory 6 жыл бұрын
Thank you so much, It is very helpful
Arduino Uno to ATmega328 - Shrinking your Arduino Projects
37:17
DroneBot Workshop
Рет қаралды 782 М.
CAN Bus: Serial Communication - How It Works?
11:25
Electronoobs
Рет қаралды 212 М.
마시멜로우로 체감되는 요즘 물가
00:20
진영민yeongmin
Рет қаралды 33 МЛН
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 7 МЛН
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 43 МЛН
Gym belt !! 😂😂  @kauermtt
00:10
Tibo InShape
Рет қаралды 14 МЛН
What is I2C, Basics for Beginners
18:30
nandland
Рет қаралды 162 М.
Solving I2C Address Conflicts - TCA9548A I2C Multiplexer
24:29
DroneBot Workshop
Рет қаралды 101 М.
Sensors - which one to use
17:06
Electronoobs
Рет қаралды 1,3 МЛН
Arduino TFT LCD Touch Screen Tutorial
7:58
How To Mechatronics
Рет қаралды 1,6 МЛН
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
I2C introduction: The protocol
15:47
Texas Instruments
Рет қаралды 42 М.
I2C Part 1 - Using 2 Arduinos
25:51
DroneBot Workshop
Рет қаралды 408 М.
Inter-Integrated Circuit (I2C) Basics
25:29
Intermation
Рет қаралды 14 М.
Stepper Motor - How It Works
4:43
How To Mechatronics
Рет қаралды 439 М.
DIY Arduino RC Receiver | Radio Control for RC Models and Arduino Projects
15:26
마시멜로우로 체감되는 요즘 물가
00:20
진영민yeongmin
Рет қаралды 33 МЛН