Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [uart]

A UART is a Universal Asynchronous Receiver/Transmitter. This refers to the "hardware" serial port in the processor. Use this tag for questions about hardware serial.

0
votes
1answer
32 views

USART, SPI or Bit-Bang for the continuous transfer of bytes without inserted extra bits

I have heard that The SPI hardware introduces a 9th, HIGH bit between bytes USART still uses start and stop bits when in synchronous mode Are both these statements true? Can I modify the built-in ...
0
votes
0answers
119 views

DFPlayer Mini UART Communication not working

I'm working on a project, which contains a DFPlayer Mini: Reference However, while the I2C modules are working great, i can't get the DF to work (Serial communication). It won't recognized by the ...
1
vote
1answer
38 views

Serial Communication - strtok() issue

I'm working on UART communication between an ESP32 (sender) and ESP8266 NodeMCU board(receiver). The host is sending out the following character string: Serial.println("2753192144$1&"); The ...
-2
votes
1answer
139 views

Arduino UART (TX/RX) multidrop 1 master 50 slaves

I'm thinking to connect about 50 slave Arduinos on 1 master using TX/RX. I'm following recommendation of these links: I'm looking for a way to serially communicate with a multi mesh Arduino slave ...
4
votes
1answer
745 views

How to work with non-traditional UART baud rates

I am trying, unsuccessfully to communicate, using my Arduino Nano, with a custom device at a baud rate of 800 kbit/s. The Arduino code look like this: void setup() { // Put your setup code ...
3
votes
2answers
57 views

Double Speed Operation for USART on Arduino Mega 2560

I happened to be looking through the HardwareSerial.cpp file that contains the functions used for Serial communication for Arduino. While looking through the HardwareSerial::begin(baud, config) ...
1
vote
1answer
53 views

How to run Arduino code on Linux? [closed]

I want to use an MFRC522 module as explained in this video. But is it possible to get around with Arduino and use a TTL to USB converter to connect RC522 directly to my PC running Ubuntu? Using the ...
0
votes
1answer
55 views

How to stop sending the last received char of UART echo function?

I developed a code for uart based ISR with linear buffers, the problem is that it keep sending the last received char in Arduino IDE. Here's the application code: #include "uart_new.h" void setup() ...
1
vote
1answer
47 views

Arduino Mega Pins for SoftwareSerial (vs. AltSoftSerial)

I am currently looking at using an Arduino Mega to build a MIDI Receive box that will then pump the data over USB, but am having design issues/uncertainties with the Arduino's receiving end. I am ...
0
votes
2answers
661 views

how to send data to Adafruit Bluefruit Feather (32u4) over bluetooth?

Sup yo. I have my Adafruit Bluefruit Feather all wired up. It's lovely. I've got it responding to commands over the USB serial, activating an array of octocouplers. It's terrific. Here's the ...
0
votes
1answer
55 views

UART communication, is it possible to use only the TX line?

I am trying to connect an ESP-01 with an ArduinoMega through the serial port of both, as they use different voltage levels I would need a voltage divider between the TX pin of the Mega (pin 1) and the ...
2
votes
2answers
370 views

Is it possible to extract a hex file via UART from an Arduino?

Right now I am tinkering on my 3D printer that has an Arduino mega as a brain. I need to update the Marlin firmware but in case of an error I want to create an backup of the firmware. And because it ...
0
votes
2answers
892 views

Connect ESP-01 to USB Uart

for programming my ESP-01 chip I bought an "USB Uart", but it looks different to all the ones in all tutorials. I don't know how to connect the uart to the esp. The uart i bought has following pins: ...
0
votes
2answers
1k views

Serial communication between multiple devices (or Arduinos)

What I know from my search on the internet, for both SPI and I2C protocols, communication between multiple devices needs a master, which initiates the communication, and slaves, which respond to the ...
4
votes
1answer
171 views

Alternative to UART/I2C LCD displays?

I'm building a MIDI synthesizer on Arduino Uno, and am considering user interface options. I see on Adafruit and Sparkfun there are 16x2 LCD panels available that interface via I2C serial or by UART,...
1
vote
0answers
155 views

ATMega328 to Arduino Mega Serial Communication

I'm working with an ATMEGA328 chip on a breadboard. I'm using the Arduino library for easy coding within Atmel Studio (and an ISP MKii for programming). I have no way to easily debug my code, so I ...
0
votes
0answers
38 views

KOOKYE fingerprint communication

I have to send 256 bytes of information to a fingerprint sensor and the sensor does not send an ACK packet at the end of every data packet, only at the command packets. The comunication is via UART. ...
0
votes
1answer
522 views

Why these specific voltage divider resisters needed for Arduino Uno RX TX pins?

I have an Arduino Uno attached to a Parallax Boe-Bot shield, and plugged into the shield breadboard, the Parallax WX ESP8266 Wi-Fi SIP. When I attach the DO/DI pins of the ESP8266 board to the RX/TX ...
0
votes
1answer
330 views

Can't get call / message from A7 gsm+gprs+gps module

I am making a project using arduino uno & A7 gsm+gps+gprs module.my circuit connection is like this: A7 UTXD -> arduino RX A7 RTXD -> arduino TX A7 GND -> arduino GND A7 pwr_key -> A7 ...
0
votes
2answers
145 views

Speed measurement from lidar sensor for automatic braking system

For a school project I have been working on a system that will automatically brake when there is danger. Only the requirements are more strict (safety) than just using a ping sensor and detecting a ...
0
votes
2answers
325 views

Splitting Integers

I have bluetooth (HC-05) connected on Serial port of Arduino Mega and two TM1637, I am receiving Strings from an Android phone with an app with two Time picker (Fajar and Zohar) I am sending time ...
0
votes
1answer
620 views

using UART bridge module to have serial communication through usb port of arduino nano

This can be a silly question but I'm having a trouble with serial communication between arduino nano with other serial device. Please help me to handle it. I'm currently doing a RF communication ...
1
vote
1answer
464 views

Super-fast USB communication; how is it possible?

On Arduino forums, there's a post where someone improved the USB communication and made it super-fast. I don't understand how he did this, and I'm trying to recreate this, but failing. My test code ...
1
vote
1answer
53 views

Can not receive data from UART with stepper motor

I am using an Arduino Mega2560 While my motor is moving I can not receive anything from the UARTs. When the motor ends movement, I receive data from UART. How can I make my motor move without ...
0
votes
0answers
131 views

How to upload firmware to ATMEGA16U2 to become UART for ATMEGA2560?

TL;DR, virgin ATMEGA16U2 to UART for bootloaded ATMEGA2560 From what I've been finding on the internet, alot of tutorials assume that I want to upgrade the firmware on a ATMEGA16U2 chip that already ...
3
votes
3answers
157 views

Solution for simple multi-Arduino communication network (or alternative?)

I know similar question has already been discussed here but I could not get clear answer. Here is the thing: I have one master device - Mega2560, and multiple (about 9 but could be expandedin future) ...
1
vote
0answers
91 views

Garbage when listening to serial

This is the atmega328p code that is supposed to send a predefined message repeatedly. #include <avr/io.h> #include <util/delay.h> #define BAUD 9600 #define BAUD_PRESCALLER (((F_CPU / (...
3
votes
1answer
3k views

Simple Multiple RX/TX SoftwareSerial?

In this project I will be using multiple ESP8266 WiFi modules (4) connected by software serial to an Arduino Leonardo Micro (1 UART). I plan to rotate between all 4 (starting with 2): Open port, write,...
0
votes
0answers
504 views

RFID HZ-1050 problem reading tag

I recently bought an RFID HZ-1050 125 KHz, but I can't seems to figure out what the problem is as it's not reading its own tag. I tested several program and wiring. Arduino Nano--------- RFID HZ-...
0
votes
2answers
1k views

Arduino UNO UART coding in pure C

Below is a simple USART code for ARDUINO written in Pure C. But due to uknown(in reference to me) reasons, the code is not provicing desired output. Can someone point out the error in the code. I ...
3
votes
2answers
433 views

Stopping Serial on RX/TX pins while running Serial on USB

The Arduino/Genuino Micro has RX/TX pins and can do serial via USB. But, Arduinos Serial ties them both together, so when using Serial.begin(9600) to send messages between my PC and the Arduino, I ...
0
votes
2answers
94 views

Delay in displaying data received from UART when used with PCINT on PIN0

I have been trying to find a solution for UART receive interrupt for my UNO board and I came across a possible solution in : PCInt I did a small editing in the following portion of the code to make ...
0
votes
1answer
699 views

Conflict between UART serial transmission and timer interrupt Arduino MEGA

I have a small problem with collision between handling serial transmission and executing things in timer interrupt. I'm doing program which communicates with PC. It transmits and receives as well and ...
0
votes
1answer
129 views

Atmega2560 USART UDR r/w conflict possible?

I'm having a really weird issue with my project right now. I have an Atmega2560 using hardware serial, and the software on the other side is doing full duplex read/write at 500kbps. If I change it to ...
0
votes
2answers
12k views

How do I know the IP address assigned to an ESP8266?

I have programmed an ESP8266 using the circuit and program below. I tried to open the SerialMonitor once the program is uploaded to the ESP8266. I am getting an error when I am trying to open the ...
1
vote
3answers
919 views

Two devices on one UART/Serial

I'm using an Arduino Mega which has 4 RX/TX UARTS/serials. 3 RX's of them I use for MIDI In 2 TX's of them I use for MIDI Out (maybe later a DMX out too) One I use currently for debugging. On the ...
0
votes
1answer
50 views

Capacitor Questions

I've designed a board (HAT) that uses the ATmega328P microcontroller, and I think I might have made some mistakes in the board design. The design is most like the Arduino Pro mini, but with a 5A dual ...
0
votes
1answer
303 views

ESP8266 unstable connection

I try to flash an ESP12E microcontroller through an FTDI serial converter. It seems like the UART connection is a bit unstable, because when I try to flash it via esptool it often throws "Timed out ...
1
vote
1answer
457 views

Common ground serial communication trouble SIM800L

I have a trouble when i'm using SIM800L module with common ground with combinaison with : FTDI232+ARDUINO PRO and Li-po battery. I use common ground to allow Arduino see the serial of SIM800L. I use ...
1
vote
1answer
2k views

Can Arduino Leonardo use USB port and RX TX serial pins at the same time?

Can I use the TX/RX on pins 0, 1 (to a serial slave device) while also having the USB port dedicated PC communication?
-2
votes
1answer
206 views

Single-channel serial communication [closed]

I'm trying to communicate with a device which only uses a single wire at 9600 Baud. How can I use my Arduino UNOs RX/TX-Pins to recieve and transmit on that one wire?
1
vote
1answer
225 views

Communication between Genuino Zero and Arduino Uno using UART

I want to make my Arduino Uno and Genuino Zero communicate using UART. My Genuino Zero is the transmitter and the receiver is the Arduino Uno. For the Arduino Uno, I am using the SoftSerial library. ...
0
votes
3answers
302 views

Arduino UNO USART problems

I need to send 6 bytes value from Arduino UNO to the actuator using serial port in order to make it extends. I have added a button to send the data. For example, 0 20 1 1 0 0. The communication ...
0
votes
2answers
361 views

Serial1 is not reading the Xbee on a Arduino Due

I am trying to test simple communication between a Xbee on my Arduino Due and a Xbee linked to XTCU. I attached jumper wires from RX and TX to RX1 and TX1 (Serial 1 hardware port) but I cannot send or ...
0
votes
1answer
2k views

The working of a MFRC522 and its Interface protocols?

I've actually messed up and posted into the stackoverflow site, even though I'm probably not meant to. I've been given this datasheet, but even though it does explain somewhat how each host interfaces ...
0
votes
1answer
60 views

Arduino receives no external UART comms after Serial.begin(9600)

I face the following issue. I connected my RasPi (3b) with an Arduino Uno via RX/TX and a logic level converter. UART comms from the RasPi to the Arduino and vice-versa work fine on minicom and serial ...
0
votes
1answer
80 views

What happens if device sends data to arduino over serial port (UART) and arduino is unable to read it

Suppose delay(10000) function is executed, so Arduino cannot do any other work. During this time if the other device sends the data to arduino what will happen ?
7
votes
2answers
7k views

What's the difference between all the Software Serial Libraries? Which one is Arduino Nano compatible?

There are so many Software Serial Libraries, what are the differences between them? And which one I can use with my Arduino Nano? For my Arduino Nano I need one Hardware Serial Port and one Software ...
1
vote
1answer
284 views

UART communication issue on Arduino Mega

I am using an MH-Z19 CO2 sensor with an Arduino Mega using UART. As per the specifications of this sensor, after we send a command, we expect the response in a particular 9 byte format (with starting ...
-2
votes
2answers
1k views

Defining Serial UART

I'm new to Arduino.. I'm currently trying to create a GPRS connection through SIM card. For that, I need to connect a serial UART port. I don't know how to define the Serial UART. Could you please ...