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
0answers
20 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
22 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 ...
0
votes
0answers
30 views

100kbaud serial works find on a 2560 but not on a 328p

I'm working with an issue that's pretty difficult to debug because it uses up the serial port on a 328 so all I can do is debug by blinking LEDs/checking with a scope. The serial receive code is here: ...
1
vote
0answers
22 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); ...
1
vote
0answers
11 views

SIM900A module outputs an error every time I try to send a message

I'm trying to make my SIM900A module interface with my Arduino for my research project, but I've been at a loss trying to figure out why my module is not interfacing nor sending messages properly. ...
0
votes
0answers
23 views

Having Trouble Connecting Nodemcu with Arduino Uno to Access wifi Functionality

I am currently working on a wifi-enabled rc-car . I have connected and used the motor driver shield (l293d) with arduino uno with Processing to make a simple control panel for the functionalities of ...
0
votes
1answer
38 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
27 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
21 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 ...
0
votes
0answers
39 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
32 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
151 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
47 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
34 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
34 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
16 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
0answers
20 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
64 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
23 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
50 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
46 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
54 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
32 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. /...
0
votes
1answer
51 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
41 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
45 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
17 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
28 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
34 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
36 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
39 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
42 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
24 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
46 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
72 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
854 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
50 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
56 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
41 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
32 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
51 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
31 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
257 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
41 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
21 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
55 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
43 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
2 3 4 5
40