Jump to content

Banner.jpg.b83b14cd4142fe10848741bb2a14c66b.jpg

PiFocus - motor focuser on the cheap!


Marci

Recommended Posts

Seeing as it was rainy the other day, I took to my spare parts box and pulled out an old WifI IP Camera that had been drowned previously, control boards fried. Fortunately, it’s 2x stepper motors still worked (24BYJ-48 - you can get them off eBay for next to nothing).

I’d picked up some UL2003 driver boards a while ago with the intention of a play with a Raspberry Pi, so this seemed the perfect project.

30 minutes in Python, a swift bit of Node-Red-UI, 2 pieces of Meccano and 10 minutes soldering et voila! PiFocus

 

Testing the motor control via breadboard...

The Raspberry Pi in question currently sports an Energenie two-way RFM69-based radio transmitter for controlling household sockets etc, and 2x 1-wire temp probes - these are handled by Domoticz, a free open source home automation system for which I wrote a plugin a few months back to allow voice / mobile control via Apple HomeKit protocol & Siri.

Breadboard tests all worked, so got it all soldered up, and fortunately with the quick addition of two pieces of meccano, got it all strapped to my 114EQ OTA via the existing finder scope mounts... et voila!

It’s not the speediest of things at the moment. Still needs some improvement to the “transmission” but it takes 45000 steps of the stepper motor to get from full-in to full-out, so it should be sensitive enough... so here’s the final test - mounted up with the weight of an Opticstar PL131M to give it something to work with:

 

Rather chuffed if I do say do myself!! Last step is to add virtual switches into Domoticz for Siri-controlled action...!

Am quite happy to share all the code etc if anyone wants it (s’all standard stepper control code kicking about a few raspberry pi sites). Should work on any Raspberry Pi running Jessie with Node-Red, Node-Red-UI & Python 2.7.x installed.

Link to comment
Share on other sites

Fiddled with the interface, features & logging a touch... the calibration is (for instance) if you have a camera which only operates over a specific part of the full focal range. Set whatever position you want far-in to be, calibrate zero. Set whatever position you want far-out to be, calibrate max. Now the focuser will only operate within that range. Reset calibration clears it all so you can set it to something else / actual draw tube’s min & max (or just inside to avoid hitting the stops / account for slips n’ nudges).

History position graph so you can get a rough idea whereabouts you had it any point in last xx hours/minutes.

Accuracy all depends on how much slip you get in the transmission (currently rubber band drive, with dbl-sided sticky tape round the focuser knob for a bit of extra grip), but it’s proving fairly reliable thus far!

 

control.jpg

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.