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
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
vote
0answers
27 views

Input from serial monitor to control stepper direction coding problem

I am attempting to create a simple code that will home the motor then wait for input for direction. I have the homing function working, however the loop that reads the data from the serial monitor ...
1
vote
1answer
131 views

Storing data in Arduino Portenta H7's SDRAM

I am working on storing data from Portenta H7's ADC through a high sample rate (>100kSa/sec) per channel. I am using 2 ADC channel for my work. Through the forum, I learned that the serial. print ...
0
votes
0answers
69 views

drifting serial readings

I have a python script that continuously reads the serial port for digital thermometer reading. After a period of time, the serial reading will drift by 10+ degrees in some cases. I let it run, I ...
1
vote
0answers
29 views

Computer freezes while collecting serial data from Arduino Uno

I am an arduino noob. I have been searching for some interesting arduino projects recently and making a game controller using Arduino UNO seemed interesting. So I hooked up two dual-axis joystick ...
0
votes
0answers
96 views

Receiving serializejson output string as “{}” in ArduinoJson

I am using the ArduinoJson library version 6.17.12 The output received when I use serializeJson(doc,test_string) is {}. I have read in the documentation that it is due to a memory leak and I would ...
0
votes
1answer
139 views

Send data from one NodeMCU to another NodeMCU using Serial Communication

i am using NodeMCU (ESP8266) to communicate with another NodeMCU (ESP8266) using Serial Communication. Because i am using ESP-NOW to communicate and ESP-NOW and WiFi can not work together very well so ...
1
vote
0answers
56 views

How can I control my Arduino with my computer? [closed]

I have an eye scanner python program on my computer and I want to make a motor, that is connected to an Arduino, move if it gets a certain signal. How can I make my python program in Pycharm/visual ...
2
votes
1answer
48 views

ESP send string to Arduino

I'm trying to send a string from an ESP32 to an Arduino. I'm using a level shifter, where the Uno is now the Mega (since I couldn't get the Uno to work). RX0 is now RX1, connected to UART2 of ESP32. /...
1
vote
1answer
62 views

16x2LCD Display serial read extra character

I get extra character (frowning face) when sending a text over the serial monitor(see attached image) When empty string is sent over the serial monitor, the LCD display still shows the extra ...
13
votes
1answer
1k views

Cannot program two arduinos at the same time because they both use the same COM port

I am not able to program my second arduino because they both use the same com port. In other words this picture says it all: In order to upload my sketch I have to disconnect one arduino. How can I ...
1
vote
0answers
43 views

Interrupts aren't working unless Serial.flush() is called first. Why? [closed]

I have a robot that has encoders attached to the motors, and I use interrupts to detect pin changes and count the number of pulses (ticks) from the encoder. I have the robot run the motors until a ...
1
vote
0answers
116 views

Arduino escape characters not working when not defined in code [closed]

I am making an Arduino ethernet and serial communication program. The point of my program is to "SendKeys" the received message from Arduino that received the message from HTTP request query,...
1
vote
0answers
24 views

fixing communication port errors

the communication port (com11) is yellowed with exclamation marks in device manager and I am unable to run arduino on my computer. how to get rid of the yellow exclamation mark on the com 11?
0
votes
1answer
54 views

Not able to upload code to NodeMCU

Im now working on a Node MCU based project but the problem is that i cannot upload the code to the board. Further more whenever i connect the usb to the NodeMCU my keyboard stops working and only ...
1
vote
0answers
34 views

Sending variable over serial

I have an LCD keypad shield that I'm using to control a Catalex serial MP3 module and I have an int variable that has the volume setting which can go from 1 to 30. I'm trying to send the variable to ...
0
votes
1answer
47 views

“SparkFun SAMD21 Mini Breakout” 'Serial1' was not declared in this scope

I recently switched computers and installed Arduino IDE, Added SAMD21 to the boards manager and installed drivers. My sketch previously ran on my laptop with no problems. Now when I try to compile ...
1
vote
0answers
51 views

Esp-01 why is serial data being sent and received on the same pin?

I’m trying to send serial data between my esp and a micro controller. I’m able to send a message from the microcontoller to the esp and display it on the serial monitor, similarly I can send data from ...
1
vote
0answers
41 views

Arduino Serial Communication possible with IDE 1.8.5 but not with IDE 1.8.13

I have the following problem: I am working with an Arduino Nano 33 IoT and a second serial interface via sercom0. The code is just taken from this tutorial: http://www.getmicros.net/serial-...
0
votes
1answer
115 views

Arduino Pro micro Serial communication problem with Node MCU

I recently bought an ATmega32U4 based Arduino Pro micro. I am using the Keyboard library and interfacing with my PC via USB. I am trying to create a serial communication between the Arduino Pro micro ...
1
vote
0answers
109 views

sdFat and Serial conflict?

I am using the sdFat library to manage an SD card with an ATmega1284p @ 8MHz internal clock. I have come across a strange issue in my system, and I created the smallest sketch that shows the problem: ...
1
vote
0answers
42 views

Unable to upload program to Nano33 BLE Sense

I searched for answers on StackExchange but did not find any for the situation I am in. I use a macBook pro to connect the recently procured Nano33 BLE sense via a USB cable. I tried a couple of ...
1
vote
0answers
61 views

I'm having trouble using Serial.readStringUntil() on the DUE [closed]

I'm working with a DUE. The call Serial.readStringUntil() doesn't work. This is the error message I get when I compile: no matching function for call to 'UARTClass::readStringUntil()' Is it possibly a ...
1
vote
2answers
104 views

Does Linux have software protection on USB? Or has the magic smoke escaped?

I'm making a GUI in Python that will control an Arduino via serial monitor. I have 6 input pins grounded and I'm taking 5V from the board (powered from USB) whilst serial monitoring and everything's ...
3
votes
2answers
882 views

How to upload code without closing puTTY

My question is quite simple: can you, somehow, upload Arduino code without closing puTTY's serial console? I hate having to close the program to open it again for reading the incoming information.
0
votes
1answer
54 views

Routing Arduino Mega output to either one of two serial ports

I have an Arduino Mega controller that normally communicates via Bluetooth (HC08 Bluetooth module) to an Android device. In case there is a problem on the Android side I wish to have a fallback ...
0
votes
3answers
61 views

I have made a Nano send 4 pot values to an Uno please help with code

Happy New Year! So I have made a Nano send 4 pot values to an Arduino Uno over serial but I have a problem: I don't know how to separate these values. Here's the code: Master: int Pot = A0; ...
1
vote
0answers
77 views

Trying to use a gyro sensor and having issues

My setup is Arduino Mega. I have a gyro sensor that I'm trying to use to measure the acceleration or G force in X axis (forward movement). So far I'm trying to figure a way to use the value of Acc or ...
0
votes
1answer
37 views

SIM7000E Waveshare can't do anything

Can someone help me? I'm using a sim7000e from Waveshare. One week ago it was working normally, but now it doesn't work at all; it even can't read the RX-TX communication. #include <SoftwareSerial....
-1
votes
1answer
74 views

Set TX, RX to LOW before sleeping, re-enable uart after waking up

I have an ATmega1284p and I need to have the TXD0 (i.e. pin 9) set to LOW, before going to sleep. After waking up, I want to restore UART0 communication to work as expected. Here is my code: Serial....
1
vote
1answer
46 views

Import into Arduino a vintage data bus from TMS1000

For experimentation I want to import or receive into Arduino the output data from a TMS1000 (1980s) data bus. For model train controller Hornby Zero1, and the bus sends data to receivers, for loco ...
4
votes
1answer
334 views

Non-blocking SoftwareSerial.Write

How to use SoftwareSerial.Write without blocking if buffer is full? Serial.write blocks if the buffer is full. So I need to check Serial.availableforwrite before calling write to prevent blocking. But ...
1
vote
2answers
46 views

Can RX pin(s) be used as TX instead?

Title question. I do not need any receive communication pins, only transmission. Actually, I need as many transmission pins as possible on any Arduino besides a Mega2560 (to re/write the EEPROM of ...
1
vote
0answers
25 views

4004 (NOT_FOUND) ON MQTT

I tried to send random data to MQTT but it's not working and I get: { "m2m:rsp" : { "rsc" : 4004, "rqi" : "123456", "pc" : "Resource not found", "to" : "5a185cedc6ad749b:...
1
vote
1answer
83 views

EEPROM programmer works with serial monitor but not with pySerial

I'm trying to modify Ben Eater's eeprom programmer to flash a 32K eeprom, since the arduino has 32K of program data total the data wouldn't fit in the program. So I wrote a python program using ...
1
vote
1answer
83 views

Asymmetric encryption on a Teensy?

I want to monitor an input and then send the information in an encrypted way that can't be easily unlocked even if a malicious actor gets access to the device itself. I'm new to using the Teensy ...
1
vote
0answers
38 views

Bluetooth Controller

Im doing a project in which there are two arduinos with both of them having hc05 bluetooth modules. Now how to connect them both so that both stay connected and one is used as a remote control so that ...
1
vote
0answers
105 views

How to improve incoming serial communication time?

I have a webpage on Flask that sends a serial message to Arduino whenever a user presses the button to turn on an LED. The thing is, average time between pressing the button and turning on the LED is ...
0
votes
1answer
33 views

Sending variable length sequence via serial from PC to Mega

I am trying to send a sequence of commands from a PC to a Mega. The Mega in turn controls 2 signal generators (AD9833's). The sequences can vary in length but always have the same format: A start ...
0
votes
1answer
34 views

Search for a certain combination of strings in serial and read the following characters until another set character stops the search

I have the following serial message that I'm receiving from an ESP32 running GRBL: <Idle|MPos:158.500,0.000,0.000|FS:0,0|Pn:H|Ov:100,100,100|SD:0.21,/instruction.nc> I want to check the value ...
1
vote
0answers
444 views

esp32 serial print garbage [SOLVED] [closed]

My esp32 program is working ok, well there's some bugs i'm trying to solve, so i connected my project to a standalone serial monitor, and i've tried a few (now i'm using coolTerm). They all works for ...
2
votes
1answer
154 views

Trouble obtaining values from Nextion screen to Arduino

Currently I have a setup running an Arduino BME 280 sensor and a 4.3" Nextion screen. What my program does is sent all the calculated values from the BME to numbers and progress bars in my ...
2
votes
0answers
29 views

What would be the best way to sniff an established serial connection?

I am studying a system running a serial connection and looking not to intercept its packets, but merely to inspect the traffic as it passes. Option 1 Hook the RX and TX wires to the RX of two serial ...
1
vote
0answers
49 views

Reading Serial Data sent from PC to Arduino with help of another Arduino

I am trying to sniff the Serial Communication between the PC and Arduino MEGA 2560. For trying to check what my PC is sending to my Arduino. I am using another Arduino MEGA 2560 to read this data ...
1
vote
0answers
53 views

listener for Plotter library doesn't work

I try to use Plotter to plot some data from my Adafruit Circuitplayground board, but the listener is kept showing "Scanning serial ports..." and not displaying any plot (as shown below in ...
2
votes
1answer
58 views

Problems with inputting into serial monitor

I am currently working on a project where i take a frequency, and i want the code to take that value and use a formula to work out its mmh2O level. I use the Serial Monitor to input the values, but i ...
1
vote
1answer
27 views

always detects same pin as HIGH even when its not connected

Im practicing with an arduino UNO board (I'm a begginer) and I'm trying to turn some LED's on depending on which analog pin is connected to 5V. Here's my code: int statusLed = 11; int out1 = 2; int ...
1
vote
0answers
31 views

Arduino serial issue

My arduino mega should be communicating with another card (ANET8) and also with a DC resistance meter (with python code) using 2 serial ports, one using the USB(resistance meter) and the other one ...
0
votes
1answer
193 views

Error sending data from ESP8266 to Uno

I am sending data from an ESP8266 to an Uno (I need to use the Uno because it has more inputs than the ESP and I need those for my project.) The ESP8266 is connected to the Uno's Serial pins 0/1 RX/TX ...
4
votes
2answers
243 views

How can I send and receive data from an Arduino MEGA 2560 and Python?

Hello community I am relatively new to the Arduino world and I am facing some issues trying to establish serial communication between the MEGA 2560 and Python using my PC, the desired result is to ...

1 2
3
4 5
42