Editing Two Axis Stepper Controller
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
= What = | = What = | ||
− | For some time I have wanted to aim a laser with good precision across a room. Long time ago I did this with servo motors, Worked fine excpt for the good precision. I thought that steppers might do better. The problem is that steppers move ( typically ) over a degree per step. Gearing the motor down decreases the speed, but improves the precision. And these motors, with built in gears are available, and they can be cheap ( '''[https://www.amazon.com/gp/product/B015RQ97W8 Amazon.com : Longruner 5x Geared Stepper Motor 28byj 48 Uln2003 5v Stepper Motor Uln2003 Driver Board for arduino LK67 : Camera & Photo ]''' ) | + | '''Very incomplete, still working on it.''' |
+ | |||
+ | For some time I have wanted to aim a laser with good precision across a room. Long time ago I did this with servo motors, Worked fine excpt for the good precision. I thought that steppers might do better. The problem is that steppers move ( typically ) over a degree per step. Gearing the motor down decreases the speed, but improves the precision. And these motors, with built in gears are available, and they can be cheap ( '''[https://www.amazon.com/gp/product/B015RQ97W8 Amazon.com : Longruner 5x Geared Stepper Motor 28byj 48 Uln2003 5v Stepper Motor Uln2003 Driver Board for arduino LK67 : Camera & Photo ]''' ) With these in hand and a 3D printed mount ( *'''[https://www.thingiverse.com/thing:794786 Bare Bones 28BYJ-48 Gimbal. by mmontee - Thingiverse ]''' ) for them I went forward with the software. | ||
You can aim the laser in both altitude and azimuth. Once you get it to a place you want the program can memorize the location as a target and then go back there on demand. | You can aim the laser in both altitude and azimuth. Once you get it to a place you want the program can memorize the location as a target and then go back there on demand. | ||
− | |||
− | |||
− | |||
− | |||
= How = | = How = | ||
Line 14: | Line 12: | ||
== Laser/Motor Mount == | == Laser/Motor Mount == | ||
− | + | These can be cheap ( Amazon.com : Longruner 5x Geared Stepper Motor 28byj 48 Uln2003 5v Stepper Motor Uln2003 Driver Board for arduino LK67 : Camera & Photo ) With these in hand and a 3D printed mount ( *Bare Bones 28BYJ-48 Gimbal. by mmontee - Thingiverse ) for them I went forward with the software. | |
− | |||
− | |||
== Arduino and Driver == | == Arduino and Driver == | ||
− | + | These can be cheap ( Amazon.com : Longruner 5x Geared Stepper Motor 28byj 48 Uln2003 5v Stepper Motor Uln2003 Driver Board for arduino LK67 : Camera & Photo ) With these in hand and a 3D printed mount ( *Bare Bones 28BYJ-48 Gimbal. by mmontee - Thingiverse ) for them I went forward with the software. | |
− | |||
− | |||
== Arduino Software == | == Arduino Software == | ||
Line 32: | Line 26: | ||
<pre> | <pre> | ||
− | Arduino: TwoAxis Ver1 2017 11 | + | # <<< Arduino: TwoAxis Ver1 2017 11 13.25 |
− | mnn chooseMotor | + | # <<< mnn chooseMotor |
− | tn move to Target n | + | # <<< tn move to Target n |
− | t-n save Target n | + | # <<< t-n save Target n |
− | + | # <<< pn cmotor nudge n !! | |
− | + | # <<< snn cmotor setSpeed | |
− | + | # <<< ann cmotor setAcceleration | |
− | + | # <<< dnn doDance | |
− | + | # <<< z both motors zeroPosition | |
− | + | # <<< w statusReport WhatWhere | |
− | + | # <<< v Version of software | |
− | + | # <<< ? Help | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | # <<< | ||
− | # <<< | ||
− | # <<< | ||
− | # <<< | ||
− | # <<< | ||
− | # <<< | ||
− | # <<< | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
# <<< ok | # <<< ok | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Arduino/RaspberryPi]] [[Category:Arduino]] | [[Category:Arduino/RaspberryPi]] [[Category:Arduino]] |