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
1answer
19 views
How to program an nRFL01 RF module that is connected to a pc via a USB to UART/TTL adapter?
In a few of my previous questions I was told that the nRF24L01 RF Module can be connected to a pc using a USB to UART/TTL adapter. After a bit of research I understand that one way to use it is to ...
1
vote
0answers
64 views
ESP8266 Programming using ESP-01 to USB converter
I am new to ESP8266. To ease out the task of programming esp8266, I bought this: ESP-01 ESP8266 Programmer CH340G Chip USB WiFi Wireless UART GPIO0 Adapter.
Configured Arduino Interface to run AT ...
3
votes
1answer
29 views
Can LilyPad Main Board interface with a sensor via UART?
Is the LilyPad Arduino Main Board physically capable of interfacing with, let's say, a LeddarTech LeddarOne Optical Rangefinder, which has a 3.3v UART interface? I understand that the LilyPad has a ...
0
votes
0answers
25 views
Esp8266 gpio pins problem
I programmed my esp8266-01 in arduino ide. I uploaded that code:
void setup() {
pinMode(2,OUTPUT);
}
void loop() {
digitalWrite(2,HIGH);
delay(500);
digitalWrite(2,LOW);
delay(...
2
votes
0answers
48 views
Serial Communication Between 3 Arduinos Doesn't Work (Daisy-Chain)
In my project, I have to send a string from one arduino to a second arduino, and make it send the same string to a third arduino. I used UART and SoftwareSerial library, and connected the arduinos ...
0
votes
0answers
37 views
how to Clear up UART FIFO to reduce printing time
A FIFO (First In First Out) is a UART buffer that forces each Byte of your serial communication to be passed on in the order received. To reduce time consumption, too much information printing should ...
0
votes
1answer
36 views
Arduino 2560 as an Interface to 4 Serial Hardwares
I am writing a software that runs on the PC that has a Arduino 2560 connected to it via USB. This PC needs to communicate with multiple devices through RS232.
Is it possible to use the Arduino's 4 ...
0
votes
2answers
75 views
Using two software serial - two UART
I have ATMega328p chip, and I have HC-06 on pin A5, A4 (RX, TX) and I have another device on pin 10, 9 (RX,TX).
I want to be able to send some command on BT via Bluetooth Terminal and pass raw (...
0
votes
1answer
224 views
Sending data using Bluetooth SPP-C Module without a Breakout-Board
tl;dr
I can't send data using the raw SPP-C Bluetooth module without a breakout board.
The communication via UART works fine as I am able to issue AT commands and get proper responses.
But when ...
2
votes
0answers
58 views
OBD2 VIN issue - Reading multiline response [closed]
I have this AllPro OBD adapter and OBD2 simulator hooked up. And so far everything works great, except for the getting VIN.
When I run 0902\r command to get VIN number, I just get one raw as response....
0
votes
0answers
77 views
OBD2 Library for Arduino and DTC codes
I was experimenting little bit with this library, but I can't find any example how to read DTC codes with this?
Should I just use this plain sendCommand and send 03\r as command, and than convert ...
0
votes
1answer
60 views
Arduino OBD library and software serial library
Can I use Arduino OBD library with "custom" software serial or it needs to be used with hardware UART only? For example if I have D5 and D6 pin as RX and TX in my code hooked on OBD board, how do I ...
1
vote
1answer
122 views
ESP8266 not able to communicate over serial connection with arduino UNO
This is the code I uploaded in Arduino UNO:
#include<SoftwareSerial.h>
SoftwareSerial ESP(2,3); // RX, TX
//ESP RX-->3(UNO) TX-->2(UNO)
void setup() {
// Open serial communications and ...
0
votes
2answers
473 views
Is it possible to receive a 9 bit protocol on the Arduino Uno with Arduino?
I want send and receive a 9 bit async-serial protocol with 4800 baud on my Arduino Uno, i have read on the specification from the ATmega328P that the uart can do that.
My aim is that when my Uart ...
0
votes
1answer
48 views
Accepting strings and integers via UART
My intention is to write a code that asks a user to enter the name and then the age. The code should then simply display the persons name and age. To do that, I have written a simple code. I find it ...
1
vote
0answers
47 views
Cannot connect device with nRF8001 Bluetooth LE to Windows 10 PC
I've built a device using an IMUduino board, which is supposed to be similar to Arduino Leonardo board with a nRF8001 bluetooth. I was able to connect my device to an Android phone using the nRF UART ...
-1
votes
1answer
111 views
How to import data from SDcard on Arduino to the computer using Arduino serial/COM port?
I have Arduino UNO with Adaruit wifi shield. I store some data on the sd card successfully and now I need to import that data on to the computer.
I am sending some token, say "1", to the UART port of ...
0
votes
0answers
66 views
ATMEGA328P 16Mhz External Clock serial bitrate mismatch (corrupt data)
I've been trying to get an ATMEGA328P communicating via a FTDI breakout board, and have run into something I can't seem to find much information about.
When I have the ATMEGA running on its internal ...
1
vote
0answers
157 views
ESP8266 pin multiplexing possible?
I am trying to use Adafruit's ESP8266 implementation for a project of mine, which makes use of a bunch of sensors. The problem I have is the limited amount of pins available from ESP8266:
2 pins are ...
2
votes
1answer
492 views
Arduino Hardware serial library with rts/cts flow control support
Does there exist (any user developed etc.) version of the Hardware UART serial library that has support for RTS/CTS based flow control?
More interested in the Tx side (Arduino sends data, while the ...
1
vote
1answer
131 views
Casting a struct member between uint8_t and char, with regard to serial transfer
Im simply trying to pass my payload to another device that has the same architecture and struct. I'm using UART to transfer, and modeling the protocol from EasyTransfer.
When I call Serial.print((...
1
vote
3answers
90 views
Transfer a struct's data to an external struct via serial?
Using two boards of similar architecture I would like to send the contents of a struct from the sending board to the receiving board. I am using UART to transfer.
My plan was to populate an array ...
3
votes
3answers
374 views
How to define a SoftwareSerial object inside a class?
I have a header file called Rhino.h with class Rhino. I want to pass RX and TX pin numbers to this object class, and with this, define a SoftwareSerial object to be used inside the Rhino class. The ...
0
votes
0answers
320 views
Arduino Uno and Voice Recognition Module V3
I'm working on a project that uses the voice recognition module V3 and an Arduino Uno to output a 5V signal that will run a solid state relay. I trained the V3 using AccessPort successfully with the ...
1
vote
2answers
245 views
Controlling HDMI Switch via RS232/UART
Problem:
I have an HDMI switch that is controllable via RS232
Scenario 1:
Setup: PC connected to HDMI switch using USB -> serial adapter
Test: Opening PuTTY on COM port and sending command "sw ...
7
votes
0answers
121 views
Mysterious RX pulses on UART connect on OS X Arduino Due
Arduino IDE 1.6.8, Arduino Due, Mac OS 10.11.3
I am seeing eight mysterious pulses on the RX line when I connect to the serial port using multiple client libraries (Python, JavaScript as well as the ...
3
votes
1answer
281 views
Arduino serial hex decimal values code
I'm trying to send heximal values from arduino to PZEM-04 power module (it shows voltage, current and ect.) over serial communication in heximal format and get values in decimal format for further ...
1
vote
1answer
57 views
Problem with sending DMX
I want to send DMX with my Arduino Mega 2560. I'm using the IDE 1.6.7
I tried the AVR -> DMX source code from Ulrich Radig and also the layout for the RS-485 transmission.
I modified the code to fit ...
3
votes
2answers
135 views
Error when using USART with Arduino Mega 2560
I use the Arduino IDE 1.6.9
What I want is a DMX Receiver which receives 1 channel and displays it on the serial monitor. When I try to compile the code, I get the following error:
C:\Users\Helyx\...
3
votes
3answers
125 views
UART error can not compile on Arduino Yun (ATmega32u4)
This code is used for communication between the Glediator interface and a NeoPixel Matrix, but I receive an error saying 'UCSR0A' is not defined within the scope.
UCSR0A |= (1<<U2X0); ...
2
votes
1answer
41 views
In UART, what mechanism sets the “new data received” flag back to 0?
I was reading documentation on UART on AVR and it looks simple: when a flag (bit RXC0 of register UCSR0A) is set to 1, it means the micro controller has new data for you, and you read this from ...
0
votes
1answer
150 views
How to connect HC-05 to an arduino Galileo?
I connected a logic analyzer on digital pins 0 and 1 (Rx and Tx). Using Serial. functions on Galileo and the integrated terminal on Arduino IDE, I noticed this UART port was not used when chars were ...
0
votes
1answer
40 views
ATTINYx5 usi for uart?
Can the ATTINYx5 use its universal serial interface for a better UART than the Sofware Serial library alone? If so, is there a library or tutorial for this?
0
votes
1answer
92 views
Cannot control servos through 32-servo-controller on Aurduino Duamilanove
I have servo (TowerPro sg90) connected to 32 servo controller (this one) through UART interface (RX-TX, GND-GND).
Seller provide documentation how to connect and control my servos, but it isn't work. ...
2
votes
2answers
134 views
UART Software Serial - Syncing two sensors to make a tx and rx beacon
Problem
I've been trying to a create a receiver and transmitter beacon for a following robot, but have not been able to sync my two SRF02s to one another.
Any advice?
Code
#include <...
0
votes
0answers
82 views
UART Software.serial syncing two sensors UPDATED
Code 1
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10,11); // RX, TX
void SendCmd(unsigned char address,unsigned char cmd)
{
mySerial.write(address);//set the address of SRF02(...
0
votes
0answers
62 views
UART Serial.write Distance Between Two SRF-02
I have a code I found that enables me to get a ranging from one ultrasonic SRF-02.
Original Code
void setup() {
//Choose 9600 baudrate
Serial.begin(9600);
}
int x; //Byte
int n; //Number of ...
2
votes
0answers
29 views
Synchronizing two sensors on uart, make one receiver and one transmitter [closed]
I need to make a transmitter and receiver with each specifically transmitting and receiving a signal. I am using two SRF-02 sensors, one is the designated transmitter, the other the receiver.
My ...
3
votes
3answers
97 views
UART Software Serial - Syncing two different sensors with start and stop bytes
I'm using 2 SRF02 sensors on the same Arduino board to attempt to have the transmitter only pulse the 40 KHz wave, while the receiver will be only taking a fake range, i.e. picking up a reading based ...
0
votes
1answer
362 views
Using Arduino UNO as FTDI programmer for 9DOF Razor IMU
I am trying to upload some code to the ATmega328 on Sparkfun's 9DOF Razor IMU. Because I don't have an FTDI board at hand I was trying to use my UNO by "grounding" the RESET pin. Communicating with ...
1
vote
0answers
258 views
Serial communication between Computer & Arduino via XBee
I configured two XBees using XCTU, connected them to the computer and sent Bytes back and forth. Works.
This is the current, non-working setup:
1 XBee, connected to the Computer using a SparkFun ...
0
votes
2answers
239 views
How to read the serial data from a ATMEGA8 on a PC using Arduino?
I want to check if a device is working or not. It is a custom made PCB with a Atmega8. It was given to me along with the AVR code. How do I read the data that it sends on my laptop using a arduino, ...
0
votes
2answers
244 views
o comChange URAT pin Arudino
hi i am developing GPRS http send request code using gsm/gprs module i found code in google.
here is code
1// change this to the pin connect with SIM800 reset pin
#define SIM800_RESET_PIN 7
2// ...
0
votes
1answer
107 views
Connect arduino to beaglebone black
I want to exchange some date between arduino and beaglebone, as far as I know, most arduinos works with 5v levels, so I need to convert 5v into 3.3v beaglebone in order to communicate with it.
...
-1
votes
2answers
101 views
GSM GPRS module not getting any output from Rx , Tx
I am using a SIM800 GSM/GPRS module. I connected it using 4 wires: Vcc 3.7 volt (2 amp supply), RX and TX and GND. Whenever I try to send a command it shows me nothing. Here is my code.
//Serial ...
0
votes
0answers
100 views
Two arduinos communicating via serial - wrong data
So, I am trying to get two Arduinos to communicate one way via serial. One is a Mega2560 and the other is a ProMini328, but that shouldn't be important. The ProMini sends a stream of serial data at ...
1
vote
1answer
62 views
Arduino Mega as a USB device
My need is to connect an Arduino board (any board that has around 3 UARTs support) to a host PC via USB and expose the 3 UART connections as 3 USB devices (say /dev/ttyUSB0, /dev/ttyUSB1, /dev/ttyUSB2)...
0
votes
1answer
308 views
What happens if I don't open the USB serial port of Arduino Pro Micro / Leonardo?
My question is related to this one. My sketch seems to stop responding after some time if I run it with debug enabled and I don't open the serial port/monitor on the computer.
Does the UART buffer ...
0
votes
0answers
53 views
What can cause seven segment display errors?
This is supposed to be a simple counter. The digits move, but none of the numbers are displayed correctly.
Another view of the functioning counter.
I'm using UART to communicate. Here is the set-up:...
0
votes
0answers
487 views
Arduino Due and BNO055
For a physical activity monitoring project, I am developing a prototype based on an Arduino Due and several IMUs (BNO055 from Bosch).
I have to collect the data from the sensors simultaneously (3 for ...