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
-1 votes
0 answers
11 views

HM-10 Doesn't show on COM port - MacOS [closed]

I'm trying to communicate with a HM-10 over bluetooth, however, when I connect to the device using the third-party app ''LightBlue', I can't see any COM port open for the bluetooth connection when I ...
Matthew's user avatar
1 vote
0 answers
86 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 ...
Sudras Elagor's user avatar
-1 votes
2 answers
107 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 ...
Charlie Nicholson's user avatar
2 votes
2 answers
343 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 ...
Semen Shekhovtsov's user avatar
0 votes
2 answers
281 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 (...
boop's user avatar
  • 191
0 votes
1 answer
229 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 ...
Mohamed Essam's user avatar
1 vote
1 answer
172 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 ...
RenX's user avatar
  • 127
-3 votes
1 answer
102 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 ...
RenX's user avatar
  • 127
4 votes
2 answers
125 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, ...
Mappy Wilks's user avatar
1 vote
0 answers
116 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 ...
Mike Oxmall's user avatar
2 votes
1 answer
179 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 ...
iceninja21's user avatar
1 vote
1 answer
271 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 ...
BruceWawe's user avatar
2 votes
2 answers
2k 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 ...
Richard White Building From Sc's user avatar
-1 votes
1 answer
40 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 ...
Freddy Mcloughlan's user avatar
0 votes
2 answers
794 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 ...
Primitive's user avatar
1 vote
1 answer
525 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 ...
PrinceSalmon's user avatar
0 votes
1 answer
77 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 ...
user1584421's user avatar
  • 1,395
1 vote
1 answer
565 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 ...
obatala's user avatar
  • 11
1 vote
0 answers
111 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 ...
Adriaan Bergh's user avatar
-1 votes
1 answer
244 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, ...
lesath82's user avatar
  • 101
1 vote
1 answer
296 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 ...
CoffeePlease's user avatar
0 votes
0 answers
108 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 ...
CoffeePlease's user avatar
2 votes
1 answer
1k 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 ...
Atharva's user avatar
  • 53
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 ...
Aivion2000's user avatar
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 ...
Mostafa Radwan's user avatar
0 votes
0 answers
825 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 ...
Luca's user avatar
  • 183
1 vote
1 answer
342 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 ...
dravit's user avatar
  • 111
1 vote
0 answers
310 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: ...
Stéphane de Luca's user avatar
1 vote
1 answer
457 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 ...
Diego Serrano's user avatar
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 ...
Ten Bitcomb's user avatar
1 vote
0 answers
51 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 ...
Egor Klepikov's user avatar
1 vote
1 answer
167 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 ...
Bart De Pauw's user avatar
0 votes
3 answers
713 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 ...
dka13's user avatar
  • 3
2 votes
0 answers
750 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 ...
Oscar Espinosa's user avatar
1 vote
2 answers
607 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 ...
mehmet's user avatar
  • 287
1 vote
0 answers
269 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 ...
Bryn Parrott's user avatar
0 votes
1 answer
207 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....
Prof_Sims's user avatar
2 votes
2 answers
5k 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 ...
voticoy's user avatar
  • 21
1 vote
1 answer
339 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(); ...
maxum's user avatar
  • 143
1 vote
0 answers
563 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....
Proxima Centauri's user avatar
1 vote
1 answer
93 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 ...
phosphorescent's user avatar
0 votes
1 answer
120 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 ...
A Alptekin's user avatar
0 votes
1 answer
286 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> ...
VinRocka's user avatar
  • 145
1 vote
0 answers
86 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 ...
zRockafellow's user avatar
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 ...
A Alptekin's user avatar
1 vote
0 answers
147 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 ...
Dratcher's user avatar
5 votes
2 answers
14k 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 ...
Joost's user avatar
  • 75
0 votes
2 answers
82 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 ...
Shyam3089's user avatar
  • 165
1 vote
1 answer
107 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 ...
Lawliet's user avatar
  • 183
1 vote
0 answers
169 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 ...
James's user avatar
  • 111

1
2 3 4 5
10