![]() Some earlier combinations of stepsPerRevolution and varying speeds resulted in sporadic change of direction. The sketch supposedly goes clockwise once, wait 4 seconds, go counterclockwise, wait 4 seconds, and repeat. When reset to 2048, gives approx 1 revolution. However, using that, rotation is two complete revolutions. The specs for the stepper motor say 1:64 gear ratio and 5.625 angle (or 64 for complete rotation) and thus stepsPerRevolution should be 4096. Working with a very simple sketch, but doesn't work right. Care to guess which has more long term position reliability: steppers or servos? Steppers are often used with an "indexing" sensor to determine when it is in a specific/absolute position, so movement can always be made relative to a "known" point. You are likely to drop a step (sometimes 2) after power drop and then re-energizing the coils - for cheap steppers there is not a reliable good way around it. Dropping power to all the coils in a stepper can be problematic (to a limited extent). ![]() You might think the obvious solution would simply be to cut power after a movement. They are often heat sinked and/or placed on a metal mount. Steppers tend to run warm to hot after many moves/steps. If you have some concern you can put a 1N4001-1N4005 diode in series with the 5.2V line to the stepper to drop the voltage about 0.7 V (nominal estimate). For the most part, you can power the 28BYJ-48 stepper with your 5.2 V supply. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |