Questions tagged [serial]

Serial communication is the standard USB connection between the Arduino and a computer with a standard USB A to B cable or through the TX/RX pins using a USB to serial converter. It can also refer to the serial library.

Filter by
Sorted by
Tagged with
0
votes
1answer
29 views

SoftwareSerial data being corrupted - looking for suggestions

I'm having problems running a serial communication between a NodeMCU ESP8266 and an Arduino Uno. I'm using the "standard" SUART setup, i.e. pins D1&D2 on the ESP are hooked up with GPIOs 2&3 ...
0
votes
1answer
33 views

Arduino not writing full NMEA sentence to SD-card file

I'm currently building a small GPS-box that's supposed to track my location and write the full NMEA sentence to an sd card. (I want to pars it afterwards at my pc) I'm using the Arduino Nano and the ...
0
votes
3answers
41 views

Arduino Uno still boots and runs but no serial communication over USB

After having the Arduino Uno running for a short period of time, it seems to no longer communicate over the USB port when connected to the computer. It still seems to turn on and run the program ...
0
votes
2answers
25 views

Serial loopback not working with jumper wires connected

I'm a beginner to Arduino programming. Before attempting anything more complex I'm trying to get some very basic functionality first, so using some of the sketchbook examples I'm trying to get the ...
0
votes
1answer
38 views

Serial Monitor is printing out weird values and skipping strings

I am currently working on a project with some friends. In short, we want to create a setup where when a button is pressed a thermal printer prints out a random sentence. I am currently trying to get ...
0
votes
1answer
45 views

How to prevent the garbage data when the serial port is initialised?

I use Arduino Uno. I get garbage in Serial Monitor or HyperTerminal right after I connect to the port. Here is an example code: void setup() { // initialize serial: Serial.begin(57600); } void ...
-1
votes
0answers
42 views

Highschool student creating an object tracking spider robot [closed]

I am trying to use the Arduino based hexapod and remote by Freenove and the pixy 2 camera together to create an object/line tracking spider robot for a senior project at school. I need to figure out a ...
0
votes
1answer
25 views

“Serial” does not name a type -> How to solve this problem?

I'm trying my best to solve this problem but it didn't changed The red line was drawn on the last Serial.println */ int cds = A0; int led = 12; int trig1 = 2; // Left Trig int trig2 = 3; //...
0
votes
0answers
29 views

nRF24L01 : transmission fail when receiver is connected in Serial

I have two Arduino Nano communication with radio. One is a transmitter and send simple message : #include <nRF24L01.h> #include <RF24.h> #include <printf.h> #include <...
0
votes
1answer
42 views

Interfacing Arduino with Python Serial

I am implementing an FIR filter using Arduino. I am using an input signal as an audio signal. The audio signal has a duration of 3 seconds with total samples, 66150. What I am doing is reading this ...
0
votes
0answers
17 views

Trouble with SIM808 shield

I've been trying to work with Waveshare SIM 808 shield on arduino, quite similar to this one: https://www.waveshare.com/wiki/GSM/GPRS/GPS_Shield_(B)#How_to_use_with_Arduino_UNO_R3 I tried using ...
0
votes
1answer
30 views

UPDATE: Fault in processing code - doesn't receive correct data from Arduino

I am receiving data from an LDR which I am inputting into processing. The data seems to be received to Arduino correctly and I have looked at the data being sent via the serial monitor and it all ...
-1
votes
0answers
41 views

Why do people use 115200 instead of 9600?

So I came across lots of Arduino program setting serial speed to 115200 instead of 9600, while many people just kept using 9600 for the same purpose. Why did people choose to use 115200 or other ...
0
votes
1answer
27 views

MCU to MCU communication over UART

What would be the best way to send the following information from one MCU to another? Now I'm just sending the sentence over as is eg. Serial.print(sentence in here) Example sentence: 1306,60.123456,...
0
votes
0answers
64 views

Serial communication is not working in arduino pro mini

I am using arduino pro mini ATmega328P(5v 16MHz) and a ftdi FT232RL to connect to the PC. The arduino does not produce any output for the AT coomads(blank output) when I connect both rx and tx pins to ...
0
votes
0answers
27 views

Serial Buffer receives ghost character

I am using an HC-05 bluetooth module which is connected to an app made in Unity on my phone. For the example case, the app is sending "f!" over bluetooth. The arduino then reads the string until it ...
0
votes
0answers
29 views

SoftwareSerial Stopped Working

I have been browsing the internet for about 3 hours now, it appears other people have had the same problem but I can't find a solution for it. Basically yesterday I received my first GSM module and I ...
0
votes
2answers
50 views

How to create an array from serial.read?

I'm working on a audio-reactive lightinstallation with 16 LED lights. In Max MSP I analyse my audio and split the frequencies in 16 'parts'. I store these parts in a message of 16 ints, either 1 or 0 (...
0
votes
0answers
8 views

ISD1820 extending memory

ISD1820 -: hello every one hope all doing good my question is can we extend or attached memory card to ISD1820 , i know we have other option but i want to make dynamic so recording and playing can be ...
0
votes
2answers
33 views

Arduino stops sending/receiving data over Serialport after random time

I got a C# WPF application wich communcates with my arduino uno over serial port. Everything works fine for 3 to 20 seconds then i can not send or receive anything from/to the arduino. What im trying ...
0
votes
1answer
12 views

Issues with connecting to an Adafruit FLORA board

I just bought a new Adafruit Flora board, and I haven't been able to get it working successfully. When I plug it into a USB port, the board seems to be getting power (the green PWR LED is illuminated),...
0
votes
1answer
53 views

Using serial communication in .c-files

I am currently trying to connect my Arduino Uno to my computer and let them communicate via UART. I started using a project from Github (here), which I'm trying to modify to get the next step via UART....
0
votes
2answers
37 views

How to stop loop in the serial monitor?

I want to make a serial program with input from the serial monitor and show each character with its binary and ASCII codes. At the end of the program, I want to show the whole message sent from the ...
-1
votes
1answer
25 views

Multiple Serial Ports Stream Switch

I am trying to define multiple serial ports (multiple BMS management boards) and select via a global variable the port which one is active, this is the sketch I am trying to modify. https://github....
0
votes
0answers
23 views

Arduino Due 9-bit serial - Can core Due Libraries be modified to get this functionality similar to Mega and Uno?

Need help to see if I can get an Arduino due to receive and send 9-bit com as already implemented on AVRs like Uno, Mega and even teensy boards, by modifying hardware serial cores. Have not found any ...
0
votes
1answer
49 views

What would cause a delay when using serial between the Arduino IDE & external clients?

I have been working on a problem for a couple of days that I can't figure out. I am using a Teensy3.6 with Arduino IDE to build a CAN Bus monitor for a car. For those familiar, I am trying to save ...
-1
votes
1answer
55 views

NodeMCU V3 Serial input results in Fatal exception 9 (LoadStoreAlignmentCause)

I am building a simple telnet style interface for experimental settings on my project. I am getting all the serial output sent to serial (and USB to PC). The code works fine, but if I try to read from ...
0
votes
1answer
55 views

Serial doesn't initialise on Arduino Mega 2560 when not powered via the USB port

I am working on a project with a Mega 2560 and a Sim800L module. Everything works fine, however if i don't connect the USB port (at least once) and power only externally (either by Vin unregulated 7-...
0
votes
1answer
117 views

NodeMCU second HARDWARE serial TX as a debug port

I'm using a NodeMCU board to send commands to my home electricity switching box - using RS485 communication. For that, I've connected MAX485 TTL-to-RS485 converter module to my TX and RX pins. ...
0
votes
1answer
41 views

Making Serial act as an interrupt

I am trying to make a program to control a stepper motor with serial inputs, and in writing a function to jog it, I am having trouble figuring out how to make a serial input stop the loop that steps ...
0
votes
2answers
39 views

Only print when the button is pressed and not being pressed anymore

I have an Arduino and a microswitch that I want to use to know when the switch is initially being pressed (get "OnsetTime" on Serial) and when the switch is not being pressed anymore (get "OffsetTime" ...
0
votes
0answers
26 views

STM32 Bluepill with Arduino IDE can not blink LEDs with a few pins

There are a couple pins such as PB4, PA15, and the ones near it where it won't allow me to blink LEDs with. They are stuck at a constant voltage, one that is around 1.5V, which is lower than minimum ...
0
votes
0answers
45 views

ESP8266 mqtt publish + subscribe + serial read

seems I have some issues in my code as I subscribe for specific mqtt topic and also read same value via serial and publish it to mqtt. It takes time for device connected to serial to change setting ...
1
vote
2answers
76 views

Seeing consistent serial data loss over USB, have ruled out hardware and rx/tx software. What's left?

I have a Lasersaur, which is an arduino-based open-source laser cutter. Part of its capabilities is raster engraving, where you etch images based on pixel data, rather than vector data. Recently I ...
0
votes
0answers
25 views

esp32 with Neo6M gps gives no data

I am simply using the following code void setup() { // put your setup code here, to run once: Serial.begin(115200); // set the data rate for the HardwareSerial port Serial2.begin(115200); } ...
0
votes
0answers
52 views

Counter on my coin acceptor goes up without a coin input, any advice?

I'm working on a project that makes use of a CH926 coin acceptor. The problem we're having is that when I read the serial monitor, the coin value is continuously going up and adding credits when it's ...
1
vote
1answer
78 views

unable to read RS232 output on Arduino mega with MAX232 shield

I am trying to read data from an RS232 equipped sensor using a serial monitor connected to an Arduino Mega with RS-232 shield but I do not receive any data. I am unable to detect the exact cause of ...
-1
votes
2answers
115 views

Compile code error: 'Serial' does not name a type

int LDR_deger = 0; int Ledpin1 = 12; int Ledpin2 = 11; int Ledpin3 = 10; int Ledpin4 = 9; int Ledpin5 = 8; int LDR_pin = 0; void setup() { Serial.begin(9600); pinMode(Ledpin1, OUTPUT); ...
0
votes
0answers
26 views

ESP8266 - Garbled output when using serial Swap

I want to use two serial ports Serial1 - for debugging - No RX needed Serial - to read from a different device I receive garbled output instead of valid characters Here is code for NodeMCU #...
0
votes
0answers
37 views

Problem sending values over serial to raspberry pi

I posted this in the raspberry pi stack exchange earlier with no luck...hoping someone here can help me out. I apologize as I have edited this quite a bit, but I have narrowed down the problem a bit ...
1
vote
1answer
75 views

Using Serial.begin() twice

I'm training kids programming Arduino. We're gonna use Serial for debugging purposes, so we started with a simple HelloWorld program. I let them try various stuff, including changing the speed. Now, ...
0
votes
0answers
46 views

Decoding serial packets, please check my work!

I have a Innovate LC-2 wideband and Megasquirt ECU. The Innovate wideband has RS232 serial output I would like to use instead of the default 0-5V analog output. So I designed and built a board using ...
0
votes
0answers
50 views

Infinite loop if Serial.println() is not used

I'm trying to reset my program from software using the third method described here: Reset an Arduino Uno in code The function is basically showing some data on an OLED display and afterwards should ...
0
votes
0answers
65 views

Reading I2C data from SW6106 register

I am using the SW6106 powerbank IC as an I2C but no matter what I have tried I couldn't read something other than "FF". Datasheet for the IC. Timing diagram for reading data: Timing diagram for ...
0
votes
0answers
71 views

Serial port selection and command receiving failure with Arduino Uno and Adafruit servo shield

For a long time I use Arduino Uno controller and Adafruit 16-Channel 12-bit PWM/Servo Shield with 6.3V 1000 uF capacitor, powered with 6V 8Amp adapter to control 6 High-Speed Digital Micro Servo DSM44 ...
1
vote
1answer
67 views

Baudrate is set to 9600 automatically even if specifying a different value

You initialize the serial communication via USB with Serial.begin(baudrate); where baudrate is a long specifying the number of symbols you want to send over the connection per second. You can put ...
0
votes
2answers
34 views

HC06 correct baud rate but missing characters/ no AT commands

I have an issue with the communication between my Serial Monitor and my BT HC06 Module. Iam able to send ascii characters from my phone with BT connection to my local serial monitor. When i send ...
-1
votes
1answer
38 views

Somewhat Obfuscated Serial With SIM800L and Uno R3

I am successfully communicating with my SIM800L from my UNOR3 aside form some errors. But the biggest problem is with the serial monitor. Responses from the SIM800L are somewhat obfuscated in that ...
1
vote
2answers
35 views

Converting each digit in an integer to its respective ASCII characters

For example what would be the process of converting the integer 1023 into ascii characters of 0x31 (1) 0x30 (0) 0x32 (2) 0x33 (3) Not looking for any library functions (I know of Serial.print() and ...
0
votes
0answers
67 views

Bad Data : Arduino Mega & NodeMCU Serial Communication

Currently I am working on an Arduino project. The project required to establish communication between Arduino Mega and NodeMCU ESP8266. Here are some details about the project: NodeMCU Rx Pin is ...