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
1
vote
1answer
59 views

Arduino Serial.readString() trouble

Hello everyone I write my code and have some troubles. When I write on in my serial monitor my buzzer condition wasn't changed. Can you help me realize the reason. I wrote code with int type and it ...
1
vote
1answer
335 views

Multiple Wire.write() not working for Arduino Nano I2C

Code for Master #include <Wire.h> void setup() { Wire.begin(); Serial.begin(9600); } void loop() { Wire.beginTransmission(9); Wire.write('c'); Serial....
0
votes
0answers
59 views

Arduino serial comm writing data in win32 program

I am passing in a data buffer from Arduino Uno to a C++ win32 program, but UNO is sending data too slowly. I am trying to send 128 character bytes but the win32 is receiving the bytes after like 92 ...
1
vote
2answers
262 views

if(Serial.available()>0) VS while(Serial.available()>0)

What's the low level difference between if(Serial.available() > 0) and while(Serial.available() > 0)? On what conditions would you choose one over the other? I was testing my codes on 4 daisy ...
-1
votes
2answers
49 views

Serial and I2C not working together

I have very peculier problem. When I run this code SSD1306 fails to initialize. Output at serial console is: 20:26:33.194 -> MPU6050 OLED demo 20:26:33.532 -> SSD1306 allocation failed #include &...
1
vote
0answers
73 views

Program only works with Serial.begin

My program only works when the following line is added: Serial.begin(9600); When this is disabled/removed the program no longer switches output state regular I'm using an Arduino Mega 2560. When the ...
0
votes
1answer
30 views

Purpose of LED indicator

I am using an arduino mega clone called the Funduino. I am developing a python based, tkinter application that will receive the serial data that arduino sends. However, i am witnessing some behavior ...
1
vote
0answers
82 views

Serial Connection - 3.3v to 5V MCU's

After asking How to connect Arduino & ESP8266, I tried to build such circuit. First I tried the code one 2 Nano's - to verify 2 MCU sending and receiving messages. After that, I started to build ...
0
votes
2answers
51 views

Serial Communication between ESP8266 and Arduino ( Sofware and Hardware )

I wish to connect an Arduino ( any of 328P family ) which its 5v, with ESP8266 (ESP-01, or even NodeMCU or Wemos D1 mini ) which is 3v3 logic. My goal is that ESP8266 will be in-charge of MQTT ...
1
vote
0answers
74 views

Read an integer using Serial.read() then read a string using Serial.readStringUntil(End-Char)

I have a sketch as follows: void loop() char End_Char = ‘\n’; if (Serial.available()) { aInt = Serial.read(); } switch (aInt) { case 1: // does a task that is ...
2
votes
1answer
38 views

What's the time out of Wire.begin()?

Here's a schematic of my project: The purpose is to make laptop work as keyboard for desktop PC. Nano uses Serial.read() to get keystrokes from laptop and forwards key press and release data to ...
2
votes
0answers
21 views

Initial setup print getting cut off from printing

I am writing a program in Python (using PySerial) that needs to read data from the Arduino quickly. For this reason I have set the serial timeout to 0.01 seconds. (Baud rate is 115k) If I don't set ...
0
votes
1answer
48 views

What does an Arduino do if the serial connection is closed on the other end?

I have a simple method that simply waits for an input, computes a response, and sends it: void loop() { if (Serial.available() > 0){ input = Serial.read(); if (input == 10){ ...
2
votes
0answers
24 views

Problem displaying data sent from Arduino Mega to Arduino Mrk1000 using serial communications

I've been doing a personal project. The idea of the bigger project is to feed my fish using a robot. My specific problem is that I would like to see some data from the various sensors that I will be ...
1
vote
1answer
78 views

Is it advisable to use Serial.write in an ISR when loop() routinely uses Serial.read?

I do not know much electronics. I have Nano v3 as I2C master, it reads 5-byte packets (of delimtted data) from PC's USB port, processes it and forwards it. I now need to implement a way to signal PC ...
1
vote
0answers
21 views

Unable to load the arduino sketch through ISCP/serial interface [closed]

I am unable to load the customized Arduino sketch from one board to another through Arduino ISP or bootloader. I am able to replicate the same through ISCP pins only if the slave board is connected to ...
1
vote
0answers
30 views

Resuming Serial Connection after sleep on Arduino M0

For debugging purposes I want my serial connection to resume after sleep. After running LowPower.sleep() from the <ArduinoLowPower.h> library, I don't get any new serial messages in the serial ...
1
vote
0answers
18 views

Serial Communication between Node-MCU and Arduino Mega [closed]

Sir mane ardunio mega 2560 my programing k hy jo k different sensor k value lake display karty hy aur sir ab my us value ko server jo k thingspeak hy aus p bajna chahta ho sir aus k leye mane esp8266 ...
2
votes
1answer
157 views

When it comes to UART to RS485 communication, what is the difference between the 'MAX485' and the 'HW-0519' module?

I recently found this model with the ID 'HW-0519' on it. It can be found online (HW-0519 in Aliexpress) and is sold for the purpose of converting UART to RS485 communication using Arduino devices. The ...
0
votes
2answers
54 views

Why echo “R” > /dev/ttyUSB0 doesn't work, but on the same PC Serial Monitor in Arduino IDE works?

I have a strange problem. I am running Ubuntu and NodeMCU si plugged into USB. I have very simple sketch running on it, when it reads letter "R" on serial, it turns ON relay. When I open ...
1
vote
0answers
25 views

Trouble using bluetooth module with the ESP32s2 feather board

I am trying to use an ESP32-S2 feather board with a separate bluetooth module, the Adafruit BLuefruit LE UART Friend. I previously used this bluetooth module with the Feather M0 Adalogger through UART ...
1
vote
1answer
25 views

Updating mysql data using SIM900 and Arduino

Thanks in advance for your kind support. I am not an expert but have little understanding of concepts and trying to integrate various things to get some useful projects for my purpose. I want to ...
1
vote
0answers
42 views

Is it possible to make a touchpad for PC using arduino and a touchscreen display? [closed]

What would be the difficulty for such project? What components would be best fit for communicating gestures to windows (thought about arduino uno r3 and LCD TFT 3.5” UNO)
2
votes
0answers
61 views

SPI Arduino slave not recieving data correctly

Using an STM32L476RG Nucleo microcontroller board as the SPI master and an Arduino mega as a slave with pin 52 for SCLK, pin 53 for SS and pin 51 for MOSI on the Arduino. There is no issue with the ...
0
votes
1answer
39 views

arduino will not save data after receiving from serial communication

I'm new to Arduino and what I'm trying to do is change the variable by sending it from php to the Arduino. I've added the delay as stated by other questions but it has not worked so far. The pin 13 ...
2
votes
1answer
72 views

What is the difference when an arduino has been unplugged vs when a serial port connection was closed?

Using python code for a serial port connection to an arduino, it sends a value to the arduino, which then starts printing values to serial. The python code will print the value on the first or second ...
0
votes
1answer
31 views

What terminologies and concepts describe the codes that follow a format of Text1.Text2()?

I'm just really curious because some codes really follow a format like this. Examples include serial.begin(), serial.println() and when I used servomotors the left part was the name of the servomotor, ...
1
vote
1answer
276 views

ESP32 Arduino Bluetooth Serial does not reconnect after disconnecting

The basic ESP32 Arduino Bluetooth Serial example pairs and connects as expected, BUT once I disconnect the Bluetooth terminal it stops responding to new events at all, once I reset the esp32, it ...
1
vote
1answer
48 views

I've been working on a project and I get an error compiling for board arduino uno. kindly help

##include <jm_LiquidCrystal_I2C.h> #include <LiquidCrystal.h> #include <Wire.h> // For I2C //Set the pins on the I2C chip used for LCD connections //ADDR,EN,R/W,RS,D4,D5,D6,D7 ...
1
vote
0answers
17 views

Error in program that measures distance from a ultrasonic sensor

I am trying to use an ultrasonic sensor in conjuncture with different devices like a proximity sensor and a solenoid and alarm. This is how the project is supposed to work: A container is placed on a ...
0
votes
1answer
32 views

Arduino recieve sensor data from other arduino SPI

I have Arduino Uno (sender) and Arduino Uno Wifi rev 2 (receiver). I want to send the ping value to the other one via serial - jumper wires. Arduino Uno is using the newping example, and I want the ...
1
vote
1answer
69 views

How to use pyserial to write two separate message?

I'm using pyserial to communicate with my arduino. I set up the connection and everything works fine. Now I have these two writing commands: pyserial.write("conn".encode()) pyserial.write(&...
1
vote
1answer
64 views

lcd byte array display

when reading RFID(MIFARE) information using Arduino mega and display in serial monitor it works fine. But, when printing on 2004LCD only one information(Value) displays correctly. The other ...
1
vote
0answers
38 views

processing data received via serial

Hey i'm trying to make an Arduino that can log key presses from a keypad and save that as a variable. When it receives information from another arduino via serial I want it to create a variable from ...
1
vote
1answer
42 views

Arduino Leonardo doesn't print anything to Serial Monitor with my specific code

I did a project with an Arduino Leonardo and a fingerprint sensor (DY50). When I uploaded the enroll example from the Adafruit Fingerprint Library and saved my fingerprint, everything worked. But when ...
1
vote
1answer
53 views

Weird serial behavior on atmega2560

EDIT This seems to be something to do with the oscillators. Switching to the internal oscillator and writing straight avr-c allows me to run a basic blink program. Writing the same basic blink in ...
0
votes
1answer
61 views

Why do I need to use latin-1 instead of utf-8 when using python with arduino?

When reading and writing with a python serial port connection to arduino, if I don't use latin-1 ('ISO-8859-1'), the results are not as expected. Like if I have int outP = 5; //... int outV = Serial....
0
votes
0answers
44 views

Read Arduino Serial from python for ulterasonic real time

I have a problem with Arduino serial and Python. I want to read data from my Arduino via Python and plot it out in real time but I'm getting delayed results. This is the code running on my Arduino: ...
1
vote
0answers
25 views

ESP-01 doesn't seems to send any data over serial once it is connected to the wifi router

how are you?. I'm using an ESP-01 with platformIO wich is programmed using esptool.py to run an example of a web server that I found in a book called "NodeMCU ESP8266 Communication Methods and ...
0
votes
1answer
165 views

What is the highest baud rate that can work between Android device and an Arduino connected to an HC05?

I see a lot of baud rates in the AT Command documentation for the HC05 however I am not sure what is the fastest that can work between the Arduino controlled embedded system and the Android phone. I ...
1
vote
0answers
23 views

Touch sensor trouble

I need help I use Touch Sensor(T)v.0 and it always receives a signal not matter I touched it or not. Here is the code. #define TOUCH_PIN 7 int touchVal = 0; void setup() { Serial.begin(115200); ...
0
votes
1answer
96 views

Wemos Mini & Pro Micro Serial connection

While using a 3.3v Pro Mini & Wemos mini to communicate via Serial was successful, when tried with a 5v Pro Micro it fails. To overcome different logic level I used a 10K + 20K resistors to lower ...
1
vote
1answer
32 views

Elements excluded from buffer array output after given structure (ESP8266 WifiSniffer) (snifferPacket)

I am currently trying to determine how the ESP8266 WifiSniffer program by Kalanda works. Here is the source code: #include <Arduino.h> extern "C" { #include <user_interface.h> ...
0
votes
2answers
23 views

Connection Pro-Mini & ESP8266 using Serial

I wish to create a system consists of WEMOS mini & Pro-Mini sharing info using Serial ( one MCU is dedicated to react input-output, and second for MQTT commands ) sharing same Power input. From ...
1
vote
0answers
42 views

Upload of software working unreliably

I've got a new Keyestudio ATmega2560 (compatible with Arduino Mega 2560) board and was trying to upload a simple sketch. I noticed that both the Arduino IDE and PlatformIO were unable to do so, they ...
1
vote
0answers
33 views

Creating Data Packet with Sensor Values

I'm currently sending around 30 sensor values from one arduino to another with a radio frequency module. I serial print the data with commas so that I can easily plot the results after a test. However,...
0
votes
3answers
261 views

How to read incoming HEX values from Serial.read() method?

Brief description about the problem History Communicating with a old VersaStat II used GPIB port but the GPIB ports PCI card stopped working but there was a another port 25 pin rs232 Serial ...
1
vote
2answers
49 views

Serial monitor window opens frozen

My serial monitor window opens frozen, without any output or possibility to input, or even activate the window. Sketch is very simple, but behavior is same even with empty sketch, so I assume problem ...
1
vote
1answer
48 views

Serial Monitor stops working when using PinMode [closed]

I'm having a lot of trouble with my recent Arduino sketch. I need to reset an IC by setting a pin high then low. I also am using the serial monitor for some testing but as soon as I try and do a ...
-1
votes
1answer
62 views

How to make Arduino react to serial information?

I want to write a program that allows me to control the LED connected to pin 13 of the Arduino. When the program is started, the LED should be off. The user should open the serial monitor to ...

1
2
3 4 5
42