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.
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!
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 .
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
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!
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!!!
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
@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. :)
There are a lot of Tubes about I2C but none of them make note of the fact that I2C is an abbreviation of Inter IC Communication, it was invented by Philips to help reduce the amount of communication tracking between IC's on a PCB, consequently it is a reliable communication system when used over short distances in a controlled environment, a PCB, but it was never intended to be sent overlong pieces of wiring (>200mm?). If you use this to connect to devices over long lengths of wire, especially if there are noisy items around like motors etc, be prepared for random communication problems.
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.
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.
There is an error at the circuit diagram. Instead of 5V you're connected to a GND. However, thank you so much, I learnt a lot from your wonderful video. Merry Christmas
In the circuit diagram at 6:00, I notice GND is connected to the red and blue rail. Is this accurate or am I missing something? I thought I2C was active low? Was this a mistake in the wiring diagram?
Macha, I am a big fan of your channel. Macha I think u did a mistake .......in the tinkercad sample which u have shown in the video .....both the power supply are connected to ground.......Shouldn't the VCC one connect to 5v power supply? btw lots of luv from India ❣
i know its an old video and you probably already know that but you can shorten the Serial.print commands to one like this: Serial.print(String("X0= ") + (X0) + ("X1= ") + (X1)); then when the numbers are bigger or shorter it will automatically fit them together
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.
2 hours of reading and then here comes this video where everything is well explained in under 10 minutes... You tube is spoiling me...
The bit sequence was so well explained that I had to print the screenshot of it for future reference.
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!
Dejan Nedelkovski
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
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 .
Awesome video! I especially appreciated the protocol/packet breakdown. Thanks very much!
To the point, simple and clear, well done! which most people struggle to explain.
~This is coming from a Professional Embedded engineer.
Glad to hear it, thanks!
This is by far the most thorough and yet still concise explanation I have found! Awesome video!
Thank you!
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.
I watched a few videos and this is the BEST explanation for I2C. Thanks
Glad it was helpful!
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
What a great video! Very clear explanation and simple demonstration on how to use it.
Thank you very much.
This is so beginner friendly! Thank you so much. I used the same illustrations to make few students understand the same. :)
You said 124 devices instead of 1024 devices (0:52 min), but great video it helped me alot, thanks :))
OMG thank you so much, I've been so lost with i2c until I watched this video!
Very useful for beginner like me, thank you! :)
super, really appreciate for the tutorial. Request similar other Serial protocols SPI explanation. CAN, UART. thanks
Amazing video. SOO many hours of reading pdfs with unnecessary tech jargon. You explained it perfectly.
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!
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!!!
Glad to hear it, cheers!
6:00 just a headsup: You have the Arduino connected to two GNDs, with no 5V line.
Yes, that bothered me too.
@Blondie SL the white race needs you to make blond haired blue eyed babies. Stop being a degenerate and man up.
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
@Blondie SL Well that escalated quickly.
@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. :)
Dejan Nedelkovski, you are the best. Thank you very much for making this video.
There are a lot of Tubes about I2C but none of them make note of the fact that I2C is an abbreviation of Inter IC Communication, it was invented by Philips to help reduce the amount of communication tracking between IC's on a PCB, consequently it is a reliable communication system when used over short distances in a controlled environment, a PCB, but it was never intended to be sent overlong pieces of wiring (>200mm?). If you use this to connect to devices over long lengths of wire, especially if there are noisy items around like motors etc, be prepared for random communication problems.
Hello Dejan
Many thanks for your time to spend in order to explain us these very clear tutorials.
Daniel from Switzerland
Very good and clear explanations! well done!
This is fantastic! Sharing on Mondays live show. Great vid. Cheers!
Your examples are very helpful for us slow pokes with little to no insight. Good Job.
superb video mate. Explained it very easily.
this video is still providing value after all these years!
Happy to hear it!
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.
This channel never gets old
It saved me so much time and hassle. Good job!
Thank you for a clear explanation. I used only SPI to date but now I know how to use I2C ... thanks...
Thanks for your example with the wire libary
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.
This was extremely well done! Good job! It was very clear and now i'm off to do some new projects.
A very clean and neat explanation... I understood clearly... Thank you very much.
In the breadboard diagram at 5:56 both the + and - are connected to ground on the Arduino
amazingggggg you did save me after reading datasheet for days
Best video I have seen on the subject.
Great job of explanation ! Good graphics and clear explanation of the timing !
Thank you!
Nice Work! Very clear and simple explanation!!
You are the best. Thank you for taking the time to explain I2C on such indepth level.
Very good explanation! Thank you very much.
Thank you brother, you help me a lot in my projects
Exellent explanation, this helpt me a lot. Thank you!👌
Simple and lucid explanation... Thank you
Nice! Very good explanation! Well done 👍
very nice video, clear explanation and easy to understand
Brilliant, and exceptional narration.
Thanks for this concise refresher video
Nice ! Now i got a clear idea what is I2C.
You explain things very accurately! Thank you!
thanks, appreciated from the Dominican Republic
Thank you for that simplified explanation :)
Glad it was helpful!
Thank you for this useful video !! You explained the topic in such a clear way !!
Very clear and instructive. Well done. Thank you !
absolutely brilliant @
Excellent tutorial bringing out the details very clearly
Thank you. It's simple to comprehend
Hi, Mentor. What to say, thank you won't be enough. great, detailed video.
Very clear explanation
easier to understand in this video. Thanks
So easy to understand. Thank you!
I2C Communication -- Demystified! Thumbs up.
Thank you very much for the clear explanation.
Excellent, easy to understand, very precise!
Very clear explanation. Thanks!
OMG dude that was perfect. I have been struggeling with i2c for a while now but this made it click. THANKS! :D
Thanks! I didn't want to memorize it, but to understand it and it worked! :)
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.
Thanks, I'm glad to hear that!
thank you very much fantastic explanation
Appreciate for your excellent video, you speak very clear and explain in detail! You are wonderful! Help a lot!
very good and deep explanation of I2c thanks Brother
There is an error at the circuit diagram. Instead of 5V you're connected to a GND. However, thank you so much, I learnt a lot from your wonderful video. Merry Christmas
Excellent explanation. Also helps me in a project where I will be using breakout boards for the first time.
Thank you
your English is perfect!
Что то мне мерещится русский акцент у автора.
In the circuit diagram at 6:00, I notice GND is connected to the red and blue rail. Is this accurate or am I missing something? I thought I2C was active low? Was this a mistake in the wiring diagram?
Thank you very much for this video, Dejan! The information is clear, well organized and dynamically illustrated!
Thanks, very good in depth tutorial!
Thank you very much for this detailed explanation. You made this topic easy to absorb. 🐣
Verywell explained, clear, direct to the point, Thank you...
Great description of I2C. Thanks:)
Accurate and up to the mark explanation thank you so much
Nice work and thank you very much for providing these quality videos.
дејан секоја чест! браво за споделеното знаење! сеа дознав за твојот канал, ќе разгледам што си споделил со задоволство.
Nice explanation... the protocol I2c is very usefull, fast and need... Thank's for your time and information.
Thank you for this video.
I needed a refresh of what I already learnt in the past.
Good work !!
Thanks!
Macha, I am a big fan of your channel. Macha I think u did a mistake .......in the tinkercad sample which u have shown in the video .....both the power supply are connected to ground.......Shouldn't the VCC one connect to 5v power supply? btw lots of luv from India
❣
I now understand what I could not understand previously. Thank you.
i know its an old video and you probably already know that but you can shorten the Serial.print commands to one like this:
Serial.print(String("X0= ") + (X0) + ("X1= ") + (X1)); then when the numbers are bigger or shorter it will automatically fit them together
Good explanation of the protocols' packet. thanks
excellent.
thanks a lot.
you helped me in my interview preparation.
thanks.very well explained
Glad it was helpful!
nice explanation on I2C.
Great video, really appreciate it! But I really think that explaining every line of the code would've been great!
Thank you very much buddy for your great illustrations :)
Nice presentation along with a great explanation. Thank you, for sharing, Dejan!!
best tutorial on youtube thanks
Thanks!
Intro RIP headphones users. But great info :)
yep I almost died I swear
Same.