Whenever I use the sequence of the codes for the robot movement without switch on / off the output from Arduino, the robot program is executed properly. But when I include the output control commands such as the output ON / output OFF, the program gets stuck in the middle or gets hanged up in that particular. Therefore I have to again reconnect the system by unplugging and then plugging back in. Any ideas on How to resolve the error?
top of page
bottom of page
Does the output actually change? Can you measure 5V across the output pin?
Are you using the most recent software versions?
Do you have the correct com port selected for the arduino?