|
Post by grummi on Jun 24, 2016 15:38:49 GMT
Hi,
I´tryed to adjust your code for the minigun to work with a stepper motor,. but i failed. I´m not that into programming so maybe someone can help.
I build the warmachine costume for my 5 yr. boy. I would like to have that he just pushes one button and the stepper motor spins, accelerate and a soundeffect starts. But i really don´t know how to handle this stuff.
cheers sebastian
|
|
|
Post by Honus on Jun 25, 2016 14:40:30 GMT
Hi Sebastian and welcome!
Is there a particular reason you want to use a stepper motor? Typically those are used for something that requires more precise positioning. I would just use a normal DC motor to make the barrel spin. The way the code works is when one of the arduino pins is set to go HIGH it switches a transistor that turns on the motor.
Do you have any photos of your setup or a wiring diagram?
|
|
|
Post by grummi on Jun 25, 2016 17:29:42 GMT
Well, because i don't have a dc motor and a stepper Motor has a bit more torque. I found a code that the Stepper turns as long as i want him to turn now i just Need to add some kind of acceleration to the code
|
|
|
Post by Honus on Jun 27, 2016 18:33:15 GMT
|
|