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.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
58 views

Program blue pill with with Arduino IDE? [closed]

I ordered some bare chips STM32F103C8T6 from AliExpress, which I soldered to a custom PCB with a reflow oven. But the problem is, my program uploaded, but it did not run. To confirm that it is not the ...
bquark's user avatar
  • 9
0 votes
2 answers
116 views

Clear serial data for new incoming values

I'm trying to extract numbers from a string sent via serial and then convert the numbers to integer values which I can use for arithmetic operations or toggle an Led. But the problem is I have to send ...
bquark's user avatar
  • 9
-1 votes
1 answer
63 views

Reading serial data from Arduino in Python continually

Using a stepper motor and a range finder (TFLuna), I am trying to build a "Lidar" (like a Radar, but with light). Here is the algorithm: Turn motor one step, calculate angle, measure ...
Matthias's user avatar
  • 101
-1 votes
1 answer
45 views

Compilation error: 'Serial' does not name a type [closed]

#include <IRremote.h> IRrecv IR (11); Serial.begin(9600); void setup() { // put your setup code here, to run once: IR.enableIRIn(); } void loop() { // put your main code here, to run ...
maxerex's user avatar
-1 votes
1 answer
63 views

Arduino not reacting sometimes when reading serial commands

When I am sending hex numbers via computer to the arduino leonardo, it sometimes won't react, but the serial monitor says that it was sent. My code; void setup() { Serial.begin(9600); pinMode(...
Kyle_3_1415's user avatar
0 votes
0 answers
37 views

Python program can read but not write on serial monitor

I'm trying to write a small python program to communicate with my Arduino board but, somehow, I'm having a little trouble. My goal is to switch on and off a LED by interacting with the desktop program ...
Zay's user avatar
  • 11
-1 votes
1 answer
69 views

ESP32 cannot serial monitor [closed]

I use esp32 devkit v1 . I code follwing this picture. const int vavle = 1; int d = 1; void setup() { Serial.begin(115200); delay(2000); while (!Serial); Serial.println(); pinMode(vavle,...
poom's user avatar
  • 11
0 votes
0 answers
118 views

ESP32 S3 Same code works on Serial1 but NOT on Serial0 for RS485 module

I have designed a test board to understand ESP32-S3 working pins. I am using USB interface D+, D- for programing so Serial0 is free to use. This is my test circuit for testing an RS485 converter. For ...
mehmet's user avatar
  • 277
1 vote
0 answers
482 views

esptool.py error Cannot configure port, something went wrong. PermissionError(13, 'A device attached to the system is not functioning.', None, 31)

When trying to upload my firmware to an ESP8266 board using Arduino IDE 2.2.1 I get A fatal esptool.py error occurred: Cannot configure port, something went wrong. Original message: PermissionError(13,...
James Lafritz's user avatar
-3 votes
1 answer
89 views

RF24 if statements are not reading properly, even if an "if" value is wrong, it still follows the associated code [closed]

My code is taking values from a remote and transmitting the state of it. Right now the states are just 1 and 0, on or off, and is writing over the serial monitor on the transmitting Arduino. On the ...
Bradbut's user avatar
0 votes
2 answers
39 views

Serial Buffer stays empty as soon as it becomes empty once

I have a question regarding serial buffer readout. At program start, I send a serial command to a sensor that 1. activates him and 2. let him send data - that works. When I unplug the sensor, the ...
Gymknopf's user avatar
0 votes
1 answer
74 views

Python script cannot connect to serial port

I want to control the LEDs with my hand, for this I used the repository https://github.com/paveldat/finger_counter/tree/main. I want to control the LEDs with my hand, for this I used the repository. ...
Дмитрий Насонов's user avatar
5 votes
3 answers
1k views

Arduino to Arduino communication

When I send data to an Arduino Uno via the serial monitor, the serial data goes down the same USB cable used to program the Arduino. So there must be a device on the Arduino board like a FTDI or USB-...
Neil Stockbridge's user avatar
-1 votes
1 answer
38 views

Wolfram Mathematica reads but closes stream feeds from Arduino Serial port after a few data sets

This is a Wolfram Mathematica / Arduino serial feed problem , but I am posting here just in for any suggestions on enhancing the Arduino code or the Mathematica notebook. The original post is here ...
Jose Enrique Calderon's user avatar
-1 votes
1 answer
115 views

convert string representing a binary number to binary

I have a serial input "1111111" and I would like to convert this to a binary B1111111 that I can send to a led matrix. I tried to search, but, all the results were misleading, led to full ...
vilmarci's user avatar
  • 109
0 votes
0 answers
116 views

Arduino Uno RFID-RC522 won't scan any card or tag

So I bought a RFID-RC522 module with a blue tag and a white card, and I searched for tutorials and found this library that I used it. and here is my code : #include <MFRC522.h> #include <SPI....
Mr Code Gamer's user avatar
-1 votes
1 answer
59 views

Read byte and time into EEPROM, then display with a comma between the time and the value?

I have bytes of natural numbers 1-60 coming in at random times: Example of send data // Uno send void setup() { Serial.begin(9600); int integersToSend[] = {1, 22, 30, 4, 50}; for (int i = 0; ...
adamaero's user avatar
  • 198
-1 votes
1 answer
43 views

Reading a string from the serial port and comparing to another string

I'm using an Arduino Mega 2560 and writing a really simple piece of code that doesn't work. String a, letra; #define led 13 void setup() { Serial.begin(9600); // opens serial port, sets data rate ...
Carlos Eduardo Carvalho's user avatar
1 vote
1 answer
81 views

ArduinoJson reading `null` from Serial

I have a setup that reads from serial when I sense that there is something to be read (and always assume that what is sent to the arduino is valid json): void setup(){ Serial.begin(9600); ...
Snappawapa's user avatar
-1 votes
1 answer
52 views

Serial does not read buffer with integer characters greater than 43

I'm trying to write a script to move an object coupled to a linear axis through a stepper motor. The user must send information such as the length to be moved, the speed of movement, the direction of ...
Yan Araújo's user avatar
-1 votes
1 answer
75 views

Lilypad sends corrupted data on Serial

I have an Arduino Lilypad with this simple code where I try to write a simple message to the serial console. The baud rate is set to 9600 both in the code as well as in the serial console and I'm ...
Jozef Cipa's user avatar
0 votes
1 answer
59 views

Make my Arduino (Mega or whatever is better for the task) to be able to read and write `Serial` data to a **rj45** port

I have a Chinese hybrid solar inverter that exposes an rj45 input which talks the serial protocol (Baud rate 2400, no parity, 8 bits, 1 stop bit). I need my Arduino (say, Mega or whatever, does not ...
Zazaeil's user avatar
  • 111
1 vote
0 answers
106 views

Why are the UART ports not working on my Portenta breakout Board?

I am using a Portenta Arduino Breakout Board (https://store.arduino.cc/products/arduino-portenta-breakout) that is connected to the Portenta H7 (https://store.arduino.cc/products/portenta-h7) for a ...
rcs13's user avatar
  • 11
2 votes
0 answers
63 views

I have a cash counter with RS232 in the back of it, I want to read the data that supposed displayed on the projector

I have cash counter with RS232 in the back of it. I want to read the data that supposed displayed on the projector with RS232 to TTL convertor and arduino. Here is all my setup Now I Connect the ...
Mohammed A. AL-Dainee's user avatar
0 votes
0 answers
56 views

Arduino MKRZero "This device cannot start" (Code 10), and Keyboard.h

I have bought my brand new Arduino MKRZero to emulate a keyboard. When I plug it in, I get the following on COM6, which is listed as "Arduino MKRZero". "This device cannot start" (...
HFOrangefish's user avatar
0 votes
1 answer
43 views

How to fix UnicodeDecodeError when using Serial.println

I am using an Arduino Uno R3 to send instructions to a serial monitor in a Python program with Serial.println. But when I send a specific line, I get a a UnicodeDecodeError. The line in the Arduino ...
stanley's user avatar
  • 107
2 votes
0 answers
52 views

Slow I2C communication

To collect temperature and BPM, I connected a max30101 in my Heltec WiFi kit V3 with ESP32. The data collected are stored in arrays to extract statistical features from signals which an algorithm will ...
Alice's user avatar
  • 31
1 vote
1 answer
141 views

Why this simple serial monitor code not working?

The follwoing code echoes whatever arduino recieves through reciever pin. The idea is that arduino will echo whole data in the buffer on the same line and starting from the new line while echoing the ...
dRIFT sPEED's user avatar
0 votes
1 answer
150 views

ESP8266 serial monitor spitting out garbage

I am trying to set up a weather station, and I should just have the anemometer left. This code works fine (as far as I know). // Pin definitions const int reedSwitchPin = 2; // Variables volatile ...
Iliketurtles's user avatar
0 votes
1 answer
129 views

sim800l gsm module response isn't completed

I am using the sim800l gsm module with nodemcu esp8266 and comunicating with it using AT+ commands. The module is working correctly but I am trying to use the command AT+CLCC to get all the current ...
Mohamed Essam's user avatar
1 vote
1 answer
92 views

HardwareSerial and SoftwareSerial not compatible

The HardwareSerial requires to run an interrupt to store received bytes in the buffer. Look at this file from the Arduino Core. If I am now constantly receiving and writing on the Software Serial, the ...
RenX's user avatar
  • 127
-3 votes
1 answer
83 views

SoftwareSerial and HardwareSerial lost data

I need two Serial ports. One port is some sort of modified Software Serial, where I have to be listening constantly and send responses immediately if the port requires it. There is no XY problem ...
RenX's user avatar
  • 127
-1 votes
1 answer
96 views

Arduino Uno WiFi Rev2 is sending serial data to IDE, but not to C# program

I have an Arduino Uno WiFi Rev2 which I am trying to read data over the serial port from (using C#). The Arduino program periodically emits data to the serial port (for testing purposes). Whenever the ...
Hemisphera's user avatar
0 votes
1 answer
147 views

Why is the serial monitor not printing a variable?

I connected an Adafruit color sensor to my Arduino and am having it make calculations. However, when the calculations are done and sent to the serial monitor, it says "NDVI: " without ...
Chris's user avatar
  • 3
3 votes
1 answer
135 views

How to ignore garbage values in serial communication between arduino and python

I have arduino uno. I am trying to send and receive serial data from arduino to python. I have usb to uart converter. I have connected its tx to rx of Arduino and rx to tx of Arduino and gnd is ...
S Andrew's user avatar
  • 183
1 vote
3 answers
680 views

Best way to send a boolean (1/0) to a windows application in real time?

I have an arduino mega connected to a light sensor that reads the status of a machine's indicator light. I have a C++ application that controls the machine, and I would like the arduino to send the ...
Max Bluhm's user avatar
2 votes
1 answer
250 views

Unable to upload sketch to Lolin S3 Pro (ESP32-S3)

I'm trying to upload a simple sketch to the new Wemos Lolin S3 Pro but unfortunately I can't seem to get it to work. I get the following error message: Connecting......................................
shyney's user avatar
  • 73
3 votes
0 answers
44 views

Can I use regular pins (Example: D2, A3, etc...) as serial (RX, TX)?

Python/Arduino Beginner here... I have a DFplayer I am trying to hook to my Arduino and I want to hook it up through the regular pins instead of the RX and TX pins, but I've not been able to find ...
prestonferry's user avatar
4 votes
2 answers
97 views

Arduino unable to read 0x41 and 0x42 (reads others just fine (ICT bill acceptor)

Here is my issue: My code successfully recognizes and accepts $1 (0x40) and $20 bills (0x43), but it fails to recognize, display, process, anything for the $5 bill (0x41), and $10 bills (0x42). Also, ...
Mappy Wilks's user avatar
3 votes
0 answers
51 views

nano 33 BLE problems with reading RC signal

I'm using an Arduino Nano 33 BLE and a L293D motor driver to control a three-wheeled RC robot. The sketch I'm using worked fine with my Uno Rev3, but I've moved to the Nano for size/weight reasons, ...
starthrow's user avatar
3 votes
1 answer
107 views

Serial plotting a pwm

I'm trying to plot the value of the pwm that increases (every 2 sec) then decreases to compare it to the value of an encoder. I was expecting a continued value (like a step ) during 2 seconds but ...
Lavender Juliette's user avatar
1 vote
2 answers
64 views

converting comma delimited Serial message to 7 Unsigned Long variables

Working on a project where I get an input where its a comma delimited string like: "255,10000000,42949672950254,12,22". and then the numbers (no commas), would be split into 6 Long ...
The Oracle's user avatar
1 vote
1 answer
193 views

How to produce a USB CDC serial port for Arduino nano 33 BLE?

I'm trying to program an Arduino Nano 33 BLE bare-metal to get some precise timing and size measurements. I've managed to upload the code to my card, but I cannot communicate with it. More ...
WINTERSDORFF Raphael's user avatar
1 vote
0 answers
41 views

slave arduino receiving commands from two serials

I have a slave arduino connected to a master arduino mega (through UART) and to a RPi (through USB). The slave arduino is set to monitor various SHT85 (through I2C) and NTC sensors. What I would like ...
higgsboson2012's user avatar
1 vote
1 answer
74 views

Maduino (Arduino Zero) at91samd21g18 - Unable to connect to the serial port

I have been using this device very little but it was use to work, and it also gave me the same issue in the past, the somewhat I was able to upload again. I tried to use the reset button, and short ...
Norcino's user avatar
  • 119
1 vote
0 answers
44 views

Serial does not receive all chars

I'm trying to follow Serial Input Basics to build a program which receives commands over serial like "<led:12,34,21>" but i'm stuck on receiving the characters from serial... I have ...
Taako's user avatar
  • 111
1 vote
0 answers
140 views

OEM Arduino UNO not seen by COM port

Arduino UNO R3 My error code: avrdude: ser_open(): can't set com-state for "\.\COM3" An error occurred while uploading the sketch This has been mentioned several times before here in the ...
StanB's user avatar
  • 9
1 vote
2 answers
67 views

Program to Multiply Numbers Won't Actually Multiply Them

I am trying to write a program which takes in a number of pairs to be multiplied, then prints out the result of each multiplication. Instead of doing this, the program just prints out the number of ...
JG98's user avatar
  • 21
0 votes
1 answer
51 views

I need some help in transmitting voice via VLC

The project I'm working on: Short-Range Coded Visible Light communication System. Visible Light Communication (VLC) systems utilize light to transfer data between transmitter and receiver over short-...
Hussain's user avatar
  • 11
1 vote
1 answer
145 views

Arduino Mega Loopback Test with Several TX/RX Ports

I am trying to do a loopback test using an Arduino Mega. What I am looking to do is send a byte over TX and receive said byte back at RX and verify that the byte is unchanged. More or less I just have ...
mnlipps's user avatar
  • 11

1
2 3 4 5
43