Questions tagged [serial-data]

Sending one data bit in a time. Used mostly in RS232 context.

Filter by
Sorted by
Tagged with
4 votes
2 answers
13k views

Sending serial data in an interrupt

An ATMEGA328-P chip is used with a toggle switch attached to pin 8 and a momentary switch attached to pin 9. My objective is to send the following information over serial: The status of pin 8, every ...
Greg's user avatar
  • 143
3 votes
1 answer
242 views

How to ignore garbage values in serial communication between arduino and python

I have arduino uno. I am trying to send and receive serial data from arduino to python. I have usb to uart converter. I have connected its tx to rx of Arduino and rx to tx of Arduino and gnd is ...
S Andrew's user avatar
  • 183
3 votes
1 answer
4k views

Arduino USB and 9V

I'm working on a project for interfacing the Arduino with the Raspberry Pi. I need to be able to exchange serial data between the two using the USB port. My question is, can I do that while having ...
user35288's user avatar
3 votes
2 answers
613 views

Serial data affected by interrupt

In my recent project, I have done everything means capture serial data and split it out in proper form. Until now everything is fine. But when I add another portion of code which contains Interrupt. ...
Hasan's user avatar
  • 1,476
2 votes
1 answer
1k 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 ...
mehmet's user avatar
  • 287
2 votes
2 answers
460 views

How to call 5 different functions in a loop based on serial input?

I have 5 types of such functions with different input parameters. blink(int a,char* b, int c); fade(int a,int b,int c); split(int a,int d); and so on from serial input what i want is to call this ...
Ravi Parmar's user avatar
2 votes
2 answers
175 views

Is it possible to use Serial window for debug statements while using the hardware serial port for GPS module?

I am using the hardware serial ports of Atmega 328 to connect to a GPS module . A GSM SIM900 module is connected via Software serial . Is it possible to print the debug statements in the Serial window ...
Vj1989's user avatar
  • 23
2 votes
2 answers
1k views

What causes Serial.available() to become false after Serial.read() gets data?

As serial data bytes are being read from the serial buffer by Serial.read(), are they removed from the Arduino's 64-byte serial buffer altogether? In my current situation I'm using SoftwareSerial, ...
JRiggles's user avatar
  • 123
2 votes
2 answers
2k views

How to call more than 10 different functions based on serial input?

I'm looking to basically call functions based on the serial ID I assign to it. For example, if I want to call function A I would type on the serial A and if I want to call function B then I would type ...
Frank's user avatar
  • 51
2 votes
1 answer
130 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. ...
Yağız Alp Ersoy's user avatar
2 votes
2 answers
304 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 ...
Vansh Sethi's user avatar
2 votes
1 answer
145 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 ...
Oliver Taylor's user avatar
2 votes
1 answer
4k views

How do I get a nonzero output from my HX711 and load cell?

I am trying to set up a load cell using the HX711 amplifier. Whenever I upload my sketch, my serial monitor only will read zeros regardless of load applied to the sensor (no signal appears to be ...
kmar13's user avatar
  • 63
2 votes
0 answers
128 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 ...
Coder9390's user avatar
  • 472
2 votes
0 answers
1k 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 , ...
ian noronha's user avatar
2 votes
0 answers
381 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 ...
DEMPEROR's user avatar
2 votes
0 answers
133 views

Help with code for changing motor speed depending on MPU6050 angles read

I have been trying to create code where my MPU6050 is constantly reading the angle it is at and based on that angle, increase or decrease the motor speed. For example the motor will be off when the ...
miles's user avatar
  • 21
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
598 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
  • 287
1 vote
2 answers
178 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 ...
user1584421's user avatar
  • 1,395
1 vote
1 answer
6k views

getting error 'Serial' was not declared in this scope

I am adding Dust Sensor to my particle photon project at home, I got this GitHub project that I want to test before implementing a final code. I am not an expert in cpp, I wanted to modularise the ...
Ciasto piekarz's user avatar
1 vote
2 answers
250 views

Arduino Bluetooth communication is slowing down because of the 'for' loop!

I'm sending data to Arduino through the mobile app. So far, all the code has been running consistently. #include <SoftwareSerial.h> #define FASTLED_INTERNAL #include <FastLED.h> #define ...
bopele's user avatar
  • 41
1 vote
1 answer
6k views

How do I import data from serial monitor to excel document without copying and pasting? [closed]

I need to be able to import incoming data from a motion sensor and then from the serial monitor (where the data is) import the data to an excel document or file. Any suggestions would help, Thanks.
DavidL's user avatar
  • 11
1 vote
1 answer
297 views

Will an Arduino Nano work instead of Teensy 3.2?

I hope this is ok to post here and I appreciate any suggestions or help and opinions/facts to make this work. First off I’ve Never programmed an Arduino device! I was looking at this project: https://...
Sundrop's user avatar
  • 19
1 vote
3 answers
515 views

Read one value from continuous data stream at a lower frequency

I am working on a university final project and have run into a problem with programming Arduino, after a 3 year hiatus. I have a pressure transducer that is sending pressure data at 10Hz. I have ...
bf109k4's user avatar
  • 123
1 vote
2 answers
1k views

Can't print on LCD

I'm a newbie here. And sorry for my bad English first of all. Right now I'm working on VLC (Visible Light Communication). I have working code, in which output is displayed on the Serial Monitor. But ...
PRATIK I PANCHAL's user avatar
1 vote
1 answer
882 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
169 views

memory leak w/ no Strings involved

I'm trying to read data being transferred via Infrared from my Smartmeter on my ESP8266 using the following sketch: #include <ESP8266WiFi.h> #include <ESP8266WebServer.h> #include <...
1_am_r00t's user avatar
1 vote
1 answer
8k 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 ...
matmagdt's user avatar
1 vote
2 answers
558 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
426 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 ...
ElectronSurf's user avatar
1 vote
2 answers
9k 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 ...
DragonflyRobotics's user avatar
1 vote
1 answer
3k 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,...
Andrea's user avatar
  • 13
1 vote
1 answer
2k views

Method to iterate over the bits in a byte sent over serial [closed]

In my current project which integrates Arduino/avr IC with Raspberry-Pi, and each communicating via serial, I'm looking to send a byte of data to the Arduino from the RPi, which then would be iterated ...
Colorado_Technical_Savage's user avatar
1 vote
4 answers
120 views

Arduino reads string from another Arduino only if the string is in a loop why?

In my setup I have connected two arduino's Serially. An Arduino Mega is the on that is sending the string and a Arduino Uno is the one receiving it. Arduino Mega : RX1(19),TX1(18) - Serial1 ...
roaibrain's user avatar
  • 211
1 vote
1 answer
9k views

Receiving hex data from terminal

I am trying to transmit serial data from terminal to Arduino and I want to reconfirm that its the same data. But I am not able to get the right answer. I want data to be HEX. I want to check only the ...
Gaurav Wagh's user avatar
1 vote
2 answers
93 views

Problem regarding getting split data of JSON - Another issue

In my recent project, I'm working with Arduino and JSON. I've successfully split the JSON data I want. My JSON data length is fixed. So, I used the length() function and I'm getting the length of my ...
Hasan's user avatar
  • 1,476
1 vote
1 answer
168 views

HardwareSerial and SoftwareSerial not compatible

The HardwareSerial requires to run an interrupt to store received bytes in the buffer. Look at this file from the Arduino Core. If I am now constantly receiving and writing on the Software Serial, the ...
RenX's user avatar
  • 127
1 vote
1 answer
109 views

Inconsistent results when reading input looking for spike patterns

I'm writing a library that will interface with a control unit on a refrigerator compressor pump (QDZH35G). One of the features of the control unit is that it can detect what problems it's encountering ...
Justin's user avatar
  • 119
1 vote
2 answers
236 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 ...
Moose's user avatar
  • 9
1 vote
1 answer
47 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 ...
Vishnu Vardhan's user avatar
1 vote
1 answer
71 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: ...
MikeD's user avatar
  • 11
1 vote
1 answer
293 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 ...
Brandy's user avatar
  • 33
1 vote
1 answer
406 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 ...
Namra Noor's user avatar
1 vote
1 answer
2k 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 ...
Shushan Abovyan's user avatar
1 vote
1 answer
54 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); } ...
Sarge324's user avatar
1 vote
1 answer
511 views

Serial monitor when port is being used by another application

I am controlling some LEDs via the USB serial port using a Tkinter/Python3x script to debug what I suspect is a hardware problem. from tkinter import * import serial usbport = 'COM3' ser = serial....
DrBwts's user avatar
  • 161
1 vote
2 answers
148 views

Command through Serial monitor does not properly work in Arduino

I am executing a function in Arduino by giving String input to the serial monitor. The issue here is when I enter SHOW$, the function showData() works but when I enter the same SHOW$, it doesn't gets ...
java bee's user avatar
1 vote
2 answers
260 views

Help to delimit and read specific contents of incoming HTTP string

I am sending strings to an Esp8266 via web browser. The below code returns the following in serial monitor if I send in browser: Send from browser to esp8266 - http://192.168.1.220/s1s2s3s4s5d1 ...
S B's user avatar
  • 11
1 vote
1 answer
939 views

I2C Packet ocasionally send a garbage data

I have a project with Arduino working as I2C slave. The master request data each 300ms. The code of Arduino is: /* Name: SimpleClass_Applcation.ino Created: 5/26/2017 4:18:28 PM Author: ...
FelipeFonsecabh's user avatar