Closed Cyberek closed 9 years ago
Do you have either StandardFirmata or FirmataPlus uploaded to the Arduino?
If yes, could you please run this test program and let me know the results.
Here is a sample output of that program:
Please Enter Your Serial Port In Quotes:'/dev/ttyACM0'
Attempting to open /dev/ttyACM0 at 57600
Serial Port /dev/ttyACM0 is open
@Cyberek If the test program is successful, then please show me the command line you are using to start s2a_fm. Thanks.
Please Enter Your Serial Port In Quotes:'/dev/tty.usbmodem1411'
Attempting to open /dev/tty.usbmodem1411 at 57600
Serial Port /dev/tty.usbmodem1411 is open
I use this port to communicate via Arduino software.
Good, so we know that pyserial can open your serial port. I don't own a Mac and that is why I am asking you to help me debug your problem.
The next step is to try another simple program that will blink the on-board LED (L13). The program is here. I edited the program to use the serial port you are using, so you just need to run this program and should not need to make any changes to it.
If this program fails, then I would like you remove the USB cable from your computer and then plug it back it. Wait about 10 seconds to allow the board to reset and try running the program again.
If this now works, then I would try removing and replacing the cable again and then try rerunning s2a_fm.
Please let me know the results.
I was able I solve the problem... Formata was somehow missing from the board causing all the problems. FirmataPlus works really well with all sensors. Thanks for the support.
Seems I cannot communicate with the board. Using the same tty I can upload code to Arduino via Arduino app.