DC 5V Stepper Motor
Shopping list
All excited to go for robotics I have purchased the:
"DC 5V Stepper Motor + ULN2003 Driver Test Module Board 28BYJ-48 for Arduino" from ebay store.
Setup
The connection was pretty simple, but be careful to power the motor from different source than via the Arduino 5V output. There is a combination of solenoinds controlled by the IN1, ..., IN4 pins on the driver.
Set the jumber as is on the photo to enable the stepper control.
Set the jumber as is on the photo to enable the stepper control.
Then all the magic is to program the set high or low values on the IN1...IN4 pins of the controller. I have written a small program for controlling the motor, source code to be provided.
Experimentally I discovered that the change in the solenoids configuration should not take faster than each milisecond. Using smaller time intervals, the motor stops rotating.
External sources:
- http://www.instructables.com/id/BYJ48-Stepper-Motor/
I have adapted also the code provided there.
Žádné komentáře:
Okomentovat