Hello,
This is my first time working with robotics. I recently bought the Basic Atom 28 Pin Starter Pack and have begun working on/experimenting with a simple robotic setup which, when programmed, should make two seperate motors run at timed intervals (see attached image below). I have used using the 4wd Rover wiring diagram as a template (but without the GP2D12 as I have no need for this item) as this is the closest match to the setup I’d like to achieve.
When the motor controller and the board are turned on green lights indicate power is “on†and when attached to my PC, the Basic Atom software recognizes the hardware and allows me to “compile†(no errors) and “programâ€. The problem is that after pressing the “program†tool, the Basic Atom Software prompt in the lower workscreen says “Programming…†indefinitely and never seems to resolve/finish the programming. I initially thought this was the last step, but there is no visible response from the microcontroller/motor controller/motors.
This is the test program I have been uploading. From what I’ve read, the below serout command should prompt the motors to move forward a specified distance (of course, this doesn’t seem to be the case in my instance):
main
serout 8,396,"!M1160018"]
PAUSE 100
serout 8,396,"!M1160018"]
PAUSE 100
serout 8,396,"!M1160018"]
PAUSE 100
serout 8,396,"!M1100001"]
goto main
end
Other questions:
• Does the “flip†wire from the motor controller need to connect to something in order for the motor controller to function? This wire is not in the diagram, so I have left it unconnected.
• If SEROUT 8, 396 is the prefix for the drive motor, and in this case I have two drive motors, then the second motor prefix would be SEROUT 8, 397? Maybe SEROUT net, baud (i believe this is the command for a servo, not a DC motor).
• I notice the wiring diagram for the Rover indicates i should enable the ‘DAT’, ‘CMD’ and ‘ATT’- when i push them i get red, green and yellow lights…what function do these have?
Initially I thought it would be plug and play to achieve such simple robotic operations, but now I’m stuck and am getting nowhere with my own troubleshooting.
ANY HELP OR ADVICE WILL BE GREATLY APPRECIATED!
Thank you,
Justin
http://i26.photobucket.com/albums/c121/isbn_1/diagram-robotics100207.jpg