I am trying to send serial commands to my arduino mega2560 connected to the usb port. but having a few problems. If I send commands to my mega board in the arduino ide it all works fine. but I would like to send commands in the background without the ide running.
I have found this very helpful website http://www.stealthcopter.com/blog/2010/02/python-interfacing-with-an-arduino/.
that describes how to set everything up in python.
I have got it working fine from my computer to my arduino nano board on the usb. using the sketch on the web page.
but if I run the same code on my mega board, I can see the tx rx lights respond. but the led pin is not triggered.
I have made sure the python script is communication on the correct serial channel. But am unable to get the mega board to change the state of the led pins.
Does anyone know why there is a difference between the communication with the nano board and the mega board. Has anyone had this problem and know of a solution.