Questions tagged [softwareserial]
A library for emulating UART functionality in software on any available digital IO pins. Use this tag for questions regarding SoftwareSerial.
104
questions with no upvoted or accepted answers
2
votes
0answers
107 views
How do I Continuity Test/Troubleshoot a Linksprite RS232 V2 Shield?
I have a Linksprite RS232 v2 adapter (which uses a MAX232 chip), as per this image. I have soldered on the headers and tested the pins to make sure there are no solder bridges. I have set the jumpers ...
2
votes
1answer
1k views
Laser emitter + receiver for Arduino (Arduino to Arduino communication)
I'm working on a project using 2 Arduinos connected to 2 computers to demo Serial to Serial communication.
We're using Arduino Uno connected to the computer via Serial and software serial for inter-...
2
votes
1answer
123 views
Accelerometer (I2C) and Fona Shield (software serial) won't work together
I am using a Fona 808 shield with an Arduino Uno and the LSM303 accelerometer. The accelerometer is connected via I2C and the Fona uses software serial.
My project requires the accelerometer to be ...
2
votes
0answers
1k views
Sending binary data to Matlab via serial
I would like to exchange data via Xbee. I've set up a communication based on strings between the Arduino and a Matlab software.
Unfortunately this kind of communication isn't enough robust and ...
2
votes
0answers
799 views
Hiduino as a Serial-USB midi coverter
I have an Arduino Mega2560 configured to Hiduino, which makes the Arduino a driverless class-compliant MIDI interface.
I am currently converting RS232 serial I/O data to midi data using the 'hairless ...
2
votes
2answers
412 views
Bluetooth Communication Not Working with DC Power But Works With USB Power?
I am running a HM-10 Bluetooth Low Energy (BLE) module to transmit serial data (using SoftwareSerial) from an analog sensor onboard my Arduino Uno to a serial terminal app on my Android phone. When I ...
1
vote
0answers
130 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
0answers
54 views
Serial Communication between arduino and nodeMCU
I am trying to connect a nodeMCU to arduino mega using serial communication so that i can read data from firebase.
I have put the following code on the NODEMCU.
#include<SoftwareSerial.h> //...
1
vote
0answers
136 views
RS485 Serial Communication not working with Arduino
I am trying to control 2 devices with my arduino using RS485 communication.
Basically switch on device 1 for 5 seconds when I send 'g' to the master. And switch on device 2 for e3 seconds when I send ...
1
vote
2answers
113 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 ...
1
vote
0answers
1k 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
0answers
269 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 ...
1
vote
0answers
246 views
Trouble in acquiring NEO6M GPS data through S-Function builder at Matlab simulink using Arduino libraries
I have connected a NEO6M GPS module to an Arduino Mega 2560 and programmed using TinyGPS++ library's "Device Example". I am getting proper data at serial port.
NEO6MGPS to ArduinoMega2560
Vcc ...
1
vote
0answers
203 views
ESP8266 sometimes stuck on AT+CIPSEND with “busy s…”
I'm using an ESP8266-01S Wi-Fi module on an Arduino UNO.
When I use AT+CIPSEND=4 and then type test it successfully sends that message to my laptop. However, sometimes the module returns a busy s... ...
1
vote
0answers
1k views
Arduino Mega 2560 SoftwareSerial Not Working
We have an xBee Pro S2C that is using this library (https://github.com/andrewrapp/xbee-arduino) very well on a Software Serial connection to ports 2 and 3 on an Arduino Uno. However, when we take the ...
1
vote
0answers
104 views
How can I use delimiter/split serial input in a loop function?
How can I use delimiter/split serial input in a loop function? I want to use each word from the input and check a database, to check availability.
#include SoftwareSerial.h>
#define ...
1
vote
0answers
763 views
'SoftwareSerial' does not name a type in Adafruit Feather M0 Bluefruit LE
I am trying to create a software serial connection between Arduino Uno & Adafruit Feather M0 Bluefruit LE.
I am getting the following error in the M0 sketch:
Arduino: 1.8.1 (Windows 10), Board: ...
1
vote
0answers
2k views
How to define SoftwareSerial pins on ESP8266
I'am new to arduino yun and ESP. In fact, i have an arduino yun which has a sim808 dfrobot shield on it which uploads GPS data online at a regular time interval.
I want to connect the dfrobot sim808 ...
1
vote
0answers
472 views
Problem with receiving data from Arduino via HC05 sent by Java
I want to both send some sensor data via Bluetooth (HC05) and Arduino to Java and I also want to send some command data via the same Bluetooth and serial port to Arduino.
I've managed to do the first ...
1
vote
0answers
272 views
GSM librarys Software Serial conflicts with I2C pins 2 and 3 for Arduino Micro
The GSM library apparently uses the Software Serial library to perform the communication. The Arduino Micro specified pins for the serial connection to the GSM is pin 2 and 3 (doc says, but see def of ...
1
vote
0answers
260 views
ESP-12f SoftwareSerial read fails
I am trying to use esp8266 version of SoftwareSerial, espsoftwareserial, on an esp-12f.
If I initialize an object using:
SoftwareSerial gpsSer(14,12, false, 256);
or
SoftwareSerial gpsSer(12,14,...
1
vote
0answers
66 views
Maplin Bluetooth Shield for Arduino - BAUD rate
I am currently using a Bluetooth shield which i bought from maplin, see: http://www.maplin.co.uk/p/bluetooth-shield-for-arduino-n97dg.
I have got it to work perfectly on the default 38400 BAUD , but ...
1
vote
0answers
175 views
How to filter out “jumpy” readings sent using Bluetooth
I'm using App Inventor to continuously send orientation values (as strings) to my Arduino, which are read using Serial.parseInt(). Using simple IF statements (if value > threshold), I'm trying to turn ...
1
vote
0answers
526 views
Controlling dynamixel AX12 by Arduino
Actually, i would like to control 12 motors of AX-12 using Arduino .. I could control just 2 motors. However when i send a command to the 12 motors they don't move and one or 2 of them move randomly!...
1
vote
0answers
1k views
Sending GPS data between two Arduinos using Easy Transfer
I'm trying to get GPS data transmitted from one Arduino UNO to a second unit to eventually be displayed on an LCD and stored in an SD card. I am using Xbees S2C's on Xbee Shield's to do this. The ...
1
vote
0answers
117 views
Encoding clock signal into linear block codes
In the VirtualWire library, it is possible to encode the clock signal as the library is doing with 4b/6b coding. This is possible because VirtualWire uses convolutinal coding, where the information is ...
1
vote
0answers
196 views
Trying to pass a single char to a serial device
Good day,
I have a serial device that when connected via hyper terminal gives me a status report when I press the letter 'd' no enter key or anything required just the letter d. Also Ctrl-t will give ...
1
vote
0answers
155 views
Why After instancing TinyGPS , serial stop working?
I have GSM shield (and Arduino UNO) works fine with this code :
#include <GPRS_Shield_Arduino.h>
#include <SoftwareSerial.h>
#include <Wire.h>
#include <Suli.h>
#define ...
1
vote
0answers
662 views
Is replacing USB serial WITH ESP8266+ESP link feasible?
ESP8266 (01-512k,) Arduino Uno (clone), Arduino IDE, Python 2.7.6 on Macbook pro running OSX 10.10.4 64-bit.
Hello!
I'm using a motion sensor with the following setup:
Arduino Uno+motion sensor >>>...
1
vote
0answers
37 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
255 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
1k 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
518 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
530 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
576 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
0answers
92 views
SRF-02 UART, transmitting from one address to another
So I just starting playing around with UART and SoftwareSerial while playing with these SRF-02 Sensors - http://www.robot-electronics.co.uk/htm/srf02techSer.htm
I need help getting one to read to the ...
1
vote
0answers
698 views
Chat between Xbee and Arduino
I'm very new with this devices so I'm a bit confused. I've got two Xbee modules series 1 and an Arduino UNO. I want to make like a chat between the two Xbee modules, one of them connected to the PC ...
1
vote
2answers
734 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
172 views
Using Parallax VPN1513 GPS Smart Module with External Antenna and Ruggeduino
I am using a Ruggeduino for a project involving an autonomous vehicle, and I need GPS capability in it. I am using the "VPN1513 GPS Smart Module with External Antenna" from Parallax (https://www....
1
vote
0answers
858 views
HC-05 and HC-06 Bluetooth not communicating well
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 a ...
1
vote
0answers
971 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
286 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
528 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
582 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
1answer
2k 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
0answers
30 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
0answers
23 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
96 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
22 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 ...