Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
50 views

Communication between two ESP32, USART vs RS232 with MAX3232

I have two ESP32 that are communicating via USART (TTL) on the Serial2. The TX2 pin of ESP_Alice is connected with the RX2 pin of ESP_bob. The RX2 pin of ESP_Alice is connected with the TX2 pin of ...
Carlo Tavian's user avatar
1 vote
1 answer
54 views

Arduino board with StandardFirmata doesn't respond to C# and Python client

I have a Seeeduino XIAO board with Firmata running on it. I'm currently trying to write C# client to communicate with this board. I have tried using Iot.Device.Arduino, SolidSolis.Arduino and ...
Cregennan's user avatar
1 vote
1 answer
33 views

Having issues with RS232 UART wiring to a physical PC connection

TL;DR: Attempting to connect UART2 on ESP32-WROOM to a physical PC RS232 results in odd behavior and ESP32 crashes or errors. Suspect electrical design problems. Wondering if I need special ...
Jason Rohm's user avatar
0 votes
4 answers
222 views

UART - Different results between logic analyzer and an Arduino

I would like to decode a serial communication. I have already found out how the protocol works. I can also send serial data with my logic analyzer and control the device this way. I would like to ...
user avatar
0 votes
1 answer
42 views

UCSR0B equivalent for ESP2866

I'm trying to convert an Arduino Uno program for use with the ESP2866. I've converted most of the program successfully, but there are a few lines I can't seem to figure out. For example, UCSR0B = ...
blk986's user avatar
  • 1
2 votes
1 answer
137 views

Best Solution to Parallel UART reads with Arduino Due

I have 4 Arduino boards pushing data over UART to 4 serial ports on the Arduino Due at 115200 baud rate. Data format - <Short URL>,<Number of the Node> Eg: px.ht/d/mCxG,1" Arduino Due ...
Hako's user avatar
  • 23
0 votes
0 answers
499 views

ESP32 S3 Same code works on Serial1 but NOT on Serial0 for RS485 module

I have designed a test board to understand ESP32-S3 working pins. I am using USB interface D+, D- for programing so Serial0 is free to use. This is my test circuit for testing an RS485 converter. For ...
mehmet's user avatar
  • 287
2 votes
1 answer
634 views

Is it possible to use UART0 freely when connecting ESP32 s3 via USB (D+, D-)?

I've designed a test PCB that utilizes an ESP32 S3 and testing pins. During program uploads, I use the USB interface over GPIO20 and GPIO19 as D+ and D-. Everything works fine in this configuration. ...
mehmet's user avatar
  • 287
0 votes
1 answer
7k views

A fatal error occurred: Could not open /dev/ttyUSB0, the port doesn't exist (UART bridge CP2102) [duplicate]

I can't upload my program to ESP32-CAM. It just keeps saying the port doesn't exist. But I can see it in /dev/ttyUSB0 (By the way, I'm on linux, Fedora) The UART bridge is CP2102 Silicon Labs. What I'...
44yu5h's user avatar
  • 149
2 votes
1 answer
355 views

Why are the UART ports not working on my Portenta breakout board?

I am using a Portenta Arduino Breakout Board that is connected to the Portenta H7 for a project I am working on. The project requires me to use three Adafruit Ultimate GPS sensors and connect each to ...
rcs13's user avatar
  • 21
-2 votes
3 answers
148 views

Using Soft UART - how include library

I want to use the soft serial communication example. But when I compile it, it sais: /home/xxx/Arduino/SoftwareSerialExample/aa/aa.ino:28:28: schwerwiegender Fehler: SoftwareSerial.h: Datei oder ...
jento's user avatar
  • 65
0 votes
1 answer
128 views

A peristaltic pump with pH sensor and web based output project

Good day to you all, I am asking here to confirm that my project is feasible. I have low knowledge of Arduino and other components. Please help me in achieving this project. I already have the ...
Johannes Remotigue's user avatar
1 vote
1 answer
181 views

How to optimize checking for specific string in a UART stream

I want to check for specific string (like "RecordStart") in a UART stream (115 200 baud 8N1) from a camera, to know when it is recording or not/if there is an SD. I am using an ESP32-WROOM-...
AyubowanPro's user avatar
2 votes
1 answer
539 views

Unable to upload sketch to Lolin S3 Pro (ESP32-S3)

I'm trying to upload a simple sketch to the new Wemos Lolin S3 Pro but unfortunately I can't seem to get it to work. I get the following error message: Connecting......................................
shyney's user avatar
  • 73
1 vote
0 answers
67 views

Arduino M0 pro(ATSAMD21G18A-U) to NEO-M8N-0-10 gps interface issue

i trying to interface ATSAMD21G18A-U to NEO-M8N-0-10 gps by using UART. my problem is here, i need to use pin 25(rx) and 26(tx) of arduino to interface. i have tried below. but getting error:C:\Users\...
Anantha Venu's user avatar
1 vote
1 answer
284 views

Arduino Mega Loopback Test with Several TX/RX Ports

I am trying to do a loopback test using an Arduino Mega. What I am looking to do is send a byte over TX and receive said byte back at RX and verify that the byte is unchanged. More or less I just have ...
mnlipps's user avatar
  • 11
0 votes
1 answer
150 views

Troubleshooting UART communication between nano 33 ble sense r2 and Adafruit Feather 32u4 with LoRa Radio Module

I've tried connecting the gnd's for both the boards and have connected rx to tx and vice versa in both the boards. I've powered both by batteries, and I'm trying to get sensor data from the nano, and ...
Y K's user avatar
  • 3
1 vote
2 answers
214 views

Why can't I upload a sketch by connecting directly to the serial pins?

I have an handful of fake arduino nanos. The work fine, but as an experiment, I tried to program them with a usb serial adapter (a real FTDI one). It doesn't work, but also, strangely, it seems to ...
Alex028502's user avatar
1 vote
0 answers
86 views

Communication with scale via rs232

I need help with an Arduino project. I want to read values from a TCS150 scale using the serial port. The hardware I have is an UNO R3 board and a MAX3232 level converter. I have connected: MAX3232 ...
Konrad Morawiec's user avatar
1 vote
0 answers
119 views

UART SERCOM on Pins 11-13 Arduino M0 (SAMD21)

I am a newb at coding. Does anyone have any code laying around or some time to write some to send data over UART SERCOM on pins 11/12/13 on a SAMD21 board like the Arduino M0? I am trying to send a ...
Charlie Nicholson's user avatar
-1 votes
1 answer
162 views

Reply from the SIM800l module is being cut short

I have a sim800l module connected to the Rpi pico hardware UART /* SIM800 RPi Pico 5v *External 2A 5v supply* GND GND VDD 3v3 TXD GP1 RXD GP0 */ ...
DrakeJest's user avatar
  • 229
0 votes
1 answer
165 views

How to reset flow control that prevents me from reading data from ESP8266?

I have a ESP8266 module (like this). I ran a command AT+UART_DEF=115200,8,1,0,3 as mentioned in documentation of ESP8266 SDK to change the baud rate of my ESP8266 module. It seems like by running this ...
g00dds's user avatar
  • 115
1 vote
1 answer
264 views

ESP8266 module doesn't respond to commands and sends garbage to serial on boot

I bought a ESP8266 module (like this). I connected the module like on the following scheme: I use a USB to TTL converter (cp2102) that I've connected to RX&TX pins of the module. It works. It ...
g00dds's user avatar
  • 115
1 vote
1 answer
109 views

Confusion about Oscope reading of Arduino Software Serial

I am trying to troubleshoot a Software Uart Connection from my Arduino Nano, and I do not understand this output. The setup is simple, I have a Software Serial connection on pins 2 and 3. I send 170, ...
user87406's user avatar
1 vote
1 answer
595 views

How to read and parse UART data from human presence radar sensor

I'm working on a project, and I purchased a 24 GHz "Human existence/presence" mm Wave sensor from micradar, the R24DVD1. The output of the module is serial data which varies in length and is ...
obatala's user avatar
  • 11
0 votes
1 answer
102 views

How does a callback function get revoke itself eg. Connect function get revoked when there is new connection

Further to my previous question here Can anyone help me understand how the callback function gets revoked itself? The connect function, disconnect function. BLE custom UUID code source here Another ...
Just doin Gods work's user avatar
-1 votes
1 answer
563 views

Trouble connecting barcode scanner to ESP32 devkit using UART - fails to connect over serial

I'm having trouble connecting a SparkFun 2D Barcode Scanner Breakout (effectively a DE2120) to a 30-pin ESP32 dev kit v1 (marked ESP-WROOM-32) and running the SerialScan sample application for this ...
Tom Hume's user avatar
-1 votes
2 answers
5k views

Send HEX number over serial

I have a RS232 device that I am able to communicate with using RealTerm on a windows PC. The device is expecting a hex string like AA BB 03 01 03 EE How would I send the equivalent string from an ...
spuder's user avatar
  • 111
1 vote
0 answers
205 views

Can read Serial but cannot write - serial communication Arduino Mega 2560 clone

I am having issues using the following USB to UART module. I am using an Arduino 2560 clone. I have two connections with the Arduino: COM7 which consists of the given module, connected to the main ...
BurgerMan's user avatar
1 vote
0 answers
2k views

SIM800L not responding to AT commands

I am using SIM800L module the module. I am new to GSM modules, so I've searched for the basic to use the GSM with the Arduino. this is my code. #include <SoftwareSerial.h> SoftwareSerial ...
Mostafa Radwan's user avatar
1 vote
1 answer
2k views

CH340G based USB to UART adapter - Pinouts - Can't find schematics

This is the board I will be referring to. There are different variations of it (with built in buttons etc.) but they all seem to be based on the CH340 chip. My problem is, that I do not know what the ...
GeorgeWTrump's user avatar
1 vote
1 answer
355 views

Weird SoftwareSerial behaviour with Arduino nano when multiple SoftwareSerial objects are configured

So I have been stuck with this for quite some days now and am really unable to put my finger on what's wrong here. Any help would be great. Try not to list down the disadvantages of SoftwareSerial, I ...
dravit's user avatar
  • 111
2 votes
2 answers
163 views

Trying to understand the bottleneck of sensor sampling rate

Lets say I have a sensor connected to Arduino Uno Rev3's I2C Bus. I am reading the sensor output and using Serial.print() to send the sensor reading back to a my laptop. I am trying to understand the ...
Quazi Irfan's user avatar
1 vote
1 answer
471 views

Using arduino framework how many instances of SoftwareSerial can use simultaneously with esp32

Ussing popular library https://github.com/plerup/espsoftwareserial/ can I have multiple softwareSerial ports (for example 6 ports). I’m the readme say “ several instances can be active at the same ...
Diego Serrano's user avatar
1 vote
0 answers
606 views

Arduino Nano and ESP32 Read Different Values over Serial

I am trying to use the Neato xv11 lidar with an ESP32. This should output packets of 22 bytes with the starting byte 0xFA. The communication is 8N1 and the baud rate is 115200. When I connect the ...
Seth A's user avatar
  • 11
1 vote
2 answers
1k views

Serial communication with 2 Arduinos and one optocoupler

I just started working with Arduinos on Tinkercad in a school assignment and have non preexisting electrical knowledge. Tried to read up on the subject and I think I've gotten some of the facts ...
Funtad's user avatar
  • 11
-1 votes
1 answer
79 views

UART connected device communication only works one way

As the title implies, I have two Arduino devices (Uno and Mega) connected to each other over UART (the Mega is hardware UART, the Uno is software UART); I need the Mega to send a command to the Uno, ...
nerdguy's user avatar
  • 63
1 vote
0 answers
51 views

SoftwareSerial fails to receive on Nano but works with Uno [duplicate]

I have built a circuit board that includes a BLE module and an oxygen sensor that has a UART. Writing arbitrary data to the BLE works fine, but for some reason every configuration of SoftwareSerial I ...
Ten Bitcomb's user avatar
0 votes
2 answers
716 views

Serial comm UART1 works on Arduino but makes ESP32 continuously reboot

This comm sketch simply read incoming bytes from the UART 1 where a device is attached. It works normally on a real Arduino device. But on ESP32, it makes it continuously reboot with the following ...
Stéphane de Luca's user avatar
2 votes
1 answer
145 views

So many missed bytes with serial comm

I have a setup with serial comm from Raspberry Pi to Arduino. It's communicating at baud 9600 on both devices, and from Raspberry Pi 3b+ GPIO-14,UART0,TX0 to Arduino Nano RX0. There's a level shifter ...
errolflynn's user avatar
4 votes
4 answers
2k views

Bi-directional UART communication on single data wire, possible?

The nano is inside of the house, and the pro mini is outside of the house. I want to send/receive text between them. The communication will be always nano sending text to mini, and then mini sending ...
Damn Vegetables's user avatar
2 votes
0 answers
779 views

How to know if GPS module is dead?

I can't make function the NEO-6M-0-001 GPS module, this is the third one that already bought! I'm using an ATmega2560 as microcontroller for obtaining the data from the module and seems that the ...
Oscar Espinosa's user avatar
1 vote
0 answers
100 views

configuring characteristics to communicate data on the Arduino bluetooth low enegy module

I have the HM-10 Arduino BLE module. I am also building an app to send and read characteristics on the BLE module. On the Arduino BLE side of things though, how do I set up which characteristic ...
Ahmed Anwer's user avatar
1 vote
0 answers
64 views

Prevent timeout while exchange data between two stm32

I am trying to exchange data (str data) between two STM32 throughout Lora connectivity. Both STM32 has a lora module and the connection between them is working fine. Based on two functions: ...
falcon_977's user avatar
2 votes
0 answers
47 views

receives 0 0 instead of "hello"

I receive the following: 09:27:10.618 -> 0 0 09:27:12.589 -> 0 0 09:27:14.616 -> 0 0 09:27:16.622 -> 0 0 09:27:18.576 -> 0 0 09:27:20.577 -> 0 0 09:27:22.583 -> 0 0 09:27:...
Robin Svensson's user avatar
1 vote
1 answer
91 views

Need HELP!! Serial communication has a very "Strange Problem"

I am working on building a serial command receiver. The idea is came from the boot loader. However, I got a very strange problem that I have no idea what could cause it. As the first screenshot show, ...
Lu Chih Yuan's user avatar
1 vote
0 answers
34 views

Receiving code between atmega328P (C) and Feather m0 (Arduino)

I've tried to create a receiver code for receiving my data (really only want the ac/gy values and nothing else) and use the following main code for sending via C programming: https://github.com/...
Robin Svensson's user avatar
1 vote
0 answers
309 views

Send Multiple Sensors Data into single Packet in Arduino

I have two sensors data in packet but now I want to send these two sensors data into single packet in which these two sensors data are gathered. I mean I want to have a packet in which I have oxygen, ...
Namra Noor's user avatar
1 vote
1 answer
110 views

Arduino Mega reading from external sensor Issue

I have one external sensor and I want it to be connected with Arduino. The sensor came up with a usb cable and the pin out diagram is also given in the data sheet . When I simply connect the the cabe ...
Lawliet's user avatar
  • 183
1 vote
1 answer
378 views

Arduino , python , pyfirmata , standard firmata

Is there a way to change arduino analog reference to EXTERNAL IN PYTHON using pyfirmata or any other library ? Necessary Links : https://www.arduino.cc/reference/en/language/functions/analog-io/...
Shahan hasan's user avatar

1
2 3 4 5