Has anyone any ideas about how to resolve being able to use SoftwareSerial with the Arduino Rbot Control
I'd quite like to add an HC-06/5 and I thought best to use the SoftwareSerial library
However I get this when i try to compile:
C:\dev\arduino\arduino-1.5.5-r2\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'void SoftwareSerial::begin(long int)':
C:\dev\arduino\arduino-1.5.5-r2\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp:399: error: 'digitalPinToPCICR' was not declared in this scope
C:\dev\arduino\arduino-1.5.5-r2\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp:401: error: 'digitalPinToPCICRbit' was not declared in this scope
C:\dev\arduino\arduino-1.5.5-r2\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp:402: error: 'digitalPinToPCMSK' was not declared in this scope
C:\dev\arduino\arduino-1.5.5-r2\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp:402: error: 'digitalPinToPCMSKbit' was not declared in this scope
C:\dev\arduino\arduino-1.5.5-r2\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'void SoftwareSerial::end()':
C:\dev\arduino\arduino-1.5.5-r2\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp:417: error: 'digitalPinToPCMSK' was not declared in this scope
C:\dev\arduino\arduino-1.5.5-r2\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp:418: error: 'digitalPinToPCMSKbit' was not declared in this scope
I had a look at how to get access to the RX/TX pins but they seem to be in use by the controller.
The error applies on both versions of Arduino 1.05 and 1.5.x. I had a look in pins_arduino.h and the macros that are defined in the other board definitions and they are not in pins_arduino.h for the control board.
So I had a look a bit further into this and it would seem that the Ardunio Robot doesn't really have any spare interrupt pins that could be used for SoftwareSerial so thats why it doesnt work.
I had wanted to use a BT controller on the Arduino Robot so I ended up using a mini to drive the BT HC-05 board and then used the M0-M4 mulitplexed pins to send a number and a speed value to the robot.
So Three Arduinos are the answer - whats not to like