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.

0
votes
1answer
19 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 ...
0
votes
1answer
38 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
2answers
63 views

ESP8266 ASCII to HEX convertion and checking

I am trying to convert ASCII to hex and check if the hex is equal to that hex that I want. For example: 1B 42 05 it means B in ASCII, I need to check if that hex is equal to 1B 42 05. Here I need ...
0
votes
0answers
15 views

Print request return from ESP8266 using arduino as bridge

I am trying to achieve something that's probably really simple. I have an ESP8266 module connected to an arduino uno board. The ESP rx and tx are connect to two digital pins in the arduino. I'm also ...
0
votes
0answers
38 views

UART communication

I'm working on a NUCLEO-F401RE board from STMicroelectronics which is based on STM32 microcontroller and an xbee module from Digi for Zigbee communication. This board is programmable via Arduino IDE, ...
1
vote
1answer
130 views

getting error 'Serial' was not declared in this scope

I am adding Dust Sensor to my particle photon project at home, I got this GitHub project that I want to test before implementing a final code. I am not an expert in cpp, I wanted to modularise the ...
0
votes
3answers
69 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
18 views

Serial data not parsed correctly

The code I have works for the most part but when I send data via bluetooth received over software serial, too quickly, it is not parsed correctly. I'm a bit stuck with what can be done to a void the ...
1
vote
2answers
59 views

Alternative Rx/Tx Pins for Arduino Uno and Pro Mini

Do they have specific pins that is best to be use as Rx/Tx pins (aside from D0 and D1)? If so, what makes them special? edit: What pin feature i should look out for when choosing the rx/tx pin? Is ...
1
vote
1answer
77 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
44 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
32 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
25 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
1answer
84 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
63 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
212 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
74 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
75 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
50 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
399 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
43 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
296 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
35 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 ...
-1
votes
1answer
40 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
44 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
45 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
47 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
145 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
59 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
57 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
184 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
46 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
63 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
100 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
56 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
291 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
57 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
444 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
710 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
79 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
985 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
481 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
93 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> ...
2
votes
1answer
937 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
237 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
78 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
358 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
253 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 ...