How I2C Communication Works and How To Use It with Arduino

  Рет қаралды 1,514,987

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)

Пікірлер: 492
@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.
@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.
@vijaykumar-hc6jz
@vijaykumar-hc6jz 3 жыл бұрын
The bit sequence was so well explained that I had to print the screenshot of it for future reference.
@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 6 жыл бұрын
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
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 .
@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!
@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.
@mohanmanoharan1387
@mohanmanoharan1387 8 жыл бұрын
super, really appreciate for the tutorial. Request similar other Serial protocols SPI explanation. CAN, UART. thanks
@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.
@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! :)
@omaralharran
@omaralharran 2 жыл бұрын
You are the best. Thank you for taking the time to explain I2C on such indepth level.
@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!
@PhDFernandoCoach
@PhDFernandoCoach 7 жыл бұрын
Thank you very much for this video, Dejan! The information is clear, well organized and dynamically illustrated!
@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!
@michaelvogt7787
@michaelvogt7787 7 жыл бұрын
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
@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
@danielrufenacht3722
@danielrufenacht3722 8 жыл бұрын
Hello Dejan Many thanks for your time to spend in order to explain us these very clear tutorials. Daniel from Switzerland
@stevetobias4890
@stevetobias4890 4 жыл бұрын
Excellent explanation. Also helps me in a project where I will be using breakout boards for the first time. Thank you
@ronimine
@ronimine 7 жыл бұрын
Very clear and instructive. Well done. Thank you !
@MkmeOrg
@MkmeOrg 8 жыл бұрын
This is fantastic! Sharing on Mondays live show. Great vid. Cheers!
@minanovkiril
@minanovkiril 7 жыл бұрын
дејан секоја чест! браво за споделеното знаење! сеа дознав за твојот канал, ќе разгледам што си споделил со задоволство.
@mitkopetrovik259
@mitkopetrovik259 7 жыл бұрын
Nice, it is desirable in the following tutorials to explain the I2S protocol and what is exactly the difference with I2C
@naboulsikhalid7763
@naboulsikhalid7763 5 жыл бұрын
Hi, Mentor. What to say, thank you won't be enough. great, detailed video.
@ExtantFrodo2
@ExtantFrodo2 8 жыл бұрын
I now understand what I could not understand previously. Thank you.
@LaurinusPonpon
@LaurinusPonpon 3 жыл бұрын
I watched a few videos and this is the BEST explanation for I2C. Thanks
@HowToMechatronics
@HowToMechatronics 3 жыл бұрын
Glad it was helpful!
@simplynilsw
@simplynilsw 7 жыл бұрын
You said 124 devices instead of 1024 devices (0:52 min), but great video it helped me alot, thanks :))
@alexpelagaggi
@alexpelagaggi 6 жыл бұрын
Dejan Nedelkovski, you are the best. Thank you very much for making this video.
@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!
@chasenjohnson797
@chasenjohnson797 5 жыл бұрын
Great description of I2C. Thanks:)
@maxpolaris99
@maxpolaris99 3 жыл бұрын
Your examples are very helpful for us slow pokes with little to no insight. Good Job.
@templocal
@templocal 2 жыл бұрын
You explain things very accurately! Thank you!
@HowToMechatronics
@HowToMechatronics 3 жыл бұрын
I hope you enjoyed this video and learned something new! If you'd like to support me making more content like this, please consider supporting me on Patreon: www.patreon.com/howtomechatronics
@Scudmaster11
@Scudmaster11 3 жыл бұрын
I know you can get composite video out of it or something
@lan5053
@lan5053 4 жыл бұрын
So easy to understand. Thank you!
@aubreydebliquy8051
@aubreydebliquy8051 3 жыл бұрын
Thank you for a clear explanation. I used only SPI to date but now I know how to use I2C ... thanks...
@excite236
@excite236 8 жыл бұрын
saved me so much time working gy-80 thanks man
@Patrick-ky7ez
@Patrick-ky7ez 4 жыл бұрын
Amazing video. SOO many hours of reading pdfs with unnecessary tech jargon. You explained it perfectly.
@chinhcd
@chinhcd 8 жыл бұрын
It saved me so much time and hassle. Good job!
@miguelluisrodrigues3704
@miguelluisrodrigues3704 4 жыл бұрын
Thank you brother, you help me a lot in my projects
@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!
@devarajan2291
@devarajan2291 7 жыл бұрын
excellent. thanks a lot. you helped me in my interview preparation.
@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!
@IRgEEK
@IRgEEK 6 жыл бұрын
Great and informative video! Thanks so much!
@poojithaborra1650
@poojithaborra1650 6 жыл бұрын
Clear explanations... Tnx
@mrcamperon
@mrcamperon 8 жыл бұрын
thank you Dejan. great tutorials, very well done the clip too
@glikar1
@glikar1 5 жыл бұрын
Thanks, very good in depth tutorial!
@thtr9647
@thtr9647 7 жыл бұрын
Omg, this is so good animation. Appreciate !
@clearwavepro100
@clearwavepro100 8 жыл бұрын
Thank you! This is really well done, clear and interesting!
@pacokun1
@pacokun1 8 жыл бұрын
Thanks, I understand how it's work now :D It's will really help me :D
@EmciGad
@EmciGad 2 жыл бұрын
Very good and clear explanations! well done!
@youseebruce5426
@youseebruce5426 5 жыл бұрын
A very clean and neat explanation... I understood clearly... Thank you very much.
@pietrotosoratti799
@pietrotosoratti799 3 жыл бұрын
Thank you for this useful video !! You explained the topic in such a clear way !!
@PiCoVienna
@PiCoVienna 6 жыл бұрын
Excellent, easy to understand, very precise!
@spbains1966
@spbains1966 6 жыл бұрын
Excellent tutorial bringing out the details very clearly
@ramazans8114
@ramazans8114 6 жыл бұрын
Thanks, really very clear explanation and very effective.
@erichertsens
@erichertsens 8 жыл бұрын
thanks, appreciated from the Dominican Republic
@user-yw5yr4mk2c
@user-yw5yr4mk2c 5 жыл бұрын
Good explanation of the protocols' packet. thanks
@andrebernardmennicken4685
@andrebernardmennicken4685 6 жыл бұрын
Verywell explained, clear, direct to the point, Thank you...
@ksawery6568
@ksawery6568 5 жыл бұрын
Great tutorial, thank you!
@harshatechvideos1859
@harshatechvideos1859 5 жыл бұрын
Nice work and thank you very much for providing these quality videos.
@KunalGautam
@KunalGautam 7 жыл бұрын
Thanks, it helped me a lot to understand how I2C works.
@warsini5386
@warsini5386 3 жыл бұрын
Wayagkulot
@arvydasstankevicius5277
@arvydasstankevicius5277 5 жыл бұрын
So well explained!!! Thanks. Subscribed.
@andremendes5116
@andremendes5116 7 жыл бұрын
Nice explanation... the protocol I2c is very usefull, fast and need... Thank's for your time and information.
@druggles1
@druggles1 7 жыл бұрын
Nice presentation along with a great explanation. Thank you, for sharing, Dejan!!
@clirimmurati6183
@clirimmurati6183 5 жыл бұрын
AHH such explanations, love it
@reydus6651
@reydus6651 3 жыл бұрын
superb video mate. Explained it very easily.
@alentech6091
@alentech6091 7 жыл бұрын
Amazingly well explained!
@henearkrip
@henearkrip 4 жыл бұрын
Nice Work! Very clear and simple explanation!!
@narekisaghulyan
@narekisaghulyan 6 жыл бұрын
amazing tutorial, thank you!!!
@jackm416
@jackm416 4 жыл бұрын
Great job of explanation ! Good graphics and clear explanation of the timing !
@HowToMechatronics
@HowToMechatronics 4 жыл бұрын
Thank you!
@igorradevski9147
@igorradevski9147 8 жыл бұрын
Thanks Dejan for this great tutorial. It helps me a lot! :)
@Taran72
@Taran72 5 жыл бұрын
great Tutorial! thanks!!
@iconofsin1043
@iconofsin1043 7 жыл бұрын
Very well explained, thank you very much!
@expectropetronus
@expectropetronus 8 жыл бұрын
Simple and lucid explanation... Thank you
@victorchan8685
@victorchan8685 8 жыл бұрын
Appreciate for your excellent video, you speak very clear and explain in detail! You are wonderful! Help a lot!
@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).
@narendravasu6607
@narendravasu6607 6 жыл бұрын
Thank you sir Your explanation very simple and clearly. Very useful to me . onces again thank you sir
@junaidasim1021
@junaidasim1021 5 жыл бұрын
Accurate and up to the mark explanation thank you so much
@thomasalexander1563
@thomasalexander1563 7 жыл бұрын
Great Tutorial,,, Make more .. Absolutely waiting for all your tutorials,,
6 жыл бұрын
This is an amazing tutorial. Thank you very much.
@abdelrhmansafwat6191
@abdelrhmansafwat6191 6 жыл бұрын
Thank you very much buddy for your great illustrations :)
@MathewPendleton
@MathewPendleton 7 жыл бұрын
explained perfectly. thanks!
@skeeveskeeve
@skeeveskeeve 3 жыл бұрын
Best video I have seen on the subject.
@senai_mecatronicabeta3737
@senai_mecatronicabeta3737 7 жыл бұрын
Muito bom este tutorial, parabéns.
@mikelemon5109
@mikelemon5109 8 жыл бұрын
Awesome tutorial thanks a lot where have you been where I didn't understand that communication at all.
@marklowe7431
@marklowe7431 8 жыл бұрын
Perfect explanation. Thank you.
@rahazandifar5596
@rahazandifar5596 3 жыл бұрын
Thanks for this concise refresher video
@aragonv1
@aragonv1 8 жыл бұрын
ΤΗΑΝΚ ΥΟU.. ! A VERY CLEAR EXPLANATION OF i2C DEVICES
@ElectroMentor
@ElectroMentor 3 жыл бұрын
Utterly informative video much appreciation 👍
@SathishKumarbalu
@SathishKumarbalu 8 жыл бұрын
Nice ! Now i got a clear idea what is I2C.
@collenfisher3635
@collenfisher3635 6 ай бұрын
Brilliant, and exceptional narration.
@astudyspace7272
@astudyspace7272 3 жыл бұрын
Thank you very much for this detailed explanation. You made this topic easy to absorb. 🐣
@jokopribadi6462
@jokopribadi6462 3 жыл бұрын
easier to understand in this video. Thanks
@leuc2475
@leuc2475 Жыл бұрын
Thank you. It's simple to comprehend
@a4aLien
@a4aLien 6 жыл бұрын
Superb explanation! Thank you!!
What is I2C, Basics for Beginners
18:30
nandland
Рет қаралды 161 М.
PROTOCOLS: UART - I2C - SPI - Serial communications #001
11:58
Electronoobs
Рет қаралды 1,4 МЛН
БОЛЬШОЙ ПЕТУШОК #shorts
00:21
Паша Осадчий
Рет қаралды 6 МЛН
버블티로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 89 МЛН
OMG🤪 #tiktok #shorts #potapova_blog
00:50
Potapova_blog
Рет қаралды 17 МЛН
Stepper Motor - How It Works
4:43
How To Mechatronics
Рет қаралды 438 М.
I2C with Arduino and Raspberry Pi - Two Methods
30:13
DroneBot Workshop
Рет қаралды 201 М.
Basics of I2C communication | Hardware implementation of I2C bus
6:48
Foolish Engineer
Рет қаралды 73 М.
CNC Machined vs 3D Printed Cycloidal Drive
19:58
How To Mechatronics
Рет қаралды 696 М.
MOSFETs and How to Use Them |  AddOhms #11
7:46
AddOhms
Рет қаралды 3,7 МЛН
3D Printed Linear Servo Actuator with Position Feedback
23:59
How To Mechatronics
Рет қаралды 199 М.
I2C introduction: The protocol
15:47
Texas Instruments
Рет қаралды 41 М.
Stepper Motors and Arduino - The Ultimate Guide
29:57
How To Mechatronics
Рет қаралды 1,1 МЛН
Understanding SPI
11:50
Rohde Schwarz
Рет қаралды 69 М.
CAN Bus: Serial Communication - How It Works?
11:25
Electronoobs
Рет қаралды 204 М.
БОЛЬШОЙ ПЕТУШОК #shorts
00:21
Паша Осадчий
Рет қаралды 6 МЛН