Questions tagged [serial-data]

The tag has no usage guidance.

3
votes
1answer
5k 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 ...
3
votes
2answers
324 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. ...
2
votes
2answers
213 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 ...
2
votes
2answers
89 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 ...
2
votes
2answers
690 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, ...
1
vote
1answer
546 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 ...
1
vote
3answers
115 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 ...
1
vote
2answers
545 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 ...
1
vote
1answer
2k 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 ...
1
vote
4answers
92 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 ...
1
vote
2answers
812 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 ...
1
vote
2answers
60 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 ...
1
vote
2answers
37 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$" (without quotes) the function showData() works but when i enter the same "...
1
vote
1answer
312 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: ...
1
vote
1answer
2k views

No code, but Fatal exception (0): epc1=0x402066ac, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000 in Serial Monitor

I have a Wemos d1 mini, and when I upload nothing or anything to it, the built-in LED always lights up and the serial monitor gets a lot of garbage at every baudrate. I have supplied it with 4 AA ...
1
vote
0answers
26 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 ...
1
vote
0answers
34 views

Is it a rule of thumb to always use a buffer for realtime data acquisition from a microcontroller? [closed]

I probably have a misunderstanding one way or another, so this may be a bad question, but whenever I see sketches of projects that are outputting realtime data or in general, I always see the use of ...
1
vote
0answers
40 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 ...
1
vote
2answers
597 views

Why can't my bluetooth receive serial data from my android phone, but can send serial data from my bluetooth to my android phone?

I can receive serial data from my phone but I can't send serial data to the arduino using bluetooth. I can see my input from serial monitor to my Android but not the other way. I'm using ARF7044A ...
1
vote
1answer
219 views

Serial write skips on Arduino Due

I bought Feetech SCS09 smart servos (also known as SCS009 or SCS0009). Please note that these servos are not regular PWM servos, they are devices that communicate with board using Serial connection ...
1
vote
1answer
510 views

Arduino Due power supply

I have an Arduino Due. It communicate to the computer with the native usb port. It is also powered by the native port. Anyway, the connected sensors are pretty sensitive to the current, thus I would ...
0
votes
1answer
350 views

Arduino reading value from external devices on

For this device it says: The PC Interface Option has all the features of the standard DC1100, but also has a COM Port interface that allows you to capture the air quality data to a PC for graphing ...
0
votes
1answer
52 views

Fast data logging

I want to store noise data (basically from A0) from an Arduino Uno to an SD card with faster writing speed, preferably by using 512 data together and the write it at once. What should be the code?
0
votes
1answer
36 views

Question on how “f” value is calculated in converting Morse Code to laser audio from this tutorial

I am working on this tutorial, https://www.hackster.io/SURYATEJA/morse-code-communication-using-laser-module-both-ea1b01 and the author created a "Send" and "Receive" code for encoding and decoding ...
0
votes
1answer
1k 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.
0
votes
1answer
1k views

Receiving hex data from terminal [closed]

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

Arduino Serial data communication with NodeJS

I am using an Arduino Uno and a DTH11 temperature sensor to read temperature and then send that value to a computer via the serial port. A NodeJS application is running on the computer and captures ...
0
votes
1answer
101 views

Broken serial connection corrupting Arduino values

I have a problem with my homemade fan speed controller powered by an Arduino Nano, which reads a value from Serial (Arduino serial monitor, or Processing sketch) and uses the 0~255 value to set a ...
0
votes
3answers
75 views

If any kind of character gets loaded into a string, what do I use for an end-of-line character?

I have an Arduino project that is converting floats to characters and then transferring those characters via the serial to a Python program. This is a portion of the Arduino code: #define MEM_LEN (16 ...
0
votes
1answer
30 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 ...
0
votes
1answer
37 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 ...
0
votes
1answer
193 views

How can i split an incoming data in arduino? [duplicate]

So for my arduino project I need to split this line of servos data 180 0 0 0 90 90 0 Which would be parsed as: servo position1 servo positin2 servo positin3 ...servo position 6 in to separate ...
0
votes
1answer
152 views

Serial communication between 2 arduino's doesn't works when Sending string in a program with a lot of functions

Note : This question is completely different from the questions that I have asked before although the code snippets might be the same, So please do not waive it as a duplicate right when you see ...
0
votes
2answers
171 views

Arduino Due & Spec gas sensor - how to choose specific information from a stream of incoming bytes to store

I'm trying to build an air pollution sensor for a college project, with an Arduino Due and a series of Spec Sensors digital gas detectors. However, I'm having a little trouble getting the first one of ...
0
votes
1answer
881 views

How to store incoming serial data to char array in order to send to other module (XBee)? [closed]

I am trying to get the incoming serial data in Arduino from a GPS. I suppose to get the following data: $GPRMC,073522.000,A,2607.5285,N,12739.9649,E,0.43,263.10,131217,,,A*6C However, it is not ...
0
votes
2answers
93 views

Data not updated in real time

In my recent project, working with JSON and Arduino. Till now, I am getting proper JSON data and add this one into Arduino data. But here I face one problem. My data are not updated in real time. For ...
0
votes
2answers
184 views

How to store incoming serial string in arduino?

In my recent project, I am working with serial data. Till now, I'm able to receive data and display on LCD. Now, suddenly I can't get any serial data. Nothing display on LCD. My incoming string is: {...
0
votes
1answer
8k views

Serial.Write(buf,Len) how to read Serial sended array of byte

hello i'm trying to send array of byte with Serial.Write(buf,Len) but don't know hot to read this code with receiver. SENDER code: byte buf[4]={1,2,3,4}; void setup(){ Serial.begin(250000); } void ...
0
votes
0answers
66 views

Interrupts arduino interrupting serial comunication

I have problem with communicating VB.Net-Arduino. It seems the interrupt pause my serial communication line in void loop() { ... }. I don't know what to do, and I can't erase interrupts line since I ...
0
votes
0answers
67 views

sending string from Arduino to ESP8266 works on UNO but not Pro Mini

I have a project where I am getting sensor data and sending it over to an ESP8266-01 to send to ThingSpeak. After some work I got it to work. So like I real smart person I decided to replace the ...
0
votes
1answer
29 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
0answers
37 views

Arduino serial read data conversion, getting garbage values

I am developing code on Arduino to read 9 bytes of data from other controller. I am getting same arrya elements which is transmitted from controller, but when I convert the same it gives me garbage ...
0
votes
1answer
63 views

Sending double data from Matlab to the Teensy 3.6 via the microUSB

I've been hitting against a wall for over a week now. My current project is to use a Teensy 3.6 to send data over an SPI bus to a chip which is effective going to be a signal generator. I've made a ...
0
votes
1answer
63 views

Can't Interface SIM900a With Arduino Uno

I've got the following module of SIM900a. My connections are: VCC -> External 5 Volt 1.5 Amp Supply GND -> Common GND TX -> Arduino RX (Pin 0) RX -> Arduino TX (Pin 1) I hear a ring ...
0
votes
0answers
32 views

Making a ATMega328P-PU and computer communicate but not by standard serial communication

So i have been trying to make a ATMega328P-PU using the Arduino bootloader and a computer communicate the same way brands like Logitech and Razer makes their mouse's and keyboard's communicate with ...
0
votes
0answers
38 views

Have terminal bash script act as virtual “button” for Leonardo?

I've searched quite a lot for this and tried to piece bits of code together but with no luck so far. All i'm looking to do is have a command I can run in terminal/bash script on the Mac trigger some ...
0
votes
1answer
37 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 ...
0
votes
2answers
106 views

Sending file from PC to Arduino

How can i send a (file) from PC to Arduino Yun at running time ? There's a way to send some commands via Serial. But how would a whole file goes ? Assuming the file can take place at RAM without any ...
0
votes
2answers
157 views

Serial Communication between 2 Arduinos for analogRead value

I have an optical sensor connected to A0 on Arduino #1 (Nano) giving me values from 200 to 1010. I need to receive these values in Arduino #2 (Nano) through serial communication. I have used a simple ...
0
votes
1answer
25 views

Serial data not parsed correctly

The code I have works for the most part but when I send data via bluetooth received over software serial, too quickly, it is not parsed correctly. I'm a bit stuck with what can be done to a void the ...