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
1
vote
3answers
3k views

Problem with Software Serial: no response

I am using an Arduino Uno board with IDE 1.6.7. I have tried to implement a tweaked version of the basic example (SoftwareSerial example) from the Software Serial library. The code is attached. It ...
0
votes
1answer
125 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 ...
1
vote
3answers
9k views

SIM808 module GSM working fine, GPS not working (No GPS ready message on power on)

I powered on my SIM808 module. It showed me following output: RDY +CFUN: 1 +CPIN: READY Call Ready SMS Ready It supposed to show GPS ready also. I sent AT command and return ok. However ...
0
votes
1answer
311 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
7k 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 ...
1
vote
2answers
467 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
34 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
56 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 ...
5
votes
1answer
20k views

Get data from website with ESP8266 using AT commands

I'm trying to get data from a website by sending a HTTP GET request via AT commands for the ESP8266. Here is my current code: #include <SoftwareSerial.h> const byte rxPin = 2; const byte txPin ...
3
votes
3answers
10k views

Error: 'SofwareSerial' does not name a type

I have trouble compiling this sketch. The error I get is 'SoftwareSerial' does not name a type Any ideas how could I fix it? #include SoftwareSerial.h SoftwareSerial mySerial(10, 11); // RX, TX ...
0
votes
1answer
177 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
3answers
3k views

How to communicate with ESP8266 ESP01 by sending data through softwareserial on Arduino Uno?

I am able to send AT commands when connecting to the software through the TX/RX pins (1, 0) and the ESP01 communicates perfectly. However, as soon as I start doing that same thing with code I can't ...
-1
votes
1answer
79 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
2answers
3k views

I'm looking for a way to serially communicate with a multi mesh Arduino slave network

I have one PC running Visual Studio and a program that will be sending commands to Arduinos via serial COM Ports. So, in 11 Nano MCUs, I will have motor drivers L293D/L298N ICs, while in other Nanos I ...
0
votes
0answers
66 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
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 ...
4
votes
1answer
268 views

Problems running several Arduinos off of one HC-05 Tx pin

TL;DR: Multiple Arduinos listening to a single serial rail are burning out my HC-05's TX pin. Arduinos are leaking voltage onto the signal rail. How do I stop, or isolate that to keep from burning out ...
0
votes
2answers
5k views

Arduino to ESP8266 SoftwareSerial communication

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
0answers
77 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
64 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
316 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
130 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
107 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 ...
2
votes
2answers
378 views

ISR executes twice if data coming through SoftwareSerial

I am using Arduino Pro Mini to get GPS info from a u-blox NEO-M8N chip and display it on a Adafruit OLED display. NEO-M8N has a PPS(pulse per second) output which is aligned to GPS's second. Because ...
2
votes
2answers
584 views

Link Arduino Uno to Particle Photon

I'm working on a prototype with a Particle Photon, but I've realized the required number of pins is bigger than the number of pins on my photon. I thought I could have an Arduino Uno wired to some ...
0
votes
2answers
351 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
vote
2answers
3k views

Arduino-Pyserial communication on Python 3, Windows machine: Pyserial.write() doesn't seem to do anything

I've recently gotten my hands on an Arduino (or rather a Genuino, but the overall architecture should be the same) UNO. I'm now using that Arduino to test how data is transmitted from a USB to Serial ...
-1
votes
1answer
98 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
781 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 ...
1
vote
3answers
2k views

Synchronization and Implementing hamming code on Software Serial

I want to learn and use Hamming Code. Would it be wise to alter the Software serial library to do this or just change the data being transmitted in the actual Arduino sketch? Also, for means of ...
1
vote
0answers
883 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: ...
1
vote
1answer
115 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
24 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
4k 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 ...
0
votes
1answer
621 views

ATTiny85 Serial communication with Bluetooth Module

For a simple project I would like to use a ATTiny85 connected to a HC-06 Bluetooth Module so it can talk to my Android phone. I wrote a code for my Arduino Uno and worked as expected. When I changed ...
-1
votes
1answer
1k 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
1answer
2k 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 ...
2
votes
1answer
2k 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 &...
1
vote
3answers
2k views

HC-06 data receiving

I've written a script in Python which sends data through the PC's Bluetooth to HC-06 on Arduino. state is an integer from 0 to 1000 (it is controlled through the potentiometer). ... gaugeSocket.send(...
0
votes
2answers
9k 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 ...
6
votes
4answers
11k views

Is SoftwareSerial left out for the ATTiny85/84?

I want to use SoftwareSerial with my ATTiny85 and when I google it several projects claim that they are using it... I downloaded the hardware from https://code.google.com/p/arduino-tiny/, but when I ...
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 ...
1
vote
3answers
99 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
1k 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
402 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 ...
1
vote
2answers
4k views

Arduino with HC 08 bluetooth module

I am connecting Arduino Uno R3 with HC 08 module lie following Arduino 5v -> HC 08 Vcc Arduino gnd -> HC 08 gnd Arduino Pin 5 -> HC 08 RXD Arduino Pin 6 -> HC 08 TXD Then I connected two ...
0
votes
1answer
2k 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 #...
7
votes
6answers
91k views

Send AT commands to ESP8266 from Arduino Uno via a SoftwareSerial port

GOAL From Arduino UNO, send AT commands to ESP8266 via a SoftwareSerial port and receive results. CURRENT STATUS I either send AT commands and get nothing back (wiring scheme 1) or I send AT ...
0
votes
1answer
179 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 ...
2
votes
2answers
701 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, ...