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
0answers
10 views

Arduino UNO not showing up in USB devices on Ubuntu 18.04

I have an Arduino UNO (clone, not original) that was working fine until a couple of days ago. Now, it does not show up when I connect it to my laptop. Things that I've troubleshouted: USB cable is ...
0
votes
3answers
41 views

Unconsistent time in arduino loop

I have this code: The output looks like this: Why are there non-periodically some extremely large values? Thanks
0
votes
0answers
18 views

Serial.Write() add a trailing zero which cause a problem

I use arduino serial to send an array of bytes but the array didn't sent correctly I made a simple program to test the communication void loop(){ Serial.write(byte(0x21)); delay(4000); Serial....
0
votes
2answers
23 views

If Arduino connected to computer and opened up Serial Monitor, will Tx and Rx pin still be working?

Suppose one connected two of the Arduino Uno boards through Rx and Tx pins. Then, if one or both of the Arduino boards were connected to computer, and possibly opened up Serial Monitors, will Tx and ...
0
votes
1answer
19 views

How to set a time out like Serial.setTimeout() for Serial.read()?

I read a comment form here: "Serial.setTimeout() sets the maximum milliseconds to wait for serial data when using Serial.readBytesUntil(), Serial.readBytes(), Serial.parseInt() or Serial.parseFloat()...
0
votes
1answer
43 views

TX pin sends wrong data in Arduino Uno

I want to send some data to an IP Modem from Arduino Uno. That IP Modem has TTL levels TX and RX inputs. I used this connection between Arduino to the IP Modem: I am powering Arduino with 12 V ...
0
votes
0answers
22 views

Arduino Nano as ISP programmer and Serial monitor

Is it possible to use an Arduino Nano or comparable as a programmer and simultaneously use it as a serial adapter? Meaning that I would be able to flash another µC (e.g. an ATmega644PA) using avrdude ...
0
votes
2answers
35 views

Multiple serial monitors with the same arduino mega

I’ve got mega 2560. In my project serial port is used for communicating with PC. However, I’d like to see debug info in serial monitor. Mega has a few hardware Serial ports. How to use one of them got ...
0
votes
1answer
24 views

Get image from Fingerprint module

I want to get the image from the fingerprint module (https://makeradvisor.com/tools/fingerprint-sensor-module/) as a result of scanning. It is enough to have a single frame image. it would be good if ...
0
votes
0answers
32 views

Parallel communication between multiple Arduino

Here's a post which explained the communication standard. I need to establish communication between multiple Arduino nano board. I have used SPI bus on one of the Arduino board for wireless ...
0
votes
1answer
31 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
34 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
44 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
27 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
39 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
48 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 ...
0
votes
1answer
26 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
2answers
52 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
19 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
43 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
67 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
44 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
35 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
15 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
64 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
41 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
25 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
57 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
56 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
142 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
51 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
41 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
32 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
51 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
30 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
54 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
87 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
118 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
28 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
38 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
79 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, ...