Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [softwareserial]

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

2
votes
2answers
1k views

Using SoftwareSerial library with EnableInterrupt

I'm working on a project that involves both serial communication and GSM transmission. I'm using the SoftwareSerial library for RS232 communication, and GSM (SMS) transmission: TX and RX for RS232 : ...
0
votes
1answer
328 views

Serial monitor showing extra data

I am trying to communicate NODEMCU and Arduino Uno using Serial Communication (RX,TX) using SoftwareSerial library. Here is my code int count; char reqst[] = " "; void setup() { Serial.begin(...
0
votes
0answers
388 views

Store response from ESP8266 on Arduino

I have connected esp8266 and Arduino. Rx of esp8266 is connected to Pin3 of Arduino. Tx of esp8266 is connected to PIN2 of Arduino. I have uploaded the following code #include <...
1
vote
2answers
1k views

Using SoftwareSerial along with FastLED library to control WS2812 LEDs

I am controlling WS2812 LEDs with Arduino nano using FastLED library. I want the LED patterns to change on receiving a command from another Arduino Nano over software serial, I don't have the option ...
0
votes
1answer
2k views

Reading from software serial with an interrupt

I want to perform a serial read using software serial with Arduino. I am looping for my normal tasks, but whenever something is received on the software serial pins I want to perform a read operation ...
3
votes
2answers
271 views

Bluetooth Communication Not Working with DC Power But Works With USB Power?

I am running a HM-10 Bluetooth Low Energy (BLE) module to transmit serial data (using SoftwareSerial) from an analog sensor onboard my Arduino Uno to a serial terminal app on my Android phone. When I ...
1
vote
1answer
962 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 ...
0
votes
1answer
76 views

Read only selected Packet SoftwareSerial

I am reading data from RS485 which is in the following format: void sendkwh() { RS485Serial.write((byte)0x01); // Meter Address RS485Serial.write((byte)0x03); // Read Function Code RS485Serial....
1
vote
2answers
2k 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 ...
3
votes
1answer
1k views

SoftwareSerial too slow for MIDI?

I tried to use the SoftwareSerial library for MIDI (by 47 effects), but it seems I get regularly corrupted/unexpected messages. The circuit I'm using works perfectly when I connect it with the ...
1
vote
2answers
2k 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 ...
-3
votes
1answer
50 views

Create an a message from two inputs[Programming Help] [closed]

I'm a bit new to this and I have the following function that I'm having trouble getting it to compile. The intent is to create a message to write out to a software serial port. Inputs are two int ...
1
vote
1answer
161 views

ESP8266 problem with recieved data trasmission via TCP

I am having small project where I want to read couple of analog inputs from Arduino UNO, send it via software serial to ESP8266-01 and from that to python server using TCP. Data is sent to ESP using ...
0
votes
1answer
4k views

Hex String -> Byte Array -> Serial Write

I'm writing code that I discussed in a previous post. I now have a setup where I send my Arduino an ASCII-encoded Hex String that represents the bytes I want to write to my serial device. I think I've ...
5
votes
5answers
18k views

AT command is not responding on serial monitor

I am trying to send AT commands to ESP8266. I re-flashed ESP8266 http://imgur.com/a/J8Ueh I followed this tutorial http://remotexy.com/en/help/esp8266-firmware-update/ and I hope it re-flashed ...
-2
votes
1answer
1k views

How to work with arduino softwareserial communication using HC-05?

This is my first project using bluetooth module HC-05.i am using two of this module.one is with arduino nano(slave) and another one is with arduino uno(master).I have paired them through AT commands . ...
5
votes
3answers
2k views

Make Sure \n is the last character in serial string

I have an Arduino that I've put between a computer and an RS485 device. The job of the Arduino now is just to transmit data but will eventually do data logging and have a small user interface as time ...
-1
votes
1answer
179 views

Serial communication with more than two Arduinos [duplicate]

Is my syntax "SoftwareSerial uno1(0,1); // RX, TX" is right to communicate with more than two Arduinos?. How can I communicate with three Unos via single Mega? #include <SoftwareSerial.h> ...
1
vote
0answers
158 views

ESP8266 sometimes stuck on AT+CIPSEND with “busy s…”

I'm using an ESP8266-01S Wi-Fi module on an Arduino UNO. When I use AT+CIPSEND=4 and then type test it successfully sends that message to my laptop. However, sometimes the module returns a busy s... ...
0
votes
1answer
268 views

SoftwareSerial response is semi-gibberish using ESP8266

I have a working SoftwareSerial connection to my ESP8266 module on my Arduino UNO board. However, the response I get from the ESP8266 using the SoftwareSerial library is semi-gibberish. So I do get ...
2
votes
3answers
495 views

Serial communication on Arduino Uno

I have a Raspberry Pi 3 connected to the serial of my Arduino Uno (pins 0 and 1), but I also have another device connected to two other serial pins on the Arduino (pins 10 and 11, using the ...
1
vote
1answer
522 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 ...
1
vote
0answers
72 views

How can I use delimiter/split serial input in a loop function?

How can I use delimiter/split serial input in a loop function? I want to use each word from the input and check a database, to check availability. #include SoftwareSerial.h> #define ...
1
vote
0answers
639 views

'SoftwareSerial' does not name a type in Adafruit Feather M0 Bluefruit LE

I am trying to create a software serial connection between Arduino Uno & Adafruit Feather M0 Bluefruit LE. I am getting the following error in the M0 sketch: Arduino: 1.8.1 (Windows 10), Board: ...
0
votes
1answer
834 views

Analog reading via bluetooth

I am making a project in which I am trying to communicate the LDR values collected by one arduino(slave) to another arduino(master) via bluetooth. The readings of the LDR is displayed on the serial ...
4
votes
1answer
4k views

WiFiEsp not working on Software Serial, working fine on Hardware Serial

What I want to achieve I want to connect to my wifi network using Arduino UNO and ESP8266 using WiFiEsp.h library over `SofwareSerial, since UNO doesn't have additional H/W serial. What I am able to ...
5
votes
2answers
711 views

Arduino Uno as USB to Serial converter (bypass 328p)

I'm trying out computer to computer serial communication using 2 Arduino Unos (both connected to different computers). Right now, I use the Software Serial library, which redirects data from the ...
3
votes
2answers
734 views

Random data sending integers between two Arduinos

I'm trying to do something seemingly simple, but I'm running into difficulties. I want to send about 5 separate integers between two Arduinos over software serial. I have written the following, but I ...
2
votes
0answers
75 views

How do I Continuity Test/Troubleshoot a Linksprite RS232 V2 Shield?

I have a Linksprite RS232 v2 adapter (which uses a MAX232 chip), as per this image. I have soldered on the headers and tested the pins to make sure there are no solder bridges. I have set the jumpers ...
2
votes
5answers
9k views

SIM800L change default baud rate

I am using an ATmega328P with internal clock (8 MHz) with a SIM800L module. The default baud rate of the SIM800L is 115,200 baud and I can't make them talk to each other correctly. Although I was able ...
1
vote
3answers
1k views

How to change the baud rate of ESP8266 (12E) using an Arduino Uno?

I have with me an Arduino UNO and an ESP8266 (12E) WiFi Module. I need to make a webserver using the two. I read that the default baud rate for ESP8266 is 115200, and that the software serial pins can'...
2
votes
1answer
1k views

Laser emitter + receiver for Arduino (Arduino to Arduino communication)

I'm working on a project using 2 Arduinos connected to 2 computers to demo Serial to Serial communication. We're using Arduino Uno connected to the computer via Serial and software serial for inter-...
0
votes
1answer
300 views

What difference between readString and while loop read

From Arduino code, I have a question for SoftwareSerial Class First: when I use more example for Esp8266 those functions use while loop to read response string from Esp when we send AT_Command to ...
1
vote
1answer
64 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 *...
0
votes
0answers
1k views

WiFiESP constantly losing connection

I am working on a traffic light with a ESP8266-01 wifi module on an Arduino. The wifi card should act as a server and wait for a request to come in at /R (red), /Y (yellow), /G (green) or /O (off) and ...
0
votes
1answer
613 views

Unable to read and write serial data between two arduino's (hc-05 paired) when using a sensor

What I did was that I wrote a piece of code that will-in-fact move a servo motor when a clap is detected using a sound impact sensor (fc-04). The code for this is seen here and in fact does work: #...
0
votes
0answers
56 views

serial connection performance drop when receiving AND sending

[short] I am experiencing a big performance drop on my receive rate as soon as I also send data (only 2bytes). How does that come? (see test program below) [long] I am working on a LED matrix (16x24) ...
0
votes
2answers
7k views

Arduino to read from RS232 converter to TTL serial module (updated)

Here's the system I want to work on: The weight controller device detects weight which can transfer data via RS232 serial connection I used RS232 converter to TTL serial module to connect the weight ...
0
votes
1answer
466 views

How to communicate with GPS SIM900a without Serial Monitor

I am fairly new to Arduino. I was working on a project where I use a GSM SIM900a modem interfaced with an Arduino. The AT commands are sent via the Arduino to the GSM Modem. The problem, however, is ...
1
vote
2answers
104 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(...
3
votes
1answer
99 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
47 views

ESP8622 dosen't response to any code

I have an Arduino Uno and ESP8266 and all connection are right. It responds to commands like "AT" ... etc. But when I write a code and try to upload it, it fails and shows the following: When I ...
0
votes
0answers
1k views

How to define SoftwareSerial pins on ESP8266

I'am new to arduino yun and ESP. In fact, i have an arduino yun which has a sim808 dfrobot shield on it which uploads GPS data online at a regular time interval. I want to connect the dfrobot sim808 ...
0
votes
0answers
352 views

Problem with receiving data from Arduino via HC05 sent by Java

I want to both send some sensor data via Bluetooth (HC05) and Arduino to Java and I also want to send some command data via the same Bluetooth and serial port to Arduino. I've managed to do the first ...
2
votes
1answer
1k views

Strange characters after typing an AT command in serial monitor

I'm trying to test AT commands (I am working with an Arduino Uno and a GSM/GPRS SIM900 shield; my system is ubuntu 14.10) . Yesterday when I was testing , all ran well.. For example after typing AT+...
-1
votes
1answer
827 views

Arduino to ESP8266 (SoftwareSerial) communication, does not receive full data

I have an Arduino Uno and an ESP8266, connected over serial through ESP8266 pin GPIO_2 (which is set as RX over espsoftwareserial) and 11 on Uno (which is set as TX over SoftwareSerial). I am trying ...
0
votes
2answers
1k views

How can I run HC-05 on 8MHz Pro Mini?

I run an Arduino Pro Mini on ATMega328 3.3V 8MHz, and I am unable to send data over HC-05 breakout board on this frequency, and on 5V 16Mhz, it has no issues. The Arduino code is down below: #...
0
votes
1answer
1k views

Reading updated serial data from ESP8266

I have connected my ESP8266 to my Arduino Uno on pin 2 & pin 3 as RX & TX. I adjusted the baud rates and I have no issue receiving the data from the ESP8266. The ESP8266 gets connected as a ...
0
votes
2answers
952 views

Arduino Problem with using SoftwareSerial and SPI

I am using an external ADC (via SPI) and also a GPS receiver (Software Serial). I tried each one of them and it's working fine. Now, when I try to integrate both of them in one sketch, I can only make ...
3
votes
1answer
273 views

Port Manipulation and serial communication

i'm working on a laser timer using arduino and i saw that using direct port manipulation can have a really better time precision. My only concern is about serial communication, because i am using some ...