Excellent tutorial thank you! Between this and recently reading a datasheet on the atmega16u2 I feel like I actually understand how to make this work. I really appreciate it. Thanks.
very usual. thumbs up from me. the RX methods work great, The TX methods are not very good fast though, i ended up using the same buffering principle from RX for the TX functionality allowing me to transmit arrays without waiting for each bite to send. a very useful informative video set me in the right direction quickly. thanks
An example of 9-bit configuration is used for MDB communication protocol. It is used in vending machines, and I don't know who decided it is a good idea to use an extra bit...
Hey thanks for your video ! Very helpful. Just a question, how can I save the buffer receive when using uart_read() and save it into a variable correctly ? Because I try to make a comparison like that : uint8_t val = uart_read(); if(val == "t"){ // here I want to do something } The if isn't trigger. What should I do to compare char or string to the value returned ? Edit : Ok I found it, I have to use 't' instead of "t" my bad haha
@@BinderTronics Yes thank you, took me ages to understand the UART communication haha. Your video help me a lot !!! My project can succeed Continue like that 😁
I would like to express my gratitude for the valuable assistance you have provided through your videos. Currently, I am working on an academic project that involves the Atmega328P microcontroller, where I am required to use two UARTs - the native one, as well as other pins that function as UART. Can you please guide me on how to accomplish this task?
If i use the Arduino Software Serial lib to communicate with the microcontroller, then i must use the Arduino IDE to write and compile my code ? right ? . However, if i use Atmel Studio to write my code, then i'll need to create my own library to communicate with the microcontroller.
@@BenomraneAbderrahmen You are not constraint to the IDE. Atmel Studio supports Arduino projects. Simply create a port of the soft serial lib in C. gprivate.com/64bzv second link looks promising.
Get yourself a CH340 or FTDI USB to serial converter. MAX232 (RS232) runs on -12V to +12V. If you want to use a MAX232 you are going to connect MCU to the MAX232 turning the into a RS232 line. Then you need a RS232 to usb serial converter. THE CH340 or FTDI is a direct connection to between the MCU and PC.