Questions tagged [softwareserial]
A library for emulating UART functionality in software on any available digital IO pins. Use this tag for questions regarding SoftwareSerial.
465 questions
2
votes
2
answers
14k
views
Arduino SoftwareSerial library basic example doesn't work
I come to you again because I have a problem with the Arduino SoftwareSerial library. With a basic example I fail to see results in the serial monitor.
The basic code example:
#include <...
2
votes
3
answers
6k
views
Explanation please, of hardware and software serial links
I am starting to use a Seeeduino GPRS shield (please see note), which is essentially an Arduino Leonardo that, among other things, can be used as a mobile 'phone for sending and receiving texts. I ...
3
votes
0
answers
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 ...
3
votes
0
answers
898
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 ...
4
votes
3
answers
20k
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
...
2
votes
7
answers
21k
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
2
answers
2k
views
How can I send serial over RF?
I've got the following:
#include <SoftwareSerial.h>
const int rx = -1;
const int tx = 4;
SoftwareSerial mySerial(rx, tx);
void setup()
{
mySerial.begin(2400);
pinMode(tx, OUTPUT);
}
...
6
votes
2
answers
4k
views
Using SoftwareSerial for the serial monitor
Most programs follow this route: They have a Serial.begin() for the serial connection between PC and Arduino (the serial monitor) and they use SoftwareSerial for a device.
Can you go the other way ...
1
vote
2
answers
8k
views
SoftwareSerial together with AltSoftSerial and HardwareSerial
The title says it all.
Angone with experience here on this subject?
I want to use all Hardware serial, SoftwareSerial and AltSoftSerial on Arduino Duemilanove with At328.
Is it possible?
1
vote
1
answer
2k
views
Wired serial connection between two Arduinos - do they need a common Ground (GND)?
I would like to connect two Arduinos by a serial connection. Is it sufficient to connect TX1<-->RX2 and RX1<-->TX2 or do I also need to connect the GND of the two Arduinos?
-1
votes
2
answers
2k
views
tinygps abnormal behaviour with EM408 gps
I have an Arduino Duemilanove and em408.
My code is this:
#include <TinyGPS.h>
#include <SoftwareSerial.h>
#define GPS_RX_PIN 2
#define GPS_TX_PIN 3
TinyGPS gps;
SoftwareSerial ss(...
3
votes
1
answer
2k
views
Is there a way to test whether the UART Tx buffer is empty without waiting?
Is there a way to test whether the UART Tx buffer is empty without waiting?
serial.flush() waits, so it won't help me.
I tried looking into serial.SerialEvent(), but the link was broken on the ...
1
vote
1
answer
1k
views
SoftwareSerial error
I have arduino , upon arduino I have Arduino GSM shield (Tx-2, Rx-3, Modem reset-7) and upon it, I have the Adafruit GPS Logger shield. I am trying to send sms of Latitude from the GPS Logger shield ...
6
votes
5
answers
10k
views
Simultanous read and read/write on two serial connections
At the moment I'm using two softserials to connect to a GPS and an GSM module.
It seems not possible to have two open software-serials. So I was looking for an solution
After the initial-setup, the ...
4
votes
3
answers
21k
views
Why am I getting "fatal error: SoftwareSerial.h: No such file or directory"
I downloaded the Adafruit_GPS library from Adafruit and I'm trying to compile the example code (due_parsing) but I can't seem to get past this silly error:
In file included from due_parsing.ino:15:
/...