Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Serial communication is the standard USB connection between the Arduino and a computer with a standard USB A to B cable or through the TX/RX pins using a USB to serial converter. It can also refer to the serial library.

0
votes
2answers
18 views

Potentiometer reading out letters

My potentiometer reads out t's or u's in my serial. I believe that my potentiometer is wired correctly. What am I missing? Here is my code: #include <VarSpeedServo.h> VarSpeedServo servo; ...
0
votes
2answers
30 views

Arduino Serial Writing Array Problem

I am trying to communicate Pc - Arduino Uno. My Arduino code is here: (It is working as below) int ndx = 0; char pack[12]; void setup() { Serial.begin(9600); while(!Serial){;} } void ...
1
vote
1answer
26 views

Doubt using character array

I'm trying to make a led sign with a WS2812b ledstrip, using the FastLed library (by the way, this is a great library!), I'm already able to show a text (so far only one, which I leave saved in an ...
1
vote
1answer
47 views

Problem with serial connection. Data garbled

I have a hardware device that sends data over the serial port and over a socket connection. I have the TX of the device connected to the RX of the ESP8266, RX of the device to TX of the ESP8266. ...
0
votes
0answers
21 views

DFPlayer Mini UART Communication not working

I'm working on a project, which contains a DFPlayer Mini: Reference However, while the I2C modules are working great, i can't get the DF to work (Serial communication). It won't recognized by the ...
1
vote
1answer
33 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 ...
1
vote
1answer
36 views

How arduino boards eliminate the need to press buttons to flash?

I've come across many Arduino shields for various boards like the Uno, ESP8266, and ESP32 which sometimes have a button for flashing and other times they do not because the flashing is automatic. ...
1
vote
3answers
112 views

How to print 'µ' in the serial monitor?

I have been trying to print the letter µ on the Serial Monitor of Arduino IDE but I failed to do so. Is there any way to print µ or any other Non ASCII characters such as Ó,ß,Ô,Ò,õ,Õ,þ, etc using ...
0
votes
0answers
31 views

Reading and writing on same serial

I am trying to connect over same serial 2 servos and distance sensor. In Arduino, I have this code. If I write in Arduino's serial monitor values for my servos like 120,120, it works. I wrote a ...
-2
votes
1answer
33 views

Why do COM port numbers between Arduino and Processing not match? [closed]

I have a Processing program that reads data sent to the serial port by an Arduino. When I go to device manager it shows that the Arduino is plugged into COM 4, however in order to get Processing to ...
0
votes
1answer
49 views

Arduino Mega upload issue

I have made my own version of an Arduino Mega and I am encountering some issues. Whenever I try to upload any sketch to the Mega, I get the following error message: avrdude: stk500v2 ReceiveMessage():...
0
votes
0answers
38 views

Arduino Mega serial communication problem

I have a problem with a serial communication with Arduino Mega. I connect Serial3 to RS232-to-USB device and using hyper-terminal I get wrong characters (different from what I sent). For example when ...
1
vote
2answers
384 views

How to write a library that support both HW and SW Serial communication and allow user to chose which one to use?

I'm working on a library for Arduino/ESP8266/Teensy that use serial to send AT commands. I want to make it as customizable as possible, so I avoided to hardcode the serial and I ask for a reference in ...
0
votes
1answer
41 views

How can I stock data, and send them over by serial? [closed]

I want to make an array with data from the sensor. In data, I have displacement in x/y axis. I want to send them in the array, because in my python code I don't send them one by one, slow down really ...
0
votes
1answer
12 views

Serial string readout analyzed and logged onto an SD card [closed]

I have a sensor that gives me this string, serially read @9600: @T;+019.8;H;043.6;51 This burst arrives automatically about every second. It means: "@" start of the string "T;" means the ...
1
vote
1answer
52 views

Sending >255 bytes array to arduino

I am trying to send a 50x50 bitmap bytearray from my python client to arduino where it should be displayed on a screen. I need to receive 350 bytes to have the data to show the bitmap but as soon as ...
1
vote
3answers
40 views

For Arduino, is there a meaningful difference between carriage returns?

Serial.write(0x0d); // hex Serial.write(13); // ASCII Serial.write('\r'); // char Is one more efficient? I read how it depends on the terminal program. So does that mean the IDE? (This is my ...
0
votes
1answer
45 views

Can't display the two float values correctly from pyserial on Arduino's LCD

I transported two float values with pyserial to COM3 and Arduino accepted the values. But it displayed the first value correctly on LCD, the second value can't be read and showed "nan" on LCD. ...
1
vote
2answers
43 views

What decides which COM port the arduino will use? [closed]

I want to use serial communiaction between my laptop(Windows 10) and arduino, I already did it between raspberri pi and arduino, where the port is always called ACM00 or something similar, the point ...
0
votes
1answer
43 views

Arduino and AVR Serial Communication over USB

I have a Arduino Uno Rev3 and I would like to use a AVR development toolchain to write a program that performs serial communication over USB. Doing this using the Arduino IDE is fairly simple: void ...
0
votes
1answer
19 views

SerialPort Node.js stuck in 'Error'

I am trying to get my Arduino to send data to my computer using Node.js Serial port. Everything compiles, my Arduino is working well and sending data in the serial monitor, but the program always goes ...
0
votes
0answers
13 views

Using an Arduino with MAX485 as a DMX controller

I have some DMX(512) equipment I need to test/debug while I'm waiting for my controller to arrive. I've got access to a few Arduinos & MAX485 (boards, not ICs), and want to use the combination to ...
0
votes
1answer
31 views

Do serial ports on Arduino UNO / Leonardo initialize differently?

What are the differences in serial communication between PC <---> Arduino UNO (ATMEGA328p) and PC <---> Arduino Leonardo (ATMEGA32u4)? I am asking because of a problem related to using these ...
0
votes
1answer
23 views

Variable that holds the users input doesn't empty itself, so the program only works once

This code seems to function, but only works once before I need to press the reset button. Otherwise, it repeats the same error message. It might have something to do with emptying the String variable. ...
0
votes
1answer
29 views

String input to character array

I am in between of project where i am getting string like "hello world" via Bluetooth to arduino I want to list this string into individual character so that I can call any of the character when ...
-1
votes
3answers
121 views

Wait for ALL serial data to be received

Is there a way to make the Arduino wait until all the serial data has been received? Say I send a 32 byte long string over serial (the length is actually random), how would I make my Arduino wait till ...
0
votes
0answers
45 views

Sending PUBX commands to GPS Board (Ublox NEO-6M) through SoftwareSerial

I am having trouble parsing NMEA sentences coming from a GY-NEO6MV2 board (https://www.cytron.io/p-gps-neo6mv2), using the TinyGPS (https://github.com/mikalhart/TinyGPS) library. The GPS board itself ...
0
votes
1answer
11 views

Trying to connect FT sensor to Arduino Mega using RX TX

I am trying to interface this sensor, https://www.robotous.com/forcetorquesensor (RTF60-HA01-C), with the Arduino Mega. The sensor has an input voltage of 5Vs and communicates using CAN/RS232/RS422. I ...
0
votes
2answers
53 views

Why doesn't Serial.read() read multiple character?

I used multiple of Serial.read() and Serial.parseInt() to get characters and a number ( like "xy123" ) on an Arduino UNO. Then I checked the result on Serial monitor. Unfortunately I couldn't get the ...
0
votes
1answer
18 views

How do I clear previous values while using strcat() to add strings?

Is there any other function to add strings into buffer and updating values as well. This is the problem I am coping with while using strcat() char temp[2] = "A"; char temp_end[2] = "a"; char buf_adc[...
3
votes
2answers
64 views

What precision can I expect by syncronising DS3231 with PC serial?

The point here is to syncronise a DS3231 module (on an Arduino) via serial port with NTP time by computer. The problem here is that I'd like to know how much time is taken by the serial and I2C ...
0
votes
1answer
25 views

Serial communication between 2 arduino's doesn't works when Sending string in a program with a lot of functions

Note : This question is completely different from the questions that I have asked before although the code snippets might be the same, So please do not waive it as a duplicate right when you see ...
0
votes
0answers
24 views

HC-05 not receiving sent data

I've been working with two HC-05 (master and slave) to send data between two arduino unos. I have them to where they should be connected - blinking in unison every 2 seconds, but I can't send any data ...
0
votes
0answers
38 views

Don't display repeated data output on serial monitor of Arduino

In this code I am taking the TID (tag ID) data (20 bytes of 160 bits) in the form of array according to the Sparkfun (manufacture) documentation and RFID tag detection code and it's working correctly ...
0
votes
0answers
22 views

Arduino reading string sent from Rpi multiple times

1.Reading strings sent from Arduino on RPI Below you can see that I am communicating between a rpi and arduino serially. I am sending "start", then move_played to the rpi. The readline() reads until ...
0
votes
0answers
26 views

Serial input issues

I am building a clock using an Arduino Uno R3. I do not have access to an RTC. I set time through USB serial and I have three MAX72xx 8x8 displays cascaded. When I input the hours, minutes and ...
0
votes
2answers
47 views

How can I read servo motor readings via serial communication? [closed]

I'm new to serial communication. I tried to make Arduino talk to MATLAB, but certain values are allowed to be received like 100 and 101. I tried other values but didn't work. The problem is with ASCII ...
0
votes
1answer
32 views

Query related to Serial communication

I have a Raspberry Pi and an Arduino. On my Arduino I wrote a program, if you see the last two functions i.e. getMove() and SendMove() you will see that I am sending a move serially and the RPi will ...
-2
votes
1answer
85 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 ...
0
votes
0answers
31 views

Arduino loses communication with bluetooth when sending commands to nodemcu esp8266

i've been working on a project using an Arduino UNO, Bluetooth Module HC-06 and NodeMCU esp8266, the project consists on turning leds on via bluetooth and telling the esp8266 that the leds were turned ...
4
votes
1answer
723 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 ...
0
votes
0answers
22 views

Garbage output with GPS module GTPA010 [duplicate]

I've synced my Uno with the Arduino IDE and I'm using the following code to get the raw GPS coordinates: #include <SoftwareSerial.h> static const int RXPin = 4, TXPin = 3; static const ...
0
votes
0answers
40 views

Empty output with GPS module GTPA010

I've synced my Uno with the Arduino IDE and I'm using the following code to get the GPS coordinates: #include <TinyGPS.h> #include <SoftwareSerial.h> unsigned long fix_age; ...
-1
votes
1answer
19 views

Arduino and Pyton Serial Communication, Pyton get stuck and keeps sending [closed]

I have recebntly started a project where I need to connect an arduino and another device through serial. And I have setup a simple serial connection betwee python and arduino. I can setup the ...
0
votes
1answer
73 views

Serial data showing incorrect values

I am sending data over USB Serial to my Uno in a specified format and printing the values after they are read void loop() { if(Serial.available()){ while(Serial.available()){ ...
0
votes
0answers
29 views

The code does not produce the serial output

#include <Streaming.h> #include <StopWatch.h> #include <Albert.h> #include "avdweb_AnalogReadFast.h" const byte adcPin = A0; void setup(void) { Serial.begin(9600); while(!...
3
votes
2answers
39 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) ...
0
votes
0answers
29 views

Servo Motors Fidgeting [via potentiometers, sent thru Bluetooth]

I need help :( I have this robotic arm project and I am using standard potentiometers attached to a "controller assembly" to detect the movement of the human arm. I have monitored the values of my ...
0
votes
1answer
38 views

Serial communication between a single Android device and multiple Arduino boards [closed]

I am thinking about a project, but I will need let's say two Arduino Uno. I can see that we can just use different USB ports on a PC, but what about an Android device? I want to "run commands" from ...
2
votes
2answers
32 views

Input voltage from circuit drops despite Arduino turned off

I'm using an Arduino Uno to emulate an old Atari disk drive as described here: http://whizzosoftware.com/sio2arduino/ As both the Atari and the Arduino use 5V TTL serial communication, the hardware ...