Controlling the speed of a 28BYJ-48 stepper motor

Grumpy_Mike:
Not wired like that it won't work, no ground.

Motor speed is set in software. Just take the knob control example and just use a variable assignment in place of reading the pot.

I have ground in the picture i show how i wired the stepper. I power it with 9V batteries and have the ground connected to the arduino ground since i have nothing else connected