Questions tagged [softwareserial]
A library for emulating UART functionality in software on any available digital IO pins. Use this tag for questions regarding SoftwareSerial.
465 questions
5
votes
2
answers
19k
views
How to read from and write to rs232 device from/to Arduino
I would like to read data from a rs232 device (SL-5868P Sound Level Meter).
protocol and more : https://sigrok.org/wiki/Colead_SL-5868P.
I already have a Python script to read the data with a TTL to ...
0
votes
2
answers
100
views
Serial communication between Arduinos
I'm trying to send data from Arduino Mega to UNO.
The master code sends characters 'x' and 'a' every half second to the slave Arduino UNO.
Slave receives the characters and switches the state of the ...
1
vote
1
answer
156
views
Arduino Mega reading from external sensor Issue
I have one external sensor and I want it to be connected with Arduino. The sensor came up with a usb cable and the pin out diagram is also given in the data sheet .
When I simply connect the the cabe ...
1
vote
0
answers
201
views
Adafruit soundboard with esp32
Board: ESP32 Development Board
I am trying to get the adafruit soundboard code to work on my ESP32. I have installed espSoftwareSerial but I keep getting errors with their sample code.
I receive
...
0
votes
2
answers
2k
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 ...
2
votes
1
answer
235
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 ...
1
vote
1
answer
270
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
0
answers
133
views
How can I get an integer from an RFID tag from Arduino Mega to NodeMCU 1.0 over serial communication?
I want the number from an RFID tag read by a reader connected to an Arduino Mega to end up as a string on a NodeMCU connected to the Mega. I am trying to confirm that the string is on the NodeMCU ...
1
vote
0
answers
171
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
1
answer
477
views
[SOLVED]how to send command to Gsm module from Arduino via serial port
Am using SIM7600X 4G HAT module (GSM) and Arduino Uno
after I start the module and Arduino, I receive data from Gsm module but I can't send any command to it.
On my Arduino board when I get data RX ...
1
vote
1
answer
111
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 ...
0
votes
1
answer
337
views
NodeMCU and SDS011
today I connected the SDS011 to NodeMCU. I noticed that this only works when the sensor is connected to the voltage VU. If I connect the sensor to another pin for the voltage, it does not respond.
Why ...
1
vote
0
answers
431
views
Maximum baud rate for sending a byte of data via SoftwareSerial from master Arduino UNO to slave Arduino UNO
I am trying to read data from a Blynk widget via ESP8266 and Arduino UNO and trying to send it to another slave Arduino UNO. But, the problem is the data is taking some time to reach to the slave ...
1
vote
1
answer
1k
views
SoftwareSerial read until available is empty only works with delay
I originally was only going to make my program work on an ESP until I needed it on an Arduino UNO (because I suspect my ESP is broken).
I had to add SoftwareSerial support but because I didn't ...
4
votes
1
answer
1k
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
1
answer
2k
views
SIM800L module on Arduino nano
I am trying to get Arduino nano and SIM800L module working together. I provided the module with the recommended external voltage of 4.0V (documentation states 3.6V - 4.2V) transformed via LM2596. The ...
1
vote
2
answers
733
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
1
answer
367
views
Arduino - ServoMotor Control and SoftwareSerial
My two arduino communicating serially with XBee. The receiver arduino also controls the servo motor. Servo works stably when there is no xBee connection. But when Arduino's serial communication, there ...
1
vote
0
answers
140
views
Coding of arduino and ZEDF9P GNSS module
I have ZEDF9P AND ARDUINO and connected them Via UART.
I have written program which is showing that NMEA strings are coming in arduino and arduino is filtering out if GPS jamming is taking place. Now ...
1
vote
0
answers
69
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 ...
1
vote
1
answer
608
views
Some code only works when USB serial port connected
I'm using Arduino Uno as my microcontroller, but I got a strange behavior. I need to run several function at the same time. One to get GPS and temperature value then send every value to user's phone ...
0
votes
1
answer
425
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 ...
1
vote
1
answer
538
views
Serial communication between nodemcu and Arduino Uno
For the last days, I am trying to establish serial communication between nodemcu and Arduino Uno but I failed to do this. Currently, I am working on a Home Automation project. I receive data from ...
2
votes
1
answer
65
views
Communicate from Arudino to computer over 3.5mm port
I'm wondering if it would be somehow possibly to have easy communication with a computer for Arduinos that don't have USB like the pro mini. That would make an easy way of having two-way communication ...
2
votes
2
answers
846
views
Not output on serial monitor, sending string on serial.print
I get two 10-bit values from analog pins. These two values in a string, ";" combine with.
for ex: 515; 510
I am sending it to another arduino via Serial.print. I cannot display this string ...
2
votes
0
answers
105
views
How do I split an incoming char? [duplicate]
I am sending a list of joystick positions via the serial connection to the arduino in the following format
515;520
Which would be parsed as:
x=515
y=520
How would I split these values up, and convert ...
2
votes
0
answers
179
views
Why doesn't LCD 16x2 work with fingerprint sensor code?
When I separate fingerprint code and LCD code it works fine. sensor read 6 templates which I already stored 6 fingers ID. When I combine the code it read 0 templates.
#include <Adafruit_Fingerprint....
1
vote
0
answers
602
views
Conversion from string to char array
I know this is Arduino Forum but I think this question is related to programming, I am using ESP8266 for the project. I need to convert the string incoming on the serial through UART lines and ...
1
vote
1
answer
999
views
Programming ESP8266 to avoid random exceptions?
Below is the code that I have done on Lolin Wemos D1 R2 and mini it works fine but it throws exceptions every time, I tried understanding my problem by reading this: NodeMCU 1.0 - Exception 9 `Fatal ...
1
vote
0
answers
907
views
Can SoftwareSerial be used in an ESP01
I am using ESP01 as a microcontroller that retrieves information from Firebase and sends them over serial to an Arduino Uno for other uses. I am not using NODEMcu since it has few analog pins and ...
2
votes
2
answers
291
views
Why does controlling power with a transistor interfere with MHZ19B's serial communication?
I've been trying to turn off an MHZ19B (datasheet and teardown photos: revspace.nl/MH-Z19B). I've used an Arduino, NPN, PNP transistors and mosfets as well as the diagram below for connecting the ...
1
vote
0
answers
224
views
Copy outbound data of Serial to Serial1 for Pro Micro
I am working on a bluetooth HID device. There are libraries which make HID devices a cake walk if you are making a wired version of your HID device.
I managed to configure my bluetooth module to ...
-1
votes
1
answer
2k
views
RDM6300 library not working on ESP8266
I have a RDM6300 RFID module which I am trying to connect to an ESP8266 by using rdm6300.h library.
I had it all up an running all along with other components but we had connected to the ESP8266 but ...
0
votes
1
answer
496
views
Serial Communication, if statement not working
#include <SoftwareSerial.h>
SoftwareSerial my (D6,D7); //(Rx,Tx)
String msg;
void setup() {
Serial.begin(115200);
my.begin(9600);
}
void gas()
{
Serial.println(msg);
if (msg == "0&...
0
votes
0
answers
755
views
How to tell if there is a line break from Nextion display to Arduino at Serial
Well I am trying make language page with Nextion display and Arduino Mega. If user enter the language page Nextion display is sending page name with this commend to Arduino for which is current page.
...
1
vote
0
answers
281
views
How to access Software Serial contents/value and extract some details?
I'm using SoftwareSerial with a SIM808 GSM modulde to detect incoming SMS messages.
The problem I'm currently having is that I need to access the phone number from the received SMS so I can send a ...
0
votes
3
answers
4k
views
How to clear SoftwareSerial values? [closed]
I'm using software serial on my weather station. The way it's supposed to work is that you send an SMS to the device and it replies with the wind speed, etc.
At the moment, The wind speed is detected, ...
1
vote
1
answer
449
views
How to send and receive multiple integer values through serial comm for Arduino Micro and HC05 bluetooth?
I need to send gyroscope values and a voice command flag and counter with a start and end marker through serial in the format <2,4,5,6> through Arduino Software serial using the HC05 Bluetooth ...
1
vote
0
answers
174
views
SIM900 module connects then disconnects from carrier soon after
I have an Arduino Mega 2560 with an ESP8266 built into it, and a SIM900 shield, which I am building a project with.
The shield is powered by an external adjustable 3-12V, 2A supply set at 6V so power ...
1
vote
0
answers
547
views
HC-12 problem with reading momentarily strings
I'm new here, so I hope my question is not naive.
I'm using Arduino mega connected with a pulse sensor and a GPS (and other things that are not related to our problem), pulse sensor and GPS data are ...
1
vote
0
answers
181
views
Help with reading and storing data from sim module
I'm using a sim800C module and an Arduino Uno. I want the code to send back an SMS to a number which sends it the password. So, if the sim module receives 'abcd' I want it to send back an SMS, saying '...
0
votes
1
answer
4k
views
Uno - ESP32 SoftwareSerial communication won't work
I have two boards, Uno and ESP32 and my goal is to send data from the Uno to the ESP. I made a voltage divider so my ESP doesn't get fried and I use the communication only in ONE way, strictly UNO -&...
1
vote
0
answers
195
views
How to separate in columns the data contained in a barcode
I have the following code, which allows me by scanning a typical 128 barcode to write this code in SD card under the Header "FA" as well as the time and date of scanner under the Header &...
1
vote
1
answer
311
views
Fastest Communication from NodeMCU to Arduino Nano
For one of my projects, I need to transmit data from NodeMCU to my Arduino Nano, in real time, I used S-Bus, but it quite unsatisfies me, as, slight latency is taking place.
I am transmitting a JSON ...
0
votes
2
answers
619
views
Char buffer for serial input: char str[2] vs char* str = (char*) malloc(2)
I am using software serials on my Arduino nano to read data from my esp01 in functionality testing for the software serial. I simply make the esp01 to send a string "OK" to an Arduino's ...
0
votes
0
answers
431
views
Problem reading input data using SoftwareSerial library
I can't read data using SoftwareSerial library, because SoftwareSerial.available() is always 0, no matter what I do.
I'm trying to communicate 2 Arduinos Uno, the 1 Serial (name of the first Arduino ...
1
vote
2
answers
2k
views
GPS date and time not displaying correctly in Arduino Uno,NEO6M GPS module
I am learning how the Arduino and GPS module work so I can apply it to another project.
My components are an Arduino Uno, NEO-6M GPS module, and a Adafruit 1.8" TFT display.
The code did not work ...
2
votes
1
answer
222
views
if I add a .cpp file, Serial becomes unusable
I am using the mega 2560. When I just use .ino and .h files, if I use Serial, it works fine, without even using:
#include <SoftwareSerial.h>
However, when I add a .cpp file I start getting 2 ...
2
votes
1
answer
274
views
Debugging RN 42 HID Mouse
I'm trying to use the RN 42 and Arduino Uno to control a bluetooth mouse. I configured the RN 42 with the commands S~,6 and SH,0220 and R,1 to put the device in HID mouse mode. Is there anything I ...
1
vote
0
answers
321
views
Program is executing but AT commands not showing in serial monitor
My purpose was to send SMS using GSM SIM800L coreboard and Arduino UNO. Here is the code
#include <SoftwareSerial.h>
//Create a software serial object to communicate with SIM800L
...