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 vote
1 answer
202 views

Serial hangs on Arduino-Uno

I'm having issues with Arduino and RPI3 serial communication, it'll become unresponsive after a little time. Tried increasing BAUD rate and same issue, also happens on Windows as well so RPI is not at ...
Philip Rollins's user avatar
-1 votes
2 answers
214 views

Send same telemetry data to two different serial ports?

I'm using a Teensy 3.5 to control a wall-following robot. The robot sends telemetry to my PC via two independent ports - Serial1 & Serial. Serial is the normal USB port, used when I direct-...
starship15's user avatar
1 vote
1 answer
87 views

Insufficient RX signal delta when using MKR RS485 + Nano, but not Mega

I'm having an issue where an arduino Mega has been used to communicate with an RS485 bus, using an MKR shield [1] as a breakout board. When I build it with a Mega, the system works fine. I've torn ...
SomeNanoUser's user avatar
1 vote
1 answer
575 views

`time.sleep` in python script reading serial output causes erratic behavior

I am attempting to control the position of my computer's cursor using a potentiometer hooked up to my arduino nano. The arduino is running the following code: int potPin = 3; // select the input ...
Manav Bokinala's user avatar
1 vote
2 answers
92 views

Disable Keyboard.h status LED

As soon as I include keyboard.h my pro micros LED starts flashing (as far as I know this indicates a serial connection is stablished or so.) But it's really annoying having a flashing led on my desk ...
FrontendC's user avatar
  • 115
1 vote
0 answers
586 views

Arduino Nano and ESP32 Read Different Values over Serial

I am trying to use the Neato xv11 lidar with an ESP32. This should output packets of 22 bytes with the starting byte 0xFA. The communication is 8N1 and the baud rate is 115200. When I connect the ...
Seth A's user avatar
  • 11
1 vote
1 answer
70 views

How to distinguish identical Arduinos from Linux?

I have two identical (but with different software) Arduinos connected to Linux box. Their serals are identical # udevadm info -a -n /dev/ttyUSB1 | grep '{serial}' ATTRS{serial}=="0000:00:1d.0&...
Dims's user avatar
  • 169
1 vote
1 answer
422 views

How to send non char variables over serial

I'm trying to build a GUI that sends the data from processing to arduino via serial. With the help of a couple of guys on here, I have come up with a basic framework that sends a variable ID, variable ...
Zhelyazko Grudov's user avatar
0 votes
0 answers
243 views

Arduino Nano 33 BLE Sense starts in bootloader mode on power up

I'm facing a lot of issues with Arduino Nano BLE Sense. I'm aware about the port switching between bootloader (when the yellow LED pulses) and application. First issue Sometime when I power up the ...
Mark's user avatar
  • 385
1 vote
0 answers
60 views

LightBlue to Arduino connection log does not display serial monitor printed data

I'm writing code so that, every time a hall monitor senses, my code additively measures 5 liters of volume as it prints each detection. Then, this data is sent via Bluetooth to a phone. (This is for a ...
Anne Murray's user avatar
2 votes
1 answer
384 views

HC-05 Bluetooth module; two serial ports, COM4 and COM5

I'm learning how to use the Arduino HC-05 Bluetooth module. After pairing to it with my laptop I saw that I was getting two serial links, COM4 and COM5, as can be seen from the picture below. On COM4 ...
Kennerdol's user avatar
2 votes
0 answers
174 views

Issues with the TX pins for recieving data from the HM19 and HC05

I bought a hm19 (link 2), 2 hc05s, an Arduino micro, and an Arduino due. I'm trying to turn an led on and off using my phone over Bluetooth. I verified that all modules work by themselves. So here's ...
Shreyan J's user avatar
1 vote
2 answers
510 views

Serial connection between Processing and Arduino doesn't work

I'm trying to connect an Arduino Nano Every and Processing via serial. I'm getting no errors on either side, and the arduino serial functionality works otherwise on the arduino IDE. I'm connecting on ...
Zhelyazko Grudov's user avatar
1 vote
1 answer
2k views

Serial connection between arduino and processing doesn't work; Port busy

I'm trying to connect arduino and processing via serial. Whenever I run the processing sketch I get the following error in Processing: RuntimeException: Error opening serial port COM26: Port busy ...
Zhelyazko Grudov's user avatar
0 votes
2 answers
232 views

Arduino Nano: Send a few bytes over Serial with as little delay as possible

My scenario is the following: I have a few buttons connected to an Arduino Nano, which is connected to my PC over Serial. Now I want to send a few bytes whenever a button is pressed, to be interpreted ...
Chris Stenkamp's user avatar
1 vote
0 answers
29 views

Serial communication between Python & Arduino: [duplicate]

I need to transfer information between pyton script and arduino. Data is always built like this "wheelbase:1000" wheelbase can be another word and 1000 can be another value, : is always the ...
vib's user avatar
  • 113
1 vote
1 answer
154 views

Arduino native USB port and Simulink [closed]

I am trying to communicate through the native USB port of the Arduino Due with a PC. The native port itself works, I have tested this. The problem is, that every time I upload my Simulink model via ...
Lemonbonbon's user avatar
0 votes
1 answer
1k views

Optimised random alphanumeric string generator

I'm trying to build arduino nonce generator, but the only thing I found is this question on arduino forum but I can't find out how to make it work for me. I checked and Serial.available() is always 0 ...
krystof18's user avatar
  • 315
1 vote
0 answers
51 views

SoftwareSerial fails to receive on Nano but works with Uno [duplicate]

I have built a circuit board that includes a BLE module and an oxygen sensor that has a UART. Writing arbitrary data to the BLE works fine, but for some reason every configuration of SoftwareSerial I ...
Ten Bitcomb's user avatar
1 vote
1 answer
129 views

Peculiar behaviour of arduino pro micro

I am working with an arduino pro micro and I am facing a peculiar problem. The project I am working with includes arduino MKR NB 1500 as well. I am transferring data from MKR NB 1500 to arduino pro ...
sud.ng7's user avatar
  • 31
1 vote
1 answer
1k views

How to send multiple data over serial in one byte?

I'm currently reading 3 limit switches and sending those data over Serial.write using the following code. #include <SPI.h> #include <Wire.h> #include <arduino-timer.h> //Define ...
Nisal's user avatar
  • 15
1 vote
2 answers
505 views

Serial.write - sedd ascii characters with hex value in the same line [closed]

Working on making a controller for a haunted house prop. Trying to get it to interface with a device. Was able to use a serial analyzer to see what commands and values are being sent. the hex codes ...
tookys's user avatar
  • 11
2 votes
0 answers
150 views

Simulink resets arduino

I am working on servo motors control through serial communication protocol, I am sending data from Simulink to arduino and vice versa, The problem I am getting is that once I open Simulink Servo ...
HDne's user avatar
  • 21
0 votes
2 answers
656 views

Serial comm UART1 works on Arduino but makes ESP32 continuously reboot

This comm sketch simply read incoming bytes from the UART 1 where a device is attached. It works normally on a real Arduino device. But on ESP32, it makes it continuously reboot with the following ...
Stéphane de Luca's user avatar
2 votes
1 answer
528 views

Fail upload sketches to ESP8266 only on Ubunto 20.04.3

I installed a fresh copy of Ubuntu 20.04, and Arduino IDE1.8.16. At the beginning adding user to dialout group enabled uploading sketch to Aruino AVR family, and ESP32, but still ESP8266 gives this ...
guyd's user avatar
  • 1,033
1 vote
1 answer
477 views

Serial Monitor in Arduino works, but other Serial Terminal work only one way

I have a Arduino code working on a Adafruit Feather STM32F405 Express, and as long as I test it with Arduino serial Monitor, everything works perfect. As I want to use a serial terminal (a C# ...
2diabolos.com's user avatar
0 votes
3 answers
642 views

Where are these junk characters (from serial) coming from?

I currently have 2 Arduinos both hooked up to HC-12s and have successfully got them communicating. But I am now trying to be able to process the data sent across and store it as a variable so as to ...
dka13's user avatar
  • 3
2 votes
1 answer
142 views

So many missed bytes with serial comm

I have a setup with serial comm from Raspberry Pi to Arduino. It's communicating at baud 9600 on both devices, and from Raspberry Pi 3b+ GPIO-14,UART0,TX0 to Arduino Nano RX0. There's a level shifter ...
errolflynn's user avatar
4 votes
4 answers
2k views

Bi-directional UART communication on single data wire, possible?

The nano is inside of the house, and the pro mini is outside of the house. I want to send/receive text between them. The communication will be always nano sending text to mini, and then mini sending ...
Damn Vegetables's user avatar
1 vote
2 answers
550 views

which is the best way to declare Serial while creating Arduino library?

Well, I am trying make a library for HMI display. display and Arduino comminicate with Serial. So I will so many times Serial port. Generally I will use Serial.write commend. if I examine other ...
mehmet's user avatar
  • 277
0 votes
1 answer
470 views

No response from instrument via serial communication

I am using a Teensy 3.6 to communicate with an external instrument via a serial connection. However, I am not able to get the instrument to respond to my commands. The idea is to send a command from ...
baccandr's user avatar
  • 103
2 votes
1 answer
575 views

Swap Serial pins of ESP8266?

I have designed and manufactured a PCB which contains an ESP8266 (ESP-WROOM-02D) chip with the serial uart pins connected to a 30pin connector. I made a mistake on the layout (first time designing a ...
tommy-b-10's user avatar
2 votes
1 answer
272 views

Getting constant PWM value based on user input from serial monitor

I am trying to get a constant PWM value from the PWM pin based on the user input. For example: the user hits 1, the output PWM value is 100, if it is 2 the output would be 200. This will continue till ...
Dave's user avatar
  • 59
1 vote
0 answers
383 views

Serial monitor constantly reads input with unknown characters

I am trying to read input from the serial monitor on my Arduino UNO using the new Arduino IDE 2.0 and send a specific infrared signal depending on the command. I do this using the following code: #...
JohnDizzle's user avatar
0 votes
2 answers
1k views

Serial to USD (HID keyboard device) converter

I am working on a project to collect data from a barcode scanner using an Arduino, which in turn is connected to a POS/laptop. So far I am able to collect the data from the barcode scanner by using ...
sud.ng7's user avatar
  • 31
1 vote
1 answer
76 views

What is the overhead of a saturated serial connection at 256k baud?

I have am putting together multiple arduinos on a RS485 network (connected to Rx/Tx on the arduino and using Serial - connection via one of these https://www.ebay.co.uk/itm/272929871278) - RS485 ...
Simm's user avatar
  • 51
2 votes
2 answers
4k views

Printing the array using print and serial write function in Arduino Uno

I have, one program with only using printing array and other with serial write and print function for the array, while using serial write and print function I get these extra characters between the ...
voticoy's user avatar
  • 21
1 vote
1 answer
1k views

How to convert a String to Hex array

I am trying use a HMI display. If I want to send a data, for example I want to write "TOPWAY" to 0x00000080 address it should like that: Serial.write(0xaa); // packet head Serial....
mehmet's user avatar
  • 277
0 votes
1 answer
1k views

Using index of to search for multiple characters

In my Arduino project, a string will be received. I understand using .indexof to find the placement of a certain character in the string. My problem is that I need to find the first occurrence of any ...
dcal's user avatar
  • 1
1 vote
1 answer
324 views

Find OK or ERROR in serial string

I am trying to figure out how to capture the OK or the ERROR from a SIM800l. I have tried mySerial.println("AT"); while (mySerial.available() > 0 ) { String str = mySerial.readString(); ...
maxum's user avatar
  • 143
2 votes
2 answers
153 views

how can I accurately recieve potentiometer values over the USB port?

I want to read the analog values of my ardunio uno into a separate c++ program. On the Arduino I have a serial port initialized for 9600 baud: int sensorPin = A0; // select the input pin for the ...
j0h's user avatar
  • 882
1 vote
1 answer
581 views

Arduino Nano not recognized by Mabook Pro M1

I am new to Arduino and I have ran into an issue. When I first tried to plug the arduino nano (after market, from ebay) into my computer (Macbook pro M1), nothing happened. Then I downloaded the ...
Nicolas Fortin's user avatar
1 vote
0 answers
65 views

Program a mega2560 from a different Serial port

I want to be able to use my HC-05, currently on Serial3 to download code to on my 2560 from a connected android tablet. I'm currently running MegaCore, which has optiboot on it. I've looked for ...
Thom's user avatar
  • 173
2 votes
2 answers
143 views

Stuck In While Loop

So I'm a beginner at Arduino and I have to light up an LED grid to show digits from 0-9. I wrote a bit of code (with the help of some people) and it's like 90% done but there's this ONE problem. I ...
BertjeDP2000's user avatar
1 vote
0 answers
96 views

Serial communication problems

When I run this script serial communication just stops after a random period of time. There is no error it just stops outputting data and does not respond to inputs in IDE. Does anyone know a fix for ...
kiranmclernon's user avatar
1 vote
1 answer
177 views

Arduino randomly stops sending data to python over serial

I want to send commands to Arduino over USB Serial from my python program and Arduino should send back received command to make sure data wasn't lost. However Arduino randomly stops sending data back. ...
Wisien's user avatar
  • 21
1 vote
1 answer
648 views

Arduino NANO clone not detected by computer

I recently purchased 5 Arduino Nano clones and on my Windows PC they were all working fine. I then gave one to a friend and after installing the CH34OC driver on his Mac he was able to program a ...
dajaco81's user avatar
0 votes
1 answer
118 views

Listening Serial Ports

guys. I need your help. I have 6 Serial Channels and I need to listen this channel and be sure which channel is working? How can I do that? Can I listen this channel by using digital inputs? Or Do I ...
A Alptekin's user avatar
1 vote
1 answer
266 views

Sending Data Between Arduino Nano and D1 Mini

I am sending data from Arduino Nano to D1 Mini, Transmitter is Arduino Nano Transmitter Code: #include <DES.h> #include <SoftwareSerial.h> SoftwareSerial link(2, 3); // Rx, Tx DES des; ...
VinRocka's user avatar
  • 145
1 vote
1 answer
857 views

Writing multiple inputs to serial port using a while loop

I am trying to get the serial monitor to prompt me to input two settings - the PWM level and the Resonance level. I am being prompted to input the PWM level, but before I can input the Resonance level ...
PrematureCorn's user avatar

1 2 3
4
5
43