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
1answer
566 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
107 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
1k 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
252 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
80 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
439 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
276 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
118 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
892 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
522 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
1k 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
658 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 ...
0
votes
3answers
70 views

Why Commenting Serial.print() gives me a different value?

I am working on with Cypress and Arduino.I am trying to transfer the data from cypress and printing it to the Serial Monitor or Arduino. but the thing is when I am using Serial.print(j) it is showing ...
0
votes
1answer
63 views

Not able to control digital pins using commands sent via HC-05 module

I am trying to control the LED on pin13 using the below code but it's not working. With this code I am able to print to the Serial Monitor but the code has no effect on the any of the digital pins. I ...
1
vote
1answer
76 views

SoftwareSerial + Serial.printlen() not working properly

I want to read a SMS message , find it's length and do some "substring();" operation on received SMS. My last two(2) statements do not work . How can I get correct answers? What are correct codes ? ...
0
votes
3answers
2k 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 ...
0
votes
1answer
5k 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
2answers
450 views

Arduino reads hc-05 device connecting status

Hello I want to get an arduino get status of bluetooth hc 05 if connect with device or not . I'm trying by myself and search on internet website but I can't find useful things.
0
votes
3answers
319 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 ...
1
vote
0answers
182 views

Arduino hardwareSerial Bluetooth.println not sending string over 310 chars

Hey all I am wondering if my code below can be modified in order for the arduino to send more than 300 chars to a HM-10 bluetooth 4.0 le module? #include <SoftwareSerial.h> #define ...
0
votes
0answers
20 views

AT response clean-up

I am trying to get the response from server using AT commands. This is my program #include <SoftwareSerial.h> const byte rxPin = 2; // Wire this to Tx Pin of ESP8266 const byte txPin = 3; // ...
1
vote
1answer
2k views

HM-10 send and receive data and checking received value

I am wondering what is wrong with my code below. I have 2 issues. The first issue, I am checking if c equals "hi" and if it does then display said hi. I currently see the output of c when it hits ...
-1
votes
1answer
176 views

Solution for two software serials

I've been working a while on a project using 3 Arduino Nanos, linked together using this tutorial Nick Gammon. As I am not experienced with Arduino programming, I was making it step by step. First I ...
0
votes
0answers
206 views

Getting unknown characters with the actual response when Reading ELM327

i am using arduino uno to read vehicle information from OBD using ELM327 and arduino serial communication, i am able to send the AT commands an get the required response but i'm also getting some ...
0
votes
1answer
367 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> ...
3
votes
1answer
77 views

My Arduino freezes if power removed from the HMI

I have an Arduino (Pro Mini) connected to an HMI display over serial. When the user pushes a button on the HMI screen, it activates a relay attached to one of the digital pins on the Arduino. For ...
1
vote
1answer
62 views

Not long tweets published using ESP8266-01 with Arduino UNO

I'm trying to create a setup with which an Arduino UNO sends out a tweet (one random quote) every time a button is pressed. I want to use it as a Mailbox Watcher. I'm not new to Arduino but ESP8266 ...
1
vote
2answers
4k views

SIM800L not registering to network

I am using SIM800L module. I am new to GSM modules. I have searched in many web sites about SIM800L, every where they mentioned baud rate 9600 for SoftwareSerial but it is not working at all in my ...
0
votes
1answer
557 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 ...
0
votes
0answers
42 views

How to save an incoming MESSAGE of SIM900D MODEM?

I can receive a message but I cannot save it in a variable and find strings in it. The question: is it possible to save the text message in a variable? This is my code. #include <SoftwareSerial.h&...
1
vote
0answers
143 views

Trouble in acquiring NEO6M GPS data through S-Function builder at Matlab simulink using Arduino libraries

I have connected NEO6M GPS module to Arduino Mega 2560 and programmed using TinyGPS++ library's "Device Example" and i getting proper data at serial port. NEO6MGPS to ArduinoMega2560 Vcc 3....
0
votes
0answers
494 views

Arduino Digital Pins Control with ESP8266

I am currently working on my FYP. I need to control 15 servos (13 for x2 Robotic Arms + 2 for Camera) and 4 motors of my Robotic kit via webserver. I have the following options: NodeMCU Arduino Mega ...
0
votes
1answer
1k views

How to pass 'Serial' as an input argument in Arduino function?

I have one integer value which I should pass through Serial1, Serial2, Serial3, and Serial4 after performing some algebraic operation on this integer. For this algebraic operation, I made a function ...
0
votes
1answer
277 views

Is there a way to define an alias for a hardware Serial

I'm porting some code from Arduino Uno over to a Mega and I want to replace a SoftwareSerial defined in the previous code with one of the built-in UARTs. Rather than go through and replace all ...
0
votes
0answers
58 views

My stepper motor works fine when I turn on, but won't stop when I has send SMS to stop .. please help :(

First of all .. i'm sorry for unclear question .. this is my 1st time using this forum .. i was edit my code to focus only for the problem .. my project used arduino mega, gsm SIM900, and Stepper ...
0
votes
2answers
216 views

No Information obtained when using 2 x SoftwareSerial ports on Arduino Nano

I have a LoRa Click Module and Adafruit Ultimate GPS which both use Serial Communication. I wish to just check the initial tests with all the components in on the Serial Console. Hence I have ...
0
votes
1answer
33 views

Referencing Serial output

I'm confused with what I'm reading. I have Serial communicating with my PC (USB) and SoftwareSerial over RS485 to a remote PC. I don't want to duplicate all of my print statements to be able to send ...
0
votes
1answer
1k 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
1k 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
554 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 ...
1
vote
1answer
119 views

Program NOT responding to loop()- Arduino UNO+GSM + Sensor

I'm trying to monitor the sensor values (range 0-1000) connected to Arduino UNO's 12th-pin. If the value stays below say 500, then it should SEND SMS. I tested the sensor and GSM shield seperately and ...
0
votes
1answer
1k views

How to convert numbers from Serial port input to HEX String?

I am trying to read digits (number from 0 to 255) from Serial port, convert them to HEX String and send them using SoftwareSerial as HEX. For example: when I send '60' trough the serial port, the ...
0
votes
1answer
473 views

Can an Arduino be used to read data from a serial port?

People often use Arduinos to send data over serial to other peripherals (flashing firmware onto modules, etc) by pulling RES to ground, connecting the TX and RX pins to the device being programmed, ...
3
votes
1answer
5k views

Simple Multiple RX/TX SoftwareSerial?

In this project I will be using multiple ESP8266 WiFi modules (4) connected by software serial to an Arduino Leonardo Micro (1 UART). I plan to rotate between all 4 (starting with 2): Open port, write,...
0
votes
3answers
272 views

Weird issue with software serial?

Hi i am trying to write a library to communicate between the arduino and the esp 8266. I wrote a command that that sends an AT command to the esp chip. So far I have tested these commands : AT, AT+GMR,...
0
votes
0answers
453 views

Serial port - ESP8288 (TCP/IP) - WiFi - “Virtual serial port on my linux/windows PC” [Solved]

Is there an way to transport a serial port via TCP/IP to a PC. The goal is to have a ESP8266 dongle that I connect to a router, switch or other device with a serial port for configuring. I have ...
1
vote
1answer
358 views

Arduino PC to RS232 not reading data

I am trying to read data from RS232 Shield with an Arduino Mega. This is the schematic pin, TX is 3 and RX is 2. Wiring: PC > USB-RS232 cable > Arduino RS232 Shield. Software to send/receive data: ...
0
votes
1answer
436 views

Arduino UNO two SoftwareSerial ports communication

I am working on a project involving bluetooth and wifi communications. Both of them are wired up to the Arduino and communicate to it using two software serial port. The scenario is the one in the ...
0
votes
1answer
592 views

AtTiny44 and AtTiny 85 communication

I'm working on a project where I use two microcontrollers: an AtTiny44 (20MHz ext clock) and an AtTiny85 (8MHz internal). What I'm trying to achieve is an I2C communication between the 85 and the 44, ...
1
vote
2answers
3k 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 ...