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
14 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
16 views

viewing serial 1 and serial 2 data of ESP32 [closed]

I am working on a simple code to print in all the three serial ports in ESP32. But so far I am unable to find a way to find out a way to see the output of the Serial1 and Serial2. I am trying to use ...
-1
votes
0answers
37 views

Recieving data from Electricity meter

I have a 3phase electricity meter; i want to get the output from the meter. It has serial(Rx, Tx, GND, VCC) pins inside. i want to know can i connect these pins directly to Arduino( RX to tx, tx to ...
0
votes
0answers
47 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
44 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 ...
0
votes
2answers
79 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
14 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
35 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
50 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
38 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
49 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
55 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
58 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
52 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
30 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 ...
0
votes
1answer
32 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
25 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
41 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 ...
-1
votes
1answer
15 views

Two adruino are connected to the raspberry via usb, but one is reconnected during processing code is running

I try to solve this a month..but still problem... I want to make below led-matrix spectrum. Thumbnail image https://youtu.be/X35HbE7k3DA ※Environment Device UML One Raspberry pi 3 : 2019-09-26-...
1
vote
3answers
245 views

Issue connecting heartbeat & temperature sensor on arduino uno but working individually

So the code is working individually for temperature sensor and for heartbeat sensor but when i combine it together it shows wrong values for the temperature sensor I'm using lm35 temperature sensor ...
0
votes
1answer
23 views

Arduino - Extracting Multiple Strings from Serial Read

I am trying to write an Arduino code that reads a long string, example <11,22,33>, through the Serial Monitor and then stores the 11,22, and 33 into separate bins of a matrix array. So the user ...
1
vote
2answers
52 views

Receive whole string in serial sending data?

I connect my NodeMCU to Arduino Uno. The goal is to receive the whole string for example "12", every 1 sec. This is my code on Arduino Uno side ( the sender) int mock = 0; void setup() { Serial....
0
votes
0answers
28 views

Stuck in a loop when reading from EEPROM, works if I clear it first

EDIT: The problem was caused by storing a pointer in the EEPROM. Thanks to @KIIV for helping out Sorry for the enormous of wall of text, I'm trying to pare it down a bit. I have two Arduino Megas ...
0
votes
1answer
21 views

Serial.write without a receiver

I'd like to send a monitoring information (temperature) to a serial receiver periodically. The problem is I don't know if there is any monitoring service (serial receiver) and how fast it is reading. ...
0
votes
0answers
11 views

How to solve MPU9250 overflow problems? [migrated]

I'm now working with mpu9250 for my master thesis, but I'm quite new to hardware device. My goal is to collect the data at the sample rate and postprocess these data via allan deviation. So I just ...
2
votes
2answers
225 views

EEPROM.get returns bad data

I am using the attached code. What I am trying to do is: Test if there is a personalized "board serial number" written in the EEPROM (by previous code run) If data found was not 7 characters (e.g SN-...
0
votes
0answers
34 views

uint8_t to Text

I am trying to use a Protocentral_MAX30102 Pulse Ox sensor to get SpO2 and serial write it to an SD logger. However, my serial write is a mess and I need is in a text form not what it is in now. I ...
0
votes
0answers
14 views

Can the PN532 pull MAC address from Felica tags?

I'm trying to do an automatic pairing with Felica NFC tags but I need the MAC address because there is a certain order I would like sync up my device in order when I scan it to the NFC. To get it to ...
3
votes
1answer
78 views

How can I make std::cout write to Serial?

I'm using an Arduino MKR WiFi 1010, a SAMD ARM Cortex M3 board. I rely on the standard library a lot, using things like std::vector<> and std::string. I also want to use std::cout. I've managed ...
0
votes
0answers
33 views

Menu on Serial Monitor

I'm trying to make a menu through serial monitor, but it always on a infinite loop... My question is where i call this function? On Setup or on Loop? The menu: int controle_opera = 0; void menu(...
0
votes
0answers
20 views

What is the best way to connect arduino uno with matlab ?? For my project

I conect MPU6050 sensor with arduino uno and read data 1-temperature 2-accelerometer 3-gyroscope on arduino And i wont to send this data to matlab to draw it What is the best way can i do that
1
vote
2answers
46 views

Matching baud rate on serial monitor

I am using different codes which set different values of baud rate through the Serial.begin() function. Do I need to change the baud rate of the serial monitor to match the initialized value on the ...
0
votes
1answer
73 views

Serial communication from Arduino to ESP8266 NodeMCU works, but from NodeMCU to Arduino isn't working

My circuit connection is like: (I am following this tutorial) Code uploaded to Arduino: #include <SoftwareSerial.h> #include <ArduinoJson.h> SoftwareSerial s(5,6); void setup() { s....
0
votes
0answers
21 views

Characters like '$' coming through weirdly (as in '$$amd4') when sent from ESP8266 to Uno via Serial

I am running a program on an Uno using data that an ESP8266 is sending via Serial (can't run directly on the ESP8266 due to not enough GPIOs) and I'm having a problem where characters like '$' on a ...
0
votes
0answers
7 views

Serial data does not appear in monitor when 2 readers are connected

I am using an arduino mega 2560. I have 2 RFID readers connect to 2 different serial ports. during my prototyping phase, everything was fine, my 2 readers worked together perfectly. I am now moving ...
0
votes
0answers
18 views

Send information from computer to Arduino via USB (basic clock)

I've created a small project using an Uno. I usually mess around with ESP8266 chips, because they have WiFi and are relatively easy to work with. However, this time I've decided to go right back to ...
0
votes
2answers
36 views

facing issue with while loop

I'm trying to develop one code in which I'm facing issue with while loop. Once I enter any newString it enter in while loop it count till 10 times, when (n>10) then it is coming out from the while ...
-1
votes
1answer
108 views

Arduino Nano 33 IOT - Bluetooth Classic (Serial)

I've an arduino nano 33 iot and I'm working with the first time with bluetooth. So far BLE is working fine, I can use an app on my smartphone to check the services and characteristics. Is it possible ...
0
votes
2answers
39 views

Serial Commmunication between two arduino

I want to send the voltage magnitude received on an analog pin of atmega328Pu to another arduino uno using Serial communication pins TX and RX and display the value on the receiver arduino's Serial ...
0
votes
0answers
49 views

Monitor serial0 while code is being uploaded

I'm trying to upload the sketch on a Mega 2560 via the serial port 0 using another microcontroller. To better undestand the process, I decided to first observe what avrdude is doing while it is ...
0
votes
1answer
30 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
0answers
28 views

Arduino and Processing- Conditionals only executing sometimes in response to IR codes

I am reasonably new to arduino and even newer to Processing so still struggle with trouble shooting my code. The intention of my sketch is have Processing receive IR codes from the arduino and ...
0
votes
2answers
60 views

UART communication - Serial is always empty

I have a payment terminal which uses UART (or simply speaking Rx, Tx, Gnd pins) and I have an Android tablet app which is connected to the terminal using USB to DB9 adapter based on PL2303 chip. The ...
0
votes
0answers
15 views

HM-10 doesn't respond to Arduino

I'm using Arduino Nano R3(old bootloader) and Serial(hardware serial). Arduino -> HM-10 5V -> 5V GND -> GND RX -> TX TX -> RX with (1k/2k voltage divider) Code is below #include <Arduino.h&...
1
vote
1answer
98 views

I want to print onto serial monitor when it's detected the value change

This code is measuring distance from object by using the Ultrasonic Sensor and print onto serial monitor. However, serial monitor constantly output values. I want to print only one time if detected ...
0
votes
1answer
27 views

Arduino accepting only alternate characters

I am writing an Arduino code to receive SMS from a SIM800 module and then send the same message back to the sender. My code is as follows: #include<SoftwareSerial.h> SoftwareSerial mySerial(9, ...
0
votes
0answers
44 views

Serial data printing slowly

I have connected an arduino serial port to my PC and monitoring the output in realterm. I am trying to print: CR 11.98,123,3520,01CRLF But it is resulting with some delay. First CR 1 Is printed. ...
0
votes
1answer
51 views

EEPROM Capability [closed]

I'm new to this platform and actually this is my first question on here.So I can read and write any figures in Arduino EEPROM apparently and it works as expected. Is it possible to do a comparison to ...
1
vote
1answer
144 views

HLW8032 UART sends random data ( Registers Overflow often)

I designed my own version of smart socket just like the Sonoff with power metering chip HLW8032. And when I read the data in ESP-12F the data doesn't have a fixed format. To troubleshoot the issue, I ...
0
votes
1answer
20 views

Timer 1 Arduino - Create 2 Timers

I’m trying to output 2 separate frequencies using 2 output pins from an Arduino using the Timer 1 library. A snippet of the code is show below. void setup() { Serial.begin(9600); pinMode(button,...