Questions tagged [softwareserial]
A library for emulating UART functionality in software on any available digital IO pins. Use this tag for questions regarding SoftwareSerial.
461
questions
1
vote
0
answers
66
views
Bluetooth (HC_06) on the Attiny85
I'm trying to make a hc_06 Bluetooth controller work on the attiny85-20pu.
In the end, I want to control a stepper motor through Bluetooth.
But for now to keep it simple I'm searching for a working ...
-1
votes
2
answers
56
views
How can I get servos to not brownout my Arduinos and power supply?
I have a problem with a project where one servo is resetting (browning out) two Arduino Pro Minis running 3.3v/8mHz. The two Arduinos are connected by SoftwareSerial on pins 9 and 10 and the slave ...
2
votes
2
answers
298
views
reading device or board specific properties from the Arduino MKR WiFi 1010 device
How to read programmatically the device specific properties from the Arduino MKR WiFi 1010 chip or board?
For example, following properties of the device:
any identification number, that can uniquely ...
0
votes
2
answers
145
views
ATtiny85 with sleep and serial
I want to communicate over serial to another device (dfplayer) and also set the microcontroller into sleep mode.
The ATtiny85 does not have a hardware serial pin so I need to use a virtual serial (...
0
votes
1
answer
130
views
sim800l gsm module response isn't completed
I am using the sim800l gsm module with nodemcu esp8266 and comunicating with it using AT+ commands. The module is working correctly but I am trying to use the command AT+CLCC to get all the current ...
1
vote
1
answer
93
views
HardwareSerial and SoftwareSerial not compatible
The HardwareSerial requires to run an interrupt to store received bytes in the buffer. Look at this file from the Arduino Core.
If I am now constantly receiving and writing on the Software Serial, the ...
-3
votes
1
answer
83
views
SoftwareSerial and HardwareSerial lost data
I need two Serial ports. One port is some sort of modified Software Serial, where I have to be listening constantly and send responses immediately if the port requires it. There is no XY problem ...
4
votes
2
answers
97
views
Arduino unable to read 0x41 and 0x42 (reads others just fine (ICT bill acceptor)
Here is my issue:
My code successfully recognizes and accepts $1 (0x40) and $20 bills (0x43), but it fails to recognize, display, process, anything for the $5 bill (0x41), and $10 bills (0x42). Also, ...
1
vote
0
answers
76
views
Arduino Uno not interfacing with GSM SIM900A Module
I am using an Arduino Uno with a SIM900A module. I want to send a simple SMS but it is not working, as it either has no response in Serial monitor or there are reversed question marks. I have attached ...
2
votes
1
answer
104
views
How do I make the Arduino print on my Mac's Arduino IDE through Bluetooth?
This is a basic question, but I really have tried my best to find a solution on the internet to no avail.
I have a fairly normal setup. HC05 module connected to an Arduino. The HC05 is also connected ...
1
vote
1
answer
193
views
Incorrect data received on serial communication
I have two Arduino UNO connected with two wires, and ground, that exchange informations through serial data.
The communication is working with INT, but I am having troubles to receive correct ...
2
votes
1
answer
885
views
Need ESP32 to use 3 Serial Ports
I have a project that needs 3 serial ports on my ESP32 Dev 38-pin MCU. Two of them are for Nextion touch displays and the other is for a GPS. The problem from what I understand is that the ESP32 has 3 ...
-1
votes
1
answer
36
views
Cannot communicate with software serial on particular devices (SIM7600G-H)
I have 3 devices:
An UNO (non-genuine)
An SMS hat/shield device SIM7600G-H to communicate with via UART
A USB UART controller for debugging purposes
I'm using the UNO to talk to the SMS device via ...
0
votes
2
answers
565
views
SoftwareSerial will not read all of the printed string when calling readString()
I have an Arduino UNO and an ESP32 that need to communicate to each other using SoftwareSerial. The problem I am coming across is that when I call readString and print it out using Serial, it will not ...
0
votes
0
answers
68
views
I need help with serial communication between Arduino Uno and NodeMCU [closed]
I want to transfer analog readings i.e. variable values from a NodeMCU to an Arduino Uno so that on the Arduino side I can check those values using an if condition and make a buzzer sound. Please help ...
1
vote
1
answer
410
views
Issue communicating with ESP32 (WT32-S1) with my USB FTDI (hw-417-v1.2)
Basically im trying to communicate bewtween my ESP32 (WT32-S1) and my USB FTDI (hw-417-v1.2) when I run it in the Arduino IDE I get the error "Failed to connect to ESP32: Serial data stream ...
0
votes
1
answer
64
views
Send a 2d PROGMEM array over SoftwareSerial
I have a 2d array:
const byte messages_for_measurement[2][8] PROGMEM =
{
{ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 },
{ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10 },
};
I want to send ...
1
vote
1
answer
418
views
How to read and parse UART data from human presence radar sensor
I'm working on a project, and I purchased a 24 GHz "Human existence/presence" mm Wave sensor from micradar, the R24DVD1. The output of the module is serial data which varies in length and is ...
1
vote
0
answers
106
views
Deserialization error arduino uno and nodemcu esp8266 to Thingspeak
I am currently sending temperature and humidity readings to a Thingspeak channel via a nodemcu esp8266 wifi module using serial communication between the arduino and esp. I have set the time between ...
-1
votes
1
answer
176
views
Use same pin for two purposes
I have only one pin available and I'd need to use it both for a digitalRead and for sending serial messages (assigning it the Tx role within a SoftwareSerial). I can alternate these two operations, ...
1
vote
1
answer
259
views
No GPS data Neo 6M DFRduino Nano
I checked several answers for same question but none of them help.
I also changed the nano board and GPS module but without luck. I ran it outdoor.
This post question had same issue except my date ...
0
votes
0
answers
90
views
Cannot upload sketch to DFRduino nano
I previously succeed in uploading the code to DFRDuino Nano (Arduino Nano Compatible) (with wrong digital pins) but after changing pin I cannot upload it again.
From the document, I changed back the ...
2
votes
1
answer
815
views
Using Arduino to read and write data to RS232 device
I have a micro turbojet engine (JetCat P100-RX) which is operated through an Electronic Control Unit (ECU).
The ECU has a lot of information about the engine. I want to access that information and ...
1
vote
2
answers
2k
views
Using Software Serial on Arduino Mega
So Im using this sensor:
https://wiki.dfrobot.com/Serial_6_Axis_Accelerometer_SKU_SEN0386 with this library https://github.com/DFRobotdl/DFRobot_WT61PC
Im using 2 sensors but got poor frequency on ...
1
vote
0
answers
2k
views
SIM800L not responding to AT commands
I am using SIM800L module the module. I am new to GSM modules, so I've searched for the basic to use the GSM with the Arduino. this is my code.
#include <SoftwareSerial.h>
SoftwareSerial ...
0
votes
0
answers
701
views
MP3-TF-16P only works while connected to serial monitor
I am building a project with Arduino Nano and the component in the subject, which, as far as I understand, can be assimilated to a DFPlayerMini (not sure if it's the same thing or it's just a cheap ...
1
vote
1
answer
286
views
Weird SoftwareSerial behaviour with Arduino nano when multiple SoftwareSerial objects are configured
So I have been stuck with this for quite some days now and am really unable to put my finger on what's wrong here. Any help would be great. Try not to list down the disadvantages of SoftwareSerial, I ...
1
vote
0
answers
249
views
Why do I read my own transferred data during my RS485 serial comms?
I am writing a RS485 serial communication firmware for the ESP32 (the minimal code is at the end of the question you can paste it as an Arduino INO or in platformIO main.cpp file).
It is quite simple: ...
1
vote
1
answer
369
views
Using arduino framework how many instances of SoftwareSerial can use simultaneously with esp32
Ussing popular library https://github.com/plerup/espsoftwareserial/ can I have multiple softwareSerial ports (for example 6 ports).
I’m the readme say “ several instances can be active at the same ...
1
vote
0
answers
51
views
SoftwareSerial fails to receive on Nano but works with Uno [duplicate]
I have built a circuit board that includes a BLE module and an oxygen sensor that has a UART. Writing arbitrary data to the BLE works fine, but for some reason every configuration of SoftwareSerial I ...
1
vote
0
answers
50
views
Multiple SoftwareSerial's at the same time? [duplicate]
I need to receive some data from USB and send it to the Android device via Bluetooth. The problem is that multiple SoftwareSerials won't connect at the same time.
Here is my code:
SoftwareSerial ...
1
vote
1
answer
150
views
ESP8266 with HC05 : expecting to receive more bytes then the 63 received
I'm trying to read a Ant BMS 32H with a ESP8266 and a HC05 module.
BMS is sending 146 bytes when asking for these by sending DB DB 0 0 0 0 (HEX)
I did test with my android phone and the app 'Serial ...
0
votes
3
answers
599
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
0
answers
655
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
2
answers
506
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
0
answers
236
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
1
answer
191
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....
2
votes
2
answers
3k
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
1
answer
304
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();
...
1
vote
0
answers
474
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
1
answer
91
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
1
answer
114
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
1
answer
258
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
0
answers
83
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 ...
1
vote
0
answers
45
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
0
answers
134
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 ...
5
votes
2
answers
12k
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
81
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
101
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
153
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
...