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
0answers
13 views

Serial communication between nodemcu and Arduino Uno

For the last days, I am trying to establish serial communication between nodemcu and Arduino Uno but I failed to do this. Currently, I am working on a Home Automation project. I receive data from ...
1
vote
1answer
34 views

Is it possible my ATMega is burnt due to bad wiring?

While working on a project I tried sending data from my Arduino NANO to ATMega64 placed on AREXX Robot arm PCB via TXD/RXD. After plugging in VCC, GND, TXD and RXD to UART socket it didn't work so I ...
1
vote
0answers
22 views

Is it possible to configure uboot without the “Yun Serial Terminal” sketch by using the hardware serial on pins 0 and 1 instead?

Trying to rescue a Yun with the 1.5.3 image. It's not possible to upload the required "Yun Serial Terminal" sketch because the device hangs at U-Boot (hence the rescue attempt). Using putty ...
1
vote
1answer
118 views

Serial.print skips or hangs inside a “if” statement. Trying to call a function VIA serial uart

I have two microcontrollers talking to each other using serial UART pins. Now for some reason which I can not figure out why... doing a Serial.print() does not work in an "if" statement. And ...
1
vote
1answer
75 views

Standalone ATmega328P stops responding when RX is connected

I have followed this demo and have set up a standalone ATmega328P being programmed from a Raspberry Pi via the SPI lines. I have also added a 16 MHz crystal with 22 pF capacitors, as well as I have ...
2
votes
2answers
206 views

Am I at the limit of UART transmission time?

I'm currently using an STM32F103C8 (With an arduino core) to read 4 sensors at 1kHz, then send that data via UART (at 115200 baud) to another device. Each sensor returns a float, I also include an ...
0
votes
1answer
42 views

Using TX/RX serial pins to communicate over USB

I'm using an Arduino Nano with an Atmega 328p. I would like to attach and use a different USB port instead of the builtin one for supplying power, serial debugging and uploading code. Currently my ...
0
votes
0answers
22 views

Use serial communication on Sparkfun SAMD21 mini board

I am working on an economic module to be able to use serial communication with the Sparkfun SAMD21 mini development card. And I have one, the DTR (of my CH340G) do I have to connect it to the reset of ...
1
vote
2answers
78 views

Why does controlling power with a transistor interfere with MHZ19B's serial communication?

I've been trying to turn off an MHZ19B (datasheet and teardown photos: revspace.nl/MH-Z19B). I've used an Arduino, NPN, PNP transistors and mosfets as well as the diagram below for connecting the ...
1
vote
1answer
38 views

How to upload a sketch to an atmega328 via FTDI FT232RL UART and Arduino IDE?

I have a sparkfun AVR Pocket Programmer and have burned the bootloader and uploaded programs using "upload using programmer" via USBtinyISP. It works fantastic. I have a sparkfun FTDI Basic (...
0
votes
1answer
32 views

What NRF24L01 module is this?

I received my NRF24L01 Module today but I'm having a hard time finding any resources about this particular combination of modules! https://imgur.com/a/HrzpvdR I tried searching up the v200 1812A but ...
2
votes
1answer
29 views

Reset a UART connection on a Due

I have a system that involves an Arduino Due connected to a Raspi 4 through UART in which the Due sends a heartbeat signal over UART for the pi to receive and send back as confirmation. One of the ...
0
votes
1answer
46 views

Can we use UART COMMUNICATION with MCP23017?

I am using MCP23017 as a GPIO expander with Arduino in my project. I have too many serial devices and no pins left on Arduino for UART communication. I am wondering if I can use this MCP23017 GPIO ...
0
votes
1answer
32 views

NodeMCU ESP8266

I am doing a project and using NodeMCU ESP8266. My project includes sensors for UART, I2C and 4 interrupts. I need to read the data from these sensors and get these data via microUSB in real time. ...
0
votes
0answers
118 views

I need an example of how to send AT COMMANDS to SIm7000E GPS+LTE module from ESP32 and reading those response in Serial monitor

Actually I need to make HTTPS post request using SIM7000 and ESP32 but the available libraries don't have a function for HTTPS post request, I wanna make this request using AT Commands. I need a ...
0
votes
1answer
48 views

Barcode not logged in SD card UART

After trying for a good month.. looking like a Newbie I have not managed to log the result of barcode scanner , using rtc SD module and a waveshare scanner connected via UART to ports 2 and 3 from the ...
0
votes
0answers
27 views

arduino due: how to read more than one byte at a time in serial uart with tfmini liar sensor

I'm trying read tfmini lidar sensor from arduino due board with uart. Here i can read only one byte at a time using serail.read() method but i need to read 9 byte at a time and store it in array. ...
0
votes
1answer
74 views

ESP01 and Arduino - Serial port confusion

I'm trying to understand how to think about ESP01 devices and arduino connectivity I purchased one of the USB programmers from Ebay to program the ESP01 - this works nicely, I can see the ESP doing ...
2
votes
1answer
73 views

Arduino UARTS Auto addressing slaves

i'm using this serial topology to connect my Act ATmega328p (Arduino) slaves together to a master ESP32. They are in total 10 ATmega328p slaves and one master: With this type of wiring i'm sure that ...
0
votes
2answers
70 views

Hardware/software serial for HC-05

can anyone please tell me the whole difference between hardware and software serial for the HC-05. I read UART,USB cable, serial and I was like really confused so what is the difference and advantages ...
0
votes
1answer
71 views

Serial Read Data Loss With Arduino Nano

I am trying to use Serial reading from a python serial code (which is running on my Jetson Nano) in my project, but in some loop in my code, my data is receiving wrong. I use Serial.readBytesUntil() ...
0
votes
0answers
39 views

Can you program an ESP32 with an Arduino?

I've done it with an ESP-8266 but can't find any articles on how to do it with an ESP-32. I'm working with an ESP-32 on my own PCB, not a dev board. I exposed: 3V3 GND EN TX RX IO0 I'm pretty sure I ...
0
votes
0answers
48 views

Subscribing to Bluefruit LE Friend with ArduinoBLE not working

I've been using an Arduino Nano 33 BLE to communicate with my PC over the BlueFruit LE Friend's UART characteristic. Using the default ArduinoBLE library, I'm able to connect to the BlueFruit from the ...
0
votes
1answer
269 views

NodeMCU v2 with MH-Z19B CO2 sensor UART read problem

I'm trying to read data from MH-Z19B sensor to NodeMCU v2 board with a simple circuit like this. Some key points, which could be not that obvious from picture: - sensor has separate power supply of ...
-1
votes
1answer
24 views

Problem communicating with GSM module which is a Fona 3G from adafruit

My issue is fairly simple to describe but I have no idea what the problem could be. So I got my FONA 3G and immediately after taking it out of the box, I connected the battery and I wired up my FTDI ...
0
votes
0answers
19 views

Does MFRC522 module read all 13.56 MHz RFID tags?

Hello everyone. Does MFRC522 module read all 13.56 MHz RFID tags? Or there are different types of the 13.56 MHz tags that the MFRC522 module reads only one type of them?
0
votes
0answers
287 views

How can i read and write the data from a Delta plc-s series through Arduino UNO?

I am trying to communicate PLC with arduino through rs232 as well rs 485. But, I am not able to read and write data. I can observe the data in PLC through ladder logic but not in arduino. I am trying ...
0
votes
0answers
45 views

Receive SMS using Arduino Nano and Quectel EC25

I'm trying to use an Arduino Nano to communicate with a Quectel EC25 module from this Raspberry Pi 4G HAT. I'm using Arduino's pins 8 and 7 to communicate with RX and TX from the Quectel module. I'm ...
0
votes
2answers
722 views

Binary to decimal using bitwise operators

I am trying to convert some binary data to decimal numbers. I succeeded to convert binary to hex, but now I want to do the same with binary to decimal. I want to use bitwise operators and NO array. ...
-2
votes
1answer
76 views

Will a pull up resistor help the UART transmission accuracy on Arduino nano?

On A post from Arduino forum , someone mentioned that a pull up resistor over RX/TX pin could help the reliably of UART communication. Is that really the case for nano and uno board?
0
votes
1answer
71 views

How to use any module that has no library for arduino?

I am 2 years old in this Arduino world. I am currently working on a project where I am about to make use of a fingerprint sensor. Now my question is that could we be able to make use of a sensor that ...
0
votes
2answers
67 views

Is Arduino Mega useing one buffer or multiple buffers?

So Arduino Mega has Serial, Serial1, Serial2, Serial3. However, does those Serial lines use the same buffer? or four independent ones? i.e. are they truly receive single independently, or actually ...
0
votes
1answer
47 views

Super fast UART transimission return error

The code was based on Fahad Mirza's very helpful example here Send structure through Serial The Sender's code now became struct Gyro_data_structure { char command_name[5]; float gyro_X; float ...
0
votes
2answers
492 views

Send structure through Serial

Suppose that one defined a data structure and wanted to send it through serial. struct Gyro_data_structure { char command_name[5]; float gyro_X; float gyro_Y; float gyro_Z; }; ...
1
vote
4answers
416 views

If Arduino connected to computer and opened up Serial Monitor, will Tx and Rx pin still be working?

Suppose one connected two of the Arduino Uno boards through Rx and Tx pins. Then, if one or both of the Arduino boards were connected to computer, and possibly opened up Serial Monitors, will Tx and ...
0
votes
1answer
101 views

How to set a time out like Serial.setTimeout() for Serial.read()?

I read a comment form here: "Serial.setTimeout() sets the maximum milliseconds to wait for serial data when using Serial.readBytesUntil(), Serial.readBytes(), Serial.parseInt() or Serial.parseFloat()...
1
vote
1answer
918 views

ESP32 Hardware Serial Flow control and full espressif/arduino-esp32 support

I have a similar issue. I want to use the ESP32 with RS485. I have used the Arduino and this works well assigning pins, but it seems not to allow full use of the UART. I see the new uarts in the ...
0
votes
0answers
59 views

Monitor serial0 while code is being uploaded

I'm trying to upload the sketch on a Mega 2560 via the serial port 0 using another microcontroller. To better undestand the process, I decided to first observe what avrdude is doing while it is ...
0
votes
2answers
148 views

UART communication - Serial is always empty

I have a payment terminal which uses UART (or simply speaking Rx, Tx, Gnd pins) and I have an Android tablet app which is connected to the terminal using USB to DB9 adapter based on PL2303 chip. The ...
3
votes
1answer
38 views

Arduino ESP8266 communication

I saw two peculiar things while googling this subjects. Sometimes Tx and Rx are connected directly despite the fact, that it works on different voltages, sometimes resistor dividor is used, sometimes ...
1
vote
1answer
590 views

HLW8032 UART sends random data ( Registers Overflow often)

I designed my own version of smart socket just like the Sonoff with power metering chip HLW8032. And when I read the data in ESP-12F the data doesn't have a fixed format. To troubleshoot the issue, I ...
0
votes
1answer
54 views

Understanding datasheet of a HCHO gas sensor

I have a gas sensor whose datasheet is attached: DS-HCHO Now it says that UART communication is needed (P2P) where it (module) waits for Data Frame before tx the data frame to host which I need. ...
1
vote
1answer
30 views

Can I disable the TX pin by setting its mode to INPUT while still receiving data on the RX pin of a UART?

I'm using the ATmega328PB in a personal project with MiniCore. My board streams data in on the RX pin from another microcontroller, but my board also has a DIP switch connected to the TX pin, that's ...
0
votes
1answer
99 views

Use Arduino as transmitter and receiver UART

I know UART and serial communication model and data frame. But I want to ask about something else, when I searched in internet just found examples of one Arduino as (receiver) and another Arduino as (...
-2
votes
2answers
168 views

Arduino Mega reading same information that it's sending out via serial

So I have an Arduino Mega and I'm attempting serial communication with another device, and I ran into this weird issue. Let's say I use Serial1.write to send out hex A-F. If I read on that same port (...
0
votes
1answer
378 views

atmega328: external crystal oscillator and uart

I need an clearity about external crystal oscilator. I got communication between esp32 and atmega8/88/328 processor, I use atmega wih internal oscillator and looks like it have problem with serial ...
1
vote
0answers
60 views

MEGA2560 only starts program after pressing RESET button multiple times

I am working on a program where I am controlling an MP3 player by using UART between my MEGA2560 and the MP3 player. The MEGA2560 sends serial commands to the MP3 player when external interrupts are ...
0
votes
0answers
125 views

how to name master and slave with UART and Serial event

I am trying to implement some small program using below code, now this code works fine and I'm getting data to the slave. But I have more than one slave, so now I'm not sure how to send the Address of ...
0
votes
1answer
265 views

Arduino Hardware serial pins with RS485

I tried asking a question in my earlier post - SerialEvent with RS485 communication it helped me understand Hardware serial and Software serial but i had few more questions for which i started this ...
0
votes
1answer
362 views

I want my arduino mega to read from all 4 serial ports at the same time, running sequentially through each one

I currently have the code running through Serial1, which works exactly as I want it to: int RFIDResetPin = 13; void setup() { Serial.begin(9600); Serial1.begin(9600); Serial2.begin(9600); ...