Questions tagged [serial-data]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
35 views

Novice learning Serial.readString()

New to Arduino, getting into String variables and reading them from serial monitor. Basically what I'm trying to do is have the user input either red, green, yellow. Whichever String they enter the ...
user avatar
  • 11
1 vote
1 answer
10 views

Noise in RF 434 transmitter and receiver

I'm working on RF transmitter and receiver modules using two Arduino UNOs. I'm getting an additional noise on the receiver side in serial.println. To be more clear about the question. Hre is my ...
user avatar
1 vote
0 answers
26 views

Can read Serial but cannot write - serial communication Arduino Mega 2560 clone

I am having issues using the following USB to UART module. I am using an Arduino 2560 clone. I have two connections with the Arduino: COM7 which consists of the given module, connected to the main ...
user avatar
-2 votes
1 answer
38 views

My Atlas Scientific sensors measurement give zero values at first reading

I am still continuing my hydroponic nutrient monitoring project. In short, I made a hydroponic nutrient monitoring system with I2C connection, and decided to do serial communication with Raspberry Pi ...
user avatar
1 vote
1 answer
2k views

Conversion from ASCII uint8_t to string

I am sending a string from a Raspberry Pi to an ESP32 via BT. I am getting one ASCII value per line. How to convert it into one whole String? I tried as follows, but I get an error while running the ...
user avatar
-1 votes
2 answers
48 views

reading strings from multiple Arduinos

So I have 5 Nanos all trying to crack a password, the idea is each one has one fifth of the list so they can test 5 at a time, then when it is found, I want it to be displayed on a screen I have, the ...
user avatar
0 votes
1 answer
31 views

When using the IRremote library- why does it say 64 bits when after converting the hex to binary it comes out to be less?

I get this code output on my Serial when the IR receiver gets a signal: Protocol : GREE Code : 0x01C02350000000E0 (64 Bits) Mesg Desc.: Model: 1 (YAW1F), Power: Off, Mode: 1 (Cool), Temp: 16C, ...
user avatar
  • 3
1 vote
2 answers
69 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 ...
user avatar
1 vote
1 answer
56 views

Issue with input from weighing scale controlling a stepper motor based valve

Hello and thanks for any help in advanced. What changes do I need to make to my code to get rid of the issue of the valve opening up again at end of cycle in "Auto" function. Hardware: ...
user avatar
  • 11
1 vote
0 answers
40 views

Arduino Visible Light Communication(Audio transmission)

I think this is a broad question. I'm currently implementing visible light communication with Arduino. I'm using a laser as my transmitter and LDR as my receiver. I'm able to transmit a text from one ...
user avatar
1 vote
1 answer
361 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 ...
user avatar
  • 15
0 votes
0 answers
47 views

I'm looking for the StreamSend.h library for use in Arduino/ESP8266 serial communications using struct [duplicate]

I've come across an interesting yet old article within StackExchange which has great examples of sending structured variables over serial communications. The library StreamSend.h and it's source code ...
user avatar
  • 11
1 vote
2 answers
202 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 ...
user avatar
  • 205
1 vote
1 answer
137 views

How to send data from one Arduino to another isolated?

I have no experience about serial communications, with that being said; I have two circuits isolated from each other and each have a ATMEGA8 reading a voltage on their ADC. I want one of them to send ...
user avatar
1 vote
1 answer
106 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(); ...
user avatar
  • 141
2 votes
1 answer
629 views

Read serial with header and end marker

I am trying to use Topway display for HMI lcd with Arduino. This display using RS232C protocol at docs it has a "Communication Packet Structure" like this. So my query should start with AA ...
user avatar
  • 205
1 vote
1 answer
113 views

Can’t send string from arduino to processing via hc05

I’m trying to send and receive data from my laptop to arduino nano via hc05 Bluetooth for a rocket flight computer. For some reasons which I don’t know, I can send data from processing software using ...
user avatar
  • 33
1 vote
0 answers
74 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 ...
user avatar
1 vote
0 answers
119 views

Send Multiple Sensors Data into single Packet in Arduino

I have two sensors data in packet but now I want to send these two sensors data into single packet in which these two sensors data are gathered. I mean I want to have a packet in which I have oxygen, ...
user avatar
1 vote
1 answer
135 views

Send packet of multiple sensors data to Bluetooth module

In my project I am using 3 sensors. I am sending a regular stream of sensors data to Bluetooth module but now I want to send data in form of packet (which may be 30 bytes or 40 bytes of size) in ...
user avatar
2 votes
0 answers
66 views

Unknown text printing on Serial Monitor [closed]

I want to use the Serial Monitor for some debugging, but it prints something else. Edit- This only happens if I use the attachInterrupt() function I tried another program that does not use interrupts ...
user avatar
  • 462
1 vote
1 answer
635 views

Arduino Serial.readString() trouble

Hello everyone I write my code and have some troubles. When I write on in my serial monitor my buzzer condition wasn't changed. Can you help me realize the reason. I wrote code with int type and it ...
user avatar
1 vote
2 answers
100 views

Purpose of LED indicator

I am using an arduino mega clone called the Funduino. I am developing a python based, tkinter application that will receive the serial data that arduino sends. However, i am witnessing some behavior ...
user avatar
  • 1,323
1 vote
0 answers
43 views

processing data received via serial

Hey i'm trying to make an Arduino that can log key presses from a keypad and save that as a variable. When it receives information from another arduino via serial I want it to create a variable from ...
user avatar
  • 51
1 vote
0 answers
29 views

Directly synthesising an OOK modulated LF signal using a CSV file

I'm looking to transmit some data (CSV files) from a measurement instrument underground to a receiver on the surface. I've learned that in order to penetrate the limestone, low frequencies have to be ...
user avatar
-1 votes
1 answer
666 views

Send data from one NodeMCU to another NodeMCU using Serial Communication

i am using NodeMCU (ESP8266) to communicate with another NodeMCU (ESP8266) using Serial Communication. Because i am using ESP-NOW to communicate and ESP-NOW and WiFi can not work together very well so ...
user avatar
0 votes
1 answer
121 views

Controlling LEDs with bit bang method

I'm doing a research for RGB LED chips that MCU can control with one pin. I found this LED chip and it seems controlling LEDs is not as I've tought. I understand hardware part, software side is a ...
user avatar
  • 213
0 votes
1 answer
407 views

Not able to upload code to NodeMCU

Im now working on a Node MCU based project but the problem is that i cannot upload the code to the board. Further more whenever i connect the usb to the NodeMCU my keyboard stops working and only ...
user avatar
1 vote
0 answers
44 views

Arduino Serial Communication possible with IDE 1.8.5 but not with IDE 1.8.13

I have the following problem: I am working with an Arduino Nano 33 IoT and a second serial interface via sercom0. The code is just taken from this tutorial: http://www.getmicros.net/serial-...
user avatar
1 vote
1 answer
80 views

Laser tripwire and LDR

I am planning to make a laser tripwire but I have an issue. Let me explain what I am trying to do: Making a laser tripwire is actually pretty easy at its core. You just need an LDR and a laser diode. ...
user avatar
1 vote
2 answers
3k views

Read Comma Separated String

I have a string that looks like this "10.00,20.00,-50.00," in which these are angle values and they have 2 decimals and can be negative. I want to separate them into 3 separate floats. Here ...
user avatar
-1 votes
1 answer
143 views

storing 600 unsigned int values in an array and find minimum and maximum values

I am reading an ASCII serial data values from a sensor and storing it in an unsigned integer variable. The values are ~45000 to 50000 range. I need to store 600 values and then find the minimum and ...
user avatar
1 vote
0 answers
30 views

serially parse integer after serially read

I want to write below code but I don't know where I doing wrong, so please help me solve this issue. Serially read some text like number then I want to serially parse integer value into some variable ...
user avatar
  • 31
1 vote
0 answers
52 views

Arduino wait for incomming data from blynk terminal [duplicate]

I need to add wait command in code where it waits the next input value from blynk terminal to arduino? How can I do that? please help, I will appreciate your help, Thank you. Here is my code ...
user avatar
0 votes
1 answer
183 views

Serial Communication, if statement not working

#include <SoftwareSerial.h> SoftwareSerial my (D6,D7); //(Rx,Tx) String msg; void setup() { Serial.begin(115200); my.begin(9600); } void gas() { Serial.println(msg); if (msg == "0&...
user avatar
1 vote
0 answers
368 views

Uno to ESP32 - HardwareSerial repeats value on ESP32's side even though Uno is disconnected

I have an Arduino UNO connected to ESP32 through voltage divider with TX0 from Uno to RX2 to ESP32. My goal is to send data from my Uno to my ESP32 through HardwareSerial. Here's my code for the Uno: ...
user avatar
  • 121
1 vote
0 answers
539 views

Arduino UNO not sending serial data to ESP32

Lately I've been struggling with Serial communication between Uno and ESP32. I'm trying to send a simple string (In my case "100") from my Uno to my ESP32. I made a voltage divider and I'm ...
user avatar
  • 121
1 vote
0 answers
87 views

Help with reading and storing data from sim module

I'm using a sim800C module and an Arduino Uno. I want the code to send back an SMS to a number which sends it the password. So, if the sim module receives 'abcd' I want it to send back an SMS, saying '...
user avatar
1 vote
1 answer
2k views

Arduino split comma separated serial stream

I'm trying to read serial data into Arduino. I usually use a Serial to USB cable to connect to the hardware and is sending data like 33,Z,35.0,F,1073741.824,I,0.0,0x68 33,Z,35.0,F,1073741.824,I,0.0,...
user avatar
  • 13
1 vote
2 answers
151 views

Can we use UART COMMUNICATION with MCP23017?

I am using MCP23017 as a GPIO expander with Arduino in my project. I have too many serial devices and no pins left on Arduino for UART communication. I am wondering if I can use this MCP23017 GPIO ...
user avatar
0 votes
1 answer
122 views

How to send a number as a byte?

I want to send a number between 0 and 120 as a byte over Serial port. I'm working on a project that involves sending ultrasonic sensor readings over Bluetooth to an Android. I would like to send the ...
user avatar
  • 205
1 vote
1 answer
41 views

Serial broken into two shorter shorter strings

I'm trying to do a serial read: if (Serial.available() > 0) { int inputValue = Serial.read(); Serial.println(); Serial.println("I got this:"); Serial.print(inputValue, BIN); } ...
user avatar
1 vote
0 answers
606 views

Connecting OV2640 with 17 Pins Binocular Camera module, to any microcontroller (System clock on module pin 18 -NC)

These pins are on the module: 3.3V GND VSYNC SCL SDA HREF D0-D7 DCLK PWDN I have tried many codes and connections of the OV7670 Monocular cameras, none seem to work(Instructables , Circuit Digest , ...
user avatar
0 votes
1 answer
362 views

Serial Read Data Loss With Arduino Nano

I am trying to use Serial reading from a python serial code (which is running on my Jetson Nano) in my project, but in some loop in my code, my data is receiving wrong. I use Serial.readBytesUntil() ...
user avatar
1 vote
0 answers
216 views

Splitting a string in arduino from computer

I am having an issue splitting an incoming string from a computer program to arduino. The incoming format is as follows: 123.456,987.654 \r\n The comma separates the two values. code is this(edit to ...
user avatar
  • 11
0 votes
2 answers
48 views

Turn RGB blinker via serial

I have a BLUno bluetooth arduino based on uno. the logic kind of works, I am connecting ok to the phone, getting and sending messages via blue tooth but with the serial data, Im having problems ...
user avatar
0 votes
1 answer
144 views

Adafruit thermal printer prints weak

I am currently hooking up my arduino to an adafruit mini thermal printer. When a button is pressed, some code is executed which then sends some information to the thermal printer. Everything works ...
user avatar
0 votes
1 answer
41 views

Line not printing int in Serial Monitor

I'm trying to make a kernel for a macro-key maker, this is the starting page's code: char m[] = "What do you want to do? Type the following commands in this " "terminal:\nnew --> Creates a ...
user avatar
2 votes
1 answer
98 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 ...
user avatar
0 votes
1 answer
64 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 ...
user avatar