Arduino Based ASCOM Rotator

One to many cloudy nights has spurred me into action. My imaging setup is getting closer to automated but I’ve had a distinct missing link, the ability to choose a guide star from within my astronomy applications. Since adding the MOAG and updating my guide camera I’ve added a Takahashi CAA rotator and it provides excellent manual rotation.

The reason I selected the CAA was price and aperture. I did look longingly at a number of electronic rotators.

Automation of the rotation was another issue. There seems to be lots automation for mounts and focuses but nothing for rotators. Google was not my friend. So I decided to write something. This is very much a work in progress but so far I have adapted the code from the SGL Automation guys and attempted to make it rotator specific. It supports ASCOM v6.

The ASCOM interface for rotators is reasonably simple, Move, Position, etc and the ASCOM documentation and templates are excellent. Well done standards guys, shame us health professionals can’t get our act together as we’ll as you have.

First go was to get the basics operating: Arduino, USB to serial driver, stepper motor, easy driver motor controller a couple of belts and a pulley. Check out the photos below.

I’ve only tested it with Maximdl using my bench setup as yet, but it seems to work well.

The bench setup.

20130211-203419.jpg

The arduino (note the resistor is for the reed switch, keep reading).

The reed switch and magnet.

20130211-203548.jpg

Reed switch and magnet.

20130211-203656.jpg

I was having trouble this weekend determine the number of steps to make 360 degrees so I dug up an old reed switch, found a very small magnet and introduced homing and a step counter into the software, as of Sunday night it all appears to work.

The Arduino Project and VB in the solution - ES - works but its still a little messy to release, but here you are anyway.

Code in action below

Sample rotator screen shots with debug