Pan & Tilt w/NEMA17 Steppers

Pan & Tilt w/NEMA17 Steppers

thingiverse

Latest update: 05AUG2019 Work in progress! This is a Pan and Tilt mechanism driven with NEMA17 stepper motors. This design is a modification of the design by thingiverse user 'buffcleb' at https://www.thingiverse.com/thing:1396552 ***** (Current Rant): MakerBot needs to get their spit together and fix the Thingiverse website. If it keeps screwing up like it has been doing, it will ultimately fail and people will find a new venue. Are you listening MakerBot? Probably not. They make crappy printers, too. ***** (Latest Update): Added buzzer to make beep when key is pressed. Buzzer is the type that makes a tone by just applying voltage. I connected the (+) lead to pin 10 of the Pro Micro and the (-) lead to ground. I updated the .ino file to use the beeper. ***** (Update): Replaced the file FrameSpacer.stl with new version that adds some clearance between the belt and this part by removing material from the 3 screw guides at the curved end. ***** (Update): Uploaded schematic and sketch files for control using Arduino Pro Micro with A4988 stepper drivers, I2C 8-port adapter, 4x4 keypad, and 20x4 LCD. ***** (Update): Uploaded Arduino sketch. The .ino sketch file is working, but is constantly being refined. It isn't necessarily pretty, but it works, and pretty much eliminates possibilities of erroneous entries (except for the A, B and C keys, which are so far not implemented). I will be modifying this program in the future to clean it up and add features. The input routine was dashed together due to my lack of experience programming with C type languages. So, the program first prompts to enter a speed value from 1 to 999. A speed of 1 will pan (and/or tilt) at a rate of 1 degree in about 16 seconds. A speed of 800 moves 90 degrees in 2 seconds. Entering 0 or just pressing the star key at the "Enter speed" prompt will set the speed to 800, and pressing the star key at the pan and tilt prompts also enters a 0, which makes it easy and fast to return both axes to the home point (where the camera was pointing during power-up) by simply pressing the star key three times in a row. The .ino file contains a table of speed test results at various speeds for moves of 45 and 90 degrees. Pressing the pound/hash key during any entry will let you redo the entry, in case you enter a wrong number. Entering more than 3 digits (not counting a minus sign) at any prompt results in an Out of Range error and re-prompt. Pan and Tilt entries must be in the range of -180 to 180 degrees. If not, an error message "Out of Range" appears and it re-prompts for the value. Enter a negative value for Pan and Tilt by first pressing the "D" key. Entering a negative value for speed results in an Out of Range error and re-prompt. When the final entry (Tilt) is entered, the motors start going to the entered position. When the position is reached, the time it took to move is displayed (in milliseconds). The keys A, B and C currently are not implemented, and will return a numeric value equal to the ASCII key value minus 48. I'll be assigning functions to (or disabling) these keys in the future. The current positions for Pan and Tilt are displayed in the lower right corner of the display. ***** (Controller Parts): A BOM has yet to be created. 1 - Arduino Pro Micro 2 - A4988 Stepper Motor Drivers 1 - 8-bit I2C Serial Port Adapter 1 - 4x4 Matrix Keypad 1 - 20x4 LCD Display with I2C Adapter 1 - Power Supply, 120AC to 12VDC, 3A 1 - Power Converter, 12VDC to 5VDC 1 - Buzzer, 5VDC Misc. Wires, Connectors, etc. Housing and Cover Heat-set threaded inserts ***** (Oldest Update): Have uploaded a bill of materials file for the mechanical parts, excluding the Arduino controller parts, and the electronics housing parts that have yet to be designed. The BOM may (or may not) have errors. Screws, nuts, bolts, 8mm metal pulley shafts not yet illustrated here. ***** (Original Post): This is a Pan and Tilt mechanism driven with NEMA17 stepper motors. This design was inspired by: https://www.thingiverse.com/thing:1396552 The belts (printed in NinjaFlex) are from this customizable source: https://www.thingiverse.com/thing:2682637 The pulleys were generated by this source: https://www.thingiverse.com/thing:2136539 I modified the pulleys to add cavities for screws and nuts and extended the hubs. I actually redesigned all parts to some degree, and made quite a few modifications including using heat set threaded inserts in many places, added bearing and belt covers, redesigned to make all printed parts more print-friendly (although the originals aren't too bad in that regard). I added a motor shock mount printed in NinjaTek Cheetah TPU (harder than NinjaFlex) and I changed the toothed pulleys to 18-tooth and 36-tooth, sized to fit a 3D printed T5 size timing belt 5mm wide with 62 teeth (may end up using 61 teeth). I printed the belt in regular NinjaFlex TPU. The 18-tooth pulley acts as a shaft coupler between the stepper motor and the 8mm diameter pulley axle. The 18-tooth pulley .STL file is for a 1/4 inch motor shaft, because I happened to have some NEMA17s with that size shaft. I have added an 18-tooth pulley for a NEMA17 stepper with a 5mm shaft. The metal pulley shafts are 8mm diameter steel or aluminum, however, these could be made from HDPE or other strong plastic. 3D printing these shafts is not recommended. One is 55.5mm long and the other is 20mm long. These lengths result in a 0.5mm end play clearance. I cut them on a lathe. The KnobCaptiveNut.STL part needs to be paused at 6.2mm height during 3D printing to install a 1/4-20 Jam Nut (not a regular size nut) into the part. Coat the top side of the nut with PVA glue (like Elmer's) before the print is resumed, so the plastic sticks to it. Chase the threads with a 1/4-20 tap after printing in case any glue ran into the threads. I print with a 0.4mm first layer and 0.2mm subsequent layers, so I need to pause at layer 30. If you print ALL layers at 0.2mm you would need to pause at layer 31 to add the nut. CameraBracket.STL part is used to adjust the fore and aft camera center of balance to line up with the tilt axle. The slot in the ArmAdapter.STL part allows up and down camera center of gravity adjustment relative to the tilt axle. Adjust both positions for best gravity centers to eliminate any floppy action. Hole sizes for the heat set inserts work on my prototype, but they could be shaped and resized per the manufacturer's specs for a better fit. Could be modified easily to accommodate either NEMA17 and NEMA23 motors. I may do that eventually. Ultra-quick video demo of input: https://youtu.be/GrmbCn-RxYA

Download Model from thingiverse

With this file you will be able to print Pan & Tilt w/NEMA17 Steppers with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Pan & Tilt w/NEMA17 Steppers.