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
0
votes
1answer
35 views

Which libraries for DS1302 real time clock and WS2811 LED strip do not conflict?

I am making a custom wall-clock, and need the Arduino (Uno or Nano) to connect to a DS1302 real time clock module and a WS2811 LED chain. So I’m using DS1302 for the clock, and FastLED for the lights....
0
votes
0answers
16 views

Arduino RS485 communication protocol - minimising overheads and best practice

I'm building a single master multiple slave RS485 network for remote sensors on test equipment. I have the hardware built and working, and I can do a Serial.print on the master and have the slaves ...
0
votes
0answers
13 views

Aruino UNO not getting programmed on MAC OSX

I am using MAC OSX Mojave and trying to program an Arduino UNO board. However, whenever I start the Arduino IDE, I only find one port in the ports section called: /dev/cu.Bluetooth-Incoming-Port. ...
0
votes
1answer
33 views

How to create a USB CDC device. (I'm using stm32f103c8 black pill board) and I want to read the data through USB in my raspberry pi as a serial port

How to create a USB CDC device. (I'm using stm32f103c8 black pill board) and I want to read the data through USB in my raspberry pi as a serial port. I am using a black pill to read RFID-rf522 to ...
0
votes
2answers
40 views

Reading from 2 serial ports

I have 2 Arduino Nano, they are connected via ports 2 and A2 While I use only one port to receive, it works properly. But if I activate the second port, system crash (and even first port don't work ...
0
votes
1answer
35 views

HC-12 modules stopped receiving, cannot understand why

I've created a simple transmitter with an HC-12 and an Arduino Nano (clone), where I send the values of DHT11 and LM35 sensors to a receiver unit made only of a Wemos D1 and another HC-12. Setup is ...
0
votes
1answer
36 views

GSM incoming bytes from UART not complete

I have used AT commands to read incoming bytes from serial buffer from SIM900A but I cannot get the complete message using the code below: while(ss.available()>0) { inChar=ss.read(); inString+=...
1
vote
1answer
37 views

Arduino accepting only alternate characters

I am writing an Arduino code to receive SMS from a SIM800 module and then send the same message back to the sender. My code is as follows: #include<SoftwareSerial.h> SoftwareSerial mySerial(9, ...
1
vote
0answers
22 views

How to access native USB port of Arduino Due on Synology NAS?

I would like to flash my Arduino Due from my Synology DS218+ NAS which runs on an Intel 64bit Linux-derivate platform. Previously, I was able to flash a Mega 2560 from this NAS via avrdude and ...
0
votes
0answers
22 views

Setting up Software serial connection between Esp8266 and Arduino

I have a Lolin Wemos D1 R2 and mini version of ESP8266 and an Arduino UNO. I have connected the pin described as Rx in Arduino to the pin described as Tx in ESP8266 and the same for pin described as ...
1
vote
1answer
19 views

i am having Strange issues when trying to read form gps serial connection

I have an Adafruit Ultimate GPS connected to a MEGA2560. I am trying to get the data from the buffer and do other data processing at the same time, however. when i allow other processing to be done ...
0
votes
1answer
41 views

Random characters transmitted from ESP8266 to Arduino

Below is the code for getting a value from Firebase and sending the received data to arduino for performing necessary action. The code here here sends a string "o" to arduino once //uploaded to ...
-2
votes
0answers
45 views

Serial Communication Problem Between - Arduino UNO and ESP8266 (ESP-01)

I have built a Small Project to illuminate a connected LED on the Arduino-Uno via the internet by ESP8266-01 using the adafruit website but the problem is getting a wrong result and not lighting the ...
0
votes
1answer
45 views

Fixing serial communication , condition for serial data available checks out even after reading all the data sent

I have been working on monitoring an aquaculture , where I log the environment variables (temp. , humidity, gas sensor data) to firebase and control feeding mechanism via an app(where data can also be ...
-1
votes
0answers
29 views

Why does this function get stuck?

I want to read some data from another Arduino using I2C. I wrote this function for it: float s; byte buf[4]; float requestSpeed(unsigned int id){ Wire.beginTransmission(1); Wire.write(...
0
votes
1answer
1k views

Badly formatted characters using JDY-30 bluetooth module

I have a JDY-30 bluetooth module and have it wired like this (except using an Arduino Uno): It is working, but I need to use it with a 115200 baud rate instead of the default one of 9600. I also got ...
5
votes
2answers
1k views

Arduino to arduino serial communication without a library

So I'm trying to send an array from one arduino to another through serial communication, without using the software serial library. The arduinos are wired rx->tx, tx->rx and ground to ground. I have a ...
3
votes
2answers
9k views

Why can't this C++ program read my arduino's Serial.write()?

I made a super simple arduino uno sketch to send a serial byte once every second: void setup(){ Serial.begin(9600); } void loop(){ Serial.write(12); // send a byte with the value 12 delay(...
2
votes
3answers
3k views

Trying to flash ESP8266 with Arduino UNO

This is my first project other than some of the starter projects. I am trying to flash the firmware onto an ESP8266 wifi module using and arduino uno. It would be nice to know if anything is wrong/...
-1
votes
1answer
60 views

Parallel communication between multiple Arduino

Here's a post which explained the communication standard. I need to establish communication between multiple Arduino nano board. I have used SPI bus on one of the Arduino board for wireless ...
2
votes
2answers
2k views

Arduino crashing during serial print for no obvious reason

I've written some Arduino Code which kept crashing and i couldn't find out why. Then i reduced the code as much as i could in order to see the problem. The reduced code currently doesn't do anything ...
-1
votes
0answers
12 views

va_arg glitches for char [migrated]

I try to use va_arg to retrieve next argument in function. It works well for all types (including char*) but char: void test1(char t,...) { va_list args; va_start(args, t); if(t=='c') Serial....
0
votes
1answer
72 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 ...
1
vote
4answers
3k views

formatting strings in Arduino for output

I wander what is the best option for formatting strings in Arduino for output. I mean what's a preferable way in the point of view of performance, memory usage – things like that. I see, people ...
0
votes
4answers
340 views

How to convert read characters to strings?

How can I append a string e.g. "AA 00 01 00 FF FF A2" to serial data using Arduino? The following code does not seem to be correct: String comdata; void loop() { while (Serial2.available() > 0)...
0
votes
1answer
99 views

How to prevent the garbage data when the serial port is initialised?

I use Arduino Uno. I get garbage in Serial Monitor or HyperTerminal right after I connect to the port. Here is an example code: void setup() { // initialize serial: Serial.begin(57600); } void ...
0
votes
1answer
5k views

Did not find fingerprint sensor :( Arduino Mega 2560 Adafruit Fingerprint Sensor

I'm getting the following error when I try to enroll fingerprints using the Arduino Mega 2560 microcontroller along with a Fingerprint Scanner: Did not find fingerprint sensor :( The exact devices ...
0
votes
1answer
100 views

C: No communication to a connected serial port?

I'm trying to connect to an arduino Mega At2560 unit connected via usb serial port in my linux based PC. Using C code, I'm trying to send and receive simple text strings, just I'm able to send and ...
0
votes
2answers
64 views

Interfacing Arduino with Python Serial

I am implementing an FIR filter using Arduino. I am using an input signal as an audio signal. The audio signal has a duration of 3 seconds with total samples, 66150. What I am doing is reading this ...
-2
votes
1answer
69 views

Why do people use 115200 instead of 9600?

So I came across lots of Arduino program setting serial speed to 115200 instead of 9600, while many people just kept using 9600 for the same purpose. Why did people choose to use 115200 or other ...
-2
votes
0answers
39 views

Must include empty print statement to get program to run

I have a rather large program of the following shape: loop forever while some condition run each program in list by calling the program's 'run()' function end while end loop I'm running it ...
0
votes
0answers
31 views

write from one board's pin to read of another's not working

I have an Intel Tiny Tile boardThis board is based on the Intel Curie, and can be read in Arduino as an Arduino 101. I'm using this board's accelerometer to register the bounce of someone on a ...
0
votes
0answers
38 views

Arduino Serial mappings [duplicate]

I'm having trouble writing exact values to the arduino. I have an led strip that I want to control using software on my computer (Processing Serial equivalent), but the values received don't seem to ...
0
votes
0answers
24 views

SAM3X8E Maximum Serial Speed

Does somebody know which is the maximum serial speed one can achieve by using the Microchip SAM3X8E microprocessor with Serial Communication between other uC with a RS485 module? The Arduino Due ...
0
votes
1answer
28 views

Simultaneous Serial reading and writing

I am trying to read long strings from the Serial, using arduino. In order to spare some RAM I don’t use Serial.readString(). I use Serial.read() instead. During the reading, I also print some debug ...
0
votes
2answers
43 views

how to get serial data to wait until a certain length is reached

I have a code that loops through 2 different serial inputs on the arduino mega, and sends them to serial constantly: int RFIDResetPin = 13; void setup() { Serial.begin(9600); Serial1.begin(9600);...
0
votes
5answers
7k views

Digispark Serial Port Communication

I am using Digispark ATTiny85 and i need to send and receive data through the serial port of my computer. Does anyone have an idea as to how do i proceed with sending STRINGS and NUMBERS through the ...
0
votes
1answer
60 views

Voltage meter ADC + serial: Bytes lost during communication

I want to make a simple digital voltage monitor. So I have a sketch: void setup() { Serial.begin(115200); } void loop() { int val = analogRead(A4); // read the input pin val = 1; byte ...
1
vote
2answers
77 views

What happens to serial output when no-one is listening?

This question probably needs a better title but I'm having trouble thinking of one! Please feel free to edit or suggest one. My target system is a pair of Arduino Leonardos linked by XBee radios. One ...
1
vote
1answer
1k views

Arduino Serial Monitor works but not on PySerial and PuTTY

I made simple custom arduino board using an atmega328p and the PL2303 serial to USB chip. In my arduino program, I am in a loop that sends out a string continuously. I can read this in the Arduino ...
0
votes
1answer
43 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
3answers
44 views

Inserting myself in serial communication

I am assigned on a project involving Arduino and Raspbery PI. I have plenty of experience with Arduino and 0 with Raspbery or Linux. Person working quit and there are some problems that need me to ...
0
votes
0answers
21 views

Interrupt for custom Serial receive loop

I have a 300 led neopixle strip that I would like to directly drive from my computer at around 60fps. This involves about 900 bytes per frame, or 54000 bytes a second. I am using FastLED to output the ...
0
votes
2answers
726 views

AI A7 Thinker connection with Arduino

I am trying to connect my A7 to my Arduino Uno but I can't find a way to communicate with it. I searched a lot on the internet to find some schemes but not one of them worked. Here is my actual setup: ...
1
vote
3answers
62 views

If Arduino connected to computer and opened up Serial Monitor, will Tx and Rx pin still be working?

Suppose one connected two of the Arduino Uno boards through Rx and Tx pins. Then, if one or both of the Arduino boards were connected to computer, and possibly opened up Serial Monitors, will Tx and ...
0
votes
1answer
220 views

CPU information on Arduino Serial Monitor

how to show the CPU temperature, CPU usage (percentage) and the memory usage(percentage) in Arduino Serial Monitor.
0
votes
1answer
54 views

Missing buffers with serial communication

I am currently facing a problem with Serial communication with my arduino MEGA 2560. My project is to collect data from an encoder. There are 2 signals : ACP and ARP. For 1 rotation, there are 16 384 ...
-4
votes
1answer
44 views

Serial monitor read value depending on delay

I am working on a small piece of code as shown: When I enter character 'a' in the Serial Monitor and use a delay in between successive reads then the monitor gives out acceptable results(i.e 97 for ...
0
votes
1answer
32 views

Super fast UART transimission return error

The code was based on Fahad Mirza's very helpful example here Send structure through Serial The Sender's code now became struct Gyro_data_structure { char command_name[5]; float gyro_X; float ...
0
votes
2answers
88 views

Send structure through Serial

Suppose that one defined a data structure and wanted to send it through serial. struct Gyro_data_structure { char command_name[5]; float gyro_X; float gyro_Y; float gyro_Z; }; ...

1 2 3 4 5 36