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 vote
1 answer
2k views

Can an Arduino be used to read data from a serial port?

People often use Arduinos to send data over serial to other peripherals (flashing firmware onto modules, etc) by pulling RES to ground, connecting the TX and RX pins to the device being programmed, ...
DividedByZero's user avatar
1 vote
2 answers
6k views

Arduino with HC 08 bluetooth module

I am connecting Arduino Uno R3 with HC 08 module lie following Arduino 5v -> HC 08 Vcc Arduino gnd -> HC 08 gnd Arduino Pin 5 -> HC 08 RXD Arduino Pin 6 -> HC 08 TXD Then I connected two ...
Johnykutty's user avatar
1 vote
3 answers
6k views

Serial.read() always returns 255

So I'm trying to learn basic Android app dev. My master plan was to make an app using MIT App Inventor that would turn on an LED over Bluetooth using an Arduino. Once I verified that everything worked,...
theflyingoreo's user avatar
1 vote
1 answer
2k views

GSM SIM900A SMS content not displaying

I am trying to read messages sent from my mobile to a GSM SIM900A module on my Arduino Serial monitor. Neither does the AT+CMGR command nor does the AT+CMGL command display SMS content. I also tried ...
knowledgeispower's user avatar
1 vote
2 answers
5k views

Arduino + L9637 K-Line reader - 10400 baud on SoftwareSerial?

I know this question has been asked many times before in different flavours, but all of the previous questions I have found seem to pre-date the current SoftwareSerial library, which afaik now (unlike ...
James Elder's user avatar
1 vote
2 answers
6k views

Adding null character to char array

I have this code written and functioning that will write out the chars in cmd to a serial port for an input of ASCII text representing byte values. void SendCTRL (String &input) { //Adjust ...
ATE-ENGE's user avatar
  • 931
1 vote
1 answer
2k views

Common ground serial communication trouble SIM800L

I have a trouble when i'm using SIM800L module with common ground with combinaison with : FTDI232+ARDUINO PRO and Li-po battery. I use common ground to allow Arduino see the serial of SIM800L. I use ...
kiki67100's user avatar
1 vote
1 answer
110 views

Can't send SoftwareSerial to Class Object

I have a problem when I try to use SoftwareSerial in a class.. Here my detail My class class MyEsp8266 { protected: SoftwareSerial *esp8266; public: MyEsp8266(SoftwareSerial *...
HoangHieu's user avatar
  • 111
1 vote
2 answers
175 views

Serialprint and analogRead time

How much time takes to print each sample using Serial.print and analogRead in each iteration? #include <SoftwareSerial.h> #define Sensor A0 void setup() { Serial.begin(250000); pinMode(...
Mehran's user avatar
  • 155
1 vote
1 answer
191 views

Accelerometer (I2C) and Fona Shield (software serial) won't work together

I am using a Fona 808 shield with an Arduino Uno and the LSM303 accelerometer. The accelerometer is connected via I2C and the Fona uses software serial. My project requires the accelerometer to be ...
nford64's user avatar
  • 21
1 vote
1 answer
2k views

GSM module connected with arduino uno giving garbage values in response

I connected a GSM module with the Arduino UNO. The connections are as follows: Gnd of gsm -----> Gnd of arduino TX of gsm -----> pin 9 of arduino Rx of gsm -----> pin 10 of arduino GSM ...
user22930's user avatar
1 vote
1 answer
466 views

Odd symbols in ESP8266 responses to AT commands

I used the code below to control an ESP8266. I am getting some unknown symbols in the responses. #include <SoftwareSerial.h> const byte rxPin=2; const byte txPin=3; SoftwareSerial ESP8266( ...
Aishwarya k's user avatar
1 vote
2 answers
4k views

Arduino-Pyserial communication on Python 3, Windows machine: Pyserial.write() doesn't seem to do anything

I've recently gotten my hands on an Arduino (or rather a Genuino, but the overall architecture should be the same) UNO. I'm now using that Arduino to test how data is transmitted from a USB to Serial ...
user25642's user avatar
1 vote
1 answer
721 views

Sending data via SoftwareSerial results in garbled reception

My overall goal is to have an Arduino Uno with an Ethernet Shield send a short (5-character) string via a SoftwareSerial connection and a UDP packet when I press a button. The device which is ...
David H. Silber's user avatar
1 vote
1 answer
310 views

How to send data from arduino to Temp Controller for setting temp?

I send data from arduino by method following. Configure the value : byte message[ ]; #include <SoftwareSerial.h> #define RX 2 #define TX 3 int incomingByte = 0; SoftwareSerial mySerial(RX, TX);...
TW_JM's user avatar
  • 11
1 vote
1 answer
2k views

SoftwareSerial error:

Please help me with this library "Softwareserial". The basic sketch does not work. Please look the errors: C:\Program Files (x86)\Arduino\libraries\SoftwareSerial\SoftwareSerial.cpp:128:2: error: ...
user23441's user avatar
1 vote
1 answer
352 views

No response from device when trying to communicate with it via RS-232

I have an Arduino Uno with an RS-232 shield, and a servo drive that communicates via CAN or RS-232. I'm trying to communicate with this drive using an RS-232 cable, but I'm getting no response. I'm ...
Eric Frechette's user avatar
1 vote
2 answers
2k views

SIM900 Shield read only sms headers without text

I enable messages about new SMS AT+CNMI=2,2,0,0,0 OK and when received sms, output like this. +CMT: "+79XXXXXXXXX","1","15/09/23,01:34:03+24" Test But when I read message, output only before <...
Sasay's user avatar
  • 11
1 vote
3 answers
2k views

HC-06 data receiving

I've written a script in Python which sends data through the PC's Bluetooth to HC-06 on Arduino. state is an integer from 0 to 1000 (it is controlled through the potentiometer). ... gaugeSocket.send(...
Electruc's user avatar
1 vote
1 answer
115 views

SoftSerial freezes on comparing getInt to int

I have a robot application on my Arduino which basically takes values from a SoftSerial instance on my 0/1 pins (connected to a Bluetooth board). From the 'driver station' I send speed values to the ...
Keaton Burleson's user avatar
1 vote
0 answers
85 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 vote
0 answers
115 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
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
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 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
1 vote
0 answers
307 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
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
0 answers
268 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
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
558 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
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
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 vote
0 answers
105 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 ...
Jonathan Talbot's user avatar
1 vote
0 answers
140 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 ...
Cem Adatepe's user avatar
1 vote
1 answer
365 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 ...
Tanatorn Boonprasert's user avatar
1 vote
0 answers
380 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 ...
coder-ari's user avatar
1 vote
0 answers
120 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 ...
Aroo's user avatar
  • 43
1 vote
0 answers
48 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 ...
TESLA's user avatar
  • 31
1 vote
0 answers
469 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 ...
Naren2312's user avatar
1 vote
0 answers
849 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 ...
k.h's user avatar
  • 11
1 vote
0 answers
153 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 ...
REVOLUTION's user avatar
1 vote
0 answers
236 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 ...
connersz's user avatar
  • 266
1 vote
0 answers
148 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 ...
VictorySpecificationII's user avatar
1 vote
0 answers
468 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 ...
Aidakf's user avatar
  • 11
1 vote
0 answers
140 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 '...
Pransy Pansy's user avatar
1 vote
0 answers
156 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 &...
Maximilian1988's user avatar

1
3 4
5
6 7
10