Arduino Serial Communication using UART

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

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

  • @Montee1979
    @Montee1979 8 หลายเดือนก่อน +2

    Honestly this was alot simpler than I originally thought it would be, thanks for the video.

    • @BINARYUPDATES
      @BINARYUPDATES  8 หลายเดือนก่อน

      Hi Montee, Glad you liked it!

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

    I enjoyed the break down of the serial communication and the ease of understanding UART so quickly!

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

      Hi Faiz, great to know your Serial communication with Arduino is working. Enjoy and have a fun with your Arudino Uno. Cheers!

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

    Your methodology is Great, how you break down things!

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

      Hi Ahmed, Glad you think so!

  • @billferner6741
    @billferner6741 5 ปีที่แล้ว +20

    Is it me only? I miss the connection and programming of the UART. The video shows only how to program and connect Arduino via USB.

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

      These are in built functions of the Arduino.. to understand completely you will have to learn the basics of UART and hote data is transmitted in 8051. It is pretty simple. Once you understand try to write the functions yourself

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

      @@sachinm3519 Arduino microcontroller is not 8051, or it is compatible with that? By the way... it is not that simple. It is not that simple as just connecting RX/TX pins to TX/RX of the other device. RX/TX pins in arduino sends 0 V for "1" and +5 V for "0". I tested this connecting those lines to a PC and to other device and it did not work. Finally, I had to use other pins and use SoftwareSerial library to send inverted bit. That way I could use a PC to monitor the sent data and finally, to connect to other device, which is actually a Modem.
      It would be more useful if a video using RX and TX pins of Arduino is uploaded.

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

      He literally said it in the within the first 60 Seconds of the video :D

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

      @@jaimestuardo4655
      Did you find any videos of the type you were searching for?

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

      @@crateer Even he mentions it, the demo he shows was using the USB port to connect to the PC. The title should be different because many people (including me) came here expecting to find a demo of using P0 and P1 pins. That's the point.

  • @johnrees44..G4EIJ
    @johnrees44..G4EIJ 4 ปีที่แล้ว +7

    Thank you..Did you ever make the video on how to use other pins as TX/RX for serial? John

  • @benshke
    @benshke 9 หลายเดือนก่อน +1

    How would you set the program to get for example 4 digital inputs, 4 digital outputs and 2 analog signals.

  • @EngineerAnandu
    @EngineerAnandu 8 หลายเดือนก่อน +2

    Good

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

    Bad video. I was expecting what you promised... UART communication using TX/RX pins. You only showed the trivial part, using the USB cable to send serial data.

  • @baili8654
    @baili8654 4 หลายเดือนก่อน

    Thank you, you are genius!

    • @BINARYUPDATES
      @BINARYUPDATES  4 หลายเดือนก่อน

      Hi Baili, Glad it helped!

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

    thank you very much
    its a very good code for the biginners like me.💜

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

    Very helpful will be rewatching

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

    Hi
    Thank you very much. Nice video. Do you think the Arduino can be used as UART reader to write in airbag ECU with renesas MCU? Rf561725.
    There's a reset pin normally used

  • @rednibcoding3827
    @rednibcoding3827 6 ปีที่แล้ว +10

    Baudrate is not bits per second, its symbols per second or pulse per second. Where one symbol can contain several bits.

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

      Yes you are Wright ! I learning arduino c and this byte/second .1 byte is height bits . 1 caracter = 1byte . ex: 9600 bauds/sec = 9600 caracters /second ....thanks .....johan

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

      Although back in the day, 300 baud was 300 bps.

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

      Baud rate is the number of times a signal on a communication channel changes state, or varies. For example, 9600 baud rate means that the channel can change state up to 9600 times per second. The term "change state" means that it can vary from 0 to 1 or from 1 to 0 to X times (in this case 9600) per second.
      Please inform yourself before misleading others.
      - Ricardo Nunes, Portuguese Electronics and Automation Engineer ;)

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

      Exactly, that's why i just told him

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

      @@briandenley
      right....... But even as 300 bp/s it was not referring to transmission speed
      but symbol changes per second
      because the symbols are indeed bits
      although the purpose of the bits is not to justify speed but to define data and data content by changing state X times per second
      also bps was still the incorrect way to refer to Baud
      so let's try and clear up the confusion between bit rate and baud rate shall we

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

    Can we define rx and tx as outputs or inputs pin

    • @luizalmeida1209
      @luizalmeida1209 5 ปีที่แล้ว

      If you use the 'SoftwareSerial' library you can choose any port to be RX and TX

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

    Can't really find any "send" function here?

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

    You said we would communicate through tx and rx pins, why didn't we use them here?

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

      Hi Adem, because Tx and Rx Pins on Arduino is already in use with USB Connector and since its internally connected we don't need to connect Tx,Rx pins externally. I hope this will help you understand. Good day

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

    Thank you so much

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

      Hi Karthik, you're most welcome!

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

    Nice

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

    Keep getting "expected '}' at end of input " error on compile . Problem is the correct charactors are right there !!!! SOmething is missing in this video

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

    This configuration has nothing to do with UART Tx/Rx, it is simply using pin 13 as output with Serial

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

      Yes, you're right. I explained it to let viewers know there is UART Pins Tx, Rx does exist in Arduino

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

    Hello, how to do this using interrupt?

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

      Hi Emira, you can use UART peripheral with Interrupt.
      Also consider using interrupt vector available in ATmega328 microcontroller on Arduino. There are some video out there you can explore on YT. Good luck for your project and best wishes!

  • @ShaniKumar-gn4oq
    @ShaniKumar-gn4oq 4 ปีที่แล้ว

    if we send string like "On" or "Off" from serial moniter instead of one char '1'or 0 then how to handle this please help.....thankyou

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

      Try using ascii values. It should send the chars as hexa decimal values. Just do boolean comparisons on the hexa decimal values you receive to see if they match the corresponding ascii values. You will have to compare them one char at a time though. You could have two arrays, or nested if statements or something a long those lines.

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

    nice video

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

    This doesn't work . Between the uppercase/lowercase and syntax errors This doesn't work !
    Auto formating gives me code that will not compile !!!
    THere are important details left out here !

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

    Proper click bait video.. Man has kept UART in the caption but hasn't taught anything related to UART. Please don't misguide.

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

      This video demonstrate the use of Arduino Serial class which uses USART/UART protocol means Tx and Rx pin on Atmega328 MCU. In Arduino, Tx and Rx is internally connected to Type-B USB Hub. Please read more on Arduino website about how Serial function is built.

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

    Hello...... Can you make a video for esp8266 serial communication coding?

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

      Yes Sure

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

      Thanks bro.... 👍
      Guide in full series, your videos so in4mativ and your guidance mathod, it's really good👏 so helpful for biginers.... Keep it up

  • @dhwajaffhighlight
    @dhwajaffhighlight 2 หลายเดือนก่อน

    Bhai saba thik hai leken itini wisil kiy mar reheho 😅

  • @saipratyushapratyusha8717
    @saipratyushapratyusha8717 5 ปีที่แล้ว

    The code is working for Arduino uno but led doesnot blink in Arduino ng \w Atmega8. Are there any modifications?

  • @ARIEZACHANNEL
    @ARIEZACHANNEL 5 ปีที่แล้ว

    very nice tutorial