I'm using an Arduino Inustrial 101 together with a Parralax RFID-reader. RFID Card Reader - Serial - Parallax
To communicate with the Arduino, I need to use the SoftwareSerial library.
I first used this on an arduino uno to see if it worked: Arduino Playground - PRFID
This worked on the no but not on the industrial.
First of all we dont have pin1/RX. And we tried using different pins with the SofwareSerial library without succes.
What are the pins that I can use for serial communication?
some pins have specialized functions:
Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data. These pins are connected to the Serial1 class.
Used to receive and transmit TTL serial data using the ATmega32U4 hardware serial capability via Serial1 class. The hardware serials of the ATmega32U4 and the AR9331 on the Industrial 101 are connected together and are used to communicate between the two processors.
Not all pins on the Leonardo and Micro support change interrupts, so only the following can be used for RX: 8, 9, 10, 11, 14 (MISO), 15 (SCK), 16 (MOSI).
Leonardo and Micro also have the ATmega32U4 microcontroller and the boards use the same pin mapping so that statement also applies to the Industrial 101.
Did you figure this out - I'm having related problems with the Arduino industrial 101 - I've managed to send serial information on pin 5 and 6 using SoftwareSerial - but I can't receive. Also I don't seem to have access to any other digital pins ?
The SoftwareSerial library allows to use digital pins to transmit and receive data. The library relies on change interrupt pins to receive data, therefore only the pins that support that can be used as RX pins. On the Industrial 101 this type of pins are available on the ICSP connector and are mapped as follows:
SCK = 15
MOSI = 16
MISO = 14
You can create up to 3 SoftwareSerial ports using the pins 13, 5 and 6 for TX and 14, 15 and 16 for RX. .