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
votes
1answer
25 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
0answers
11 views

Can I use an UART RS485 board with DMX simple library?

I want to use DMX512, and found a library DmxSimple, which uses a single (non UART) GPIO pin as output (see DmxSimple.wiki. I currently use a TTL RS485 board, which does not have any TVS/polyfused ...
0
votes
1answer
48 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 ...
0
votes
0answers
39 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
67 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
37 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
61 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); ...
0
votes
1answer
41 views

Nodemcu ESP12-E (ESP8266), Can I reprogramming when the UART pins are defined as GPIO?

I wonder if there may be any problems using the pins that the UART are using as GPIOs, if now I want to be able to reprogram the circuit? (Of course I will detach the ESP12-E from the mainboard before ...
2
votes
0answers
72 views

Can't connect to my ESP32 board via serial

I'm completely new to electronics work. Today I've received the ESP32 board that I ordered. (It's a WROOM-32.) I followed the instructions here. I connected the board to my computer via USB and I ...
0
votes
0answers
29 views

Reading incoming/outgoing bytes from SIM card / ATR

I am trying to read data from a two-way I/O uart pin of a sim card on Arduino. It is attached to the GPRS Arduino shield (with SIM900 modem). I believe I have a baud rate issue. I am supposed to ...
0
votes
1answer
29 views

Which pins are represented by these constants from ABR library?

The following code comes from AtTiny serial library that I want to use: #include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> // change these to use another pin #...
0
votes
0answers
166 views

Using 2 serial ports on NodeMCU

I am using a NodeMCU ESP 12E board which will be programmed using the Arduino IDE. I intend to use it to send GPS data to the Blynk app server. I also want to interface a Bluetooth module HC-05 to the ...
0
votes
1answer
350 views

How to use Serial.setTimeout()

I am just playing with the UART interface of my board to learn about how it works. Since I have only one board, I send data out just to receive them by my own board, which is working so far. Now I ...
0
votes
0answers
19 views

PLC with Arduino UNO [duplicate]

In my current project I have to communicate with 10 different devices with PLC. PLC is the master. When input comes from PLC to a device, the Arduino controller through RS485, I want to check the ...
0
votes
1answer
44 views

Program Arduino via UART from ESP8266 SPIFFS

I have built a custom board that has an ATmega328p connected to an ESP8266 module via UART. I am currently programming the ATmega328p using a USBtiny programmer via an SPI header. The ESP8266 module ...
1
vote
1answer
225 views

How to chose softserial library use on Arduino project?

I want to do a project that has multiple Arduino communication through UART, that project project one of limit is using Arduino Nano (small and cheap). I need to set 4 serial port instance on Nano to ...
0
votes
1answer
46 views

Sending data to UART using Atmel Studio with Attiny84

I want to send data to TFDI. It can be hello world or any value of variable. But I can't do. I haven't found example code on the internet. Some examples doesn't work. I am using Atmel Studio.
1
vote
1answer
53 views

Wait between UART frames

I have to reproduce a signal (of 6 UART frames) which have 950 µs delay between each of the frames. Than, a delay of 37ms at the end of those frames. Everything going right except the delay between ...
0
votes
2answers
44 views

Accessing multiplexed I2C and UART pins of STM32F103 in arduino IDE

I want to access both of the multiplexed I2C and UART pins in the same program. I am programming in Arduino IDE.Can anyone please tell me how to access same pins for different functionalities?
0
votes
1answer
43 views

toggling Rx, Tx pins after Serial.begin

What should one expect when the following program runs on Arduino Uno? void setup() { Serial.begin(9600); DDRD |= 0b11; } void loop() { PORTD |= 0b11; delay(100); Serial.print("...
2
votes
3answers
220 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
202 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
1answer
205 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
94 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
486 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
96 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
131 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
800 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
961 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
238 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
67 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
105 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
107 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
2k 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
90 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
1k 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
2k 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
3k 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 ...
3
votes
1answer
263 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
270 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
1answer
1k 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
478 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
246 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
634 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
984 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
975 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
66 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 ...
3
votes
3answers
253 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
165 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 / (...
2
votes
1answer
7k 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,...