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.

2
votes
3answers
120 views

Control I2C relay board from two Arduino Uno

how can I make multi master Arduino device to work with single I2C device? As both the master device are 20 m away from Slave device, I am using the I2C relay board to connect with 2 Arduino boards ...
0
votes
1answer
35 views

Preforming impedance termination for UART Communication (TX and RX) pins

I need two Arduino devices (Arduino Mega and Nano) to communicate with each other via UART. The two Arduino devices are long distance apart from each other. The distance is 1.5 meters. The Arduino 1 ...
0
votes
0answers
35 views

UART communication

I'm working on a NUCLEO-F401RE board from STMicroelectronics which is based on STM32 microcontroller and an xbee module from Digi for Zigbee communication. This board is programmable via Arduino IDE, ...
0
votes
1answer
39 views

Multiple sensors connected to Arduino MEGA 2560 Serial ports

I am using Arduino MEGA 2560 to read values from two sensors. Sensor 1 is providing us two values separated by a comma and a space followed by a newline character. e.g.: 2.277, 7.942 2.269, 7.897 2....
0
votes
1answer
30 views

Baud rate of Arduinos bootloader

I am learning UART and the problem that i have is understanding what happens when i send serial data to my PC via USB which is built in to the Arduino uno board. For incoming serial data i am using ...
0
votes
1answer
66 views

UART connection between Arduino Nano and NodeMCU

I'm trying to create an UART connection between a Nano and an NodeMCU, running MicroPython. Code for trying is meaningless - Arduino says "HI", and ESP8266 should receive and print msg value. ...
0
votes
1answer
53 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 ...
1
vote
1answer
41 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
271 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
787 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
83 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
56 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
62 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
54 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
964 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
63 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
515 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
1k 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
2k 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
184 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
177 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
41 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
630 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
374 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
166 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
424 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
698 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
566 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
57 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
162 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
174 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
99 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
4k 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
559 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
523 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
99 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
833 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
153 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
14k 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
1k 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
52 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
342 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
485 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
3k 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
258 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
249 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
330 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
393 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
3k 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 ...