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

Questions tagged [serial]

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.

-2
votes
1answer
36 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
75 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():...
1
vote
2answers
402 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
46 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
17 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
170 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
45 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
57 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. ...
0
votes
1answer
61 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
93 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
185 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
2answers
113 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
24 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
40 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
454 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 ...
1
vote
1answer
370 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
2answers
58 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
373 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
67 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
76 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
44 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
242 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
26 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
29 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
94 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
38 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
353 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
46 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
815 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
49 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
68 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
27 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
345 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
32 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
98 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
43 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
70 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
37 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 ...
1
vote
1answer
518 views

MQTT over serial

I'm planning to build a 32 relay IOT node next to my Raspberry Pi. The relays will be controlled by an Arduino Mega 2560. The Pi will run Home Assistant and Mosquitto so I would prefer to communicate ...
0
votes
1answer
46 views

Arduino IDE giving a blow to battery back-up of PC [closed]

When I have serial plotter open in the Arduino IDE with serial communication going on, the fans of my PC go full speed. On checking I found that Java(TM) Platform SE binary(32 bit) is using about 29% ...
2
votes
2answers
810 views

HC-05 bluetooth module not accepting AT commands

I have been attempting to program my HC-05 ZS-040 Bluetooth module for quite some time, and I cannot get the AT commands to return any values. I have searched google for quite some time, and I none of ...
0
votes
0answers
45 views

TD1207 SigFox module, sending error with cooking hack sigfox library

I'm using a TD1207 SigFox module to push temperature information every 10 min with ATmega328P. I commented this part to validate the sigfox emission first. I'm using the cooking hacks sigfox ...
0
votes
2answers
79 views

Read pc volume percentage?

is there a way to read the current pc volume? This is going to be a part of a project that I have in mind that is essentially reading curent pc volume value and giving it an RGB value (green=>30, ...
-1
votes
1answer
53 views

How do I get LEDs to turn on according to a continuous Python input?

I'm trying to make a tuner. 3 LEDs are connected to the Arduino board, each one corresponding to one situation (too high, low or correct). Python handles the detecting of a note according to the mic ...
1
vote
1answer
356 views

Serial.parseFloat() reads 0 despite me entering different value

I'm trying to make a robot that asks the user for the longitude and the altitude form the user and then using the data the GPS collects to go to the wanted location, however when I use Serial....
0
votes
0answers
35 views

Pyserial doesn't receive serial data from arduino

I have the following python script: #!/usr/bin/python import serial # import syslog import time #The following line is for serial over GPIO usb_ports = ('COM3') s = serial.Serial(usb_ports) print("...
0
votes
2answers
56 views

Is there any version of arduino that can do something like serial interruption?

I am using an Arduino to control servo MX18A by serial, and trying to use computer to communicate with the Arduino by another serial to send commands to Arduino and change the servo control mode. Once ...
5
votes
2answers
690 views

Detect if Serial1 and Serial2 are defined, at compile time

I have my library that uses Serial, Serial1 and Serial2 to establish various logging scenarios. Library user would define the config at class constructor, using simple byte constants like 0, 1 and 2. ...
2
votes
1answer
93 views

Write and read operation via synchronous serial port (Arduino Uno + ADNS2610)

1.Preliminaries I have optical sensor ADNS2610 (see datasheet here) which I plug in to Arduino Uno R3 board. It is possible either to read from either to write to the sensor. Here is what datasheet ...
0
votes
1answer
111 views

Assigning Pointers to arrays - incorrect results?

I'm trying to build a transmission frame for a workshop library for the Arduino Uno. I have the byte frame inside an array, give it to another function that builds a bit frame and then want to ...