PROTOCOLS: UART - I2C - SPI - Serial communications

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ส.ค. 2019
  • $2 for 5PCBs (Any solder mask colour): jlcpcb.com
    In this video I show you more or less how i2c, UART and SPI serial communications work with a few examples. More details for other protocols soon...
    Help my projects on Patreon : / electronoobs
    my Q&A page: electronoobs.com/eng_preguntas...
    Facebook page: / electronoobs
    Canal en Español: / @electronoobsenespanol
    ELECTRONOOBS.io sign up: electronoobs.io/
    LINKS
    -------------------------------------
    Serial communications details: electronoobs.com/eng_circuitos...
    Other pages
    More info: www.totalphase.com/blog/2016/...
    More info: maker.pro/arduino/tutorial/co...
    🔬PRINTERS FDM
    -------------------------------------
    Artillery Sidewinderr X1 (364€ Aliexpress): s.click.aliexpress.com/e/_9y9haI
    Artillery GENIUS (307€ Aliexpress): s.click.aliexpress.com/e/_A9SvG2
    Creality3D Ender 3 Pro (230€ Aliexpress): s.click.aliexpress.com/e/_APcCa2
    Anycubic Mega S (206€ Aliexpress): s.click.aliexpress.com/e/_ALcTLs
    ELEGOO NEPTUNE 2 (186€ Aliexpress): s.click.aliexpress.com/e/_AM2y7c
    Prusa i3 MK3S Clone (393€ Aliexpress): s.click.aliexpress.com/e/_ASNXyi
    Creality CR-10 V3 (480€ Aliexpress): s.click.aliexpress.com/e/_AnycCO
    🔅PRINTERS RESIN
    -------------------------------------
    ELEGOO Mars Pro (208€ Aliexpress): s.click.aliexpress.com/e/_A0nVFY
    ELEGOO Saturn MSLA (480€ Aliexpress): s.click.aliexpress.com/e/_AKxJim
    Anycubic Photon Mono (199€ Aliexpress): s.click.aliexpress.com/e/_9ulv4K
    Creality HALOT ONE (275€ Aliexpress): s.click.aliexpress.com/e/_Ak7jBC
    Like share and subscribe to motivate me. Thank you
    #UART
    #i2c
    #SPI
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 754

  • @avishjain4226
    @avishjain4226 2 ปีที่แล้ว +204

    That was a nice explanation! However, I want to mention few things
    1. I2C is Half-Duplex (not Simplex)
    2. SPI is Full Duplex
    3. In I2C, we can configure the peripheral to both the modes - Acknowledge and No Acknowledge

    • @elhoward7440
      @elhoward7440 2 ปีที่แล้ว

      SMBus and I2C are slightly different protocols using the same hardware. Isn't No Acknowledge actually SMBus?

    • @AMG-gc4io
      @AMG-gc4io 2 ปีที่แล้ว +1

      what is I2C Protocol in Arduino Nano ?

    • @knuckleduster05
      @knuckleduster05 2 ปีที่แล้ว +6

      @@elhoward7440 no, ACK and NAK are both part of the I2C addressing protocol. When you write to a slave, the slave needs to pull down the SDA line to ACKnowledge that it is ready to receive communications.

    • @thekitsunedev_hun
      @thekitsunedev_hun ปีที่แล้ว +1

      @@AMG-gc4io Its the Wire.h library and the same pinout as the uno (A4,A5)

    • @ksawery6568
      @ksawery6568 ปีที่แล้ว +3

      Also, I don't think you say Bauds/second, as 1 Baud = 1 bit/second

  • @arnavjain7564
    @arnavjain7564 4 ปีที่แล้ว +36

    This is something I was really planning to study and the fact that you made a video on this at the perfect time is just awesomeee thanks😄

  • @savage8336
    @savage8336 4 ปีที่แล้ว +108

    This is honestly one of the most helpful videos I've ever watched. I wish I saw this in school a few years ago.

    • @mugglepower
      @mugglepower ปีที่แล้ว

      fuck schools man schools never teach you shit. of the 100% of content I learnt from college(in which my major MATSE is top 10 in US) probably 15% of the shit is actually useful. rest they just make you jump through hoops and run in circles and chase your own tail. I talked to professors and very smart people(well, smarter than me for sure) and they all tell me they purposefully make this shit difficult. I picked up more programming stuff in a month with my flipper zero than an entire semester worth of programming courses in college/. by the end I finished my college programming class i still have trouble fucking printing hello world but with interest and a bit of self learning I'm writing sql now.

    • @chevroletlacetti5006
      @chevroletlacetti5006 ปีที่แล้ว +4

      I m not of this theme. Even dont know what that chips are for.... i m cab driver . Wanted just watch some fun on utube before sleep.
      And even I understood how these guys communicate😊
      Really good lesson.
      I wish i could see that 50 years ago. Maybe that could change my life

  • @wgm-en2gx
    @wgm-en2gx 4 ปีที่แล้ว +497

    CAN and JTAG would be interesting.

    • @adiigeak8568
      @adiigeak8568 4 ปีที่แล้ว +1

      +1

    • @whootoo1117
      @whootoo1117 4 ปีที่แล้ว +18

      JTAG, CAN, RS-232 & MIDI

    • @Ashishchabha
      @Ashishchabha 4 ปีที่แล้ว +21

      CAN is also very commonly used in protocols. Please make a video.

    • @DanielToebe
      @DanielToebe 4 ปีที่แล้ว +3

      Yes I would love to see a deep dive in to can

    • @MarceloCutin
      @MarceloCutin 4 ปีที่แล้ว +10

      Absolutely agree. CAN bus would be great.

  • @puriap250
    @puriap250 4 ปีที่แล้ว +25

    Finally I understand how timing of serial communication works. Thank you.

  • @dikshitadesai
    @dikshitadesai ปีที่แล้ว +2

    I so appreciate you elaborating these concepts on the circuit boards. That literally saved me hours of hustle. Very well explained! Thank you

  • @arijitghosh6378
    @arijitghosh6378 3 ปีที่แล้ว +8

    Thanks for simplifying these seemingly complex protocols for us. Up until now I kinda treated them as black boxes in my head to keep the complexity away but now it feels great to have a fundamental understanding of how they work. Although Id love to see a bit more explanation on SPI.

  • @harshdesai1932
    @harshdesai1932 4 ปีที่แล้ว +14

    You just have made me understand one of my most confusing Topic. so glad to have you in my subscription list. You are amazing. realmente te aprecio hermano

  • @michaelwhisman2479
    @michaelwhisman2479 4 ปีที่แล้ว

    Thank you. As I am learning how to make things for myself, these come up a lot and have been wondering exactly why a certain protocol might be more useful in certain situations. This helped me a lot to continue my learning. Thank you

  • @thighdude7
    @thighdude7 4 ปีที่แล้ว +1

    Very well done. One of the best explanations of async & sync serial communication I've seen on TH-cam. Would love to see you cover CAN, and JTAG!

  • @davewreski6900
    @davewreski6900 4 ปีที่แล้ว

    You make it much easier to understand using your Scope. It is nice to see someone knows what a Oscope to display what you are describing. Keep up the good work. UP SCOPE !

  • @balajiprakash1130
    @balajiprakash1130 4 ปีที่แล้ว +6

    The best explanation I have ever heard!!! Hats off ;) This video just solved a great mystery in my mind on serial communication.

  • @greymind0072
    @greymind0072 3 ปีที่แล้ว +24

    I respect and really appreciate the effort it would have taken for you to make such nice animations for explaining. Its a delight to see your work . I'm a fan, really helped me to understand concepts better. I will appreciate if you show more of oscilloscope result with a simple example data. Otherwise i love the work. Its just A1 class

  • @dontstop_fun6
    @dontstop_fun6 3 ปีที่แล้ว

    Since long time, I was searching for such an explanation and today by your video my concept got clear about bauds transmission. I'm really thankful to you for that.

  • @TheHookUp
    @TheHookUp 4 ปีที่แล้ว +2

    This is a really great video. I teach this in my intro to engineering class and this video is going to be a must watch addition to that lecture. Cheers.

  • @neilbedwell7763
    @neilbedwell7763 ปีที่แล้ว +1

    Really concise summary. I had next to no idea of each of these implementations, or even much of an idea of their spec beyond a communication vector, so this becomes a very welcoming introduction and comparison

  • @djihadbouakaz6355
    @djihadbouakaz6355 ปีที่แล้ว

    The most simplified video in the field of telecommunication ever, thanks a lot

  • @computerengineering390
    @computerengineering390 4 ปีที่แล้ว

    This was a concise and well-defined explanation. It is the first time that I see such a great video in this subject here on youtube. I'm inclined to be your subscriber now, thank you.

  • @yadusolparterre
    @yadusolparterre 4 ปีที่แล้ว +1

    Wow, it's really rare to find videos that are explained so clearly !

  • @pertileluca
    @pertileluca 4 ปีที่แล้ว +22

    In every video your animations are a pleasure for the eyes!

  • @Hennir_97
    @Hennir_97 2 ปีที่แล้ว

    Thanks for making this video! You clearly explain how these forms of communication works for beginners (or me at least). A lot of things regarding computer and signal communication makes complete sense now. Keep up the great work!

  • @kentkvalnes4621
    @kentkvalnes4621 ปีที่แล้ว

    This presentation was one of the best I've seen in a while. Simple and very easy to understand. thanks🙂

  • @kamilkosi9101
    @kamilkosi9101 4 ปีที่แล้ว +8

    Amazing video. I was always wondering about different types of communication! Thank you!

  • @jakehealthx
    @jakehealthx 3 ปีที่แล้ว +2

    This was so helpful. I wish my digital electronics professor explained it like this. Thank You!

  • @pnutamechatronix544
    @pnutamechatronix544 4 ปีที่แล้ว +6

    Please do more on CAN communication and the others. You are such a great help in education and simplifying such difficult subjects many thanks

  • @tradestox6331
    @tradestox6331 2 ปีที่แล้ว

    You removed all the doubts which I had since 30 years in my mind
    Thanks alot

  • @meirrose2347
    @meirrose2347 4 ปีที่แล้ว

    In one great video I learned so much about the serial connection I use every day on my arduino. Thank you

  • @praveenraj29
    @praveenraj29 4 ปีที่แล้ว +1

    Awesome Video tutorial on Serial Communication with very clear explanation.
    Kudos Electronoobs!!!

  • @noorulhasanfzn003
    @noorulhasanfzn003 4 ปีที่แล้ว +1

    Thank you for this video.
    Best thing about you, is that you keep it very simple yet effective.
    Please make a video on CAN communication.

  • @pritamnath7098
    @pritamnath7098 4 ปีที่แล้ว

    Thank You Sir. My concept cleared about UART, I2C and SPI communication through this video

  • @likeitornot6821
    @likeitornot6821 3 ปีที่แล้ว

    Thank you bro, you have explained the concept confused me for a longtime in a way that even a beginner can understand

  • @rayhan8701
    @rayhan8701 3 ปีที่แล้ว

    this is the only video on the youtube which is very clean about protocols

  • @montaguemonro565
    @montaguemonro565 3 ปีที่แล้ว

    This is the first video that explains this in a way that makes perfect sense to me. Thanks!

  • @RohitSingh-px7op
    @RohitSingh-px7op 2 ปีที่แล้ว

    Oh my God !!! i am so thankful to you. I mean u did so much effort on one video for explaining each and everything and that too for free❤️❤️❤️❤️❤️❤️u r legend

  • @JasonDrennen
    @JasonDrennen 3 ปีที่แล้ว

    Thank you sir I have been using these protocols for quite a few years now. This video explained it to me better then I've ever understood. I would just hook it up as it said and not realize the difference.

  • @spabbarter
    @spabbarter 3 ปีที่แล้ว +3

    Please hook us up with the JTAG and CAN most definitely. USB and debug would be helpful as well. I’ve had a lot of trouble finding good videos for these, but this one on serial communications was superb!! Well done!

  • @notchaudiollc765
    @notchaudiollc765 3 ปีที่แล้ว

    Thanks for this video! Best explanation for a hardware guy like me I’ve seen. Getting into UART for BLE radios here.

  • @rehmankhan-ve9vo
    @rehmankhan-ve9vo 3 ปีที่แล้ว

    Thanks sir I am lucky that I have found this video. This is the best explanation about digital protocols that I have ever seen.
    Thanks a lot for this.

  • @justdoingodswork
    @justdoingodswork 3 ปีที่แล้ว +6

    We need a video on CAN protocols too, thank you so much for this video.

  • @rgusso
    @rgusso 10 หลายเดือนก่อน

    best video so far explaining protocols in a simple way! thanks for doing it!

  • @bramburn
    @bramburn 4 ปีที่แล้ว +2

    Dude I couldn’t explain this any better. Well done

  • @cmfanz
    @cmfanz 4 ปีที่แล้ว +3

    @electronoobs, just a little correction needed in the table at 10:27. I2C does have an acknowledge system. The slave will pull the SDA line low when it has successfully received the transmission from the master. This will show up as the last pulse that appears after all the data bits are transmitted. This last pulse will be a high if the master does not receive an acknowledge from the slave. This way, you can clearly get a confirmation of the handshake.

  • @SahilKhan-pt6pj
    @SahilKhan-pt6pj 4 ปีที่แล้ว +1

    Why not you should surely post more.I really admire and thank you for these videos.Keep it up.

  • @abdullahkhan-qk3lk
    @abdullahkhan-qk3lk 2 ปีที่แล้ว

    So far the Best Video i have seen on Communication Protocols! Amazing explanation bro!

  • @AjinkyaMahajan
    @AjinkyaMahajan 4 ปีที่แล้ว

    Best Visual explanation of protocols ✨✨✨
    Really appreciate your work.

  • @Tyler-kh6gp
    @Tyler-kh6gp 3 ปีที่แล้ว +2

    This is a really awesome video! I've rewatched it 3 or 4 times over the years to prepare for interviews

    • @robdoggitydog255
      @robdoggitydog255 3 ปีที่แล้ว

      They actually asked you stuff about this?

  • @moinshaikh6684
    @moinshaikh6684 3 ปีที่แล้ว

    Very very nice explaination with practical! We need such brilliant teacher for the world!

  • @xaviervillamar7886
    @xaviervillamar7886 4 ปีที่แล้ว

    Eres un grande amigo! gracias por renovar mi amor por la eléctronica. Sigue asi... tu eres digno que te llamen Maestro.

  • @prathambhatnagar8653
    @prathambhatnagar8653 4 ปีที่แล้ว

    Very nice and well explained
    Now I know how different types communication works thanks

  • @taimooredits1841
    @taimooredits1841 ปีที่แล้ว

    Great, this video is more helpful for everyone. your way to teach is totally awesome.

  • @jvon3885
    @jvon3885 3 ปีที่แล้ว

    I wish I would have paid more attention in school. But I'm glad ppl like you are around to whip me into shape.

  • @lincolnkarim1
    @lincolnkarim1 4 ปีที่แล้ว

    Very clear explanation. If I may suggest--It may be worthwhile to draw the vertical sides of the pulses slightly slanted to remind us that the pulses are not ever square, but it takes time to climb from low to high and likewise to fall from high to low. I believe that the counting actually takes place at the middle of the slope (zero crossing) of the leading and trailing edges.
    Thanks for taking the time to produce this video.

  • @whitenorthstar
    @whitenorthstar 2 ปีที่แล้ว

    The best explanation I have come across thus far...thanks!

  • @wowtah
    @wowtah 4 ปีที่แล้ว +1

    Well done, nice explanation. It's worth noticing that I2C is bi directional too. A master can read values from its slave devices.

  • @acecool1715
    @acecool1715 2 ปีที่แล้ว +1

    This is great, hope this series continues

  • @ilm5elee197
    @ilm5elee197 4 ปีที่แล้ว

    With each new video, quality of content is increasing. This channel is next eevblog.

  • @ericon.7015
    @ericon.7015 3 ปีที่แล้ว

    Man! Very clean and simple explanation. Thanks. Please explore other protocols also in more videos.

  • @praveenarora4589
    @praveenarora4589 2 ปีที่แล้ว

    great job man!! very shortly and precisely you describe everything.....

  • @mopatibogatsu7941
    @mopatibogatsu7941 3 ปีที่แล้ว

    So revealing, I've always been curious about serial communication

  • @adyaandagastyasharma3202
    @adyaandagastyasharma3202 2 ปีที่แล้ว

    Very simplified explanation of such complex concept.

  • @dmo3074
    @dmo3074 3 หลายเดือนก่อน

    This was excellent, exactly what I was looking for. Nice overview.

  • @siddharthmali5841
    @siddharthmali5841 4 ปีที่แล้ว +17

    Great.
    Please make video on protocols like CAN and USB.

  • @abdulkhadarmohd7283
    @abdulkhadarmohd7283 4 ปีที่แล้ว +25

    Yes sir we want more videos on this topic thank you, you are awesome
    Love from india

    • @puneethkumar703
      @puneethkumar703 3 ปีที่แล้ว

      hi Mohammed Arbaz,
      I am a part of the open-source Arduino simulator development team. It will be great if you can have a look and share your feedback🙏😃
      Some of the examples are here
      wokwi.com/arduino/libraries
      and here
      www.wokwi.com as well
      if it is interesting kindly let me know

  • @1.21gw5
    @1.21gw5 3 ปีที่แล้ว

    amazing clarity.......................keep up the good work brother

  • @NIKFLICK707
    @NIKFLICK707 4 ปีที่แล้ว

    First of all thanks for making this very in-depth, content rich video, and for other comms a CAN would be great, love your accent😍😍😍👏👏👏

  • @angelorondini5835
    @angelorondini5835 4 ปีที่แล้ว +1

    Nice series I hope you continue this because it's useful and wellmade

  • @varunsontakke9810
    @varunsontakke9810 4 ปีที่แล้ว

    Dude it's awesome I learnt that in the best way becoz of you . Keep going . We need more information about the protocols .

  • @omskariyazmaraikayer913
    @omskariyazmaraikayer913 3 ปีที่แล้ว

    Brief and to the point. Very useful video .

  • @volkangundogdu1008
    @volkangundogdu1008 ปีที่แล้ว

    Nice and clear explanation of baud and reading process of a bit in a bit train.

  • @g38ra
    @g38ra 4 ปีที่แล้ว

    very informative, simple and fast. Thank you, plz make more.

  • @ganeshanmuthusekar3518
    @ganeshanmuthusekar3518 4 ปีที่แล้ว

    Superb.. and very informative for a electronic enthusiast.

  • @user-hv8sy6mf8m
    @user-hv8sy6mf8m 4 ปีที่แล้ว

    I am delighted with your work, thanks!

  • @ikhsansaputra5219
    @ikhsansaputra5219 4 ปีที่แล้ว

    Thank you so much. This video is really helping. I love your channel. Keep the good working.

  • @xnetworkDEVILx
    @xnetworkDEVILx 4 ปีที่แล้ว +1

    man your topics are just what i need ...just thanks man

  • @davidattias4166
    @davidattias4166 3 ปีที่แล้ว +1

    Wow, this is such a great video, thank you for making it!

  • @chuckthebull
    @chuckthebull 3 ปีที่แล้ว

    I have worked a lot with MIDI protocol, it uses mostly three 8 bit bytes in a row with a low going start bit.. started in the 80s for communication between synthesis and still used today even professionally.

  • @Nono-hk3is
    @Nono-hk3is 4 ปีที่แล้ว

    Yes, more protocols. Thanks!

  • @SearchFT
    @SearchFT 4 ปีที่แล้ว

    Very nice informative. Short and sweet. No wharra wharra. Just straight talk, how technical people like it 😋👍🏻 Thanks

  • @surya.6283
    @surya.6283 4 ปีที่แล้ว

    Please make for other serial communication protocols. I am waiting along with other thousands of people. Your explanation is excellent.

  • @ayushkaiwart2451
    @ayushkaiwart2451 3 ปีที่แล้ว

    Easy understand videos. Its Better than the IOT class lectures that i attended in my college.

  • @godsdelightjude2382
    @godsdelightjude2382 ปีที่แล้ว

    Really nice illustrations, loved the voice over too. Perfect video 📸 🤩

  • @bassome3000ify
    @bassome3000ify 4 ปีที่แล้ว +1

    This is awesome amazing superior mesmerizing unbelievable overwhelmingly beautiful and breathtaking
    This is super important, and when you make a video about it, it becomes demystified, understandable by humans 😁 thanks a ton a ton, keep it up, love your work.
    I am sure most of your audience agree with me

  • @vladimirgrach1235
    @vladimirgrach1235 ปีที่แล้ว

    Great video! Short and straight to the point! Thanks!

  • @9336611680
    @9336611680 3 ปีที่แล้ว

    The explanation is very good..pls continue making more videos

  • @edsonvicentejunior9718
    @edsonvicentejunior9718 4 ปีที่แล้ว

    Amazing video. Congratulations for dedication and quality.

  • @abhijitrashinkar
    @abhijitrashinkar 4 ปีที่แล้ว

    Hello!
    I am pleased to see this video, you really made things look so simple, keep it up my friend, cheers...

  • @raj61091
    @raj61091 4 ปีที่แล้ว

    just superb learnt a lot today. very important for a drone guy

  • @mugglepower
    @mugglepower ปีที่แล้ว

    thank you for the clear concise explanation.

  • @kothamahesh100
    @kothamahesh100 3 ปีที่แล้ว

    Its really a clear explanation with all the variations among communication protocols. Expecting vedios on CAN and JTAG. thanks for the vedio..

  • @dni7017
    @dni7017 4 ปีที่แล้ว

    Thank's I was searching this explanation to build my 3d printer, now i kinda know what portocol to use with my step driver, i chose SPI, gain of speed

  • @1DR31N
    @1DR31N 4 ปีที่แล้ว +3

    I enjoyed a lot this video,showing the oscilloscope waveforms. Awesome. Congratulations.

    • @XanthiumIndustries
      @XanthiumIndustries 2 ปีที่แล้ว

      we have a youtube channel that deals with Arduino,ATmega328P,Java,Serial programming ,robotics. So if you like these stuff do Subscribe. Sorry for annoying

  • @MrForcat
    @MrForcat 7 หลายเดือนก่อน

    Masterclass, I studied a bit of this decades ago but much better explained. Now I want to create an MBUS CDC emulator for 30 years old car stereos.

  • @user-iy5th3mm1m
    @user-iy5th3mm1m ปีที่แล้ว

    Great video buddy cant be more simplified than this

  • @domestron4422
    @domestron4422 4 ปีที่แล้ว +22

    Nice video man You inpired me to start youtube and making
    videous I love how much work you put on videos You are awesome! I love some day to be one of my subscribers.

    • @tonysfun
      @tonysfun 4 ปีที่แล้ว +1

      I agree! Well done videos! Mine are unedited and nothing even close to these!

  • @HealzDog
    @HealzDog 4 ปีที่แล้ว

    You explained serial communication better than anyone else

  • @kanishkaranasinghe4405
    @kanishkaranasinghe4405 3 ปีที่แล้ว

    WOW! Really informative and compact. Thank you!!!

  • @GuilhermeFerreira-po5ek
    @GuilhermeFerreira-po5ek 3 ปีที่แล้ว

    O sotaque não engana. TUGAS NO PODER!

  • @cyberprodigy
    @cyberprodigy 3 ปีที่แล้ว

    Thanks, this is really the best explanation online.

  • @lapidora1
    @lapidora1 ปีที่แล้ว

    This is really helpful overview. Thank you :)

  • @oliviazhai1831
    @oliviazhai1831 2 ปีที่แล้ว

    thanks so much for the video, is so helpful for my exam ❤