Society of Robots - Robot Forum

Software => Software => Topic started by: galannthegreat on February 12, 2009, 10:24:00 PM

Title: I need some help to juat test my motors.
Post by: galannthegreat on February 12, 2009, 10:24:00 PM
I need some help with testing my bot, I use the code:
Code: [Select]
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?
Title: Re: I need some help to juat test my motors.
Post by: airman00 on February 12, 2009, 10:25:03 PM
What is your electronic setup?

You cant just connect a DC motor to a microcontroller pin
Title: Re: I need some help to juat test my motors.
Post by: galannthegreat on February 12, 2009, 10:26:43 PM
Sorry, they are connected to a SN754410 Driver
Title: Re: I need some help to just test my motors.
Post by: galannthegreat on February 12, 2009, 10:36:11 PM
I know my wiring is correct, I just know I'm wrong in the programming end.
Title: Re: I need some help to juat test my motors.
Post by: Razor Concepts on February 12, 2009, 11:04:46 PM
After you set the pins, try an infinte while loop that does nothing.