I have a Leonardo and an EasyVR Shield
). The default RX/TX pins for this shield are 12/13. I made a pretty complex room automation sketch to work with it, but, since I needed to be switching jumpers on the shield to upload voice commands to it, I did all the code on a Seeeduino R3. It all worked fine there. When I switched to the Leonardo and uploaded my code to it, nothing happened. Then I've found that my mistake when trying to watch the serial monitor was to forget to place this line:
By doing this I got the "EasyVR not detected!" serial feedback...
Changing the approach to connect Leonardo with the shield I did this:
Trying to upload the code with the shield detached and with the pins 12 and 13 of the shield jump wired to the arduino pins 8 and 9 (using them as RX/TX) and changing both references for them on the sketch. I also jump wired the GND, 5V and Reset to the shield's equivalents. I've got it uploaded, but always with these warnings:
Binary sketch size: 22.118 bytes (of a 28.672 byte maximum)
processing.app.SerialException: Serial port '/dev/tty.usbmodemfd541' already in use. Try quitting any programs that may be using it.
The sketch works, but buggy and sometimes it crashes. Can it be fixed?
Does anyone knows why it didn't work with pins 12 and 13?