Electronic Basics #19: I2C and how to use it

  Рет қаралды 413,251

GreatScott!

GreatScott!

8 жыл бұрын

Previous video: • 3D Printing Beginners ...
Facebook: / greatscottlab
Twitter: / greatscottlab
Support me for more videos: www.patreon.com/GreatScott?ty=h
In this episode of Electronic Basics I will present you the most important facts about the communication protocol I2C and how to use it with an Arduino.
Music:
Killing Time, Kevin MacLeod (incompetech.com)

Пікірлер: 298
@alexkepa12
@alexkepa12 8 жыл бұрын
Well, I'm still confused... I guess I have to do things myself to actually understand
@KennethTanFotografie
@KennethTanFotografie 8 жыл бұрын
For me you moved away to quickly from the I2C theory and got to involved in the radio module. I'd rather have seen you explain how the bus works with single and multiple devices. Although I could follow what you were explaining, I believe it's going to be to complex for a lot of viewers. I compliment you anyway on doing an excellent video. Presentation and detail were precise and professional.
@rickyarinugraha
@rickyarinugraha 8 жыл бұрын
+Kenneth Tan Agree with you on that, sir. I was completely lost when you explain about those bit ordering.
@RobertShaverOfAustin
@RobertShaverOfAustin 8 жыл бұрын
+Kenneth Tan I think that explaining very technical subjects such as the detailed bit order used in I2C is not easy in a video. I learned electronics before I went to university and became an engineer mainly by reading the manufactures specification documents. This was in the '60s and '70 so no Internet, KZbin or Facebook. I would write to the manufacturers and ask them for data sheets and catalogs. When they came I would read them over and over and over trying to understand the meaning of all those words and numbers. Now you don't have to write to the manufacturers but, if you want to really understand what these parts do, you should use the Internet to find the data sheets, catalogs and application notes. For example, here's the I2C web site with very detailed explanations of how it works. (i2c.info/i2c-bus-specification) It can be a bit overwhelming but if you keep at it *AND* watch videos like this one, you will figure it out. For me, someone tells me how a thing works is not as powerful if I struggle through the process of figuring it out myself. Good luck. I admire you all for taking such a keen interest. For me it has been a 40 year process of solving puzzles and getting paid to do what I would have done for free.
@KennethTanFotografie
@KennethTanFotografie 8 жыл бұрын
+Robert Shaver Actually Robert, GreatScott does an excellent job explaining technical stuff, but my opinion about this video is, that he should have sticked with more detailed I2C subject matter. Still it remains a very good video
@simplelyf4072
@simplelyf4072 3 жыл бұрын
Robert Shaver yes I agree with you. It is much more valuable to learn it by self teaching and imagine how awesome it will feel to finally get it! I’m on that journey myself to learn synchronous data communication such as SPI and studying a lot of resources.
@BikesBlades
@BikesBlades 3 жыл бұрын
A good description of I2C would take an hour.
@diginomad6016
@diginomad6016 4 жыл бұрын
This is such a great channel. What ever technical stuff you search in KZbin, you can just find the most in this channel and with precise explanations.. woah..
@kylebandy947
@kylebandy947 5 жыл бұрын
Thank you so much, been self learning radio theory and building basic transmitters for a while. This is by far the most helpful series of videos I've found to date.
@czarcorey1220
@czarcorey1220 8 жыл бұрын
As always great video! I was just asking for an I2C video from another electronics youtube page and 30 minutes later you uploaded one XD
@pablo_costas
@pablo_costas 8 жыл бұрын
its always nice to watch your vídeos, really love them !
@sortsvane
@sortsvane 8 жыл бұрын
Love your videos ! FM IC Was a great way of explaining I2C Interface .
@Diamonddrake
@Diamonddrake 8 жыл бұрын
Best video in a while, Thanks for the break down
@x10iman
@x10iman 8 жыл бұрын
As always great video. Thank you for the useful information.
@alanly4515
@alanly4515 3 жыл бұрын
Thanks for the real life example! This is by far the best explanation I've seen.
@mattiachie
@mattiachie 8 жыл бұрын
you are a genius, congratulations! in the future I hope to see you over youtube, merits much more! Good project, as always
@id513128
@id513128 8 жыл бұрын
Another awesome video. I can't wait for next video! I always use I2C but never how it work before. Thanks. ;)
@eldadyamin
@eldadyamin 6 жыл бұрын
Looking forward for the 2nd part of this video!
@Teukkaniikka
@Teukkaniikka 8 жыл бұрын
Perfect tutorial! I hope that you would make more I2C or one wire tutorials!
@shivanshpuri3065
@shivanshpuri3065 8 жыл бұрын
great job great scott
@GamerBat3112
@GamerBat3112 8 жыл бұрын
I just love ur videos! very well explained
@notionSunday
@notionSunday 8 жыл бұрын
Enjoyed it. Thanks for posting.
@prytamkev954
@prytamkev954 8 жыл бұрын
Love your each and every videos
@MegaJanyjan
@MegaJanyjan 8 жыл бұрын
awesome as always
@mihtibby
@mihtibby 8 жыл бұрын
I love your content keep up the good work
@maxximumb
@maxximumb 8 жыл бұрын
Nicely explained. Thanks.
@gogetgoget8431
@gogetgoget8431 5 жыл бұрын
thank you GreatScott!
@JohnStraussmusic
@JohnStraussmusic 8 жыл бұрын
Love your videos. so interesting
@BillySugger1965
@BillySugger1965 8 жыл бұрын
Great video Scott. Just one comment though, the oscilloscope traces show that the rise times are rather long, 10k pull-up resistors are rather lazy. Most device data sheets recommend smaller values, like 3k3 or 4k7. I use the Arduino processor's bigger brother, the ATxmega which runs much faster. Even with a software i2c driver I can run at full speed of 400kbits per second. At this speed I need 1k5 pull-ups to avoid data corruption. If you're worried about supply current, remember that current only flows through these pull-ups when the line is driven low and they float high when the bus is idle. So if you have only occasional message traffic the duty cycle is incredibly low, meaning the supply current increase is negligible.
@djquestionthis
@djquestionthis 8 жыл бұрын
Great points!!
@Les-electroniciens
@Les-electroniciens 6 жыл бұрын
Your comment is interesting, but the capacitance of his oscilloscope's probes creates an RC that is most likely the reason of this lazy rising time IMO. As you can see the falling time is much shorter because the current doesn't flow through the resistor but thru the MOSFET instead. If he changes the pull-up resistors from 10k to 4.7k or even 3.3k, it won't make the rising edge much sharper. The only way for him to make sharper edges is to disconnect the probes and significantly reduce the parasitic capacitance.
@f.a3202
@f.a3202 4 жыл бұрын
@@Les-electroniciens yes it is the scopes fault but not because of the RC but because the scope has only 1mb of memory and can not display accurate information
@BobtheBuilder-jc4xm
@BobtheBuilder-jc4xm 8 жыл бұрын
Nice video again!! keep going
@donaldfilbert4832
@donaldfilbert4832 8 жыл бұрын
Excellent video !!! Thanks !!
@kaumohlamonyane272
@kaumohlamonyane272 3 жыл бұрын
I remember watching this 5 years ago and I understood nothing. I got to learn Assembly in university and now it seems so intuitive.
@nick1p.x226
@nick1p.x226 8 жыл бұрын
Yes!!!!!!!!!!!!!!!!!! I love the electronics basics! Can you make more how current works and stuff?
@CodeAsm
@CodeAsm 8 жыл бұрын
Why ... why does it look so much fun :D I now gonna buy me some more I2C devices. I do have a few already but your video made me wanna get a FM reciever. Great videos like always and your outro sounds alott like: "Daithi De Nogla"... But yours are alott more informative, and equal if not more fun to watch :D (comparing a gaming channel with Electronics? why not both! one day, Ill build a gameboy, with blackjack and i2c)
@Jackym266
@Jackym266 8 жыл бұрын
Awesome vid!
@thomasalexander1563
@thomasalexander1563 7 жыл бұрын
Nice tutorial,, Make more I2C and arduino.. Thank you.
@id104335409
@id104335409 8 жыл бұрын
Wow, I lost you right at "If you've ever implemented...."
@cwbh10
@cwbh10 8 жыл бұрын
ahah you write your "1"'s just like my german physics professor, gets me every time! "why's he writing a hat?" :p
@valentinocolaon6060
@valentinocolaon6060 8 жыл бұрын
I love your handwriting!
@santiagoestevez623
@santiagoestevez623 8 жыл бұрын
Jut what I need it thanks men I was about to start working on i2c protocol
@IsaacMorton
@IsaacMorton 8 жыл бұрын
You should totally do a video on spi and/or o e wire. that would be so great!
@fredchang5626
@fredchang5626 8 жыл бұрын
@GreatScott You have great videos! I study for electronics enegineering and this year I'm doing something like "final exam project" (don't know how ot translate it :D ), and I have learned a lot of from your videos! Just like this I'm using 4 I2C devices and this video helped a lot :) Thank you very much Scott :)
@greatscottlab
@greatscottlab 8 жыл бұрын
+Fred Chang You're welcome
@mohammedyasarshaikh4501
@mohammedyasarshaikh4501 4 жыл бұрын
Your first Video that is hard to understand for me, but excellent
@danielmorgan7702
@danielmorgan7702 3 ай бұрын
Good video that gives a nice overview of how to use a scope with a Arduino to see the i2c. Thank you! Sure, it is not detailed. But it does give a good overview.
@audiodiwhy2195
@audiodiwhy2195 4 жыл бұрын
Great vid thanks.
@p1nesap
@p1nesap 8 жыл бұрын
Excellent, you're getting smarter all the time.
@onjofilms
@onjofilms 8 жыл бұрын
Nice job.
@Rohan-su9en
@Rohan-su9en 6 жыл бұрын
hi greatscott............. your videos are super cool. i like them very much. i have watched your all videos nearly 5 times each. but everytime it is interesting to watch it again...... also can you make a video about diy IR proximity sensor????
@buttegowda
@buttegowda 7 жыл бұрын
Cool and thanks !!!
@MYNICEEV
@MYNICEEV 8 жыл бұрын
Awesome.
@benjaminrich9396
@benjaminrich9396 6 жыл бұрын
All this technology and it always comes down to sticking two crudely torn bits of paper to label the channels on the scope. Love it. :)
@rklauco
@rklauco 8 жыл бұрын
Nice handwriting. And nice video. I would suggest to lower the 10k resistor to like 4k7 - the scope signal clearly shows the rising of voltage is quite slow.
@hypt0ny
@hypt0ny 8 жыл бұрын
Love your videos Greatscott! Can you do a project video soon? I love your projects, they are very inspiring
@greatscottlab
@greatscottlab 8 жыл бұрын
+hypt0ny I am working on one right now.
@renechristmann2607
@renechristmann2607 8 жыл бұрын
This bass in the intro is awsome
@6kbps
@6kbps 8 жыл бұрын
200 000 subscribers!!
@enriquecastrejon13
@enriquecastrejon13 8 жыл бұрын
pretty nice video
@ariellevy7009
@ariellevy7009 8 жыл бұрын
nice video
@MrMuniez
@MrMuniez 8 жыл бұрын
Waiting for something abot rs232 and next generation (especialy rs485). You are good teacher :-)
@MKA667
@MKA667 4 жыл бұрын
I remember the old days of implementing I²C software routines in Assembly for the 16C84 ;)
@mayurbhanushali815
@mayurbhanushali815 8 жыл бұрын
Great project ! Your electronics basics videos are very informative. Can you please make a basics video on H-bridge motor driver and make a power h-bridge . :)
@greatscottlab
@greatscottlab 8 жыл бұрын
+Mayur Bhanushali It is on my to do list.
@CarlosDuqueMankalan
@CarlosDuqueMankalan 8 жыл бұрын
greatscott , make a tv b gone whith a attiny 85 pls , i love your videos , go on!
@evilspoon6833
@evilspoon6833 4 жыл бұрын
home made stickers on the oscilloscope priceless :)
@Aperson-sv2hc
@Aperson-sv2hc 8 жыл бұрын
You should do another pain test comparison of different frequencies this time.
@d.g.s.7572
@d.g.s.7572 2 жыл бұрын
Thanks!
@greatscottlab
@greatscottlab 2 жыл бұрын
Thanks for the support :-)
@KurtBarcelona
@KurtBarcelona 8 жыл бұрын
thanks :) it's a challenge
@tw7522
@tw7522 8 жыл бұрын
Regarding FM & PLLs. Sanyo's CCB (Computer control bus) seems to be very popular to talk to these kind of chips as well.
@emptyheadideas
@emptyheadideas 8 жыл бұрын
great video. Can you make one about a "shower water meter" to keep track of your consumption or a "power watt meter" to plug in between your devices and power socket?
@charldonvanderwaltsleben6055
@charldonvanderwaltsleben6055 8 жыл бұрын
love from south africa
@JTIngenieria
@JTIngenieria 8 жыл бұрын
Awesome! I'll use it when my package from china arrives!
@ajayvora4127
@ajayvora4127 8 жыл бұрын
please please please make a video about using xbee digital and analog outputs... Thank YOU!! YOU are Awesome!
@Alexelectricalengineering
@Alexelectricalengineering 8 жыл бұрын
Thumbs up :) Alex
@vidanatural_oficial
@vidanatural_oficial 8 жыл бұрын
This german guy speek nice english, I can follow everyting from Brazil.
@greatscottlab
@greatscottlab 8 жыл бұрын
+Julio Bedaque Great!
@E-eeblogBlogspot
@E-eeblogBlogspot 8 жыл бұрын
can you make a video about cheap diy 3d printer kits and how well it works?
@ThomasHaberkorn
@ThomasHaberkorn 7 жыл бұрын
Could you do an add-on video on LIN-Bus communication between 2 Arduinos?
@damarjatigumelar5013
@damarjatigumelar5013 4 жыл бұрын
Nice
@yerokal8233
@yerokal8233 8 жыл бұрын
Can you please do transistors in your next electronics basics. ☺
@prateeknaryal4031
@prateeknaryal4031 3 жыл бұрын
dear Scott, this particular video i did not understand It was like too much knowledge packed in a very small video. Could you please make another video on this?
@KosutM
@KosutM 8 жыл бұрын
GreatScott in mostly devices are used to 4k7 resistors as a pull up not 10k :-)
@9642274475
@9642274475 Жыл бұрын
Dear sir, Please make a vedio on calculator I2C Bitrate This more useful for this continues video for aspirants ..
@simondid
@simondid 8 жыл бұрын
greate video :P can you make a tutorial on how you wut do this with out using the wire library ore any othere library ?
@CSO3DOnline
@CSO3DOnline 8 жыл бұрын
that amplifier module looked interesting
@danielmarequeiglesias5015
@danielmarequeiglesias5015 8 жыл бұрын
I never understand a sh*t but i'm still subscribed. Still don't know why.
@mifo1133
@mifo1133 8 жыл бұрын
if i can suggest video. I would love to see you measure some cheap china power amplifiers for distortion or even well know amplifier IOs like LM3885 or TDA7250. thanks for videos very informative!
@Rahuldhebri
@Rahuldhebri 8 жыл бұрын
You're awesome
@greatscottlab
@greatscottlab 8 жыл бұрын
+rahul dhebri Thanks ;-)
@vidrogic1499
@vidrogic1499 8 жыл бұрын
No, he is great!! haha
@ashutoshsoni2486
@ashutoshsoni2486 5 жыл бұрын
can you do a video on using multiple i2c on a arduino. it will help me alot.
@DoctorX17
@DoctorX17 Жыл бұрын
I’m glad nowadays I2C libraries are readily available, lol
@elielouisa32
@elielouisa32 8 жыл бұрын
In a future video can u plz make the topic one wire interface? Im really interested
@TTVbygowtham
@TTVbygowtham 6 жыл бұрын
Video about spi communication protocol
@Project-DDE
@Project-DDE 8 жыл бұрын
Can you make a video about the one wire interface please?
@MrJamesbowen
@MrJamesbowen 6 жыл бұрын
I find adding pull up resistors in my project to stop working. Wire.h seams to use internal pull resistors.
@jlsn5307
@jlsn5307 8 жыл бұрын
nice
@majdinj
@majdinj 8 жыл бұрын
Can you do a basic tutorial on SMPS.The one from wall AC socket converted to DC to power small gadgets "not DC to DC one" :) A simple fundamental principle will be more convenient. Like simple SMPS that only uses AC input --> diode bridge rectifier --> Capacitor --> MOSFET --> Switching transformer --> schottky rectifier --> Capacitor --> DC output.
@rikilshah
@rikilshah 6 жыл бұрын
I am currently using RTC clock with Arduino UNO and It doesn't need any external pull up as Mega328 has internal pullup.
@patrickyoon3461
@patrickyoon3461 8 жыл бұрын
lol I don't understand anything :/
@vidrogic1499
@vidrogic1499 8 жыл бұрын
You are not the only one.
@DREMajed
@DREMajed 8 жыл бұрын
Oh " i don't understand anything" club I'm a new recruit. Can i join you guys?
@treierxyz
@treierxyz 8 жыл бұрын
Please do a review of the new Raspberry Pi 3 Model B!
@454guiltyspark
@454guiltyspark 6 жыл бұрын
Can you do the same video for jtag please it would be awesome thanks
@luizz1997
@luizz1997 7 жыл бұрын
Is the pullup resistors really needed on arduino? i aways used the i2c protocol without and works like a charm...
@greatscottlab
@greatscottlab 7 жыл бұрын
The Arduino has integrated pull ups.
@SarvasvKulpatiYT
@SarvasvKulpatiYT 8 жыл бұрын
Could you please make a video on how to trouble shoot arduino? I dont expect you to make a video just because of this but hopefully reply/ think about it? I was using my arduino connected to my laptop (macbook air) when the laptop suddenly restarted. The circuit was a 12v led controller, and none of the pins seemed to have shorted. After restarting, whenever i plugged my arduino in, the pin 13 led would always just come on and not blink like its supposed to. Other than that i always get the dreaded stk500 avrdude not responding 0x00 error. Any ideas why this could have happened, maybe how i can fix it? Thanks a lot for your time, really love your vids :)
@navin233
@navin233 4 жыл бұрын
I really like your explanation and I understood every time but this video is difficult to understand 😔 . I wanst to know about i2c but I can't get itany where so plz. Make a video which contains about only i2c
@MrDorkLard
@MrDorkLard 8 жыл бұрын
Like the new intro video, but prefer the old music :)
@b10s
@b10s 8 жыл бұрын
+Malcolm Hunter This has been the intro for the whole Electronics Basics series since it has started... just sayin'
@MrDorkLard
@MrDorkLard 8 жыл бұрын
+B10S Okay, I've not watched any of those. In that case - Correction: I prefer the music in the red LED display build intro.
@halilbuyukturk7237
@halilbuyukturk7237 8 жыл бұрын
can you make some basic projects with arduino
@vivabenfica4
@vivabenfica4 8 жыл бұрын
@GreatScott can you do a video on transistors please! Also I know a transistor consists of a PNP or NPN junction and was wondering if this could be used to make a laser diode since a laser creates its photons from such a junction.
@oniruddhoalam2039
@oniruddhoalam2039 4 жыл бұрын
The junction of a BJT transistor cannot be used to produce light. To make an LED, you need to make the n and p layers with special materials.
@Avriox
@Avriox 8 жыл бұрын
A video just on how to work safely with lithium batteries?
@farazturk1283
@farazturk1283 8 жыл бұрын
dude try to make a awesome project for this summer
@Rahuldhebri
@Rahuldhebri 8 жыл бұрын
Love from india
Electronic Basics #18: DC & Brushless DC Motor + ESC
6:44
GreatScott!
Рет қаралды 1,1 МЛН
What is I2C, Basics for Beginners
18:30
nandland
Рет қаралды 161 М.
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 140 МЛН
I2C and SPI on a PCB Explained!
15:34
Altium Academy
Рет қаралды 138 М.
Electronic Basics #28: IGBT and when to use them
7:01
GreatScott!
Рет қаралды 1,3 МЛН
Forget WiFi! This Wireless Method is WAY Better?
12:14
GreatScott!
Рет қаралды 469 М.
Understanding I2C
10:58
Rohde Schwarz
Рет қаралды 65 М.
Top Fifteen Mistakes People Make When Designing Prototype PCBs
12:26
Cosplay Light and Sound
Рет қаралды 131 М.
PROTOCOLS: UART - I2C - SPI - Serial communications #001
11:58
Electronoobs
Рет қаралды 1,4 МЛН
Лекция 308.  Шина I2C
19:54
Электротехника и электроника для программистов
Рет қаралды 102 М.
Mechanical  Switches are Obsolete?! Switch to a Latch Circuit! EB#53
10:36
Electronic Basics #24: Stepper Motors and how to use them
6:47
GreatScott!
Рет қаралды 2,2 МЛН
Basics of I2C communication | Hardware implementation of I2C bus
6:48
Foolish Engineer
Рет қаралды 73 М.
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,2 МЛН
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 7 МЛН