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
1answer
22 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 ...
0
votes
1answer
30 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/...
0
votes
2answers
25 views

ESP8266: Interfacing MAX485 TTL-to-RS485 on serial port

I am using the ESP8266 NODEMCU. I am aware that the CH341 on the NodeMCU is bridged to the serial pins GPIO3(Rx) and GPIO1(Tx). Hence, any data send on Rx and Tx is also visible on the serial monitor. ...
1
vote
1answer
90 views

Problems with Hardware Serial (UART) on Nano 33 BLE Sense

my new Nano 33 BLE Sense arrived today. I'm working on a project to send data from the the Nano via an Xbee S2C module to a receiver module connected to a Nano 33 IoT. I had the project working ...
1
vote
0answers
28 views

How can I just wait to receive a UART message on my system? [closed]

I wrote a code for making my steppers and servo motors work to be specific 5 stepper motors and 3 servo motors with some sensors too. Now I need to receive a feedback from my arduino mega after the ...
2
votes
1answer
56 views

When it comes to UART to RS485 communication, what is the difference between the 'MAX485' and the 'HW-0519' module?

I recently found this model with the ID 'HW-0519' on it. It can be found online (HW-0519 in Aliexpress) and is sold for the purpose of converting UART to RS485 communication using Arduino devices. The ...
0
votes
0answers
27 views

HC-05 bluetooth module short range

I have started learning about arduino and just bought a bluetooth module, HC-05. From where i bought, it says it has range of approx.10 meters. I made hc-05 connection with arduino in below described ...
1
vote
0answers
21 views

Trouble using bluetooth module with the ESP32s2 feather board

I am trying to use an ESP32-S2 feather board with a separate bluetooth module, the Adafruit BLuefruit LE UART Friend. I previously used this bluetooth module with the Feather M0 Adalogger through UART ...
1
vote
0answers
22 views

Multiple arduino slaves with one master computer that sends instructions for the actuators to work

I am in the middle of an automation project and suddenly after completing one stage of my assembly, I now need to scale it. So my computer which until now was sending data to only one arduino UNO can ...
0
votes
1answer
43 views

UART between arduino UNO and pc via USB not in sync

I connected my arduino uno to my system and then using serial tried writing and reading data but there is a problem which I found when I tried giving arduino crafted messages. My arduino code is ...
1
vote
0answers
28 views

How can I use GPIO pins on an esp12e UART?

I've bought an esp12e UART that unfortunately had some issues, but I was able to fix them. This is how I connected it to the arduino. With this setup, I was able to host a simple web server and it ...
1
vote
0answers
35 views

How can I start using the esp12e UART?

I ordered an esp12e UART. So how can I start using it? Since I have seen a lot of articles online, but all of them are complicated for me. I'm pretty new to the arduino world, but I have some ...
2
votes
1answer
42 views

ESP send string to Arduino

I'm trying to send a string from an ESP32 to an Arduino. I'm using a level shifter, where the Uno is now the Mega (since I couldn't get the Uno to work). RX0 is now RX1, connected to UART2 of ESP32. /...
3
votes
2answers
869 views

How to upload code without closing puTTY

My question is quite simple: can you, somehow, upload Arduino code without closing puTTY's serial console? I hate having to close the program to open it again for reading the incoming information.
-1
votes
1answer
62 views

Set TX, RX to LOW before sleeping, re-enable uart after waking up

I have an ATmega1284p and I need to have the TXD0 (i.e. pin 9) set to LOW, before going to sleep. After waking up, I want to restore UART0 communication to work as expected. Here is my code: Serial....
3
votes
1answer
352 views

I2C communication between Arduino Uno and Nodemcu32-s (ESP32)

I want to send data between an ESP-32 (NODEMCU-32S) and an Arduino Uno but I haven't found any source on how to do that, so I tried this code: ESP-32 code: #include <Wire.h> void setup() { ...
2
votes
2answers
294 views

Best buffering practice for continuous SD card writing

In a simplified example, I have a microcontroller functioning as a data acquisition device - sensor data is received over UART, and then saved to an SD card. This received data is in the form of a 12 ...
1
vote
1answer
32 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
41 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
24 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
143 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
101 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
249 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
207 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
46 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
128 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
277 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
49 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
43 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 ...
1
vote
2answers
88 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
38 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. ...
1
vote
0answers
439 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
67 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
33 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
213 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
146 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 ...
1
vote
2answers
155 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
148 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() ...
1
vote
0answers
44 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 ...
1
vote
0answers
81 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 ...
1
vote
1answer
670 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
37 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 ...
1
vote
0answers
27 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?
1
vote
0answers
561 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 ...
1
vote
0answers
126 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
2k 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
126 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
98 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
102 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
55 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 ...

1
2 3 4 5