Hi we are using an Arduino Micro and working with a Bluetooth device and a Rfid Scanner from Sparkfun(ID-20 LA). For that we implemented 2 SoftwareSerial objects and the Serial port for the Serial Monitor. If we use one SoftwareSerial object and the normal Serial everything works fine. For example we can send and receive things over Bluetooth. But when adding another SoftwareSerial object( Rfid then ) One of them doesn't work.
Starting with the Rfid SoftwareSerial ends up to the same result.
We've also already tried to change the ports and so one.
Every help is appreciated. Thanks in advance.
The Code ( this is already the third programm nothing has changed )
#include <SoftwareSerial.h>
SoftwareSerial rf(11, 12);
SoftwareSerial bt(8,9);
void setup() {
Serial.begin(9600);
rf.begin(9600);
bt.begin(9600);
}
void loop() {
if(Serial.available())
{
while(Serial.available())
Serial.write(Serial.read());
Serial.println("");
}
if(rf.available())
{
while(rf.available())
Serial.write(rf.read());
Serial.println("");
}
if(bt.available())
{
while(bt.available())
Serial.write(bt.read());
Serial.println("");
}
}