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
4 votes
2 answers
116 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
64 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
160 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
67 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
291 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
93 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
47 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
165 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
77 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
1 vote
1 answer
63 views

Transmitting voice via VLC

The project I'm working on: Short-Range Coded Visible Light Communication System. Visible Light Communication (VLC) systems use light to transfer data between transmitter and receiver over short-range ...
Hussain's user avatar
  • 21
1 vote
1 answer
190 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
22 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
202 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
106 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
1 vote
2 answers
190 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
241 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
284 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
2 answers
1k 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
1k 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
314 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 vote
0 answers
103 views

Need help writing to and then reading from a serial device

I have a serial device hooked up to my Arduino (ESP32 WROOM). I'm not a serial expert but I have at least some stuff working. The manual is chinese (or at least, very broken english) and I'm trying to ...
Patrick Nijkamp's user avatar
1 vote
0 answers
45 views

Things stop working if I use Serial.println(tt) and when I use display.drawPixel(i - ii, 64 - Harray[ii], SSD1306_WHITE);

Things stop working if I use line 131 Serial.println(tt); and when I use line 145 display.drawPixel(i - ii, 64 - Harray[ii], SSD1306_WHITE); Also Serial Monitor gives very strange reading. Serial ...
sasha kirilova's user avatar
1 vote
0 answers
97 views

UART SERCOM on Pins 11-13 Arduino M0 (SAMD21)

I am a newb at coding. Does anyone have any code laying around or some time to write some to send data over UART SERCOM on pins 11/12/13 on a SAMD21 board like the Arduino M0? I am trying to send a ...
Charlie Nicholson's user avatar
1 vote
0 answers
130 views

Communication between two hc 05 Bluetooth modules not working

I Have a problem with the connection between two hc 05 modules. The bluetooth modules are paired using AT commands. But when I run the code I cant get any data from the reciever. The bluetooth modules ...
Lisitha Ranukkanda's user avatar
1 vote
0 answers
99 views

Converting more strings from serial monitor to int arrays

I want to transfer 8 lists from a python script, via Serial Monitor to the Arduino. I can get the strings to Arduino and Arduino saves them as String array, but I can't change it to integer (it shows ...
PNarduinouser's user avatar
1 vote
2 answers
177 views

Arduino MEGA - How to send and receive data asynchronously?

i am newbie to this so i hope i can explain my problem clearly; Arduino MEGA connected to PC via USB port. I am using an encoder to trigger function to send data to pc, data is a simple string "...
Nocturnale's user avatar
-1 votes
1 answer
228 views

Serial port stops receiving data after random amount of time

EDIT: Things I have tried so far: Increasing the baud rate, but this didn't make any difference as it still continued to stop receiving data after random amount of time. I tried testing one sensor ...
Jin Yuan's user avatar
1 vote
0 answers
146 views

Arduino Nano BLE 33 Sense receives but not able to transmit data to XBEE Pro S2C

This is my first time asking a question so I will try my best to be precise and detailed. I had recently started to work on a project that requires me to establish a wireless communication between two ...
Rayford03's user avatar
0 votes
3 answers
191 views

Arduino Timer Drift Issue

I have two Arduinos that communicate over serial. Each arduino runs a TDMA algorithm where each arduino is assigned one timeslot. The arduinos should transmit during their timeslot, which does work ...
roberthayek's user avatar
-1 votes
1 answer
69 views

Can an ethernet shield function as an adapter?

I want to communicate with my Arduino over a long distance so I decided to use an Ethernet cable between my computer and Arduino. Searching up a few tutorials I've found them all mentioning IP ...
iceninja21's user avatar
-1 votes
1 answer
39 views

Cannot communicate with software serial on particular devices (SIM7600G-H)

I have 3 devices: An UNO (non-genuine) An SMS hat/shield device SIM7600G-H to communicate with via UART A USB UART controller for debugging purposes I'm using the UNO to talk to the SMS device via ...
Freddy Mcloughlan's user avatar
0 votes
2 answers
669 views

SoftwareSerial will not read all of the printed string when calling readString()

I have an Arduino UNO and an ESP32 that need to communicate to each other using SoftwareSerial. The problem I am coming across is that when I call readString and print it out using Serial, it will not ...
Primitive's user avatar
2 votes
1 answer
120 views

Curious Collision between OneWire and RadioHead

The code below runs on an Arduino Pro Mini (8MHz 328p) sending temperature readings using an inexpensive ASK transmitter. I use OneWire to read the DS18B20s, and RadioHead to manage the radio. The ...
Eric Nelson's user avatar
2 votes
1 answer
167 views

How to fix the scambled output of the emojis in Arduino IDE 2?

I have relatively simple code printing some emojis: void loop() { // put your main code here, to run repeatedly: Serial.println("Hello world 😊❤👌😘💕👍🤦‍♀️🤦‍♂️😎✔👀"); } Just in case ...
Thomas Weller's user avatar
1 vote
1 answer
454 views

Arduino nano 33 BLE serial port not working with C# app

I use an Arduino Nano with some sensors and send data to a PC using the serial port. I just got a new Arduino Nano 33 BLE and tried the same code but its not working. So for testing I just wrote some ...
Pedro Ferreira's user avatar
2 votes
3 answers
1k views

Why does Serial.write() work but Serial.print() doesn't?

I am testing my GPS module with an ESP32 using the Arduino IDE. I'm asking because I usually don't fully understand the difference between Serial.write() and Serial.print(). This code is working ...
mehmet's user avatar
  • 277
0 votes
2 answers
280 views

Problem cleaning string read from serial buffer

I am trying to move a stepper motor when a specific command is send to Arduino Mega 2560. This command is read character by character and stored in a string variable. Whenever a new command is sent, ...
Yan Araújo's user avatar
1 vote
1 answer
777 views

What is the best (fastest and most robust) way to send messages back and forth between Python on a PC and an Arduino, over serial?

I am trying to communicate between a PC running Python using PySerial and an Arduino. The Arduino itself has a CAN shield, and is responsible for interfacing with a motor. My goal is for the PC to ...
ITregear's user avatar
1 vote
1 answer
207 views

ESP8266 module doesn't respond to commands and sends garbage to serial on boot

I bought a ESP8266 module (like this). I connected the module like on the following scheme: I use a USB to TTL converter (cp2102) that I've connected to RX&TX pins of the module. It works. It ...
g00dds's user avatar
  • 115
2 votes
1 answer
160 views

Multiple unique I2C devices interfere

I'm trying to make a fairly simple program that interfaces with the Adafruit TSL2591 light sensor as well as a MAX30102 pulse oximeter. They both use I2C for communication. I'm using the recommended ...
Jackson V's user avatar
0 votes
1 answer
73 views

Send a 2d PROGMEM array over SoftwareSerial

I have a 2d array: const byte messages_for_measurement[2][8] PROGMEM = { { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }, { 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10 }, }; I want to send ...
user1584421's user avatar
  • 1,395
1 vote
1 answer
95 views

Confusion about Oscope reading of Arduino Software Serial

I am trying to troubleshoot a Software Uart Connection from my Arduino Nano, and I do not understand this output. The setup is simple, I have a Software Serial connection on pins 2 and 3. I send 170, ...
user87406's user avatar
1 vote
0 answers
31 views

How to splitting values in int serial read values [duplicate]

I get values in serial read using the following code, int32_t bytesSent = 0; if (mySerial.available()) { bytesSent = mySerial.read(); } Output: Serial.write(bytesSent); gives -1199/1211 value. I ...
Ind's user avatar
  • 111
1 vote
1 answer
3k views

How to install FTDI Serial Drivers on Mac?

I'm following this tutorial on how to install FTDI drivers on macOS, but am facing some issues. After downloading the USB Serial Driver version 2.4.4 (for OS X 10.14) from FTDI Chip's virtual COM port ...
ttoshiro's user avatar
  • 181
2 votes
2 answers
1k views

How real-time is an arduino (react to sensor)?

New to arduino here, sorry for asking what may be a trivial question. I need to simulate an industrial machine at home. It operates in a cyclic motion, creating an event for every rotation / cycle. ...
MyICQ's user avatar
  • 123
0 votes
1 answer
73 views

"Cast" BluetoothSerial to HardwareSerial

I have a function that accept an HardwareSerial class as argument: void ProcessLine(HardwareSerial *serial, char *line) { // do something serial->write("blablabla"); } In my code ...
Mark's user avatar
  • 385
1 vote
0 answers
25 views

Code uploads to Due and fails to execute but runs on Redboard

I have run into this issue where my code will upload to my Due but fails to execute. I have verified the code works on a SparkFun Redboard. The only code difference is that the SPI pin assignments ...
Ender's user avatar
  • 11
-2 votes
1 answer
447 views

VP230 CAN Bus Transceiver

How does one read can packets from a VP230 Can Bus transceiver? I also have a MCP2515 which I've gotten to work, but the VP230 is a lot smaller. I haven't been able to find any information about ...
Gregor Gregoric's user avatar
1 vote
1 answer
288 views

Odd characters in serial monitor

I have been recently working on a website that takes input from the arduino ie- temperature and humidity. But there is a fatal problem that I've encountered, the serial monitor spews out some garbage ...
sierra madre's user avatar

1
2
3 4 5
43