Questions tagged [serial-data]

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

135 questions
4
votes
2 answers

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 second. Count the number of presses of pin 9,…
Greg
  • 143
  • 1
  • 1
  • 5
3
votes
1 answer

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 connected to gnd. I have connected this usb to my…
S Andrew
  • 183
  • 9
3
votes
1 answer

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 the Arduino powered, by using a 9 V battery…
user35288
  • 33
  • 2
  • 4
3
votes
2 answers

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. Now, whenever Interrupt come into the picture, my…
Hasan
  • 1,486
  • 14
  • 28
2
votes
1 answer

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 and end with CC 33 C3 3C. This sample reading code was…
mehmet
  • 297
  • 2
  • 19
2
votes
0 answers

Unknown text printing on Serial Monitor

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 and there it works. My code:- /* YF‐ S201 Water…
Coder9390
  • 512
  • 1
  • 7
  • 25
2
votes
1 answer

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. You look at the normal results of the LDR; it's…
2
votes
2 answers

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 expander pins for UART communication or not?
2
votes
0 answers

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 , Youtube). The binocular cameras seem to be just…
2
votes
1 answer

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 the output becomes garbled such as below. the first…
2
votes
0 answers

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 that makes me feel confused. Is it really…
DEMPEROR
  • 31
  • 2
2
votes
0 answers

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 sensor is level and maximum speed at 45 degrees,…
miles
  • 21
  • 2
2
votes
1 answer

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 sending from my load cell). Here is my wiring, with…
kmar13
  • 63
  • 3
  • 10
2
votes
2 answers

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, but this question applies to both software and…
JRiggles
  • 123
  • 5
2
votes
2 answers

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 three functions in any combinations that can be…
Ravi Parmar
  • 143
  • 5
1
2 3
8 9