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-data]

The tag has no usage guidance.

0
votes
1answer
1k 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 ...
0
votes
1answer
26 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
0answers
32 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
43 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 ...
-2
votes
1answer
46 views

Parsing data in arduino?

I just started working with Arduino and in my project I am trying to achieve the COMM between two Arduino using HC-05 in master and slave mode respectively, I configured it all successfully. Now I ...
1
vote
0answers
32 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 ...
0
votes
1answer
34 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
1answer
31 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?
1
vote
0answers
32 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 ...
0
votes
1answer
32 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
1answer
31 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 ...
-1
votes
1answer
54 views

How to parse multi line serial data with an unknown number of lines? [closed]

Here's the example data I've read in H-Term: \r\n \r\n NO:0015\r\n G: 5.97kg\r\n T: 0.00kg\r\n N: 5.97kg\r\n \r\n \r\n How to save the number including "kg" to each variable (NO, G,...
0
votes
2answers
69 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
1answer
35 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 ...
1
vote
2answers
36 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 "...
0
votes
0answers
28 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
30 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
0answers
159 views

problem data I2C to sensor GY955/BNO055 (China)

I want to ask, I have a problem when running the Arduino sensor, I can't output data, but it's detecting that the sensor address has been paired. Like I2C has a problem or locks it. Last night it ...
0
votes
2answers
959 views

How do I stop a servo motor at the current position when using a serial port? I want it to remain in one position when receiving “0”

I am working on a project where I would like values received from an Xbox Kinect will activate components on my Arduino. Currently, I am trying to get a servo motor to turn on and rotate when the ...
0
votes
2answers
104 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 ...
1
vote
1answer
410 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 ...
0
votes
1answer
22 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 ...
0
votes
1answer
163 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 ...
1
vote
4answers
91 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 ...
0
votes
1answer
91 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
0answers
40 views

How to use Arduino Serial Monitor for obtaining more incoming samples per second (than usual) by an analog sensor?

As a part of my project I want to plot data from current sensor (sct-013-050: 50A->1V) in intervals as small as 1 ms or 1 µs but I don't know how to control the clock-rate of Arduino ...
1
vote
2answers
473 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
3answers
86 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 ...
0
votes
1answer
272 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
2answers
151 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
0answers
59 views

How to connect to LCD and communicate via serial usb simultaneously? (UNO)

Pretty simple home automation project I am working on. I'm trying to hook my arduino which has a 16x2 LCD, DHT22 temp/humidity sensor to my Pi via usb. I want to be able to maintain the values on the ...
-1
votes
1answer
42 views

How do I get multiple readings(binary) based on my arduino output?

I am new to arduino and therefore not much experience in handling codes, please be forgiving and help me! For my school project, make use of arduino to make 4 capacitive sensors (which has already ...
2
votes
2answers
636 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, ...
0
votes
2answers
38 views

Help with Serial.print()

How does the Serial.print() transmit the data? Can you please explain this with respect to TX buffers? Also, What would happen if i try to output the data that is greater than 64 bytes? How is this ...
-1
votes
1answer
1k views

Sending hex data serially and receive it back

Below is my code. I want to send the hex data serially to some device and also expecting a reply. I want to see the reply in hex form on a serial monitor. Any comment will be appreciated. Thanks. ...
0
votes
1answer
730 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
1answer
952 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
0answers
51 views

Regarding SD card writing

In my recent project, one part is writing the incoming serial data into SD card. I'm successfully able to write data to SD card. But the problem is my serial data is continuous and because of that ...
0
votes
1answer
93 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
1answer
924 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
625 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 ...
1
vote
1answer
262 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: ...
3
votes
1answer
4k 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 ...
2
votes
2answers
183 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 ...
1
vote
1answer
481 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 ...
1
vote
2answers
729 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 ...
-3
votes
1answer
871 views

Arduino UNO only works with Monitor Serial opened

My Arduino Uno will not work without the Serial Monitor opened. I have a PHP script to send data to the board. When I send the data, the TX and L LEDs light up, but the action is not executed. It is ...
1
vote
1answer
209 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 ...
0
votes
2answers
82 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 ...
1
vote
2answers
498 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 ...