Astrophotography Autoguider project showcase

By Rosemary Hattersley. Posted

The awe-inspiring wonders of the night sky encouraged a keen stargazer to find a better way to capture their beauty. Rosie Hattersley gets inspired

Creating stunning photographs of the night sky requires planning, patience, and reliable star-tracking equipment. A desire to travel a little lighter led keen amateur astronomer Joe Kutner to embark on his first Raspberry Pi project.

Joe Kutner (aka Codefinger) is a software architect at, where he works primarily with Java and other open-source technologies. He’s published several books about programming with Ruby and Java. He enjoys amateur astronomy, mostly observationally, but he also dabbles in astrophotography. 

Joe Kutner is a keen amateur astronomer and astrophotographer. He's lucky enough to live somewhere he can capture stunning images of the night sky from his own driveway

Joe says there’s nothing worse than taking hours of astrophotography images only to find out your telescope was drifting, causing the stars to look more like lines than points. To protect against this kind of misalignment, he needed an autoguider: a computer and camera that track a star in the telescope’s field of view to ensure that it stays in the same position throughout the session.

The Horsehead Nebula and Flame Nebula, photographed from Joe’s Alabama driveway with the help of his Raspberry Pi-controlled autoguider

“The main goal of my project was to get rid of the laptop,” Joe tells us. “I needed to control my telescope in the field. I spend enough time in front of a computer at work, and the laptop took the fun out of observing. It served an important function, though: controlling both my camera and my mount. Without it I would only be able to take very short exposures of the moon and planets.”

Joe considered using an iPad or a Microsoft Surface instead, but both were far too expensive. He wanted to keep the build cost below $100, and neither worked well with his chosen software.

Instead Joe picked up a Raspberry Pi, a case, and a touchscreen for less than $100, and added a red plastic cover so he was still able to use the setup in night-vision mode. These work alongside the various bits of astronomy kit Joe uses regularly on his stargazing missions.

Raspberry Pi in a case with a red plastic overlay so it can be used at night

Under open skies

Joe made extensive use of general purpose open-source software such as Raspbian Stretch and Git, plus astronomy-specific open-source tools Libnova, INDI, and PHD2 ( telescope guiding software.

He wrote scripts to automate the software so he could just use the touchscreen, without a mouse or keyboard. But for the most part, things worked without customisation. 

“Every step in the process had its challenges,” Joe recalls. “I would install one piece of software and then find out it wasn’t compatible with some version of another piece of software I needed. When I finally got everything running, it wouldn’t talk to my telescope until I installed yet another version of the software. There were dozens of these little paper-cuts, but in the end it was worth working through them.”

Joe also says the hardware he chose worked perfectly from day one. Any tweaks he made were “mostly minor issues like figuring out how to install the correct version of a particular camera driver”.

His Raspberry Pi now has an on-board autoguiding system for his astrophotography rig. Because Raspberry Pi attaches to the base of the mount, it’s easily accessible. Unlike using a laptop, there’s no need for an extra table or complicated wiring. Joe says the setup is perfect for his needs: “I can roll my telescope onto my driveway and start imaging in just a few minutes.”

The lightweight nature of Joe’s astrophotography setup makes it easy to move around

International expansion

Now that Joe has successfully built a fairly portable astrophotography rig, he sees its potential for explorations further afield. He’s keen to try out his autoguider with other types of astrophotography kit such as the ultra-compact Sky-Watcher Star Adventurer series of mounts. “When combined with my Raspberry Pi,” he says, “I could take the whole rig on an airplane as carry-on. That would give me access to some very dark skies.” 

Lagoon Nebula (Messier 8), a giant interstellar cloud located in the constellation of Sagittarius

Build an autoguider

1. Start with a fresh installation of Raspbian and download the package for libnova 0.14. You can find the install instructions at Joe’s GitHub page.

2. Use the GitHub instructions to build INDI, the software to connect Raspberry Pi to your digital camera and mount. Install the Atik camera driver if needed. 

3. Install and build PHD2 autoguiding software, then start the INDI server so it looks for the camera and mount. Save the profile for future reference. 

Lacerta MGEN II is a good alternative if you don’t want to build your own autoguider

Quick facts

  • Raspberry Pi records over several hours while Joe sleeps in his tent

  • Joe recommends Lacerta MGEN II if you don’t want to build your own autoguider

  • Many of his astronomy photos are taken from home in Huntsville, Alabama

  • He’s using Raspberry Pi to attempt to image an exoplanet transit

  • He also blogs about coders’ fitness and nutrition at

Whirlpool Galaxy (Messier 51) taken by Joe using his auto guided rig at the Texas Star Party 2019 in Fort Davis

From The MagPi store