Author Topic: I need some help to juat test my motors.  (Read 3717 times)

0 Members and 1 Guest are viewing this topic.

Offline galannthegreatTopic starter

  • Supreme Robot
  • *****
  • Posts: 615
  • Helpful? 4
  • Blue-Lensed Blue LEDs?! What?! Impossible!!
I need some help to juat test my motors.
« 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?
Kurt

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,650
  • Helpful? 21
  • narobo.com
    • Narobo.com - Mechatronics and related
Re: I need some help to juat test my motors.
« Reply #1 on: February 12, 2009, 10:25:03 PM »
What is your electronic setup?

You cant just connect a DC motor to a microcontroller pin
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline galannthegreatTopic starter

  • Supreme Robot
  • *****
  • Posts: 615
  • Helpful? 4
  • Blue-Lensed Blue LEDs?! What?! Impossible!!
Re: I need some help to juat test my motors.
« Reply #2 on: February 12, 2009, 10:26:43 PM »
Sorry, they are connected to a SN754410 Driver
Kurt

Offline galannthegreatTopic starter

  • Supreme Robot
  • *****
  • Posts: 615
  • Helpful? 4
  • Blue-Lensed Blue LEDs?! What?! Impossible!!
Re: I need some help to just test my motors.
« Reply #3 on: February 12, 2009, 10:36:11 PM »
I know my wiring is correct, I just know I'm wrong in the programming end.
Kurt

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
    • RazorConcepts
Re: I need some help to juat test my motors.
« Reply #4 on: February 12, 2009, 11:04:46 PM »
After you set the pins, try an infinte while loop that does nothing.

 

SMF spam blocked by CleanTalk