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
6 votes
2 answers
380 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
30 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
-2 votes
0 answers
32 views

HC-05 won't connect to phone [closed]

I have an HC-05 and I can pair with it but I can not connect to it. I tried connecting with other phones but is the same with other phones. I try to connect to my PC but it can't find it.
K.I.C. ROBOTS's user avatar
-1 votes
0 answers
21 views

Can Arduino read serial being sent over by Processing? [closed]

I am trying to control a robot remotely using an Xbox remote. The Xbox remote connects great with processing, specifically using this project https://www.makeuseof.com/tag/arduino-robot-game-...
Bradley Butler's user avatar
-1 votes
1 answer
77 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
29 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
56 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
0 votes
1 answer
27 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
41 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
47 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
71 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
-1 votes
0 answers
33 views

Makerfabs Maduino Zero 4G LTE - SIM7600 Serial1 does not reply to AT commands

I am using the following sketch to test this board. // Description: input AT commands via serial monitor to learn how to use 4G module // version:v1.0 // Author:Vincent // web: http://www.makerfabs....
Norcino's user avatar
  • 117
0 votes
1 answer
56 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
29 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
50 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
48 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
33 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
39 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
128 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
102 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
74 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
57 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
76 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
59 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
57 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
83 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
668 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
131 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
36 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
89 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
43 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
57 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
58 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 ...
Lamb Sauce's user avatar
1 vote
1 answer
119 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
36 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
54 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
  • 117
1 vote
0 answers
41 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
115 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
56 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
46 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
94 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 vote
0 answers
20 views

Any libraries exist for easy configuration via USB?

I have a device that would really benefit from a USB configuration tool. I'm envisioning "plug it into a PC, and it appears as a storage device with a YAML config file". Are there any ready-...
K4KFH's user avatar
  • 181
2 votes
0 answers
114 views

Modbus RS485 Decode the message received

I'm try to read some value from a soil NPK sensor using RS485 Modbus e Arduino uno. I menage to sent the request msg and I got the response but now i don't know how to read the response in order to ...
Damiano Miazzi's user avatar
0 votes
0 answers
58 views

HC-05 Disconnects Underwater(predictably). How to make it reconnect by itself?

So I have an application where I send a Bluetooth module underwater(in a waterproof case). I have the Arduino+module sending my computer on-land a constant stream of numbers. Predictably, when the ...
iceninja21's user avatar
2 votes
1 answer
120 views

Why can't I upload a sketch by connecting directly to the serial pins?

I have an handful of fake arduino nanos. The work fine, but as an experiment, I tried to program them with a usb serial adapter (a real FTDI one). It doesn't work, but also, strangely, it seems to ...
Alex028502's user avatar
1 vote
1 answer
155 views

Incorrect data received on serial communication

I have two Arduino UNO connected with two wires, and ground, that exchange informations through serial data. The communication is working with INT, but I am having troubles to receive correct ...
BruceWawe's user avatar
2 votes
0 answers
172 views

Sending an image captured using ov7670 using arduino and serially transmit it to python

I am working on using an ov7670 camera module with arduino uno,capturing the image frame wise and transmitting the image serially line by line of each frame to python for image processing, however i ...
Gunjan's user avatar
  • 29
2 votes
1 answer
523 views

Need ESP32 to use 3 Serial Ports

I have a project that needs 3 serial ports on my ESP32 Dev 38-pin MCU. Two of them are for Nextion touch displays and the other is for a GPS. The problem from what I understand is that the ESP32 has 3 ...
Richard White Building From Sc's user avatar
3 votes
2 answers
589 views

USB serial communication arduino nano and jetson nano

I want to communicate between Jetson nano and arduino nano through serial. I wrote a simple script to test functionality but I receive strange data here is the arduino code void setup() { // put ...
Abdelrahman Mohsen's user avatar
1 vote
0 answers
183 views

Dump data check failed on a TinyPICO using ESP32

I use the TinyPICO microcontroller with ESP32 and I program it using the Arduino IDE. I recently got a new error on my Serial Monitor: E (113) esp_core_dump_�^X.K�ɕ�dump data check failed: Calculated ...
Nicolas Schmid's user avatar

1
2 3 4 5
43