Shoot for the stars
Astrophotography with Raspberry Pi.
Space is very cool. Stars, planets, nebulae, and the Moon are very pretty as well. However, getting a good photo of the night sky can be difficult without specialised equipment, even if you own a telescope yourself. Thanks to Raspberry Pi and its powerful camera functionality, and the open-source night sky trackers you can install to it as well, you can quickly improve your astrophotography – whether that’s peering up into the sky with the camera directly or going through a high-powered telescope. Space is very cool. Let’s capture some of that cool.
By Rob Zwetsloot
Low-tech space views
Get a better look without investing in tech
While electronics and telescopes will help you get some really great views and shots, you can use these low-tech methods to get a better look than with the naked eye.
DSLR camera
While these are higher tech, they’re not particularly designed for astronomy. Still, with a tripod, as long a lens as you can find, and a long exposure time, you can get some great photos. Check out this guide for more info on how to do it: magpi.cc/astrodslr .
Binoculars
While there are binoculars that are more specifically designed for stargazing, any decent pair can be pointed up when it’s night. You’ll get better views of the Moon, actually see Mars, and even potentially see some of the moons of Jupiter if you look at the right time of year.
Creating a space camera
Different ways to capture the cosmos
You can take incredible photos with the Camera Module or High Quality Camera and Raspberry Pi using a few clever tricks with lenses, exposure, and maybe even a telescope.
Raspberry Pi Moon Camera
James Mitchell (raspberryjamberlin)
The Raspberry Pi Moon Camera is something we featured way back in issue 45. What makes this system quite unique is the use of a custom, 3D-printed lens adapter that allows you to attach traditional lenses to a Raspberry Pi Camera Module – long before the High Quality Camera came along with interchangeable lenses. In this case, they were Canon EF (EOS) lenses. The shots James got were quite remarkable, and only used the default settings: “I’m embarrassed to say I left it on auto. In fact, the command I used had no modifiers at all – **raspistill -o moon.jpg**. What I got really was a happy accident. Could I improve the picture with changing some settings? Absolutely!... I think I need to learn more about how the optics work. Maybe I could adjust the distance between the lens and the sensor to improve the sharpness.” Interestingly, the most expensive part of a project like this is the lens. magpi.cc/45
Cheap All Sky Camera
Jippo
While this camera may look a little low-tech, it actually uses a lot of smart techniques to not only see more of the sky, but automatically take photos of anything bright that appears in it. It makes use of a HQ Camera and a 180-degree CS lens beneath an acrylic dome to protect it from the elements. It uses software called Meteotux Pi, written by Jippo’s amateur astronomy friend Jani, which does a lot of the heavy lifting, allowing the whole setup to stay relatively cheap. “After Meteotux Pi has taken the images, a Python Shell script starts to generate star trails and normal video from stacked images,” Jippo tells us. “This script uses ImageMagick and FFmpeg and when they are ready, [it] moves those images and videos to my network drive via WiFi where I can check them.” magpi.cc/allskycam
Hubble Pi
Santiago Rodriguez
This is quite the beefy piece of kit, combining a telescope and a HQ Camera with some custom software to control image taking. It’s no wonder that it was created by a physics student like Santiago. This setup doesn’t have a dedicated star tracker, but Santiago loaded Raspberry Pi with KStars, which gives a live view of the night sky that he could use to find celestial objects. He’s able to control exposure, ISO, and shutter speed – although there are some limitations to that shutter speed as it’s digital. Still, he’s able to use multiple exposures to approximate a long exposure. magpi.cc/hubblepi
Official Moon Shots
Greg Annandale, whose photos you’ll find on the desktop of Raspberry Pi OS, took this incredible photo of the Moon using the HQ Camera, with quite the lens attached, that allowed for a 1400 m focal length.
Powering a telescope with Raspberry Pi
Using Astroberry Server on a telescope
Hardware setup
Computerised telescopes and telescope mounts either make use of USB or RS-232 connectors for hardware to interact with it. For USB, you may just need to provide external power, as well as plugging in to Raspberry Pi, but for RS-232 you may need more specialist hardware, such as the Pegasus USB Control Hub: magpi.cc/pegasususb .
Install Astroberry Server
From astroberry.io you can find the image to download to install Astroberry Server using Raspberry Pi Imager (magpi.cc/imager). After a first boot, you can connect via the Astroberry wireless hotspot, using astroberry as the password, and head to astroberry.local in your browser. You’ll be able to configure the system from here, including giving details on your telescope hardware to make it easier to control via INDI. Refer to the Astroberry Server documentation for more info.
Using Astroberry
Astroberry comes with a variety of software that allows you to track celestial objects and take photos – such as KStars which comes with specific Astroberry drivers, several pieces of imaging software for image stacking and tweaking exposure. Connecting a Raspberry Pi Camera Module or HQ Camera to the viewfinder will allow you to use the telescope and automated systems for fantastic images – just make sure to weather-proof it!
A year in the night sky
What to look out for while stargazing over the next year
SPRING
Lyrids Meteor Shower
This meteor shower is created by dust particles from a comet, and will be mostly visible around the Lyra constellations
Mercury at Greatest Eastern Elongation
Mercury will reach its greatest eastern elongation of 20.6 degrees from the Sun, making it a fantastic time to look for it. It will be low in the western sky after sunset
Eta Aquarids Meteor Shower
A meteor shower from dust left behind by Halley’s Comet, which you’ll be able to mostly see around the Aquarius constellation
Total Lunar Eclipse
The Moon will be completely obscured by the Earth tonight, giving it a dark red colour. It will be visible tonight throughout all of North America, Greenland, the Atlantic Ocean, and parts of western Europe and western Africa
SUMMER
Mercury at Greatest Western Elongation
Mercury will reach its greatest eastern elongation of 23.2 degrees from the Sun, another great time to look at it. On this occasion, it will be visible to the east before sunrise
Delta Aquarids Meteor Shower
From comets Marsden and Kracht comes this meteor shower, which you’ll mostly see around the Aquarius constellation
Perseids Meteor Shower
A highly visible meteor shower from Swift-Tuttle, perfect for a nice summer evening. The near-full Moon might disrupt it a little, but look towards the Perseus constellation nonetheless
Saturn at Opposition
The closest Saturn will get to Earth this year, making for the best time to get some photos of probably the prettiest planet in our system, and you can see it all night long
AUTUMN
Mercury at Greatest Eastern Elongation
Mercury is back, and this time it will 27.3 degrees from the Sun. Look to the west after sunset again for this one
Neptune at Opposition
The final planet in the Solar System will be at its closest tonight, and visible all night long. It’s extremely far away though, so you may only get small blue dots for photos
Jupiter at Opposition
Our big pal welcomes us to autumn, and will be at its closest point to Earth tonight, and with a medium telescope you’ll be able to get some stunning photos all night long. You can even check it out with binoculars!
Draconids Meteor Shower
A smaller meteor shower which is best viewed in the early evening, in a place with as little light pollution as possible. Look towards Draco for most of the shower
Uranus at Opposition
Like Neptune, Uranus is extremely distant, but this will be the night when you can get the best view of it. Again, it may just be a small blue-green dot
Leonids Meteor Shower
Look to the Leo constellation for this particular meteor shower. It peaks every 33 years, although the last one was in 2001, so it may not be as amazing as the Perseids shower earlier in the year
Mars at Opposition
Our neighbour planet will be very close tonight and, with a decent telescope, you’ll be able to get some stunning shots of the red planet
Geminids Meteor Shower
Brave the cold for one of the best shows of the year, with roughly 120 multicoloured meteors expected to fall every hour. Look towards Gemini, but be prepared for them to come from anywhere