Motor Party!
it is like -19213 degrees outside, so i spent the day workin’ on my motor shield design and then had a MOTOR PARTY!
Here is a preview of the motor shield for Arduino that I’m workin’ on…it can drive 2 hobby servos as well as up to 2 steppers or 4 bidirectional DC motors.
servo_init();
servo1_enable();
servo2_enable();
motor_init();
stepper1_enable();
motor4_enable();
while(1) {
servo_setpos(1, -2000);
servo_setpos(2, -2000);
motor(4, FORWARD);
for (i=0; i< 250; i++) {
stepper(1, FORWARD, SINGLE);
motor_setspeed(4,i);
_delay_ms(5);
}
motor(4, BACKWARD);
servo_setpos(1, 2000);
servo_setpos(2, 2000);
for (i=0; i< 250; i++) {
stepper(1, BACKWARD, SINGLE);
motor_setspeed(4,i);
_delay_ms(5);
}
}


January 21st, 2008 at 10:19 am
Will this be ready as a kit or schematic? It so when!!
January 21st, 2008 at 11:48 am
Excellent!
January 21st, 2008 at 1:28 pm
January 21st, 2008 at 2:16 pm
>drives 2 steppers
unipolar or bipolar
January 21st, 2008 at 3:00 pm
these steppers that i had in my STUFFBOX are unipolar, but from what i understand, the hardware for bipolar is the same so if i could get my hands on a bipolar stepper it would be straightforward to add code support
January 21st, 2008 at 5:14 pm
me likey! i’d buy that for a dollar … or however many it costs
January 22nd, 2008 at 6:04 pm
I was listening to ‘Pilgrims of the Mind - Something’s Pulling me Under’ on SomaFM’s groovesalad while watching this video. The flappy, buzzy motor sounds were in perfect time with the music. Happy++
January 23rd, 2008 at 12:17 am
ladyada — disassemble an old floppy drive. It will likely have bipolar. Or, if you can get your hands on a six-wire stepper, you can connect it up as either unipolar or bipolar. Great to see software for this otherwise orphaned shield board. Now … does it work with the boarduino (obviously not, but I thought I’d just ask that question. Maybe with the addition of a set of holes off to one side into which you could solder a boarduino? Or for that matter, just put the Atmel on the motor control board, with the six-pin angle connector and be done with it.)
January 23rd, 2008 at 9:50 am
ladyada - Are schematic and pcb available? It’ll be great for my project and I’ll buy the pcb if available.Cool video.
February 12th, 2008 at 2:52 am
I’ve been working on my own motor control interface for the Arduino, but it sucks so far because I’m not really a very good electrician at all, at all. Can’t wait to see what you came up with!
February 26th, 2008 at 6:24 pm
these are in the shop now…
http://www.ladyada.net/make/mshield