Society of Robots - Robot Forum
Software => Software => Topic started by: galannthegreat on February 12, 2009, 10:24:00 PM
-
I need some help with testing my bot, I use the code:
output_high(PIN_D5);
output_low(PIN_D4);
output_high(PIN_D6);
output_low(PIN_D7);
Basically pins D4 and D5 controls one motor, and D6 and D7 the other, am I missing anything or is this correct?
-
What is your electronic setup?
You cant just connect a DC motor to a microcontroller pin
-
Sorry, they are connected to a SN754410 Driver
-
I know my wiring is correct, I just know I'm wrong in the programming end.
-
After you set the pins, try an infinte while loop that does nothing.