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.
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?
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