What is I2C, Basics for Beginners

  Рет қаралды 169,486

nandland

nandland

Күн бұрын

Пікірлер: 121
@robertlongoria765
@robertlongoria765 3 жыл бұрын
this is the i2c gold standard on youtube. thanks!
@BinhMinhNoiSach
@BinhMinhNoiSach 5 ай бұрын
absolutely. Thanks a lot
@adrianobuhov52
@adrianobuhov52 3 жыл бұрын
I've always thought that it is hard to understand how SPI works, after watching this video it is clear to me that things can be understood much more easier if they are explained in a fun way, just like this guy did, thank you!
@adrianobuhov52
@adrianobuhov52 3 жыл бұрын
This comment should've been posted under another video of yours, but still thank you
@joecseszko7181
@joecseszko7181 3 жыл бұрын
Great video, and great southpark reference at 12:19
@iangraham6730
@iangraham6730 3 жыл бұрын
Best explanation of I2C I have seen yet . . . thanks for sharing!
@NineInchFailz
@NineInchFailz Жыл бұрын
Final project for my final class for college before getting my degree is building a temperature sensor system with an Xmega board, a UART LCD display screen and a TWI compatible temp sensor. It is a two week project and i am starting it 2 days before last day of term. I got a job lined up pending graduation. Wish my luck, brethren. Hopefully next week i'll be an engineer.
@tronix4595
@tronix4595 28 күн бұрын
how did it go?
@dilectantetech8734
@dilectantetech8734 4 жыл бұрын
I think he need to give more detail on the protocol. This is an amazing explanation on I2c, specially on the roll of the the pullup resistors. In many tutorial I have seen nobody explain it, may be because they do not know it. Excellent tutorial!
@palavos12
@palavos12 5 жыл бұрын
If it's possible, can you do a video about can bus ?
@Blandified
@Blandified 3 жыл бұрын
Such a great teacher that explains everything very clearly! Thanks for the vids
@cjcjonesit
@cjcjonesit 5 жыл бұрын
You do a great job explaining this concept on I2C. Thanks a million
@plop55
@plop55 4 жыл бұрын
Nothing like a South Park reference in a video about I2C lol
@1sadcock
@1sadcock Жыл бұрын
Great video on this topic! The best I have seen so far.
@jamesmccoy8568
@jamesmccoy8568 4 жыл бұрын
Who else is ADDICTED to NANDLAND??
@scalesr1
@scalesr1 10 ай бұрын
Thank you for this - I'm trying to get my head around I2C for an enhancement to an existing project (sending data to a PIC) and I have no idea where to start! This is an excellent introduction - thank you.
@justinpower4475
@justinpower4475 3 жыл бұрын
Best explanation of pull up resistor I've seen...
@abutaymiyyahlectures
@abutaymiyyahlectures 3 жыл бұрын
best i2c explanation on youtube, you are a beast, thank you :D
@ScottCov
@ScottCov 6 ай бұрын
Been trying to get a handle on this for a few days...This did it clearly. Thank you!
@julianpitney7835
@julianpitney7835 2 жыл бұрын
Very clear and articulate. Thanks for the crash course. +1 for South Park reference
@MdMaksudUlKabirRico
@MdMaksudUlKabirRico 2 жыл бұрын
Thank you for this video. You explained it well. You are a great teacher. I am eagerly waiting for more videos regarding this topic. Wish you all the best.
@dans.8198
@dans.8198 3 жыл бұрын
Loved the South Park pun on Mr.Slave. The word “mister” was originally a different pronunciation of the word “master”. So Mr.Slave actually means “Master Slave” :-)
@nashs.4206
@nashs.4206 4 жыл бұрын
Great video! Would you also consider making a tutorial on the CAN bus? (As other commentators have pointed out!)
@MohanRaj-pp6zz
@MohanRaj-pp6zz 2 жыл бұрын
You are very clear to the point. Thank you for the good explanation.
@billydeka0239
@billydeka0239 4 жыл бұрын
Explained in a very clear way thanks from italy
@trustmeimanengineer4081
@trustmeimanengineer4081 2 жыл бұрын
Your vidieo is so good for me! Thank you! Plz talk more about the timing. Star edge timing, ack timing, stop tim.... And reading frame. I have use i2c to make my project recently but there a problem, that 2 slave is not synchronous about timing or whatever idk how to say the detail. Both of them has 400kB bandwidth, but master cant talk with them on a same bus. I have to create new i2c IO in software and it seem to be waisted i2c's ability.
@ahmedmuhammed6905
@ahmedmuhammed6905 2 жыл бұрын
I like the way that you use to explain
@knguyen1801
@knguyen1801 3 жыл бұрын
Thank you. You do a great job simplifying a complicated concept.
@xiie2-atmafathoni460
@xiie2-atmafathoni460 17 күн бұрын
do you know how to make a Verilog HDL with using LCD 16x2 I2C to show monitoring voltages and current?
@vickysomkuwar6551
@vickysomkuwar6551 3 жыл бұрын
Nice information, love from India.
@futurelu623
@futurelu623 4 жыл бұрын
Hi, this video is very good! But maybe there is some thing missed in the data example. After the slave address is put on the bus by master, then the register address in the i2c slave device should be put on i2c bus, then the data should be put on the i2c bus by slave or master depending on read or write operation. What I mean is the register address in the i2c slave address is missed in your example.
@nooterdooter6497
@nooterdooter6497 2 жыл бұрын
Golden! Great video!
@natalieastafeva4885
@natalieastafeva4885 4 жыл бұрын
Your explanation is very clear,thank you!
@selvalooks
@selvalooks 3 жыл бұрын
Wonderful !!! clearly explained om understandable way.
@michaeleliseev7304
@michaeleliseev7304 4 жыл бұрын
This helped me in my project in electronics
@drogenfeld
@drogenfeld 4 жыл бұрын
I'm watching this literally the morning before an important exam to get some last minute details haha
@EgyGyro
@EgyGyro 4 жыл бұрын
Nice introduction to the video 😊. Grabbed my attention.
@PaulineMiddelink
@PaulineMiddelink 5 жыл бұрын
Hnm, i dont agree with the uncommonness of repeated start conditions, almost every register based i2c device uses it to not loose the bus between the initial write (what register do i want to address) and the next read for the data.
@Nandland
@Nandland 5 жыл бұрын
Thanks for pointing that out!
@kongyuebanshan6400
@kongyuebanshan6400 4 жыл бұрын
In general, I2C communication is the mutual communication between ICs and ICs on the board. If there is IC and IC communication between boards, what are the advantages and disadvantages? How stable is the communication?
@Adhithya2003
@Adhithya2003 Жыл бұрын
Excellent presentation ❤❤
@kirkkeinanen592
@kirkkeinanen592 2 жыл бұрын
Could a microcontroller i2c slave write to i2c eeprom? For example the attiny441 lists only an i2c slave interface.
@zachreyhelmberger894
@zachreyhelmberger894 3 жыл бұрын
If I have a DHT22 connected to an esp8266, for example, how long of a cable can I use before the data becomes goofy? 22 gauge wires 5 mm apart from each other is about 0.1pF/cm, so 10 cm of wire would have 1pF of capacitance on the cable.
@firstuser5448
@firstuser5448 2 жыл бұрын
incredible video - very concise and helpful. thanks!
@vanik2428
@vanik2428 3 жыл бұрын
Hi I understood the way u explianed thank u. I have one question is there any chance I2C work for 5Mbps
@nabilmarsel8792
@nabilmarsel8792 4 жыл бұрын
hello, in 2:20, we use ADC to digitalizing the data for the µC but the I²C use digital data, so why we need to digitalizing.
@futurelu623
@futurelu623 4 жыл бұрын
ADC is used to transfer some kind of analog signal, such as analog voltage, to digital format, then this kind of digital data can be transfered via I2C to micro comtroller. So that your code can recogonize it.
@nabilmarsel8792
@nabilmarsel8792 4 жыл бұрын
@@futurelu623 thank you.
@boo9oob
@boo9oob 3 жыл бұрын
08:00 hahaah I know this feeling so well! :D wonderful video!
@jeff-73
@jeff-73 Жыл бұрын
Good teacher.
@JeremyCook
@JeremyCook 3 жыл бұрын
So would the 7 address bits + the R/W bit be considered the "header?" is that the correct term? So an 8-bit header, and 8-bit data section?
@benjaminwilson9007
@benjaminwilson9007 2 жыл бұрын
So with a Maximum of 400 Kilo-Bits per second, does that specification require a clock with a maximum frequency of 400,000 Hz or .4 MHz?
@davelopez9161
@davelopez9161 2 жыл бұрын
Distance. I did not hear you discuss how far this bus can be transmitted?
@AA7Productionz
@AA7Productionz 4 жыл бұрын
Great videos, i have a doubt though. After pulling SDA low for ACK why does the line go through a clock pulse before sending the next data? Is it part of the I2C structure?
@zetaconvex1987
@zetaconvex1987 Жыл бұрын
How often are pull-up resistors actually used, though? And why not set your master pins to be open-drain with a pullup as an alternative?
@Nandland
@Nandland Жыл бұрын
The pull-up resistors are required. They're always used. You need something to pull the CLK and DATA lines up to 3.3V.
@Abh_92
@Abh_92 3 жыл бұрын
Thank you! Great explanation
@kongyuebanshan6400
@kongyuebanshan6400 4 жыл бұрын
In general, I2C communication is the mutual communication between ICs and ICs on the board. If there is IC and IC communication between boards, what are the advantages and disadvantages? How stable is the communication?
@Nandland
@Nandland 4 жыл бұрын
Between boards have similar advantages and disadvantages. The comms should be OK unless there's a significant distance or lots of noise on the line. However it won't be as good as a differential signal interface.
@NgocThuanPham-kw3qj
@NgocThuanPham-kw3qj 3 ай бұрын
so useful and clear
@HectorUch123
@HectorUch123 3 жыл бұрын
Great video!
@julles79
@julles79 4 жыл бұрын
Great explanation, please do one about I3C. Thanks!
@shubhamnayak9369
@shubhamnayak9369 3 жыл бұрын
who sends the acknowledge bit when master reads the data?
@TheDudeeAbides
@TheDudeeAbides 9 ай бұрын
"Mr. Slave" 🤣🤣 I could tell you were holding back the chuckles for that South Park reference lol
@sleepy_izutsumi
@sleepy_izutsumi 3 жыл бұрын
thank you very much! an awesome vid and awesome explanation =)
@funduk89
@funduk89 2 жыл бұрын
thanks, well presented
@c_o_n_t_e_n_t3420
@c_o_n_t_e_n_t3420 4 жыл бұрын
how i2c handles "no true scottsman" problem with multiple masters, would probably make a good video. Its such a common logical problem that applies to everything from philosophy to multi-threading to hardware. I like that most of your videos are focus on the applied tech, in the weeds at 4am, how do i do this. giving an overview and getting down into the design choices and compromises that i2c makes to do multiple masters, I think would make a good vid. mr. slave agrees.
@daysirc
@daysirc 4 жыл бұрын
Great explanation :)
@raisagorbachov
@raisagorbachov 2 жыл бұрын
Interesting. I'm looking to put a BMP280, GPS and accellerometer on a Pi Pico. I2C looks the most promising way of doing it. I just have to figure out how.
@maxwang2537
@maxwang2537 4 жыл бұрын
Great video, thanks!
@MuhammadShahzad-dx5je
@MuhammadShahzad-dx5je 3 жыл бұрын
Thank you so much sir!
@curtisnewton895
@curtisnewton895 4 жыл бұрын
10:40 the data are valid when the clock is transitioning HIGH, not low
@dinamohamed782
@dinamohamed782 4 жыл бұрын
Thank you ,very interesting explanation
@rambharat35
@rambharat35 4 жыл бұрын
nice explanation . helpful
@vasista1997
@vasista1997 4 жыл бұрын
12:19 Mr Slave!! South Park reference
@napsterjing5982
@napsterjing5982 2 жыл бұрын
When I'm thinking "oh man, I've definitely seen this guy somewhere." then Doug DeMuro posts new video. Oh
@Nandland
@Nandland 2 жыл бұрын
THIIIIIISSSSSS is the new XILINX ULTRASCALE FPGA.... :)
@rachidtahiri9514
@rachidtahiri9514 5 жыл бұрын
Thank you so much , please do a video about CAN bus
@psychomexicanscientists1076
@psychomexicanscientists1076 4 жыл бұрын
5:38 Good reference to Taxi Driver!
@tianshuma241
@tianshuma241 4 жыл бұрын
You explain this so easy and clear. Thank you ! And you are very handsome!
@peterbolke6846
@peterbolke6846 3 жыл бұрын
Hi Dejan, This is a great explanation of the concept of connecting I2C items on the same board. I am very new to doing anything at all with electronics but my current project uses the MPU6050 module and I want to add a distance measuring module into the project too + powering some servos with the PCA9685 that also uses the I2C protocol. I have the MPU6050 actuating 4 x servos at the moment on an Arduino Uno with regular breadboard and external power supply. The code seems to stop working after a few minutes and I am struggling to find a fault that would cause this. QUESTION: You show an Arduino Mega in your wiring diagram... is that because you anticipate the code will be a bit heavy for the Uno? I am wondering if limited Uno memory is the issue I have with the MPU6050 at the moment - and if I should consider using a Mega for this module as i want to add other I2C items..?
@AndrewKiethBoggs
@AndrewKiethBoggs Жыл бұрын
For something like this application, uno would be fine. Mega is really used for things like IO needs. Maybe if you need a bunch of analog or digital pins, mega is good to use. Hope you got to explore electronics more!
@alejandrarosellperez6281
@alejandrarosellperez6281 4 жыл бұрын
damn you just saved me from a paaaaaainful exam tomorrowww
@hekto_pyc9998
@hekto_pyc9998 5 жыл бұрын
Спасибо)
@theoryandapplication7197
@theoryandapplication7197 5 ай бұрын
thank you very much
@Roadtosucces.
@Roadtosucces. 4 жыл бұрын
names of 2 pins????
@asarangan
@asarangan 3 жыл бұрын
Where is the next video on implementation?
@michaelcostello6991
@michaelcostello6991 4 жыл бұрын
I think we just addressed a slave here but not a register within a slave. I mean a slave can have multiple registers that you may want to write/read to.
@HL65536
@HL65536 2 жыл бұрын
Thanks for assuring me that my 3v3 device will not blow up if connected to 5V IO (pull up to 3v3).
@mumblic
@mumblic 2 жыл бұрын
Good video but it seems you forgot register address in your diagram.
@aaronbarragan8339
@aaronbarragan8339 4 жыл бұрын
you explain very well despite my ver bad understanding on basic electric circuitrey. Do you happen to have any videos on that? c:
@刘博铭-v9q
@刘博铭-v9q 4 жыл бұрын
could you write the code step by step?
@seshagiritn7881
@seshagiritn7881 3 жыл бұрын
is it possible that two slaves can pull the bus low . i understand the Device address will target a particular device but inadvertently is it possible more than one slave can pull the bus low
@stevealemdar9052
@stevealemdar9052 5 жыл бұрын
keep it up pls
@razahyder9796
@razahyder9796 4 жыл бұрын
when both lines are low then it is a read/write condition!
@dereksavage8728
@dereksavage8728 2 жыл бұрын
i love you
@ZizoAhmed
@ZizoAhmed 4 жыл бұрын
exit full screen ... hit like and subscribe and then return back to the explanation ♥
@jeff-73
@jeff-73 Жыл бұрын
The only thing that would make this video better is to speak in Mr Garrison's voice for the second half. lol
@dice4866
@dice4866 2 жыл бұрын
*cough, my drunk ass though he was Toby Maguire for a split second. Just share it.
@sapientum8
@sapientum8 4 жыл бұрын
No, you are not mirrored. You are welcome.
@ogito999
@ogito999 3 жыл бұрын
I remember making this in Minecraft once
@yadavsomnath6188
@yadavsomnath6188 4 жыл бұрын
Sir, I need CAN from you.. I have subscribed your channel with notification... Please..please Do a video on CAN..with same manner as you used in this video... #ApriciateYourWork.. #GreatVideo..
@yadavsomnath6188
@yadavsomnath6188 4 жыл бұрын
At one point I have stuck at your video that "where is register address?"... Please clear my doubt..
@Oscar-jg9gg
@Oscar-jg9gg 2 жыл бұрын
you defined half duplex wrong. half duplex is the fact that data transmission happens in one directed at a time per carrier
@bagussusilo2678
@bagussusilo2678 3 жыл бұрын
Mr slave and sir Master
@pcbworks
@pcbworks 3 жыл бұрын
Mr.Slave :)
@rvndom5744
@rvndom5744 2 жыл бұрын
you are a fucking god
@kumarm1780
@kumarm1780 3 жыл бұрын
Nice one also check the playlists: kzbin.info/aero/PLyp1I7W35-q1su6Nvbvd09mEgT-CWz0MD
@isabelserrato2248
@isabelserrato2248 2 жыл бұрын
great video, but would love it if you shifted away from master/slave terminology, main/secondary has the same initials and understanding without using insensitive language
@karthikbiju3367
@karthikbiju3367 5 жыл бұрын
Ist comment
@mihailoknezevic1870
@mihailoknezevic1870 5 жыл бұрын
Damn it! I'm late again!
@johnrogers235
@johnrogers235 3 жыл бұрын
hahaha Mr Slave "jesus christ"
@RohitYadav-kv8vc
@RohitYadav-kv8vc 2 жыл бұрын
Mr. slave🤭😅😅😅😅😅
@manjunathparemajilu9739
@manjunathparemajilu9739 3 жыл бұрын
Bro please dont give example as slave
What is SPI?  Basics for beginners!
13:04
nandland
Рет қаралды 162 М.
I2C and SPI on a PCB Explained!
15:34
Altium Academy
Рет қаралды 159 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Understanding I2C
10:58
Rohde Schwarz
Рет қаралды 113 М.
Example Interview Questions for a job in FPGA, VHDL, Verilog
20:34
PROTOCOLS: UART - I2C - SPI - Serial communications #001
11:58
Electronoobs
Рет қаралды 1,4 МЛН
Inter-Integrated Circuit (I2C) Basics
25:29
Intermation
Рет қаралды 16 М.
Understanding SPI
11:50
Rohde Schwarz
Рет қаралды 113 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН