Questions tagged [softwareserial]

A library for emulating UART functionality in software on any available digital IO pins. Use this tag for questions regarding SoftwareSerial.

Filter by
Sorted by
Tagged with
0
votes
2answers
37 views

Where are these junk characters (from serial) coming from?

I currently have 2 Arduinos both hooked up to HC-12s and have successfully got them communicating. But I am now trying to be able to process the data sent across and store it as a variable so as to ...
2
votes
0answers
50 views

How to know if GPS module is dead?

I can't make function the NEO-6M-0-001 GPS module, this is the third one that already bought! I'm using an ATmega2560 as microcontroller for obtaining the data from the module and seems that the ...
1
vote
2answers
112 views

which is the best way to declare Serial while creating Arduino library?

Well, I am trying make a library for HMI display. display and Arduino comminicate with Serial. So I will so many times Serial port. Generally I will use Serial.write commend. if I examine other ...
1
vote
0answers
54 views

Is SoftwareSerial possible for Samd21 boards?

I have a SAMD21G18A-MUT custom board, which has 6 'grove' connectors, of which two are I2C In and out (sharing the same MCU Pins) and also has 2 'special' 8 pin connectors attaching to Particulate ...
0
votes
1answer
32 views

Softwareserial send wrong values

I'm trying to use softwareserial to exchange datas with a sensor. After some tries without any answer from the sensor, I checked the arduino TX with my scope and what I've seen is not what I've sended....
3
votes
2answers
300 views

Printing the array using print and serial write function in Arduino Uno

I have, one program with only using printing array and other with serial write and print function for the array, while using serial write and print function I get these extra characters between the ...
1
vote
1answer
66 views

Find OK or ERROR in serial string

I am trying to figure out how to capture the OK or the ERROR from a SIM800l. I have tried mySerial.println("AT"); while (mySerial.available() > 0 ) { String str = mySerial.readString(); ...
2
votes
0answers
38 views

PZEM-004T can't read current

I'm trying to measure the current, voltage, and power of AC load using Peacefair PZEM-004Tv3.0 module. For the serial communication of this module, I'm using SoftwareSerial Pins 2 and 3 on Arduino Uno....
1
vote
1answer
47 views

Incorrect values arriving from Arduino to RPi over serial communication

I am trying to write four values relating to energy (current, power, energy, and peak demand) via a SoftwareSerial connection from my Arduino UNO to my Raspberry Pi 4. However, two things are ...
0
votes
1answer
84 views

Listening Serial Ports

guys. I need your help. I have 6 Serial Channels and I need to listen this channel and be sure which channel is working? How can I do that? Can I listen this channel by using digital inputs? Or Do I ...
0
votes
1answer
46 views

Pass Byte Array to Char and Send to a Separate Arduino

I am trying to send data between Arduino Nano and D1 Mini (ESP 8266 Module) My Code as below in Nano which will be the transmeting , #include <DES.h> #include <SoftwareSerial.h> ...
1
vote
0answers
35 views

Question about MIDI library

I'm trying to replace this code with something that uses the Arduino MIDI library: #include <SoftwareSerial.h> #define rxPin 2 #define txPin 1 SoftwareSerial midiSerial (rxPin,txPin); void ...
2
votes
0answers
37 views

Serial communication detect

guys. I am workin on a project. I have two channel for Serial RS232 communication. Main and Stand-By channel. If Main channel has some problem and, cannot communicate for 15 seconds then I want to ...
1
vote
0answers
48 views

How can I handle six SoftwareSerial ports for six Nova SDS011 Air Quality Sensors on Arduino MEGA?

First of all, thank you in advance. I'm trying to connect six Nova SDS011 Air Quality Sensor (sensor specifications here) to an Arduino MEGA. I'm using the Nova Fitness Sds dust sensors library which ...
3
votes
2answers
178 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
2answers
41 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
1answer
31 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
0answers
31 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
2answers
62 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
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 ...
1
vote
1answer
82 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
42 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
0answers
28 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 ...
2
votes
1answer
43 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
1answer
35 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
1answer
62 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
0answers
81 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
1answer
171 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
1answer
355 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
1answer
282 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
2answers
61 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
1answer
56 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
0answers
33 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
0answers
32 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
1answer
64 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
1answer
241 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
1answer
56 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
1answer
48 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
2answers
85 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
0answers
104 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
0answers
66 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
0answers
124 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
1answer
378 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
1answer
209 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 ...
1
vote
2answers
153 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
0answers
40 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 ...
0
votes
1answer
471 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
1answer
72 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
0answers
242 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
0answers
60 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 ...

1
2 3 4 5
9