Build Your Own All-Sky Camera with a Raspberry Pi
2025-02-07 | By Sara McCaslin
License: See Original Project Raspberry Pi SBC
All Sky cameras take pictures of the sky during the day or at night to capture a complete view of âthe sky to reveal the motion of stars, auroras, meteor showers, satellite movements, and more. âWhen the correct type of camera is used, a 180° view of the sky is possible. This information âcan be used by amateur and professional astronomers alike and can serve as a fascinating âintroduction to astronomy.â
All sky image showing a meteor, by Michael L. Umbricht / Ladd Observatory. Source: Wikimedia.â
You can learn how to build your own Raspberry Pi All Sky camera with readily available âcomponents and software. This article goes over the parts, setup, enclosure, and testing.â
How Can I Make My Own Using Raspberry Pi?â
Below is a basic list of the equipment and software you will need to create a basic All Sky âcamera:â
Hardware
Basic hardware that you will need for the circuitry:â
Raspberry Pi 4 or Raspberry Pi 3B+ (this project uses the 3B+) with a protective case
Raspberry Pi Camera Module or a suitable USB camera with a fish-eye lens
MicroSD Card (at least 16GB)â
â5V 3A adapter â
Software
Only two types of software are needed: the Raspberry Pi OS and the All Sky camera software, âAllSky.â
Enclosure
The basics of the enclosure are composed of:â
A waterproof box or similar enclosure to hold the Raspberry Piâthis is not the same as âthe enclosure that can be bought to protect the Raspberry Pi.â
A clear dome or similar waterproof housing to go over the camera, along with the ânecessary fasteners to secure it to the enclosure
A small package of silica desiccant (optional) to absorb moisture within the domeâ
A Dremel tool or small drill to make necessary openings within the enclosure
Hook and loop tape to secure the Raspberry Pi within the All Sky enclosure
Note that the enclosure must also be of sufficient size for the clear dome to rest upon it and over âthe camera.â
Setup the Raspberry Pi
Flash Raspberry Pi OS onto the microSD card using Raspberry Pi Imager. You will choose your âdevice, operating system, and the type of storage you are using.â
Basic setup used for this project.â
You will see the option customization screen appear. Select Edit Settings and go to the Options âtab. Make sure the only checked box is Play Sound when finished. â
Customization settings.â
If your computer has problems when the verification step starts, restart the installer, and click âCANCEL when verification starts.â
Once the SD card is ready, place it in the Raspberry Pi. Plug the adapter into the wall and boot âthe Raspberry Pi. Note you will need a keyboard and a screen to work with the RP, so get those âconnected and connect your camera before starting. Once the operating system loads and the âGUI is displayed on the screen, download any needed updates.â
Installing the AllSky Software
Next, install AllSky software. Start by going here https://github.com/AllskyTeam/allsky and âreading the documentation here. Once you have reviewed the basic documentation, go to the âcommand line and type: â
sudo apt-get install git
After that process has finished, enter this at the command line.â
cd git clone --recursive https://github.com/AllskyTeam/allsky.git cd allsky ./install.sh
â
This will start the AllSky installer. You must have your camera installed before the installation. âFollow the prompts on the screen. Notice that you will need to enter the latitude and longitude of âwhere you are located. This can be obtained via a quick Google search. After this, you will be âprompted to reboot your system. There will be a message that says you need to update your âcamera settings using âAllSky Settingsâ in the WebUI. You may also need to update config.sh âand ftp-settings.sh
After the reboot, go to the WebUI by going to âhttp://allsky.localâ or âhttp://allsky.localhostâ in a âweb browser using the Raspberry Pi. The default username is âadminâ and the default password âis âsecretâ.â
From there, go to AllSky settings.â
Setting Up AllSky
To schedule the software to start automatically on boot, go to the command line bash and enter âthis code:â
sudo crontab -e @reboot /home/pi/allsky/allsky.sh
You can monitor performance by accessing the camera remotely via SSH or VNC. â
There are many different settings that can be adjusted to obtain excellent image quality. A âsample of these are shown below. These include exposure, brightness control, white balance, âshutter speed, and some additional features that may be AllSky software specific.â
The settings screen for AllSky. â
Exposure Settings
Here are the most common exposure settings and what they mean:â
Manual Exposure: supports better control over how much light the camera gathers. This âis especially useful for obtaining images of faint objects such as stars.â
Automatic Exposure: automatically adjusts the exposure based on the cameraâs âenvironment, which accounts for changes during the day or night. There are also limits âyou can set on automatic exposure to keep it from over-adjusting.â
Exposure Time: this can be set in terms of seconds of exposure. Just be aware that the âlonger the exposure, the greater the possibility of moving objects being blurred. â
Brightness Control
Brightness control is another key parameter in obtaining clear, high-quality images of the sky. â
Gain: adjusts how much the camera signal is amplified. High gain = more sensitive to âlight but introduces more noise.â
Gamma Correction: adjusts the brightness and contrast of the image. To make dark âareas of the image brighter without overexposing the lighter parts.â
Brightness Adjustments: fine-tunes the brightness of the final image for well-balanced âlight and dark images.â
White Balance
White balance works to ensure colors are accurately rendered. This can be set manually or âautomatically and is especially important to account for a sky with a color cast.â
Day/Night Profiles
AllSky supports the creation of separate profiles for day and night using the settings just âdiscussed. Night images, for example, may require a longer exposure if you want to capture the âpath of meteors or stars, whereas a shorter exposure is best for daytime. â
Shutter Speed (for HQ Camera Modules)â
If you have a Raspberry Pi HQ Camera, additional control may be possible over the shutter âspeed. Shutter speed relates to how fast the camera captures the image. â
Software-Specific Adjustments for AllSky
AllSky software makes it possible to adjust settings for how often an image of the sky is taken âand can adjust the exposure as needed. It also provides noise reduction, which can be crucial to âobtaining a quality image of the sky.â
Building the Enclosure
The standard enclosure for a Raspberry Pi is approximately 3.5x2.25x1 in, and it is ârecommended that this enclosure be used along with the waterproof enclosure. It can be âattached to the waterproof enclosure with hook and loop tape, making it easy to remove the âRaspberry Pi as needed.â
The Raspberry Pi enclosure with the camera included. â
To assemble the enclosure, mount the camera inside the clear dome or waterproof housing. You âwill need a slit for the camera ribbon to pass through to the Raspberry Pi board. Keep in mind âthat the slit for the enclosure will be to the side of the camera. Ensure the dome is clean and free âof scratches for clear images, and add desiccant packs inside the enclosure to prevent fogging. âNext, seal the housing to protect against moisture and dirt. Do not forget that the housing must âalso be stable to ensure no movement in the photos.â
Camera dome.â
Testing the System â
The camera should be positioned where a clear view of the sky can be obtained. Once the âenclosure has been placed and stabilized, test the camera. This can be done through AllSky's âweb GUI. Next, you can obtain a live view through your camera in the AllSky web GUI, and âfrom there start making adjustments to key parameters that will improve image quality. If there is âa message about the RPi command not being found, simply unplug the camera, turn off the âRaspberry Pi, then plug the camera back in and restart it.â
Finding Your Images
The photo below shows the path to the images, which are placed in files labeled by date. These âimages can easily be copied to a flash drive or shared file system such as Google Drive, âOneDrive, or Dropbox. If desired, they can also be shared with the AllSky project.â
The path for locating the images.â
Is There Anything Else I Can Use an All Sky Camera For?â
All Sky cameras are a great way to monitor the movement of clouds, observe the effects of light âpollution on the night sky, and capture rare celestial events. It can also be used as a wildlife âcamera or to create artistic imagery that includes elements of the sky.â
Conclusion
Capturing incredible images of the sky and nightscape is easy to do without many parts needed. âWith a Raspberry Pi, a good-quality USB or RPi camera, and the right software, you can begin âadding amazing sky photos to your photo albums.â

