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
16 views

Debugging RN 42 HID Mouse

I'm trying to use the RN 42 and Arduino Uno to control a bluetooth mouse. I configured the RN 42 with the commands S~,6 and SH,0220 and R,1 to put the device in HID mouse mode. Is there anything I ...
0
votes
0answers
28 views

Program is executing but AT commands not showing in serial monitor

My purpose was to send SMS using GSM SIM800L coreboard and Arduino UNO. Here is the code #include <SoftwareSerial.h> //Create a software serial object to communicate with SIM800L ...
0
votes
0answers
31 views

HTTP get with ESP8266 via a SoftwareSerial port

I've Arduino UNO and ESP8266 connected via a SoftwareSerial. Arduino UNO communicates with ESP8266 by sending AT commands. And I need to write a function to fetch HTTP responses and return a response ...
0
votes
1answer
50 views

Serial communication arduino mega and D1 Wemos Mini

Can anyone help me connecting arduino mega to D1 Wemos Mini serially? Please let me know most efficient and easy steps to setup a communication. Using that following tutorial: https://...
0
votes
0answers
11 views

Unreliable EspSoftwareSerial Bluetooth transmission for longer read/writes on ESP8266

I have a project which runs on an ESP8266 and one functionality is to do nothing else but to read what comes in from a HC-05 Bluetooth adapter via SoftwareSerial and outputs the read data to the ...
0
votes
1answer
35 views

Receiving garbage value when sending a Json object from Arduino Uno to NodeMCU using SoftwareSerial

I am trying to send a Json Object from Arduino UNO to NodeMCU using SoftwareSerial. I am using Arduino IDE. I am getting garbage value on Serial monitor of NodeMCU. Tried it with different garbage ...
1
vote
1answer
40 views

Serial comunication with HC-05 - Arduino UNO

I am new to the site and this is my first question. I'm going to try to describe my issue the best I can. I got the following code for my project which consists basically of getting a car to have 2 ...
0
votes
1answer
41 views

can we use Software serial and timer one at the same time or this software use also timer one? [duplicate]

i am using timer1 and software serial for gps data i need to see if we have a problem with connection . So i made a timer1 that's start before the loop that will wait the gps sending and after 3s if ...
0
votes
0answers
24 views

How to send and receive data from serial using analog pins?

I have L293D shield connected to my arduino UNO and it fills nearly all the digital pins including TX(1) and RX(0) pins. I know this function, but as far as I know, it works for digital pins. ...
0
votes
1answer
70 views

I2C and softwareserial

Attempting to make gps unit with screen. GPS unit communicates over serial (Adafruit Ultimate GPS Breakout) and I can get GPS data through USB to my pc with Adafruit GPS library softwareserial ...
0
votes
1answer
61 views

Reading Buffer from Software-Serial & Writing to Serial

My progress so far: #include <SoftwareSerial.h> SoftwareSerial ttySerial(10, 11); // RX, TX byte buffer; void setup() { // Open serial communications and wait for port to open: Serial....
0
votes
1answer
27 views

Adafruit thermal printer prints weak

I am currently hooking up my arduino to an adafruit mini thermal printer. When a button is pressed, some code is executed which then sends some information to the thermal printer. Everything works ...
0
votes
1answer
119 views

serial 1 was not declared in the scope

#include <LiquidCrystal.h> LiquidCrystal lcd(2, 3, 4, 5, 6, 7); #include <SoftwareSerial.h> char Mob[20]="+923319020922"; String stringGPS = ""; String stringGPS1 = ""; char c=0; int t=0,...
0
votes
1answer
54 views

How to create a USB CDC device. (I'm using stm32f103c8 black pill board) and I want to read the data through USB in my raspberry pi as a serial port

How to create a USB CDC device. (I'm using stm32f103c8 black pill board) and I want to read the data through USB in my raspberry pi as a serial port. I am using a black pill to read RFID-rf522 to ...
0
votes
2answers
55 views

Reading from 2 serial ports

I have 2 Arduino Nano, they are connected via ports 2 and A2 While I use only one port to receive, it works properly. But if I activate the second port, system crash (and even first port don't work ...
0
votes
1answer
55 views

Fixing serial communication , condition for serial data available checks out even after reading all the data sent

I have been working on monitoring an aquaculture , where I log the environment variables (temp. , humidity, gas sensor data) to firebase and control feeding mechanism via an app(where data can also be ...
0
votes
1answer
74 views

HC-12 modules stopped receiving, cannot understand why

I've created a simple transmitter with an HC-12 and an Arduino Nano (clone), where I send the values of DHT11 and LM35 sensors to a receiver unit made only of a Wemos D1 and another HC-12. Setup is ...
0
votes
1answer
46 views

Accessing softwareserial.available in the arduino loop function always return 0 but in the setup function returns the available byte [duplicate]

I am working on an accident detection system using arduino, what i want to do is to store the recipient phonenumber received as an SMS in the arduino EEPROM, using Serial1.available() to check for ...
0
votes
0answers
80 views

ESP8266-01 serial communication with Arduino UNO

I have been looking forever why my serial communication is not working, hopefully someone can help me here. Arduino UNO code: //ARDUINO UNO CODE #include <arduino.h> #include <...
0
votes
1answer
81 views

SoftwareSerial data being corrupted - looking for suggestions

I'm having problems running a serial communication between a NodeMCU ESP8266 and an Arduino Uno. I'm using the "standard" SUART setup, i.e. pins D1&D2 on the ESP are hooked up with GPIOs 2&3 ...
0
votes
1answer
59 views

Arduino GPS Simulator: SoftwareSerial Issues

For my project, i need my Arduino Uno to simulate a GPS. To do this, I need to: Generate a 5V Pulse once a second (no problem) Send a $GPRMC NMEA sentence with the current time over RS-232 (i've got ...
-1
votes
1answer
39 views

Basketball board arduino endlessly transmitting shot scored

I've been working on trying to get this arduino project I found to work but I've been encountering some problems. The project was designed for an Arduino mega 2560 but I've been using my UNO and ...
0
votes
0answers
30 views

SoftwareSerial Stopped Working

I have been browsing the internet for about 3 hours now, it appears other people have had the same problem but I can't find a solution for it. Basically yesterday I received my first GSM module and I ...
-1
votes
1answer
36 views

Multiple Serial Ports Stream Switch

I am trying to define multiple serial ports (multiple BMS management boards) and select via a global variable the port which one is active, this is the sketch I am trying to modify. https://github....
0
votes
1answer
84 views

Serial doesn't initialise on Arduino Mega 2560 when not powered via the USB port

I am working on a project with a Mega 2560 and a Sim800L module. Everything works fine, however if i don't connect the USB port (at least once) and power only externally (either by Vin unregulated 7-...
0
votes
1answer
66 views

Can I connect a NEO-6M GPS Module and ESP8266 to the same Arduino?

Can I connect a NEO-6M GPS Module and ESP8266 to the same Arduino? I think both modules require the use of the RX and TX pins.
0
votes
2answers
99 views

Uno to NodeMCU Serial Connection Problem

This is my first project with any sort of development board and it has been a blast so far. I am running into some issues, however, while trying to send serial data from my Uno to a NodeMCU board. ...
1
vote
2answers
384 views

Converting each digit in an integer to its respective ASCII characters

For example what would be the process of converting the integer 1023 into ascii characters of 0x31 (1) 0x30 (0) 0x32 (2) 0x33 (3) Not looking for any library functions (I know of Serial.print() and ...
0
votes
0answers
51 views

Will this code for braking of dc motor using sensor work?

#define trigPin 13 #define echoPin 14 #define e1 10 // Enable Pin for motor 1 #define t1 8 // Control pin 1 for motor 1 #define t2 9 // Control pin 2 for motor 1 #define led 3 #define led2 5 #...
0
votes
1answer
568 views

no matching function to call for SoftwareSerial::SoftwareSerial(int&,int&)? How to rectify this problem

#include <LiquidCrystal.h> #include <SoftwareSerial.h> float pulse = 0; float temp = 0; SoftwareSerial ser(9,10); String apiKey = "U5AGYVQT5JRJPSDR"; // Variables int pulsePin = A0;...
0
votes
2answers
41 views

How do software interfaces compare to hardware interfaces in therms of speed and reliability?

The Arduino core includes numerous software interfaces mimicking the hardware interfaces provided by the chip and even extending beyond. My question is, if in a project I can either use software or ...
0
votes
0answers
73 views

Nodemcu & GSM module & CLIP problem (CLIP line not always appears on the serial connection)

I'm working on phone-controlled car park gate. Trusted employees numbers are saved on SIM card/hard coded in program. So the idea is, if a trusted person calls the "gate number" ; Nodemcu will ...
0
votes
1answer
803 views

Serial communication from Arduino to ESP8266 NodeMCU works, but from NodeMCU to Arduino isn't working

My circuit connection is like: (I am following this tutorial) Code uploaded to Arduino: #include <SoftwareSerial.h> #include <ArduinoJson.h> SoftwareSerial s(5,6); void setup() { s....
0
votes
0answers
23 views

Characters like '$' coming through weirdly (as in '$$amd4') when sent from ESP8266 to Uno via Serial

I am running a program on an Uno using data that an ESP8266 is sending via Serial (can't run directly on the ESP8266 due to not enough GPIOs) and I'm having a problem where characters like '$' on a ...
0
votes
2answers
63 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
113 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
2answers
146 views

SoftwareSerial receives beginning of data mangled

I'm using SoftwareSerial to communicate with a Sigfox module. Documentation for the read function assigns its value to a char. However using it I get mangled characters and also have read in other ...
1
vote
0answers
413 views

reference to 'File' is ambiguous. Why am I getting this error?

The program is supposed to take photo and store the picture into the SD card with the timestamp. My Program Code: #include <SdFat.h> #include <Adafruit_VC0706.h> #include <SPI.h> #...
1
vote
1answer
414 views

HLW8032 UART sends random data ( Registers Overflow often)

I designed my own version of smart socket just like the Sonoff with power metering chip HLW8032. And when I read the data in ESP-12F the data doesn't have a fixed format. To troubleshoot the issue, I ...
0
votes
0answers
62 views

ESP8266 crashing with blue LED always on and without the word “w_flash” on startup

When using Arduino SoftwareSerial with ESP8266, the blue led turns always on every time I reset the circuit by power. The only way to take the ESP working again is reflashing with the SDK 2.2.1, AT ...
0
votes
2answers
342 views

Serial.availableForWrite versus Serial.flush

Is there a difference between the following two line codes? while (Serial.availableForWrite <= 0) {} versus Serial.flush() Thanks!
0
votes
1answer
411 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
0answers
88 views

Send ECG data using buffer in real time to the server without using delay

I am trying to make a ECG monitoring system using Arduino, GSM and ECG sensor which data should be sent to the private server in real time. Those data are then collected via Matlab on the remote ...
0
votes
2answers
469 views

Sim800 FTP Arduino

I've been unable to FTP anything using an Arduino and SIM800L. I have reduced the code as far as possible: #include <SoftwareSerial.h> //Create software serial object to communicate with ...
0
votes
0answers
146 views

Arduino Nano and neoSWserial library

So I've been playing with neoSWserial library on Arduino Nano. I've been using the example interrupt code: #include <NeoSWSerial.h> NeoSWSerial ss( 4, 3 ); volatile uint32_t newlines = 0UL; ...
0
votes
0answers
48 views

RGB Matrix flickering every ~5 seconds when paired with SoftwareSerial

I'm running an RGB matrix through an Uno and trying to run it alongside SoftwareSerial so that I can integrate an ESP8266 into things. The trouble is, when I start introducing the SoftwareSerial into ...
1
vote
1answer
104 views

Using software Serial for Adafruit Thermal library and more general cpp question

I'm working on a proof of concept for using the Adafruit_Thermal printer library with an ATTiny85. The ATTiny85 does not come with hardware serial capability, so I started looking into using ...
0
votes
0answers
44 views

Why sometimes parsed data is null in WiFiEsp?

I'm setting up web server with args. As host.com/?pin=9. I parsed the response by indexOf and substring functions. In first connection response has been successfully parsed and number has been parsed ...
0
votes
1answer
66 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
0answers
90 views

Can HC-05 Continuously Stream data and read data at the same time?

I am trying to have my Arduino Stream an Analog Signal using Bluetooth Module (HC-05) while being able to read commands from another Micro-controller using the same Bluetooth Module. Currently, I am ...

1
2 3 4 5
8