I have an arduino mini pro connected to my windows xp pc using a usb-ttl cable.
I have several servos connected to the arduino powered using an external 5V power source.
I have written a program that will rotate different servos to different positions depending on which key I press on the computer keyboard.
For example, pressing "5" on the keyboard will rotate servo 2 to position "a", hold it there for 3 seconds and then rotate to position "b", then... etc.
Everything works fine when I use the "Serial Monitor" in the arduino software to send the commands to the arduino - com3 9600 baud.
I want to create a bunch of .bat files for different keyboard keys that I can run automatically instead of launching the arduino software and typing into the "Serial Monitor" window.
When I try using a .bat batch file to send the same keyboard commands to the arduino nothing happens - Rx light lights up on the arduino but the servos don't move - sometimes they do actually move, but not correctly.
Here's the .bat text I used:
@ECHO OFF MODE COM3:9600, N, 8, 1>NUL ECHO 5>COM3