Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
103 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....
0
votes
1answer
430 views

Serial 3 vs Software Serial

So I have a program that works great on the Mega, it uses serial 3 to read and streams out to the USB (I posted a previous question which someone answered) I tried to use Serial (D0) to read and then ...
0
votes
1answer
775 views

Interfacing to scale over RS-232

Objective: interface and Arduino MEGA to a Mettler Toledo SB32001 using the RS-232 communication protocol described in the manual. Equipment Used: SB32001 Mettler Toledo 32 kg scale Arduino MEGA ...
0
votes
2answers
808 views

How do I get the Itead 3G shield to work?

I've tried a pretty standard code but the Serial Monitor yields zero response. Using a standard Arduino Uno (tried a second one as well, just to be sure) and am now trying the second shield with this ...
0
votes
1answer
794 views

How to transmit more than 1 byte continually?

In software serial, the write function only sends 1 byte at a time. Is there someway, some library, that i can send multiple bits/bytes, without stopping (and not using digitalWrite)? i want to be ...
0
votes
2answers
544 views

Arduino Uno + Adafruit Ultimate GPS Shield Serial issue

I've had an Arduino Uno for a couple of months-making basic sketches-and recently purchased an Adafruit ultimate GPS shield and attached with soldered headers. This shield has 2 options for reading ...
0
votes
1answer
232 views

Unable to tell if error is from receiving or transmitting end

so I am having trouble sending data using software serial's write function. TX Code: #include <SoftwareSerial.h> SoftwareSerial TX(2,3); void setup() { // put your setup code here, to ...
0
votes
1answer
407 views

cannot read from softwareserial

I am able to use AT command from the Serial monitor however when I run the following code nothing is sent or received from the ESP8266. Can someone advise what could be the problem. #include <...
0
votes
2answers
198 views

What is the relationship between the gain on the receiver and the delay time

I was conducting some research on wireless communication between a simple transmitter and receiver module using an Arduino. Now, I tested the channel accuracy and i received 14% error for a delay of ...
0
votes
2answers
8k views

Communicating Via Serial1 on Arduino Mega

Apologies if this a relatively simple question, but I am rather new to Arduino's and cannot seem to find any concise information on the topic. This is my XBee, mounted on a shield and placed onto a ...
0
votes
2answers
34 views

SoftwareSerial interfers with TVout

I'm using an Arduino uno and a Nodemcu for making a game with the phone as a WiFi controller. The Nodemcu is the server that receives inputs from the phone connected via WiFi and sends to the Arduino ...
0
votes
2answers
60 views

UART communication - Serial is always empty

I have a payment terminal which uses UART (or simply speaking Rx, Tx, Gnd pins) and I have an Android tablet app which is connected to the terminal using USB to DB9 adapter based on PL2303 chip. The ...
0
votes
1answer
70 views

Problem with powering ublox NEO-6M GPS module

Firstly, I'd like to mention that I'm a beginner. This is the first time I've worked with a GPS module. The serial monitor is completely empty when I upload the following code to my circuit: #...
0
votes
1answer
47 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
1answer
67 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
1answer
51 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
1answer
42 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
65 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. ...
0
votes
1answer
51 views

ESP-8266 stopped working due to possibly faulty perfboard layout

I have been following this tutorial to set up my ESP8266. I have also recreated on a perfboard the circuit provided in the tutorial, and I intend to use this perfboard circuit in my project. The ...
0
votes
1answer
153 views

Can't replace SoftwareSerial by Serial1 on Mega board

This sketch runs well with SoftwareSerial define and the monitor displays device modbus values. But now, i want to replace SoftwareSerial by Serial1 and i have no data. This is the sketch with ...
0
votes
1answer
160 views

mySerial.available() is returning 0

I am using bluetooth hc-05, arduino uno and ap app created by mit app inventor.The problem is myserial.available is returning 0 and hence its loop is not getting executed. I had connected four pins of ...
0
votes
3answers
646 views

I can send on software serial, but not read?

I've been cracking my head over this for a long while. Like many before me, I'm trying to send and receive data from a HM-10 bluetooth module, arduino mega adk and the app called BLE Scanner. I've ...
0
votes
1answer
121 views

Accessing one code using another code on RobotDyn Uno+WiFi board [closed]

Ok so I've been trying to do this for quite some time now. Still couldn't get it to work. I am trying to read a ESP8266 WiFi program from a normal Arduino Uno program. I've seen some people do this: #...
0
votes
1answer
475 views

Unexpected result with the GSM module A6

I have a GSM A6 module, like this one. I'm going to use an Arduino Nano as a bridge to communicate with it, I have an external power source (since I read that this module can consume up to 2A at its ...
0
votes
1answer
404 views

array to serial

i want to send an array of int to another arduino by serial. To garantie a better robust during the transmission, i added < and > with endMarker and startMarker. The receiver wait until the ...
0
votes
1answer
724 views

Bluetooth OBD2 ELM327 connectivity issues

I made a little project using an Arduino UNO, a 3.5" display, a HC-05 bluetooth module and an ELM327 (cheap ebay clone). I managed to establish communication, read the data, interpret and display it, ...
0
votes
1answer
71 views

Is two modules using Serial Interface on one Arduino Uno possible?

I was wondering if I have both a Bluetooth HC-05 module and a GPS module (uBlox 7N) is it possible both for both to be using the serial interface? I'm aware they cant be operating simultaneously ...
0
votes
1answer
267 views

Serial communication between 2 arduino's doesn't works when Sending string in a program with a lot of functions

Note : This question is completely different from the questions that I have asked before although the code snippets might be the same, So please do not waive it as a duplicate right when you see ...
0
votes
1answer
918 views

when i compile this code it always 'sendCommand' was not declare in this scope..plzz help

#include <SoftwareSerial.h> #define DEBUG true SoftwareSerial esp8266(10, 11); // RX, TX void setup() { // Open serial communications and wait for port to open: Serial.begin(9600); //for ...
0
votes
1answer
2k views

Connect Arduino to Socket IO Webserver via Esp8266

As part of a project I want to receive data on my arduino uno via a sensor, which is working fine. This data should be sent to a webserver where a node js with socket io is running. Therefore i bought ...
0
votes
1answer
8k views

Reading SMS using Arduino Uno and SIM800L and print on LCD (16x2 alphanumeric) using serial connection NEED HELP

Well, I am making a device, which has to receive SMS and print the text using am LCD display. Now I have code that can receive SMS and store it into a string variable using serial connection. Here is ...
0
votes
3answers
500 views

Make Arduino send and receive at the same time

I am working on a project where I connect a GPS module and GPRS SIM900 shield. The location will be sent when it recives a certain character. Now my question is, can the Arduino receive from GPRS and ...
0
votes
1answer
749 views

Arduino Servo with Serial

I have an interesting problem. I want to control ESC and servo with Arduino. I'm using HC-12 to communicate with 2 Arduino and I'm using SoftwareSerial on the nano. #include <SoftwareSerial.h> ...
0
votes
1answer
2k views

serial data transfer on gps shield duinopeak

I'm using an arduino uno r3 with a gps shield duinopeak. The shield is configured using RX pin 3 and Tx pin 2, as image below: I'm using the TinyGPSPlus library to read NMEA data. This is my code: /...
0
votes
1answer
3k views

myserial.available() returns zero byte

I wrote an Arduino program that requires two ports for serial communication. I intended to use both hardware serial and software serial, but the problem is receiving data from receiving buffer of the ...
0
votes
2answers
1k views

NRF24L01 receiving even if no data sent

I am using nRF24L01 to communicate between two micro controllers. Both are Arduino Uno. The question i have here is , even if i do not send any data from sender to receiver , the receiver device is ...
0
votes
1answer
5k 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 ...
0
votes
1answer
496 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 ...
0
votes
1answer
743 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
2answers
2k 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
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 ...
0
votes
1answer
1k views

Using SoftwareSerial to send data to itself

I'm debugging a project which includes SoftwareSerial. I'm not convinced the serial connection behaves as expected, so I came up with the following simple test: #include <SoftwareSerial.h> ...
0
votes
1answer
366 views

Can I create a serial.read command with the arduino code alone?

I am trying to manipulate a project and the simplest way to do what I am trying to do would be to use the existing code. This code is designed to take an input from the serial monitor using serial....
0
votes
1answer
216 views

Help understanding SoftwareSerial recv() and PCINT

In the SoftwareSerial library, I see the beginning of recv() as follows void SoftwareSerial::recv() { #if GCC_VERSION < 40302 // Work-around for avr-gcc 4.3.0 OSX version bug // Preserve the ...
0
votes
5answers
14k views

How to send AT command to sim800l with SoftwareSerial

I have SIM800l module connected to Arduino and I'm trying to initialize it in my setup function with this code: #include <SoftwareSerial.h> //SIM800 TX is connected to Arduino D8 #define ...
0
votes
1answer
644 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
751 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 ...