Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
0answers
6 views

Sending a union from Arduino via serial communication and parsing it in python

I want to send a union from Arduino to a python script running on a pc, and I want to parse the received union. I have read lots of topics online but I am stuck on how to do it in the most efficient ...
0
votes
0answers
28 views

Stop getting values from arduino after some time

I have a strange problem, I have Arduino UNO/MEGA and I need to get Gyro sensors's data and I want to see the data in the serial monitor. Seems like a simple task, I wrote a simple C program which ...
1
vote
0answers
21 views

MKR1010 serial communication

Is communication using tx/rx from an arduino to mkr1010 the same as any other serial communication? I ask because I can't find any tutorials or info on connecting an arduino to mkr1010, but there are ...
1
vote
2answers
77 views

How to send and receive unsigned int from one arduino to another arduino

I'm trying to send some big numbers ranging from 0-62000 from one arduino to another via serial communication. I'm using unsigned int to hold values from 0 to 65535. And I'm using serial.print() and ...
1
vote
0answers
21 views

Reading byte per byte from a txt file on SD Card without using the 512Bytes buffer

I am trying to read every sequenced-byte that is located on a txt file in the SD card. I have been reading quite a lot about the SPI and SD libraries, But I have found a lot of different information ...
0
votes
2answers
33 views

esp8266 deep sleep timer slightly inaccurate?

I'm making a door open timer using a hall sensor and have a wemos d1 mini that uses a deep sleep to sleep for 1 minute after checking the hall sensor state and printing the value on the serial port. I'...
0
votes
1answer
16 views

Getting two trinkets to talk to each other via the serial pins

I'm trying to make a quick proof of concept of two trinket M0s talking to each other via their RX and TX pins and I'm not able to get it working. I uploaded sender and receiver sketches to two ...
0
votes
0answers
18 views

problem serial hardware sim7600 arduino due

I am very newbie using arduino. I get a EVB SIM7600 TTL 3V and I am trying to test it using a arduino Due. I need a help please, my simple code doesnt work. The serial monitor only show zeros. The ...
0
votes
0answers
41 views

string.charAt() is not returning the correct value

I know this is a super basic question, and I did try debugging, but somehow I think I am missing the way variable stores value in Arduino. int enablePin = 2; // ebanble pin for slave String ...
1
vote
1answer
68 views

Unexplainable int behavior in encoder/LED project

I am trying to use a rotary encoder to cycle through the brightest versions of R, G & B. And it works! Red goes to blue just fine. Then G happens. For some reason, the int for green goes ...
0
votes
0answers
44 views

how to name master and slave with UART and Serial event

I am trying to implement some small program using below code, now this code works fine and I'm getting data to the slave. But I have more than one slave, so now I'm not sure how to send the Address of ...
0
votes
1answer
52 views

Send Strings via SPI both ways using two Arduino UNOs(Master to Slave & Slave to Master)

I need to create a two way String exchanger via SPI with two Arduino UNOs. Strings and their lengths are independent variables of the main loop and they can change with every iteration. I need both of ...
0
votes
0answers
39 views

SerialEvent with RS485 communication

I am not expert in Arduino programming but i can understand lit bit, while doing review i came across two sets of programs one using serialEvent and one with RS485 library, Now my problem is with ...
0
votes
0answers
18 views

how to fix USBASP Unknown USB Device (device descriptor request failed) - Win 10?

I just recently purchased Usbasp from Ali Express, when i'm connecting it to the windows 10 desktop in device manager its Unknown USB Device (device descriptor request failed). How to fix this error? ...
0
votes
1answer
65 views

Arduino will not read three successive packets in the serial connection

I have written a small program to send serial commands from Python to the Arduino Micro. This is my code for both: Python import serial ser = serial.Serial('COM5', 9600) ser.write(b'0') ser.write(...
0
votes
1answer
45 views

NRF24L01+ (TMRH20 library): Receiver gets blank data

I am working on sample Arduino project for communication over NRF24L01+ (TMRH20 library), everything is working fine with my example except one issue my Receiver gets message but that message is blank....
0
votes
0answers
24 views

HC-02 Bluetooth module not visible

I am trying to connect to my robot car with the HC-02 module. The problem is that the module is visible on my phone only while the arduino uno board is connected to my laptop. At this point I can pair ...
0
votes
1answer
57 views

I want my arduino mega to read from all 4 serial ports at the same time, running sequentially through each one

I currently have the code running through Serial1, which works exactly as I want it to: int RFIDResetPin = 13; void setup() { Serial.begin(9600); Serial1.begin(9600); Serial2.begin(9600); ...
0
votes
1answer
46 views

Strange artifact in writing to serial while executing loop

Hope you can see this. https://gist.github.com/DevilWAH/60ad144d2858f53845ac2e80f84bb070 The main file in this is "morse-led-rfid" which is taking reading data of an RFID tag and then displaying ...
0
votes
1answer
20 views

Can Arduinos keep a 500mu timer?

I need to output a serial message on a 500 microsecond interval (10 bytes), can be a little slower but no more than 1 milisecond between messages. Can it be done with an Arduino? I know there is a ...
0
votes
0answers
18 views

What firmware on ESP-WROOM 02 and how to change to AT firmware?

I just received a Wemos board with an ESP-WROOM 02 on it. I connected it via USB to my Windows PC and launched PuTTY. I set the baud rate to 74880 and the correct COM port. I pressed on the reset ...
1
vote
1answer
32 views

Serial input help

Hey guys I have a LED strip with 6 LEDS (I control these through Kinect & processing. It sends 1,2,3,4,5,6 to Arduino. This seems to work fine.) In Arduino LED0,LED1,LED2,LED3,LED4 work ...
0
votes
0answers
42 views

RS485 Slave doesn't receive any message

I am trying to follow below design to communicate with 2 Arduino Nano, using the example shared here https://github.com/RalphBacon/RS485-Serial-Data-Transmission. When i look at data my slave never ...
0
votes
0answers
19 views

Scanned RFID data is not appearing in the serial monitor

I am attempting to use this code to receive data from 2 ports, alternating between them: /* Software serial multple serial test Receives from the two software serial ports, sends to the ...
1
vote
1answer
27 views

Help with Arduino Micro Keypress Algorithm

Greeting, first time Arduino user here. So I am using the Arduino Micro as an HID keyboard device. It accepts arbitrary input from a Node-JavaScript program I am running (so I have full freedom in in ...
0
votes
1answer
19 views

Is there a simple (permissive license) Leonardo driver for a USB-to-USART bridge to substitute an FTDI chip?

I'm making an ESP32 development board and I'm thinking about putting an Arduino Leonardo chip between the USB port and the ESP32's USART pins to act as a USB/USART converter instead of the FTDI chip ...
0
votes
3answers
38 views

Arduino keeps looping

I made a program where I give a number(4 bit) as input and four led on the breadboard lights up according to its binary. The problem is the program works all well only for (2-15) but if I give 0 or 1 ...
0
votes
0answers
21 views

Serial Connection from Matlab to Arduino

I'm trying to send data from matlab to arduino via serail port using this code in Matlab: Arduino= serial ('COM4','BaudRate',9600); fopen(Arduino); while 1 [x]=FunctionX(); fprintf(Arduino,...
0
votes
0answers
23 views

Software serial and port expanders

On my ESP32 project I've run out of pins and have incorporated using a MCP23017 port expander. I need to run multiple slow serial connections (9600 baud) thru the port expander. Are there any ...
2
votes
0answers
56 views

Can't connect to my ESP32 board via serial

I'm completely new to electronics work. Today I've received the ESP32 board that I ordered. (It's a WROOM-32.) I followed the instructions here. I connected the board to my computer via USB and I ...
3
votes
4answers
302 views

Is there any limitation with Arduino Nano serial communication distance?

I am trying to build Project which communicate multiple Arduino Nanos. I wanted to understand if Arudino Nano is capable of doing that, while doing research I came across post where it says ...
0
votes
1answer
19 views

About UART one transmitter multiple receivers

I have vector nav vn100 IMU that sends data serially rs232...I want to drive 4 servo motors using atmega32 upon roll angel from vector nav vn100..atmega32 can only drive 2 servos using hardware fast ...
0
votes
1answer
43 views

Sending data from Arduino Mega to nodeMCU using serial (Multiple sensor data) & upload to firebase

Im working in a project where i have to deal with multiple sensor data. BME 280 WindSpeed Sensor Water level Sensor x 10 Soil moisture x 5 Soil pH sensor x 2 i have found this code for both arduino ...
0
votes
1answer
45 views

Arduino and Processing Call and response not working

I have been trying to develop a connection from the arduino IDE to Processing so I can send data measured on the arduino Pins to processing to display. I first packaged the 10-bit integers I was ...
0
votes
0answers
27 views

Arduino uno and Nano as master and slave [duplicate]

please help me!! I'm using two arduino (uno and Nano) as master and slave. I wants to control 3 servo which are connected on Nano (slave) by uno (master). Uno have 3 push buttons on it to control ...
1
vote
1answer
57 views

Parsing Integers from Serial data stream

I'm trying to send sensor data from my Remote Control to my Bot via Bluetooth. It's 6 numbers that I would like to have read as integers on the other side. I'm printing them to Serial on the Remote ...
1
vote
1answer
37 views

Getting gibberish serial port until button is pressed, plus the button is turning the leds off instead of on

I'm connecting a button to ESP8266. Connection goes like this: 3v to one side of button, other side connected with GND and pin number 2 (no resistor). Every time I connect the ESP both built in LED's ...
-1
votes
1answer
34 views

Software and Hardware serial same time [closed]

Im using Arduino MEGA and using Hardware serial 1 and one software serial interface for communicate two different devices Nextion HMI(hardware serial 1) and Modbus temperature controller(software ...
0
votes
0answers
26 views

HX711 Wemos D1 Weird Characters In Serial Monitor

I am using the HX711 with a load cell attached on my Wemos D1. I have the connections correctly as if I use the same setup on my Arduino Uno board and the same code it runs fine and prints to the ...
0
votes
0answers
20 views

tty doesn't list ttyUSB0 so arduino doesn't list serial ports

Okay so lsusb gives Bus 002 Device 019: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter dmesg|grep 'ttyUSB' gives [63723.589107] usb 2-1: ch341-uart converter now attached to ttyUSB0 ...
1
vote
1answer
46 views

Sending mouseX and mouseY from Processing to Arduino

I'm new to serial communication and trying to send mouseX and mouseY from Processing to Arduino. Serial monitor doesn't show anything. Processing code: import processing.serial.*; Serial port; void ...
0
votes
0answers
19 views

Connect three android to one arduino mega

Android Arduino Mega SerialPort1 SerialPort2 SerialPort3 Is it possible to connect three Android tablets to the Arduino mega through three SerialPort? Rx1 Tx1; Rx2 Tx2; Rx3 Tx3 I managed to connect ...
0
votes
1answer
43 views

Programming the serial description

Is it possible to program a custom description so that my python program can know exactly what USB port to connect to for that specific programming? It should be able to find any board with that ...
0
votes
0answers
63 views

MQ7 Flying Fish output format

I am new to Arduino project. I used MQ7 flying fish sensor to sense the CO. Ok now I connected everything as mentioned in various tutorials, such as Arduino CO Monitor Using MQ-7 Sensor. Also wrote ...
0
votes
1answer
35 views

How can I compare two serial port readings on Arduino Mega?

I'm writing some code that compares information from two Arduino Unos by an Arduino Mega 2560. The problem that I'm having is that when I read the information coming in through Serial1 and Serial2 on ...
1
vote
2answers
62 views

Issue with Indenting the Serial Print data in the Serial Monitor

I have a question with Serial Print. I want the Sensor reading values to fall under 3 columns, and each column should have the readings from the same sensor. Raw Value | Sensor 1 | Sensor 2 | ...
0
votes
1answer
46 views

Wanted to control 2 servos with serial read [closed]

I want to use 2nd servo only when 1st is in up state by asking user whether he wants to fire or not.(code in bold is not working ) #include <Servo.h> Servo myservo; Servo trigervo; ...
0
votes
1answer
29 views

Can I daisychain multiple Arduino Nanos to a single USB port (specialized purpose)

I need to have several Nanos on one USB port. They will have separate power, so power constraints won't be a concern. I need them all to go through the same serial port. They will never get anything ...
2
votes
2answers
46 views

What is the purpose of Serial.println() without an argument?

I am attempting to control a stepper motor with Sparkfun's Big Easy Driver, and I see the line "Serial.println();" they put in the example code. Why is there no argument and what function does this ...
2
votes
2answers
38 views

Ensure board is always on the same port?

I want to make a VB.NET program to communicate over serial with the board, but I need to be sure it knows which port. Instead of programming in more advanced methods of verification, for this project ...