Go Down

Topic: stepper motor example code (Read 418 times) previous topic - next topic

veenooms

Hello, I have a stepper motor

http://s4.electrodragon.com/wp-content/uploads/2012/03/5V-4-phase-5-wire-stepper-motor-gear-motor-28BYJ-48-5V.jpg


and I'm trying to learn how to program it to turn.

I wonder if someone could write me a simple code that rotates the motor 45 degrees right and then back, and then it stops. I have tried with alot of example codes but i don't get the structure of them.


Would really appreciate if someone could write a simple test code doing the above.

Thanks in advance

raschemmel

#1
May 01, 2014, 03:48 pm Last Edit: May 01, 2014, 07:44 pm by raschemmel Reason: 1
Googlr "arduino"  stepper motor example

We don' t do your homework

If you are trying to learn you are not trying hard enough if you haven't googled anything and ask us to do it for you.
Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,
DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

Robin2

Be even more specific and Google Arduino 28BYJ stepper motor.

There are lots of Threads on the Forum about those motors.

...R

terryking228

Lot of information on Steppers and pointers to example code on the ArduinoInfo.Info WIKI HERE:
Regards, Terry King terry@yourduino.com  - Check great prices, devices and Arduino-related boards at http://YourDuino.com
HOW-TO: http://ArduinoInfo.Info

raschemmel

Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,
DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

Go Up