Arduino Serial Communication using UART

Поділитися
Вставка
  • Опубліковано 10 вер 2024

КОМЕНТАРІ • 59

  • @Montee1979
    @Montee1979 7 місяців тому +2

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

  • @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!

  • @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.

  • @ahmedalrefai6752
    @ahmedalrefai6752 3 роки тому +5

    Your methodology is Great, how you break down things!

  • @benshke
    @benshke 9 місяців тому +1

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

  • @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!

  • @EngineerAnandu
    @EngineerAnandu 7 місяців тому +2

    Good

  • @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

  • @muhamadkarzan3213
    @muhamadkarzan3213 5 років тому +2

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

  • @fuzzs8970
    @fuzzs8970 2 роки тому +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

  • @brixtongun
    @brixtongun 3 роки тому

    Very helpful will be rewatching

  • @saipratyushapratyusha8717
    @saipratyushapratyusha8717 5 років тому

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

  • @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

  • @christoffere425
    @christoffere425 3 роки тому

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

  • @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

  • @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.

  • @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

  • @vandana342
    @vandana342 5 років тому +2

    Can we define rx and tx as outputs or inputs pin

    • @luizalmeida1209
      @luizalmeida1209 4 роки тому

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

  • @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!

  • @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 !

  • @Ticks_and_Chaos
    @Ticks_and_Chaos Рік тому

    Thank you so much

  • @ARIEZACHANNEL
    @ARIEZACHANNEL 5 років тому

    very nice tutorial

  • @rekhakaushik4292
    @rekhakaushik4292 2 роки тому +1

    Nice

  • @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.

  • @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

  • @zeexhanhaider8664
    @zeexhanhaider8664 3 роки тому

    nice video

  • @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 Місяць тому

    Bhai saba thik hai leken itini wisil kiy mar reheho 😅