Hello there,
I already have a few Arduino Micros from a previous project, that would like to use for a new one. I want to connect 6 (FSR) sensors, for which I can also use digital pins) and also would like to create 6 soft serial connections (6 RX + 6 TX = 12 pins). This would be 18 pins which is exactly the same number available, excluding the power and ground. Please let me know if this is possible, if not, could you suggest the next best solution?
Thank you,
Karim.
Micro has 20 pins, and you need 18, so OK on that front but...
I have a really bad feeling about trying to run 6 software serials at once....
Arduino Micro : https://www.arduino.cc/en/Main/arduinoBoardMicro
Pinmapping : https://www.arduino.cc/en/Hacking/PinMapping32u4
SoftwareSerial : https://www.arduino.cc/en/Reference/softwareSerial
Not all pins can be used for the RX of SoftwareSerial, but 6 are available for the RX.
For example RX : 8,9,10,11,14,15. Pins 14 and 15 are the ICSP connector.
There are enough analog inputs.
For example FSR at : A0,A1,A2,A3,A4,A5
Unused pins: 0,1,2,3,4,5,6,7,12,13, 16 (16 is the ICSP header). Use any of those pins for 6 TX pins.
Pins 0 and 1 are not used by the serial communication (pin 0 and 1 are used on a Arduino Uno).
You have to use the ICSP header to get enough pins for the RX.
There will be still still 4 unused normal pin, and 1 unused pin of the ICSP header.
You want to use SoftwareSerial for 6 serial ports ? That might not work very well.
Do you know that you can listen just to one serial input, and it is not possible to listen while transmitting.
While I was typing this, DrAzzy wrote the same (in two sentences)