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
670 views

Arduino OBD library and software serial library

Can I use Arduino OBD library with "custom" software serial or it needs to be used with hardware UART only? For example if I have D5 and D6 pin as RX and TX in my code hooked on OBD board, how do I ...
0
votes
1answer
794 views

What is the output of Software Serial .read() function

Hi I am new to arduino development i was using esp8266 using software serial library here is the code #include<stdlib.h> #include <SoftwareSerial.h> SoftwareSerial monitor(2, 3); // ...
0
votes
1answer
34 views

Power supply change change gps readings?

I was powering a GPS Sensor from the 3v3 pin of a raspberry pi and my reading for my GPS sensor had some strange symbols in the mix, but when i switched to the 3v3 on the arduino, my reading came back ...
0
votes
2answers
2k views

mqtt library which support softwareSerial on arduino uno with ESP8266

I am using ESP8266 and Arduino with SoftwareSerial. My requirement is to use MQTT protocol with it. So I am using an MQTT library named pubSubClient but the problem is it doesn't support ...
0
votes
2answers
130 views

Altering SoftwareSerial to transmit more than 1 byte at a time

I am trying to create a stable communication channel without any mis-synchronization. In the SoftwareSerial library, the write function transmits one byte at a time. The mis-synchronization occurs ...
0
votes
1answer
421 views

VirtualWire send function

I am a little confused on how exactly VirtualWire's "send" function works. After looking at the code, the process I gathered is the following. In the Arduino IDE, call vw_send() with the right ...
0
votes
1answer
266 views

Cannot receive data from GPS SD Shield V2-B

I am attempting to receive GPS data from a GPS SD Shield V2-B purchased from maplin. I have attempted the very simple sketch they provide on their website linksprite.com. I have also tried following a ...
0
votes
2answers
1k views

SoftwareSerial library

How do I rectify this error? Clearly it says there is some error in the library, so how do I correct it? C:\Program Files (x86)\Arduino\libraries\SoftwareSerial\SoftwareSerial.cpp:1: error: expected ...
0
votes
1answer
2k views

Use ESP8266 as WiFi client connected to Arduino Pro Mini

So i'm trying to use the PubSubClient Library on my arduino mini pro, but I'm connecting to the internet via wifi using an ESP8266. Using a mini means I have to use software serial to connect to the ...
0
votes
1answer
942 views

bluetooth module with stk500_recv() error

I am trying to dow what is demonstrated in this tutorial. I have altered the original setup a little by adding a level converter to not fry the Bluetooth module and resistors for the LEDs, as well as ...
0
votes
2answers
560 views

Arduino due - Getting 0xFF (garbage) from serial

I am developing application with serial communication with arduino due. Like this: while(1) { if(Serial2.available() > 0){ byte l_byData = Serial2.read (); Serial.println(l_byData,HEX); } ...
0
votes
1answer
241 views

ATTINYx5 usi for uart?

Can the ATTINYx5 use its universal serial interface for a better UART than the Sofware Serial library alone? If so, is there a library or tutorial for this?
0
votes
2answers
867 views

Read serial data from XV11 sensor

I am trying to read data from an XV-11 sensor using the description of the format found here https://xv11hacking.wikispaces.com/LIDAR+Sensor. This is the code I am currently using to communicate with ...
0
votes
2answers
280 views

Need Basic Help with Software Serial

I am testing the basic Software Serial example on the arduino website, but I cant get the myserial to print #include <SoftwareSerial.h> SoftwareSerial mySerial(10, 11); // RX, TX void setup() ...
0
votes
1answer
2k views

How can I see the mySerial.print( ) through the serialmonitor on IDE?

I made an object named "mySerial" like this. SoftwareSerial mySerial(2,3) //pin 2 = RX, pin 3 = TX also I made pin 13 periodically(0.5 seconds) blink(HIGH/LOW), then the signal from pin 13 goes ...
0
votes
1answer
128 views

Read function in Software Serial

I have a question regarding how the read function works in Software Serial. recv reads the bits a receiver picks up into a serial buffer. than read returns a uint8_t. However, when i set read() equal ...
0
votes
2answers
764 views

Change UART pin

I am developing GPRS HTTP send request code using a GSM/GPRS module. I found the following code via google: /************************************************************************* * SIM800 GPRS/...
0
votes
1answer
229 views

SoftwareSerial returns garbage when powered externally

I'm currently working on a project with the ESP8266 and Arduino Nano, and when I power the device via USB they talk to each other via SoftwareSerial just fine. I use the Arduino IDE Serial Monitor to ...
0
votes
1answer
123 views

How to fix baud rate when hardware capacity has a low limit?

I have a transmitter(simple 433 MHz transmitter) connected via digital pins on the Arduino. The receiver is connected to another arduino. Now, I kept that pin on HIGH for 1 second, and it transmits ...
0
votes
1answer
710 views

Arduino Serial Monitor

I am currently trying to see the result of a query to a thingspeak field. This works great when I just use a empty sketch and type the commands manually, but using the following sketch I cannot see ...
0
votes
1answer
8k views

Sending Data between two boards using SoftwareSerial

I'm attempting to connect two Arduino boards to eachother using SotwareSerial as the title suggests! The two boards are 1) Arduino UNO and 2)MultiWii Controller (MWC) FLIP 1.5 (Uses ATMega328 chip). ...
0
votes
1answer
746 views

Sending serial commands to yourself

Is it possible to "send" a serial command to the device itself to see the response? I have written a little routine based on a couple of serial sends and receives and want to see if that works out ...
0
votes
1answer
159 views

How to interrupt a code after delay

I have a functionality on my mega 2560 to connect with other devices. Sometimes, devices can't answer. I don't want to wait for a longwhile. So, how can I interrupt the chunk of program after the ...
0
votes
1answer
1k views

How to read info from an Xbee Pro S2B to an Arduino with a Xbee Pro S2B

I am using two XBee Pro S2B modules. One (Router) connected to the laptop via a UART cable. The other (Coordinator) connected to an Arduino Mega with the sketch below. All I need it to do is turn a ...
0
votes
1answer
619 views

Anyone have the Maplin N97DG bluetooth shield working?

I went & impulse-bought a Maplin Bluetooth shield yesterday. It comes with a little tiny book containing examples, and uses the softwareserial library in these; I can load them, and get the ...
0
votes
3answers
1k views

Ambiguity in Software Serial

HW: 2 Arduino ProMini 16Mhz, 5V Software serial directly connected using male jumpers on bredboard. I have creates a software serial port for communication between two arduinos, Parent and child as ...
0
votes
2answers
2k views

How can I send serial over RF?

I've got the following: #include <SoftwareSerial.h> const int rx = -1; const int tx = 4; SoftwareSerial mySerial(rx, tx); void setup() { mySerial.begin(2400); pinMode(tx, OUTPUT); } ...
0
votes
0answers
22 views

HC-12 modules stopped receiving, cannot understand why

I've created a simple transmitter with an HC-12 and an Arduino Nano (clone), where I send the values of DHT11 and LM35 sensors to a receiver unit made only of a Wemos D1 and another HC-12. Setup is ...
0
votes
0answers
71 views

ESP8266-01 serial communication with Arduino UNO

I have been looking forever why my serial communication is not working, hopefully someone can help me here. Arduino UNO code: //ARDUINO UNO CODE #include <arduino.h> #include <...
0
votes
1answer
41 views

SoftwareSerial data being corrupted - looking for suggestions

I'm having problems running a serial communication between a NodeMCU ESP8266 and an Arduino Uno. I'm using the "standard" SUART setup, i.e. pins D1&D2 on the ESP are hooked up with GPIOs 2&3 ...
0
votes
1answer
26 views

Basketball board arduino endlessly transmitting shot scored

I've been working on trying to get this arduino project I found to work but I've been encountering some problems. The project was designed for an Arduino mega 2560 but I've been using my UNO and ...
0
votes
0answers
29 views

SoftwareSerial Stopped Working

I have been browsing the internet for about 3 hours now, it appears other people have had the same problem but I can't find a solution for it. Basically yesterday I received my first GSM module and I ...
0
votes
0answers
34 views

Will this code for braking of dc motor using sensor work?

#define trigPin 13 #define echoPin 14 #define e1 10 // Enable Pin for motor 1 #define t1 8 // Control pin 1 for motor 1 #define t2 9 // Control pin 2 for motor 1 #define led 3 #define led2 5 #...
0
votes
0answers
40 views

Nodemcu & GSM module & CLIP problem (CLIP line not always appears on the serial connection)

I'm working on phone-controlled car park gate. Trusted employees numbers are saved on SIM card/hard coded in program. So the idea is, if a trusted person calls the "gate number" ; Nodemcu will ...
0
votes
1answer
396 views

Serial communication from Arduino to ESP8266 NodeMCU works, but from NodeMCU to Arduino isn't working

My circuit connection is like: (I am following this tutorial) Code uploaded to Arduino: #include <SoftwareSerial.h> #include <ArduinoJson.h> SoftwareSerial s(5,6); void setup() { s....
0
votes
0answers
23 views

Characters like '$' coming through weirdly (as in '$$amd4') when sent from ESP8266 to Uno via Serial

I am running a program on an Uno using data that an ESP8266 is sending via Serial (can't run directly on the ESP8266 due to not enough GPIOs) and I'm having a problem where characters like '$' on a ...
0
votes
0answers
46 views

ESP8266 crashing with blue LED always on and without the word “w_flash” on startup

When using Arduino SoftwareSerial with ESP8266, the blue led turns always on every time I reset the circuit by power. The only way to take the ESP working again is reflashing with the SDK 2.2.1, AT ...
0
votes
0answers
68 views

Send ECG data using buffer in real time to the server without using delay

I am trying to make a ECG monitoring system using Arduino, GSM and ECG sensor which data should be sent to the private server in real time. Those data are then collected via Matlab on the remote ...
0
votes
2answers
272 views

Sim800 FTP Arduino

I've been unable to FTP anything using an Arduino and SIM800L. I have reduced the code as far as possible: #include <SoftwareSerial.h> //Create software serial object to communicate with ...
0
votes
0answers
84 views

Arduino Nano and neoSWserial library

So I've been playing with neoSWserial library on Arduino Nano. I've been using the example interrupt code: #include <NeoSWSerial.h> NeoSWSerial ss( 4, 3 ); volatile uint32_t newlines = 0UL; ...
0
votes
0answers
34 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
0answers
35 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
0answers
57 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 ...
0
votes
0answers
33 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
2answers
94 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
0answers
95 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
0answers
39 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
26 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
67 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 ...
0
votes
1answer
32 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 4 5 6 7 8