Hello everyone. I have been working on a project for a few weeks now, see http://arduino.cc/forum/index.php/topic,101231.15.html
Anyway. I moved the entire thing over from a duemilanove to a nano, in order to put it on a pcb. A new problem seems to have cropped up, and I am not really sure whats causing it.
The code below moves a servo to push a button.
The problem is that sometimes, the servo moves to "122" and never responds back. Also the arduino seems to hang, and no further commands, or programming is possible until a reset. Another funny thing is that even when it works, it seems to ignore the delay completely, and instead holds the servo at "122" for at least 2 seconds before going back to "90"
This seems really odd to say the least. I can post the rest of the code, but its pretty long and will take two posts.
**Edit** I should probably also mention that I did not have this problem with the duemilanove. It almost as if the nano is doing the servo move and then crashing, and is moving back to "90" as part of its reboot. Other times its hanging.