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.

-1
votes
0answers
35 views

ESP8266 to arduino via SoftwareSerial does not work

I connected the PINs and created SoftwareSerial objects as shown in picture. I am able to write from atmega to ESP8266 and I managed to confirm this when checking serial monitor of ESP8266. But I am ...
1
vote
1answer
47 views

ESP8266 Software serial to ATmega 328 is not properly working

Thanks in advance.. We are having esp8266-12E chip and Atmega328 connected as follows, ESP 12 pin as Tx,13 pin as Rx && Atmega328 13pin as Rx, 12pin as Tx. Everything works fine, but while ...
0
votes
1answer
32 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
0answers
14 views

Sending ultrasonic sensor data from Arduino uno to BeagleBone Black

Currently I´m working with these two devices and I want to send distance data from arduino uno to beaglebone black, I would like to know if I use the "SoftwareSerial.h" library from arduino can make ...
0
votes
1answer
15 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
16 views

Unable to receive data when using multiple SoftSerial on Arduino Nano

I am trying to use several (four) software-based serial ports to talk to different peripheral hardware. However, I am unable to receive data through the SoftSerial when using more than one software ...
0
votes
0answers
38 views

SIM800l GSM.reset() problem

I'm building an SMS Alarm for the refrigerator in my biochemistry lab. I'm using a SIM800L, the one that can be supplied directly with 5V. I'm facing some issue with the SIM800L library I'm using ...
0
votes
1answer
41 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
45 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
2answers
54 views

how to make GPRS/GSM SIM900 shield work with gps neo-6M module using Arduino UNO board

I'm a beginer to arduino program.i will like to make a program that will send latitude and longitude on my mysql database.so since 3 days i try to learn how to use all this material(GPRS/GSM SIM900 ...
0
votes
1answer
40 views

Passing HardwareSerial and SoftwareSerial as a Class Property

I wish to know if there is a way to use a single property Serial0 to hold a HardwareSerial or a SoftwareSerial or other class instances supporting basic methods such as available(), read() and write(),...
0
votes
1answer
36 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
40 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 ...
1
vote
2answers
392 views

How to write a library that support both HW and SW Serial communication and allow user to chose which one to use?

I'm working on a library for Arduino/ESP8266/Teensy that use serial to send AT commands. I want to make it as customizable as possible, so I avoided to hardcode the serial and I ask for a reference in ...
0
votes
1answer
26 views

Entire arrays are not read by Processing sent by Arduino unless cord is unplugged and plugged back in?

I am using an Arduino to read sensors and then send the data to the serial port for Processing to read. It works totally fine when I first download the code and run the Processing program. But if I ...
1
vote
3answers
42 views

For Arduino, is there a meaningful difference between carriage returns?

Serial.write(0x0d); // hex Serial.write(13); // ASCII Serial.write('\r'); // char Is one more efficient? I read how it depends on the terminal program. So does that mean the IDE? (This is my ...
1
vote
1answer
165 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 ...
0
votes
1answer
27 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
0answers
76 views

Don't display repeated data output on serial monitor of Arduino

In this code I am taking the TID (tag ID) data (20 bytes of 160 bits) in the form of array according to the Sparkfun (manufacture) documentation and RFID tag detection code and it's working correctly ...
-1
votes
1answer
34 views

HC-05 modules with joystick driven platform [closed]

I am working to create a joystick controlled platform using bluetooth to communicate, but am having several problems. The platform https://www.dfrobot.com/wiki/index.php/Cherokey_4WD_Mobile_Platform_(...
0
votes
0answers
37 views

Arduino loses communication with bluetooth when sending commands to nodemcu esp8266

i've been working on a project using an Arduino UNO, Bluetooth Module HC-06 and NodeMCU esp8266, the project consists on turning leds on via bluetooth and telling the esp8266 that the leds were turned ...
0
votes
0answers
36 views

Serial communication between GPS and Arduino Ethernet

I'm trying to read out GPS positions from a serial GPS module I have. I'm using an Arduino Ethernet and a Haicom HI-204 III GPS (http://www.haicom.com.tw/driver/hi-204iii_usb.pdf). If I connect the ...
1
vote
3answers
45 views

Bluetooth Modules not communicating correctly

I plug in BT rx to digital 11, BT tx to digital 10 and then 5v and ground from the HC-05 to the arduino. I then upload this code to the HC-05 that is set as a master. #include <SoftwareSerial.h>...
0
votes
0answers
94 views

How to check for valid Serial data, then break?

I'm having trouble completing this code for my university final project. I feel like I'm almost there, but I can't seem to find the final buttons to press. I'm using the Arduino Pro Micro. I have one ...
1
vote
3answers
54 views

Read one value from continuous data stream at a lower frequency

I am working on a university final project and have run into a problem with programming Arduino, after a 3 year hiatus. I have a pressure transducer that is sending pressure data at 10Hz. I have ...
1
vote
1answer
47 views

Arduino Mega Pins for SoftwareSerial (vs. AltSoftSerial)

I am currently looking at using an Arduino Mega to build a MIDI Receive box that will then pump the data over USB, but am having design issues/uncertainties with the Arduino's receiving end. I am ...
0
votes
0answers
130 views

Attiny85 & NEO-6 GPS

I've been trying to use an attiny85 to reduce my project footprint, thing is, it looks like something is very wrong. The project works just fine using an Arduino Uno and produces the expected results. ...
0
votes
0answers
35 views

TinyScreen+ coupled with 433MHZ Radio (Setup)

I'm using the following shields: 1. TINYSCREEN+ (PROCESSOR, OLED & USB IN ONE) https://tinycircuits.com/products/tinyscreenplus 2. 433MHZ LONG RANGE RADIO TINYSHIELD https://tinycircuits.com/...
0
votes
0answers
44 views

Issue in transferring the serial communication data over radio using NRF24L01 and Arduino Uno

I am trying to transfer data recorded by one of my Arduino UNO boards (which is recording temperature data using DHT11) to another board that could be UNO or WeMos D1. The problem is that the UNO ...
0
votes
2answers
62 views

Can increasing the size of the software RX buffer cause problem in Arduino Uno

If I were to increase the of the buffer array from 64 to say 512 will this bring any long term problem in the Arduino Uno. Changing from this: #ifndef _SS_MAX_RX_BUFF #define _SS_MAX_RX_BUFF 64 // ...
-1
votes
1answer
47 views

i uploaded the code but when i open the serial monitor, but the 'sendCommand' isn't working in serial monitor…plzz help

#include <SoftwareSerial.h> #define DEBUG true SoftwareSerial esp8266(2, 3); // RX, TX void setup() { // Open serial communications and wait for port to open: Serial.begin(9600); //for ...
0
votes
1answer
205 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
0answers
52 views

Sending data over serial results in garbled text

I am using the ESP8266 WiFi module to receive a string and send it to a Arduino over serial. I am using the SoftwareSerial library to do this. My problem is that the string is sometimes garbled after ...
1
vote
0answers
330 views

Reading +IPD response from serial.read() using Arduino UNO and ESP8266

I have a python server running on my PC and I am using an Arduino Uno (wifi enabled by a ESP8266 chip) as the client. I can make the the server and client communicate using AT commands as shown below: ...
0
votes
0answers
501 views

SIM800 GSM module with Arduino Uno + SoftwareSerial Library

I am trying to use SIM800 GSM Module with Arduino Uno. ARDUINO DIGITAL PIN 9 is connected to TX of GSM Module ARDUINO DIGITAL PIN 10 is connected to RX of GSM Module ARDUINO is powered by PC USB GSM ...
1
vote
1answer
64 views

Use ATtiny85 to perform initial config on a Cisco router using its USB console port

We have 200+ brand new Cisco routers that have USB console ports (but not the old RJ45 serial console ports). This is quite frustrating because the routers didn't ship with console cables and Cisco ...
0
votes
0answers
22 views

How do I improve Bluetooth communication?

How do I improve Bluetooth communication? You will see, in this image using the Bluetooth monitor application, in order to receive the "ON" response, I had to repeatedly send the "O" character: The ...
0
votes
2answers
358 views

Receive data from Arduino board to Android application

I'm trying to receive data and print it on a label of my application, but I can not get it. Actually, I have 0 experience with Arduino. It's the first time I see this. I read this tutorial to receive ...
-1
votes
1answer
322 views

Unable to convert string read from bluetooth to int [closed]

I am using a HC-06 and i want to read a number ending with f as a delimiter, the first three numbers as my servo position, however converting the string into int is giving an endless series of 0s. I ...
0
votes
0answers
67 views

Is it possible to use XBee with ESP8266?

I've been trying to use the Mini D1 ESP8266 instead of the Arduino, but still in the Arduino language. I want to connect an Xbee to it This code works on my Arduino: #include <SoftwareSerial.h> ...
1
vote
1answer
749 views

Send serial data to local server

I am new to arduino coding. I am reading data from serial port and storing it in char array. I want to send that data to the local server but it is not getting converted to string Code : #include &...
0
votes
0answers
199 views

SoftwareSerial with ESP8266 not responding

Sorry im really new using arduino, im trying to learn how to connect an arduino to wifi using the ESP8266. Im following a tutorial that provided this code: #include <SoftwareSerial.h> ...
1
vote
3answers
73 views

SoftwareSerial runs out of “text” space on ATtiny

I have an ATtiny and am trying to send a very large byte array stored in a separate .h file over SoftwareSerial: for (int i=0; i<numElements; i++) { softSerial.println(myList[i]); } I imagine ...
-1
votes
1answer
225 views

A SoftwareSerial library for SAMD boards

So I've got three boards that I'm using to test this (modified) code: int sensor1Pin = A0; int sensor2Pin = A1; int sensor3Pin = A2; float sensors[] = {0,0,0}; void setup(){ Serial.begin(9600); } ...
1
vote
2answers
205 views

ATtiny85 serial communication, bootloader and setting up fuses

I have been reading some articles about ATtiny and how to burn the bootloader. And I have two questions which I can't figure out. Do I need to manually setup fuses to run 8 MHz on my ATtiny when I'm ...
0
votes
1answer
94 views

send more than one integer on serial between Mega and nodeMcu

i have 2 integers i want to send them from Mega to nodeMcu i get them to talk to each other by this one on Mega :- #include <DHT.h> #define DHTPIN 2 // Selecting the pin at which ...
0
votes
1answer
607 views

Can not initialize ESP module in Arduino SoftwareSerial

Can not initialize ESP module in Arduino SoftwareSerial's example sketch in configuring WiFi module. In the sketch it tells: #include "WiFiEsp.h" // Emulate Serial1 on pins 6/7 if not present #...
2
votes
2answers
358 views

What causes Serial.available() to become false after Serial.read() gets data?

As serial data bytes are being read from the serial buffer by Serial.read(), are they removed from the Arduino's 64-byte serial buffer altogether? In my current situation I'm using SoftwareSerial, ...
0
votes
1answer
837 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 ...
1
vote
2answers
454 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 ...