The basic components for the stepper motor and the drive to the Pentax lens pretty much remain the same. Since I’m using a 1.5 foot ethernet cable to connect the stepper motor to the box containing the Metro 328, I used a small RJ45 breakout board that I attached to the stepper with some 3m automotive double-sided foam tape. And since the iOptron mount, the Metro 328, the stepper motor shield, and the TEC on the astro camera all needed DC power I decided to use part of the project box for power distribution. The Metro 328 and motor shield are powered from inside the box, the 4 power jacks can be used to drive external 12 volt devices, two are presently used by the iOptron mount and the camera’s TEC. The green digital meter is battery voltage and the red is the amps the battery is supplying.
If you decide to make something similar there is something to be aware of. I am using no limit sensors for the focusing, meaning that the stepper motor can drive the focusing mechanism against its internal stops. With the motor I used and my lens that is not a problem but I could see it might be if a high torque or geared stepper motor was used. Also it would be a good idea to use an inline fuse in the battery cable, something that I am planning to do.
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.