Serial Communication with Arduino - The details!

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ก.ย. 2024

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

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

    You’re one of the best explainers I’ve ever seen on TH-cam. Like this is Khan Academy level stuff. Nice job.

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

    This was incredibly helpful. This answered a bunch of questions that I had asked other engineers and either got explanations I didn't understand or just got a shrug. Thanks for taking the time to make this video 🙌🏽

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

    Amazing video! I am totally new to electronics and was able to understand this topic because of your wonderful explanation.

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

    If you send the msb first then each bit will have a different significance according to the total number of bits in the frame, sending lsb first means the first bit received is always the units bit, the second is the 2's bit and the third the fours etc. This is much simpler to implement in hardware rather than the complications of msb first.

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

    Really great format: tell 'em what you're about to tell 'em; tell 'em; then tell 'em what you told 'em. Perfect. Also, provided answers to my two unknowns: what is a uart and what is baud and why 9600. Fab.

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

      Glad it was helpful! That is pretty much or exact format! :)

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

    I was wondering what the heck serial communication is and this guy read my mind.

  • @TheModularChannel
    @TheModularChannel 11 หลายเดือนก่อน +1

    Wow, you are an excellent teacher. Thank you for this!

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

    Excellent explanation and appropriate use of didactic elements. Thanks

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

    hahaha where were you when I was in college, studying engineering??😆😆 Nice job explaining the basics, dude keep it up👍👍

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

    Very helpfull sir now had better idea of how serial work thanks

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

    Wow what a gem of a video! If you raise the baudrate does it mean you’ll use more power and if attached to a battery it wil run out faster?

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

      Great question Brendan! I do not believe so...
      When using the serial commands, it is going to be the same number of packets sent, only done at different rate.

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

      @@programmingelectronics i’ve looked it up and found this answer: If you have crummy cabling, or long distances, poor grounding, noisy environment, then slower baud rates can give more reliable results. Slower also uses less power as CMOS power consumption is switching frequency dependent. If the serial comm's are buffered first, so that RS232 type levels (+/- 3 to +/-12V, one wire for send, one for receive, plus Gnd) or RS485 type signals (+/-3V, but with 2 wires for sending, 2 for receiving, plus Gnd) than higher speeds and longer distances can be supported more reliably.

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

      So perhaps the power stays the same if you just send a fixed message. But if you’re using sensors and want to extract data you are probably takibg more samples at a givzn time with a higher baudrate and thus more processing power (energy consumption). At least that’s what i would assume

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

      @@brendanboon9062 Cool! Thanks for these details!

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

    10:25 , is this little endian structure? Where the most significant part of the binary number is stored on the right.

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

    Wonderful explanation. I am a beginner kindly help me with this problem. How can a simple program be written that dynamically calculates the water volume used in a tank. Given a cubical container of breadth=5, length=10 and height =20. If the tank is filled with water to an appropriate height, I know the volume of water is volume of water = volume of tank minus volume of empty space. Now, how do is the amount of water used calculated if the volume of water keeps being removed downwards after some time?

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

      Great question Winston!
      With Arduino, any code in the loop() function gets repeated over and over again, as long as you have your Arduino plugged in.
      Assuming you have a sensor that can report the relative amount of water in your tank, like an eTape (www.adafruit.com/product/464), then you can just read from the sensor and calculate the new volume every time through the loop.
      So inside loop, you might do something like:
      - read value from water sensor --> eTapeReading = analogRead(eTapePin)
      - convert eTape reading to height --> You'd have to look at the data sheet for a conversion to apply (or google)
      - calculate volume V=πr2h ---> volume = PI * r * 2 * waterHeight
      - display new volume --> Serial.println(volume)
      Hope this helps some!

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

    I thought TTL was Time To Live. Must have miss remembered it from my college days. Might want to check your arrow it is pointing to MSB not LSB again. I can't watch these videos without at least picking up one new thing every time. Another great video.

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

      Thanks a ton for watching! We should have corrected that arrow position in this one.

  • @fragile-engineering
    @fragile-engineering 6 หลายเดือนก่อน

    clear and understandable. Great Video!

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

    Great video

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

    Great video, thanks.

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

    Great help. Thank you.😊🙌

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

    Thank you

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

    please begin the serial communication

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

    Nice video thanks :)

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

    Nice!

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

    you really sound like the new boston

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

    you sound like stat quest

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

  • @ahmadjaradat3011
    @ahmadjaradat3011 6 หลายเดือนก่อน

    You’re one of the best explainers I’ve ever seen on TH-cam. Like this is Khan Academy level stuff. Nice job.