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
1answer
71 views

Not able to control digital pins using commands sent via HC-05 module

I am trying to control the LED on pin13 using the below code but it's not working. With this code I am able to print to the Serial Monitor but the code has no effect on the any of the digital pins. I ...
2
votes
1answer
117 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 ...
0
votes
0answers
20 views

RGB Matrix flickering every ~5 seconds when paired with SoftwareSerial

I'm running an RGB matrix through an Uno and trying to run it alongside SoftwareSerial so that I can integrate an ESP8266 into things. The trouble is, when I start introducing the SoftwareSerial into ...
0
votes
1answer
51 views

How to use 2 serial port when WifiEsp library uses one of both

I try without success to receive datas from DataPort and transmit them to my computer via WifiPort, using ESP8266 wifi module. Each second, serial datas income on DataPort from another device. ...
1
vote
1answer
35 views

Using software Serial for Adafruit Thermal library and more general cpp question

I'm working on a proof of concept for using the Adafruit_Thermal printer library with an ATTiny85. The ATTiny85 does not come with hardware serial capability, so I started looking into using ...
0
votes
0answers
29 views

Why sometimes parsed data is null in WiFiEsp?

I'm setting up web server with args. As host.com/?pin=9. I parsed the response by indexOf and substring functions. In first connection response has been successfully parsed and number has been parsed ...
0
votes
1answer
37 views

Buffer overflow error in ESP8266_SoftwareSerial library

I am running into buffer issues when running the Firmware.ino example here. The output from my Arduino serial log on baudrate 115200 (I put the ESP on baudrate 9600): Begin 01:17:15.538 -> ...
0
votes
0answers
33 views

Can HC-05 Continuously Stream data and read data at the same time?

I am trying to have my Arduino Stream an Analog Signal using Bluetooth Module (HC-05) while being able to read commands from another Micro-controller using the same Bluetooth Module. Currently, I am ...
-1
votes
2answers
1k views

tinygps abnormal behaviour with EM408 gps

I have an Arduino Duemilanove and em408. My code is this: #include <TinyGPS.h> #include <SoftwareSerial.h> #define GPS_RX_PIN 2 #define GPS_TX_PIN 3 TinyGPS gps; SoftwareSerial ss(...
1
vote
1answer
30 views

Reading from EEPROM and combining

I'm trying to read from the EEPROM and combine the information and send it out over SoftwareSerial using write() function but i'm getting the following error error: invalid operands of types 'const ...
1
vote
0answers
681 views

Chat between Xbee and Arduino

I'm very new with this devices so I'm a bit confused. I've got two Xbee modules series 1 and an Arduino UNO. I want to make like a chat between the two Xbee modules, one of them connected to the PC ...
1
vote
3answers
3k 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,...
0
votes
1answer
2k views

SoftwareSerial data not available

Second time I'm asking the same question with no solution, let me elaborate in other way for clarity. I wrote an Arduino program which uses two serial ports, one is hardware serial port and other is ...
3
votes
4answers
2k views

Arduino Pro Mini Serial Monitor garbage

This is my first post. I hope that I am posting in the right section of the forum. Otherwise, could an admin move this topic to the appropriate section please? Board : Arduino Pro Mini 3.3V 8MHz ...
1
vote
0answers
92 views

SRF-02 UART, transmitting from one address to another

So I just starting playing around with UART and SoftwareSerial while playing with these SRF-02 Sensors - http://www.robot-electronics.co.uk/htm/srf02techSer.htm I need help getting one to read to the ...
0
votes
1answer
29 views

Getting issues while using SoftwareSerial

I am trying to read string send from esp8266 esp01 to Arduino mega. When I use normal Rx and Tx ports, it works properly but when i am initializing new serial port using SoftwareSerial then nothing is ...
1
vote
0answers
1k views

Why the serial connection only work when Tx and Rx are shorted?

I have a Arduino Pro Mini 3.3V connected to a sim800l chip using a serial connection of 9600bps. When I connect the Arduino to the device, it seems I don't receive anything on the Arduino Rx pin. I ...
1
vote
3answers
599 views

Why does SoftwareSerial::read() return int?

The documentation on Arduino's website shows SoftwareSerial::read() as returning a char. (link) The header shows that the method returns an int. (link) The cpp definition shows SoftwareSerial::read()...
1
vote
0answers
1k views

Sending GPS data between two Arduinos using Easy Transfer

I'm trying to get GPS data transmitted from one Arduino UNO to a second unit to eventually be displayed on an LCD and stored in an SD card. I am using Xbees S2C's on Xbee Shield's to do this. The ...
0
votes
0answers
29 views

Are there any transmission guarantees with the HC-06's bluetooth protocol?

I'm wanting to send serial data from multiple Arduinos to a Raspberry Pi using the HC-06 module. The connection will be delivering sensor data from the Arduino to the Pi for a smart home setup and it'...
0
votes
1answer
244 views

Send data string from Arduino UNO to ESP8266-01

Is there anyway to send a string from an Arduino UNO to a ESP8266-01 (one with only 8 pins RX, TX, CH-PD, vcc, ground, reset, GPIO0, GPIO2) without using without using AT commands. I've looked ...
0
votes
0answers
79 views

Using the YS-IRTM with an Arduino Uno

Picked up a YS-IRTM IR Transmitter/Receiver module to do some testing for a project. There's not a lot of details on it but eventually came across two very important sources: Translated Module ...
1
vote
1answer
32 views

Using SoftwareSerial.h in .cpp file

I am trying to modularize the different components in my arduino build by using objects, but am having trouble with the one controlling a wireless transceiver, which uses SoftwareSerial.h I believe I ...
1
vote
1answer
623 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 ...
0
votes
1answer
39 views

From Strings to int problem

I create applications for a computer that is to be used to control the robot arm. I wanted to make the first attempt to run the application not on the motor, but on the diode and check if it will ...
0
votes
2answers
45 views

Why the SoftwareSerial is not working properly on Arduino Pro Mini 3v3?

I uploaded regular pass through code for Serial and SoftwareSerial to communicate with my AT command based module. Writing to SoftwareSerial seems to be working but reading not. As I write "AT", the ...
0
votes
1answer
42 views

Why map Arduino pins 2 and 3 to Rx and Tx instead of using the build in Rx and Tx pins?

In many examples I see the following: #include <SoftwareSerial.h> const byte rxPin = 2; const byte txPin = 3; // set up a new serial object SoftwareSerial mySerial (rxPin, txPin); what is ...
0
votes
0answers
30 views

Hardware/Software Serial communication abruptly stops (HC - 05 bluetooth module)

I'm trying to send the readings of 3 sensors simultaneously to my Android phone on an app I made using MIT App Inventor 2 via the HC-05 bluetooth module. For this, I'm sending a string like "20.067, ...
0
votes
1answer
25 views

GSM incoming bytes from UART not complete

I have used AT commands to read incoming bytes from serial buffer from SIM900A but I cannot get the complete message using the code below: while(ss.available()>0) { inChar=ss.read(); inString+=...
1
vote
1answer
64 views

Using Arduino as ISP and SoftwareSerial at the same time

I'm trying to use my Arduino Uno as an ISP to program an ATTiny85 and at the same time check my board by using the SoftwareSerial library to output the values I'm getting from my sensor. Is this ...
1
vote
0answers
41 views

Serial Communication between arduino and nodeMCU

I am trying to connect a nodeMCU to arduino mega using serial communication so that i can read data from firebase. I have put the following code on the NODEMCU. #include<SoftwareSerial.h> //...
2
votes
2answers
366 views

What is the best delay to use between characters sent to the serial port

I have an Arduino Uno. It's role is to echo back what it receives. But if I send it a stream of ascii characters it starts to error after the first one. Occasionally it gets the second character ...
-1
votes
2answers
32 views

Send serial data at custom voltage using PWM

The Raspberry Pi has 3.3 V logic level and the Arduino has a 5V logic level. It is warned against connecting the Arduino TX to the Pi RX: Pi is 3.3v and the Arduino is 5v. Connect the two and you ...
0
votes
1answer
2k views

Did not find fingerprint sensor :( Arduino Mega 2560 Adafruit Fingerprint Sensor

I'm getting the following error when I try to enroll fingerprints using the Arduino Mega 2560 microcontroller along with a Fingerprint Scanner: Did not find fingerprint sensor :( The exact devices ...
1
vote
0answers
866 views

Arduino Mega 2560 SoftwareSerial Not Working

We have an xBee Pro S2C that is using this library (https://github.com/andrewrapp/xbee-arduino) very well on a Software Serial connection to ports 2 and 3 on an Arduino Uno. However, when we take the ...
1
vote
2answers
96 views

Two serials can't work on the same speed

I have a device which sits on pins 10/11 of Arduino UNO. I am trying to send commands from my PC using Arduino to relay my commands to the device via Serial. The problem is that if I use speed 9600 ...
0
votes
0answers
23 views

SIM800 Serial Communication Result Not As Expected

SIM800 module and a standard Arduino, I have a function to communicate by software serial with the module: String SIM800_send(String Incomming){ SoftwareSerial SIM800(SIM800_TX_PIN,...
0
votes
0answers
25 views

cant pass any value from serial to function

i'm new here and stuck with my problem so i make my code running stepper motor with verbal speed and its working perfectly then i attended to upgrade my code to change my speed by serial monitor ...
0
votes
0answers
25 views

sim800l only receiving SMS after serial monitor is started otherwise not receiving

I am using SIM800L and Arduino Uno. The programme is working fine when I turn the serial monitor on using Arduino IDE but when I start the Arduino board by using the adapter it is not receiving ...
1
vote
2answers
944 views

Arduino reads hc-05 device connecting status

Hello I want to get an arduino get status of bluetooth hc 05 if connect with device or not . I'm trying by myself and search on internet website but I can't find useful things.
1
vote
0answers
222 views

Trouble in acquiring NEO6M GPS data through S-Function builder at Matlab simulink using Arduino libraries

I have connected a NEO6M GPS module to an Arduino Mega 2560 and programmed using TinyGPS++ library's "Device Example". I am getting proper data at serial port. NEO6MGPS to ArduinoMega2560 Vcc ...
1
vote
0answers
256 views

Arduino hardwareSerial Bluetooth.println not sending string over 310 chars

Hey all I am wondering if my code below can be modified in order for the Arduino to send more than 300 chars to a HM-10 bluetooth 4.0 le module? #include <SoftwareSerial.h> #define ...
0
votes
0answers
20 views

Only take certain characters from Arduino Serial Output [duplicate]

I am trying to create a ble scanner but only want the device address to be displayed The device address is the 12 characters before the :-0 in the outputs. In my code shown below I have tried to run ...
1
vote
2answers
1k views

GSM and GPS module don't work together

I am trying to create a project which involves getting latitude and longitude via GPS Module and send it via GSM Module. My problem here is that individual code is working perfectly. However, if am to ...
2
votes
0answers
1k views

Sending binary data to Matlab via serial

I would like to exchange data via Xbee. I've set up a communication based on strings between the Arduino and a Matlab software. Unfortunately this kind of communication isn't enough robust and ...
0
votes
0answers
26 views

Software Serial blocking Wifi Connection

I'm trying to connect my NodeMCU to wifi. It isn't finishing because software serial is interrupting it. Sort of like Software serial conflict with WiFi on ESP8266. Here's my code: #include <...
0
votes
0answers
67 views

how to name master and slave with UART and Serial event

I am trying to implement some small program using below code, now this code works fine and I'm getting data to the slave. But I have more than one slave, so now I'm not sure how to send the Address of ...
0
votes
1answer
31 views

SIM800l doesn't respond on arduino micro

I want my Arduino Micro to interact with my SIM 800 L module. But unfortunately nothing happens, may you can help me figure out where I made a mistake. Here's my wiring: Summary of my wiring: ...
0
votes
1answer
167 views

vk2828u7g5lf GPS module over SoftwareSerial

So my goal was simple. Trying to get a GPS speed, and show it on a display (later use it to control a stepper motor). I am using the vk2828u7g5lf GPS module from Banggood, which after days of ...
1
vote
1answer
1k views

Sending PUBX commands to GPS Board (Ublox NEO-6M) through SoftwareSerial

I am having trouble parsing NMEA sentences coming from a GY-NEO6MV2 board (https://www.cytron.io/p-gps-neo6mv2), using the TinyGPS (https://github.com/mikalhart/TinyGPS) library. The GPS board itself ...