Questions tagged [serial-data]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

Nodemcu & GSM module & CLIP problem (CLIP line not always appears on the serial connection)

I'm working on phone-controlled car park gate. Trusted employees numbers are saved on SIM card/hard coded in program. So the idea is, if a trusted person calls the "gate number" ; Nodemcu will ...
0
votes
1answer
27 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....
0
votes
1answer
41 views

SD card readline reading batched lines?

So, I am trying to transmit float data, over UART, from my Arduino to another machine. The log of this data is really large, so I am forced to put it on an SD card, and read it into the Arduino line-...
0
votes
2answers
45 views

Serial.availableForWrite versus Serial.flush

Is there a difference between the following two line codes? while (Serial.availableForWrite <= 0) {} versus Serial.flush() Thanks!
0
votes
2answers
51 views

How to program micro chips directly with USB

Is it possible to program chips like the Arduino uno's Atmega328P directly with USB serial from your computer? Where can i find information on the protocols/standards to do such a thing? More ...
0
votes
1answer
37 views

Getting issues while using SoftwareSerial

I am trying to read string send from esp8266 esp01 to Arduino mega. When I use normal Rx and Tx ports, it works properly but when i am initializing new serial port using SoftwareSerial then nothing is ...
1
vote
2answers
93 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 ...
0
votes
1answer
100 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
1answer
119 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
71 views

How to stole/read data from an output serial port?

(Sorry, I'm not a native English speaker) I have a chip with Serial Input, Serial Output, and a Clock (used by both serials). I want to read the output with an Arduino or ESP-32. The device I want ...
1
vote
0answers
41 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
votes
1answer
72 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
1answer
69 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
43 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 ...
-2
votes
1answer
71 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
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 ...
0
votes
1answer
94 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
47 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
106 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
2answers
128 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 ...
-1
votes
1answer
99 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
1answer
78 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
37 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
51 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
39 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
51 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 ...
1
vote
2answers
54 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
425 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
3answers
183 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
190 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
785 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
27 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
238 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
260 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 ...
1
vote
4answers
97 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
775 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
174 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
468 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
238 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
64 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 ...
0
votes
1answer
2k 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 ...
-1
votes
1answer
45 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
761 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
48 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
2k 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
2k 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
62 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
1k 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
2k 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
2answers
1k 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 ...