4 Axis Motion Controller on a Budget - Part 2
by dslrdiy in Circuits > Remote Control
961 Views, 9 Favorites, 0 Comments
4 Axis Motion Controller on a Budget - Part 2
I did another Instructable about making a 4 axis motion controller from old 3d printer parts, you can follow it here:
https://www.instructables.com/Turn-Your-Old-3dprinter-Into-a-REMOTE-4-AXIS-CAMER/
And this Instructable are about the improvements I made to the motion controller.
- WiFi Support instead of Bluetooth, this way is compatible with Android and iOS.
- List of Common Parts, most of the parts are easy to get if you have a local 3D printer Store.
- Minimal 3D printed parts, only a few parts are 3D printed, so you won't need hours and hours of 3D printing.
- Timelapse feature added, using an optocoupler and a shutter cable suitable for your camera.
- PCB design for the controller, this allows you to have a clean controller.
- More advanced features in the near future.
Supplies
The supplies are the same as the last time, but if you are new here you can get them in the next links (Affiliate links - this help to develop the new features)
- Nema17 Motor Plates 5pcs: https://amzn.to/3LGhUG3
- Nema17 Long Motor Plate https://amzn.to/44fty1P
- Nema17 Motors Pack of 5 https://amzn.to/425Wrfa
- GT2 20T Pulley 5mm Bore 5 pcs https://amzn.to/428DQiv
- GT2 60T Pulley 8mm Bore 4 pcs https://amzn.to/425XcVy
- GT2 200mm Closed Loop Belt 10 pcs https://amzn.to/3n8yqW9
- GT2 400mm Closed Loop Belt 2 pcs https://amzn.to/3AY4IXb
- Pillow Block Bearing 8mm Bore 4 pcs https://amzn.to/42bQLAu
- 8mm Steel Rod 300mm 2 pcs https://amzn.to/40KmAiF
- 8mm Shaft Coupling 4pcs https://amzn.to/3oV2o0f
- Aluminum Extrusion 2020 300mm 4pcs https://amzn.to/3LDzbPd
- 200Pcs M5 Screws and T Nuts https://amzn.to/3LlQWCo
- Right Angle Joint Plate 2020 4pcs https://amzn.to/3AFN8GZ
- M5 Screws Set https://amzn.to/41QepT5
- BTT SKR V1.4 Turbo + 5 TMC2209 Driver https://amzn.to/3oOUzZP
- TMC5160 For Nema23 (Optional) https://amzn.to/3LFK6c2
- Camera L Plate https://amzn.to/44dzMiK
- Quick Release Plate 120mm https://amzn.to/3nfXsCE
- 1/4 β Screw Set 5pcs https://amzn.to/3AFJmNS
- M3 Screw Set https://amzn.to/3LhyWsD
- GT2 3mm Bore Pulley 6mm Wide https://amzn.to/41L6UNg
- 1/4β-20 Tap https://amzn.to/3ndGkNJ
- Tap Wrench https://amzn.to/3HoZ04b
- ESP32 30PIN Dev Board 3Pcs https://amzn.to/41SyIzw
- Joystick Module 5Pcs https://amzn.to/3VjSHUZ
- 0.96β Oled Display 5Pcs https://amzn.to/3naJnXc
- TRRS Module 3.5mm 10Pcs https://amzn.to/3naJnXc
- Buzzer Module https://amzn.to/3LIHPNz
- 2Channel Optocoupler Isolation Board 5pcs https://amzn.to/3VjTR2N
- GT2 Belt 16.5ft 6mm https://amzn.to/44iBDCX
Note: Most of this parts are listed in sets you can try to buy only 1 piece but the price is almost the same as the set.
Build Guide
Follow the Step of the images to complete the building of the Motion Controller you can also download the guide in PDF format from my page.
All the files (Guides, Code, STL Files, and Firmware) is here: https://www.buymeacoffee.com/dslrdiy/extras
- Attach the motor mounting plates into each motor for the pan and tilt axis, you will need M3x10 Screws. You can use bigger motor like NEMA23 if you have a bigger setup but remember to use the correct Driver for the motor.
- Drill 2 new holes on each motor plate to mount the 8mm pillow bearing, you can use a bearing with bigger diameter if you want an sturdier setup, even up to 20mm.
- Once all the plates are assembled align the higher plates on the same side, this is important or your setup will be crooked.
- Cut the 8mm steel rod in the right length for your setup. (You can use a 20mm steel rod if you bought thicker bearings a couples).
- Use a 1/4"-20 Tap to create the threads of the 8mm shaft coupling, this will let you use regular camera screws to attach it to a quick release plate. Place the shaft coupling and secure it with an #4 Allen key.
- Place the GT2 60Teeth pulley into the rod and the GT2 20Teeth pulley into the motor shaft. You can 3D print the 180Teeth pulley to get smoother movements. (You can fin the STL File in the link above)
- Tension the plates with the rod inserted and put your GT2 belt in place. Tension the motor plates and secure the screws.
- Repeat the same process for the Tilt Axis.
- Use the right angle plates to join both axis.
- Attach the long quick release plate to attach the pan an tilt head to the slider.
- Attach the L plate to attach the quick release system to mount the camera.
- To create the slider motor you will need the long motor plate.
- Use M3x25 screw to place the pulley that hold the GT2 belt in place. and secure the motor and the pulleys.
- Done!.
New Connections
From the first version some connections have changed to make them easier, also I designed a PCB to avoid using to much jumper cables. You can find the Gerber Files in the link on Step1 so you can order it or make them.
As I am using a Big Tree Tech SKR v1.4 Turbo Board it is not necessary use a logic level board, because the ESP32 and the BTT Board both work with 3v. I included an TRRS Jack to attach and detach the controller easier. You can connect the cables directly.
Note: Remember to connect all the parts before powering the motion controller. Connect a part when the power is on can damage a driver or the controller.
In the BTT Board or any 3D printer board you can find the TFT communication port, this port will help us to control the board and the drivers. Find the Pinout of your board, but many boards will follow the same order. We only need 4 pins of the 5 of this port.
We will reprogram the board using the firmware from the previous Instructable, the firmware for the BTT SKR V1.4 Turbo is in the files on Step1, if you have a different board you can leave a comment below.
This firmware let us use the heater 0 pinout of the board as a shutter button. To keep the camera protected you will need an optocoupler this board isolates the main board and the camera shutter cable.
Note: The Output part of the optocoupler board have 2 small 3KOhm resistors these have to be replaced with a short-circuit. This is because the shutter cable are activated by a contact action, and 3KOhm it isn't contact.
Using the Controller
The controller have:
- Joystick have 5 buttons, up, down, left, right, and middle.
- Right and Left button.
The Joystick middle button let you move between rows. Each row will let you move an axis with the joystick buttons.
- First row, up and down move the Tilt axis. Left and Right move the Pan axis.
- Second row, up and down move the Focus Motor(E0). Left and Right move the Slider motor.
- Third row, up and down change the JOG (unit of movement). Left and Right change the speed.
The Right button let you enter the Menu.
The Left button let you exit the Menu, and stop a timelapse routine.
Inside the menu you can navigate using the up and down buttons of the joystick.
The Left and right buttons of the joystick let you increase or decrease the values.
The middle button will activate an action.
The menu actions are:
- Set A, press middle button to set position A.
- Set B, press middle button to set position B.
- Move A, press middle button to move to position A.
- Move B, press middle button to move to position B.
- Move A-B, press middle button to move to position A then B.
- Move A-B-A, press middle button to move to position A then B then A.
- Reset Ends, will reset the end points, some 3d printed boards lock when a end point switch is triggered.
- Power Off Motors, will power off the motors if you want to save battery. But remember that if you move the camera this will not remember the position.
- Photos, is the number of photos of the timelapse routine.
- Interval, is the seconds between photos for timelapse routine.
- Shutter Speed, is in milliseconds, this is the time that the controller will wait, this is helpful for long exposure photos in timelapse.
- Run Timelapse, press de middle button to start a timelapse routine.
- Beep, is the buzzer sound before a movement, this is helpful for remote control. 1 is ON, 0 is OFF.
- Pre-Delay, is a delay in seconds before a movement, is similar to a timer of a camera.
- Units, this are the steps per unit, if you are familiar to 3D printer this parameters help us to calibrate the movement. the default parameters are OK for a 60Teeth-20Teeth pulley combination if you are using another gear ratio you can calculate the steps per unit using an online calculator.
- Update Units and Update Accel, will send the new units into the main board to test them.
- Once the units are right for your custom gear ratio you can press Save Presets.
Next Part of This Project
The next part of this project will update the firmware to support loop motion and more positions.
I will use an external module to use it as a face tracking device. Similar to the Edelkrone Vision Module.
I will update another option for 360ΒΊ product photography and a 5axis control for Zoom or Rotation.
I will test a zip line mechanism using a 3D printer extrusion gear to pull the zip line cord.
I will add an smart timelapse feature for some compatible cameras.
Consider to subscribe to my Youtube Channel and Support me on my Buymeacoffee Page.