We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

Mini Observatory | The MagPi #140

Finally having the time to focus on his hobbies led one maker to design and build a self-contained star-gazing setup. In the latest issue of The MagPi magazine, out today, Rosie Hattersley learns more about this mini Raspberry Pi-powered observatory.

Matt Hough’s retirement from the corporate IT world freed him up to return to hobbies that fascinated him many years ago. He studied computing in the 1980s, but had not tinkered much since, other than with software. 

The image displays the internal components of a device labeled “PILOMAR2,” which is partially disassembled. The white top part of the casing is open, revealing various mechanical and electrical parts, including multi-colored wires and gears, against a green cutting mat with grid lines.
The Mini Observatory uses Raspberry Pi 4, RP2040 and HQ camera with a Nikon-to-C adaptor and a 50mm Nikkor SLR lens to form a telescope to capture the night sky

While astronomy had always been a big draw, Matt rarely had time to pursue it while working. When Raspberry Pi was launched in 2012, Matt was immediately drawn to it because “it was incredibly easy to make and experiment with”. After familiarising himself with Python, Matt found himself buying several more Raspberry Pi computers Matt found himself appreciating their diminutive size too: his new hobby was portable! “I could pack a small kit and take it with me when travelling – so whenever I had downtime, I could tinker and try things”. Several of the projects he created have been astronomy-themed, but creating a mechanised mini observatory and telescope based around Raspberry Pi 4 offered far more of a challenge – one that took two years of development and would see him create a dozen versions of his telescope before he felt it was ready to be shown off to the world. Once he did, Matt was “slightly stunned how much interest it generated”. We think it’s pretty impressive.

A familiar tale

Matt began with a series of traditional telescopes, but found them “a little frustrating to use in practice”. It was hard to locate objects in the sky and most of what he could see was “often just a grey smudge”. Digital telescopes were not that common and were expensive, but when Raspberry Pi launched the HQ camera sensor Matt wondered whether he could build a really simple digital telescope with the Raspberry Pi at the heart of it.

The image is a captivating view of a galaxy amidst a starry backdrop in space. The galaxy is brightly illuminated, contrasting with the dark background, and surrounded by numerous stars that add to the celestial spectacle. The scene evokes a sense of wonder and the vastness of the universe.
A processed photo of the Andromeda galaxy using images gathered by the telescope using a 50mm lens

He had already built an Aurora clock that lets you know if there’s a chance of seeing the Northern Lights, and a similar device using Raspberry Pi to track the International Space Station. With ten years of Raspberry Pi familiarity to draw upon, Matt was confident he could handle both high- and low-level functions and decided it would be the ideal basis for his own telescope and observatory design. “I knew there were Python packages available and I hoped to find pre-existing solutions to most of my needs”. The initial plans were for a Raspberry Pi Pico project but Matt soon realised he needed more power, switching to “Raspberry Pi 4B with RP2040 help”. 

Matt was less confident of his 3D design skills: he needed to create more parts than he’d ever done previously and regarded this aspect as a distraction at the time, but says it’s a new skill that has come in useful elsewhere since. 

Seeing the lights

The Mini Observatory design emerged from successive experiments using Raspberry Pi Pico. Having started tinkering, Matt gradually developed routines to solve specific problems, learning how to control stepper motors and the technical aspects of the HQ camera. He needed precision here and went to a specialist company called Stepperonline to source them. Matt bought other parts from well-known Raspberry resellers such as The Pi Hut and Pimoroni, with more generic nuts and bolts from general hardware stores. He cautions over scrimping on potentially dangerous items such as power supplies: “always buy them from a trusted source”. 

The image is a star map of the Andromeda constellation. It features:

Dark background: Typical for space representations.
Green lines and text: Illustrating positions and names of stars.
Green circles: Representing individual stars with identifiers like “HIP3865.”
Numerical values: Indicating coordinates or distances between stars.
Constellation outline: Formed by lines connecting some stars.
The software attempts to recognise objects and helps ‘tune’ the system

The project provided a great learning experience, with the observatory, gears and mechanism all home-grown. The ‘semi-intelligent’ motor controller for the telescope is probably the most novel element. Matt needed a way for the telescope to move while Raspberry Pi was busy taking photographs, so gave the motors a little RP2040 microprocessor brain. “They were released at the perfect time.”

Matt was able to make use of Python packages such as Skyfield, OpenCV, PiDNG and Astroalign and says it was a good choice for his Mini Observatory project. He is also really keen to process the photographs in real time onboard the telescope. “I haven’t solved that yet, so I still need to do some offline processing afterwards. Realtime processing must be possible, I just have to research more.” 

The image depicts an electronic circuit board labeled “PLC-MAR.2 Rev: 2022-05,” connected to a component via a ribbon cable, set against a green cutting mat with grid lines. The board features various electronic components, including resistors, capacitors, and integrated circuits, and is connected to a blue terminal block by a red wire.
Pimoroni Tiny2040 and TinyPython control the azimuth stepper motor, while Raspberry Pi 4B oversees the camera tower that forms the telescope

Since Matt first unveiled the project, several other makers have created versions, providing invaluable feedback and prompting him to tweak a few elements such as removing the infrared cutoff filters from his cameras which will make more objects visible. 

Matt is also plotting a second version of his mini observatory, and is excited about the possibilities of Raspberry Pi with improved imagery and support for a second camera: one camera to do the tracking another to photograph the heavens. In fact “Raspberry Pi 5 may trigger quite a rewrite!”

The MagPi #140 out NOW!

You can grab the brand-new issue right now from Tesco, Sainsbury’s, Asda, WHSmith, and other newsagents, including the Raspberry Pi Stores in Cambridge and Leeds. It’s also available at our online store which ships around the world. You can also get it via our app on Android or iOS.

The image is a cover of “The MagPi” magazine, issue 104 from April 2022. It features a yellow background with colorful icons and text related to Raspberry Pi coding. The cover highlights the main headline “Get CODING with RASPBERRY PI” inside a pink cloud icon, with subheadings like “Think it! Code it! Build it!” and mentions of outdoor builds and Raspberry Pi 5. Additionally, there’s a guide on saving software using retro floppy disks and CDs. The Raspberry Pi logo is prominently displayed next to the magazine title.

You can also subscribe to the print version of The MagPi. Not only do we deliver it globally, but people who sign up to the six- or twelve-month print subscription get a FREE Raspberry Pi Pico W!

3 comments

Alex N avatar

Wonderful project, inspiring.

Dow Hurst avatar

I have a Dwarf II telescope from DwarfLab, which is a product based around a raspberry pi like computer. I believe Rockchip is the board manufacturer. Anyway, I’m fascinated by this project! Onboard processing is far more compute intensive and does require human decisions and input. I would expect routines that would upload the images to a linux server running automated PixInsight routines would be the most efficient and productive way to stack and post process images.

guruvaraja ganesan avatar

Excellent project by Matt Hough’s Raspberry pi Astronomical telescope camera using Raspberry pi HQ camera. Wonderful retirement ambitions fulfilment.
I will try my best to build this as it is matching my retirement hobby of astronomy and raspberry pi projects.

Comments are closed