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
0answers
33 views

Get the last piece of data received on a serial port

I'm using software serial to use multiple ports as serial in an arduino UNO and each of those is constantly receiving data. I want to know a way to get just the "newest" data each time I listen to one ...
1
vote
1answer
244 views

Cannot receive data from GPS SD Shield V2-B

I am attempting to receive GPS data from a GPS SD Shield V2-B purchased from maplin. I have attempted the very simple sketch they provide on their website linksprite.com. I have also tried following a ...
1
vote
0answers
979 views

Why the serial connection only work when Tx and Rx are shorted?

I have a Arduino Pro Mini 3.3V connected to a sim800l chip using a serial connection of 9600bps. When I connect the Arduino to the device, it seems I don't receive anything on the Arduino Rx pin. I ...
1
vote
0answers
475 views

Teensy 2.0++ SDA SCL pins not accesible using ARDUINO software

Hi I was looking to interface Teensy++ 2.0 with MPU6050 for a simple IMU project. I have done this previously using Teensy 3.1 by trying the project of kriswiner however I also wanted to try it out on ...
1
vote
0answers
483 views

How to read all avaiable data from a Serial stream and then stop

I am trying to read data from the Serial port in my Arduino, store it in a buffer and when all the data has been read stop reading and then start using the data (the talkMIDI() function). The Arduino ...
1
vote
0answers
551 views

ATtiny85 + HC-05 + Oled = smart watch

I am using an ATtiny85 for making a smart watch. Bluetooth module HC-05 with ATtiny85 pins PB3->TX, PB4->RX and it works. Secondly I have connected a 0.96" OLED on PB0 (SDA) and PB2 (SCL) and this is ...
1
vote
2answers
710 views

How will Arduino communicate wirelessly through XBee?

I am using one XBee S2 configured as coordinator API attached to my laptop and one XBee S2 attached to an Arduino Uno that is configured as a router AT. I want to generate an alarm on LabVIEW as I ...
1
vote
0answers
1k views

Arduino code issue (using Bluetooth and Rfid technology)

I am building a device that communicates with my Android phone. I know that my App works but my Arduino code seems to have a problem. So I have made a smaller programm and everything works fine there. ...
1
vote
0answers
834 views

HC-05 and HC-06 Bluetooth not communicating well

Please I am trying to communicate between two arduino UNO. One has a HC-05 which is configured as master, the other arduino has HC-06 which is the slave. What I want to achieve is to be able to print ...
1
vote
0answers
934 views

Multiple SoftwareSerial ports - how to handle the limitations

I am building an access control project which uses two SoftwareSerial ports. One will be used for communication with an RFID reader and another one to receive serial messages via an Xbee (e.g. remote ...
1
vote
0answers
277 views

How to do Serial monitor with Arduino Yun?

I'm trying to read some values from a TCS3200 colorsensor using Arduino Yun. I have some code, which you can see below, that I used when I tested on the Uno. With the Uno everything worked fine and I ...
1
vote
0answers
525 views

Arduino GSM Shield web server hangs

I use official Arduino GSM Shield with Uno R3. I uploaded web server examples from official GSM library. I use a simple python script to make TCP/IP connections to my GSM Shield web server. I send ...
1
vote
0answers
556 views

How to serial read from a TM-88 printer for status

I am working off of my own fork of the TM-88 printer library by signalwerk It can be found here ( https://github.com/docwisdom/thermalprinter ) With this I am trying to get a printer status before I ...
1
vote
0answers
174 views

Arduino Software Serial reading a value of zero after several reads? [closed]

I am using the ID12-LA RFID reader with an Arduino Pro Mini (5V, 16MHz). I am also using the software serial library to read the serial data form the reader. Initially the serial data is being read ...
1
vote
1answer
1k views

Wrong characters received with Bluetooth Mate Gold using Software Serial

I have a Bluetooth device from Sparkfun which I would like to use with the Arduino Mega. If I connect the module via the hardware serial pin everything works fine but when I use other pins like 12 and ...
0
votes
5answers
11k views

How can I stop SoftwareSerial from receiving data and re-enable it at some other point?

My project involves and RFID reader connected to an Arduino Pro Mini (5V, 16MHz) and an Adafruit CC3000 breakout WiFi chip. The device reads RFID tags and sends them to my web service. I am using ...
0
votes
1answer
2k 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
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
2answers
367 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
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 // ...
0
votes
1answer
398 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
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 ...
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
3answers
98 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
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 ...
0
votes
1answer
954 views

SoftwareSerial Write to return Read in Serial Monitor?

Hoping someone can help me out in my conundrum here... I currently am testing the SoftwareSerial library out to understand how I may use it in my project. I have a wire running from pin 6 to pin 9, ...
0
votes
1answer
95 views

ESP8266 SoftwareSerial not receiving any character

I want to use a ESP8266 (ESP12) to receive data from a counter at 9600 baud via SotwareSerial. But my program does not receive any data. I broke it down to the code i attach here. I tried it using ...
0
votes
2answers
181 views

Software serial conflict with WiFi on ESP8266

I'm trying to use an ESP8266 (Wemos D1 mini) to read from a 19.2K serial port and report the results over WiFi. Programming is via Arduino IDE. The code to read the port works just fine if WiFi is not ...
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 ...
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 #...
0
votes
1answer
380 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
2answers
335 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
39 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
398 views

Serial monitor showing extra data

I am trying to communicate NODEMCU and Arduino Uno using Serial Communication (RX,TX) using SoftwareSerial library. Here is my code int count; char reqst[] = " "; void setup() { Serial.begin(...
0
votes
1answer
2k views

Reading from software serial with an interrupt

I want to perform a serial read using software serial with Arduino. I am looping for my normal tasks, but whenever something is received on the software serial pins I want to perform a read operation ...
0
votes
1answer
91 views

Read only selected Packet SoftwareSerial

I am reading data from RS485 which is in the following format: void sendkwh() { RS485Serial.write((byte)0x01); // Meter Address RS485Serial.write((byte)0x03); // Read Function Code RS485Serial....
0
votes
1answer
390 views

Serial 3 vs Software Serial

So I have a program that works great on the Mega, it uses serial 3 to read and streams out to the USB (I posted a previous question which someone answered) I tried to use Serial (D0) to read and then ...
0
votes
1answer
716 views

Interfacing to scale over RS-232

Objective: interface and Arduino MEGA to a Mettler Toledo SB32001 using the RS-232 communication protocol described in the manual. Equipment Used: SB32001 Mettler Toledo 32 kg scale Arduino MEGA ...
0
votes
2answers
796 views

How do I get the Itead 3G shield to work?

I've tried a pretty standard code but the Serial Monitor yields zero response. Using a standard Arduino Uno (tried a second one as well, just to be sure) and am now trying the second shield with this ...
0
votes
1answer
765 views

How to transmit more than 1 byte continually?

In software serial, the write function only sends 1 byte at a time. Is there someway, some library, that i can send multiple bits/bytes, without stopping (and not using digitalWrite)? i want to be ...
0
votes
2answers
538 views

Arduino Uno + Adafruit Ultimate GPS Shield Serial issue

I've had an Arduino Uno for a couple of months-making basic sketches-and recently purchased an Adafruit ultimate GPS shield and attached with soldered headers. This shield has 2 options for reading ...
0
votes
1answer
230 views

Unable to tell if error is from receiving or transmitting end

so I am having trouble sending data using software serial's write function. TX Code: #include <SoftwareSerial.h> SoftwareSerial TX(2,3); void setup() { // put your setup code here, to ...
0
votes
1answer
398 views

cannot read from softwareserial

I am able to use AT command from the Serial monitor however when I run the following code nothing is sent or received from the ESP8266. Can someone advise what could be the problem. #include <...
0
votes
2answers
192 views

What is the relationship between the gain on the receiver and the delay time

I was conducting some research on wireless communication between a simple transmitter and receiver module using an Arduino. Now, I tested the channel accuracy and i received 14% error for a delay of ...
0
votes
2answers
7k views

Communicating Via Serial1 on Arduino Mega

Apologies if this a relatively simple question, but I am rather new to Arduino's and cannot seem to find any concise information on the topic. This is my XBee, mounted on a shield and placed onto a ...
0
votes
1answer
36 views

From Strings to int problem

I create applications for a computer that is to be used to control the robot arm. I wanted to make the first attempt to run the application not on the motor, but on the diode and check if it will ...
0
votes
1answer
40 views

Why map Arduino pins 2 and 3 to Rx and Tx instead of using the build in Rx and Tx pins?

In many examples I see the following: #include <SoftwareSerial.h> const byte rxPin = 2; const byte txPin = 3; // set up a new serial object SoftwareSerial mySerial (rxPin, txPin); what is ...
0
votes
1answer
42 views

ESP-8266 stopped working due to possibly faulty perfboard layout

I have been following this tutorial to set up my ESP8266. I have also recreated on a perfboard the circuit provided in the tutorial, and I intend to use this perfboard circuit in my project. The ...
0
votes
1answer
111 views

Can't replace SoftwareSerial by Serial1 on Mega board

This sketch runs well with SoftwareSerial define and the monitor displays device modbus values. But now, i want to replace SoftwareSerial by Serial1 and i have no data. This is the sketch with ...
0
votes
1answer
107 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 ...