Jump to content

Stargazers Lounge Uses Cookies

Like most websites, SGL uses cookies in order to deliver a secure, personalised service, to provide social media functions and to analyse our traffic. Continued use of SGL indicates your acceptance of our cookie policy.



Autonomous Allsky camera with Raspberry PI.

Recommended Posts

Allsky camera and weather station is very important parts of the modern observatory.
Here I wanna describe project that I build for my observatory.
I started a new topic because I believe that this project is unique and I hope this description may be useful because project is open source/open hardware.
This device contains two cameras, one is for beautiful daytime shots (over the horizon) and second for useful night shots. Also there is a lot of sensors: clouds, ir, light, temperature and humidity.
Heart of the device is Raspberry PI 2 microcomputer.

Everything is built in waterproof electrical box which can be found in hardware stores.
Yep this exterior is not very nice looking due to silicone sealant. But nice looking is not most important part, especially when mounting device somewhere on a roof :)

Acrylic dome is from CCTV camera.

Inside the box I glued a thermal insulation and copper foil which acts like a EMI shield. This foil is connected to the building grounding circuits.

All devices inside the box:
- Raspberry PI 2
- internal temperature/humidity sensor
- powering system (+3.3, +5, +12 volts)
- ethernet lightning protection
- tsl2561 ir/luminosity sensor
- mlx90614 cloud sensor
- cooling system
- rtc with a back-up baterry

External temperature/humidity sensor is mounted in separate aluminium can.

Cameras module is mounted on the bronze pcb stands and will be described below.

Raspberry PI runs all device software except database and long-time storage of the images.
Camera can be accessed through simple web interface which running on nginx server.
All data collecting and generation software is wrote on C, Python and Bash.
All processes is starting by the CRON.

Database is working on the remote server with reliable storage system and can be accessed through network. I'm using Mysql in this project.
I found that this solution is more reliable and convenient rather than local storage on the SD card.

All images are postprocessed by the software. Dark frames is extracted (only for night camera) and generated some text information on the bottom of the image.









  • Like 3

Share this post

Link to post
Share on other sites

Cameras module is placed under the dome.
You can see mechanical construction on the photo below.

Vertical camera is allsky. This is a popular and cheap QHY5-IIM astrocam. Lens is also CCTV, Сomputar 1.8-3.6mm 1.6
This lens contains iris motor which is used to close the camera in a day time to prevent damage of the image sensor.

Second horizontal camera is a Raspberry camera module, first version. This module is also equipped with CCTV lens using handmade adapter.

QHY camera is accessed with my custom software.
RPI cam module is working with standard raspistill utility.



  • Like 1

Share this post

Link to post
Share on other sites

On the image below you can see all logical connection between device modules.
Most of the sensors is accessed by the I2C bus which is very convenient.


  • Like 1

Share this post

Link to post
Share on other sites

This device requires only one external cable which is used as 100mb ethernet and for powering by the free pairs (variant of PoE).

I'm using black outdoor ethernet cable.

On the both sides of the cable I've mounted protection circuits.
Schematics is attached.






Share this post

Link to post
Share on other sites

Camera down-converter is used to deliver 3.3 volts for the sensors, 5 volts for the Raspberry and QHY and 12 volts for the FANs and IRIS motor.

This is two impulse converters and one linear. Also on this board I placed simple FAN driver.





  • Like 2

Share this post

Link to post
Share on other sites

Here is web interface. Powered by Bootstrap with additional Javascript code and custom styles.
All graphs is generating by the Python matplotlib. Text messages is also generated by the Python code with some Bash wrappings.
Every images and text data is reloading automatically every 40 seconds.


FireShot Capture 019 - AllSky camera web interface - http___azt8.craocrimea.ru_9180_index.html.png



  • Like 3

Share this post

Link to post
Share on other sites

Veeery nice! I've been working on something similar but got stuck on the iris thing. Do you happen to have the model number for your Computar lens?

Share this post

Link to post
Share on other sites
On 15.05.2018 at 13:25, gentlebear76 said:

Veeery nice! I've been working on something similar but got stuck on the iris thing. Do you happen to have the model number for your Computar lens?


My lens is Computar 1.8-3.6mm 1:1.6 1/3 CS.

To be able to control iris I made a little changes to the lens electronics.
Discovering board I found operational amplifier which controls output motor driver. Pulling down one of the amplifier inputs causes closing the iris.
I added little npn transistor key (you can see on attached photo). Base of this transistor is connected to the Raspberry GPIO pin through 1k resistor.
So when GPIO is high - transistor is opened and amplifier pin is pulled to the ground, iris closed.


Edited by OlegKutkov
typo fix

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By freiform
      Plane & Satellite when setting up a allsky-cam. Dark-subtraction wasn't enabled yet.
    • By AngryDonkey
      I'm afraid this will be yet another DIY all sky camera build! 😂 Hopefully interesting though... While developing my all sky software (shameless plug, see signature) one of the biggest problems is that I don't actually have a permanent all sky camera setup myself. I live in the middle of a big city with massive light pollution where the summer temperatures are just creeping up to 40C+, not ideal... So for a while I have been thinking about setting up a remote all sky camera to help with the testing of the AllSkEye app. Initially the idea was to mount it at a relatives house but then once I looked into what would be required to make it fully remote controllable I was thinking that if I go to all that trouble, I might as well look for a location with great weather and dark skies.
      After a few inquiries I got a really great response from Jose at the E-Eye remote hosting facility in Spain. This was fantastic news because not only will the camera have nice weather and dark skies but the facility also has fibre broadband which is almost a must for what I have in mind further down the road (I am also planning to transfer some image data to cloud storage for archiving and further processing and that could potentially be a lot of data). So this is where it is going to go (all being well and my 3D printer not packing up!
      I'll try to follow my progress here, maybe it will be helpful for someone. The basic idea is pretty simple:
      Setup a completely autonomous and remotely controllable all sky camera  Sounds easy enough... Well, let me tell you, it is not! To anyone having setup your own remotely hosted scope setup, my hat off to you, it's not an easy task! Initially I split this project into two parts:
      The camera, lens, housing and everything that goes with it The control box that will control the above Unfortunately I don't have time just now to go into any details but will hopefully be able to do so soon. I just though if I don't start this thread soon I never will 😀. The state of play at the moment is that the control box is pretty complete and the camera housing is nearing completion (3D printer is very busy, not a fast manufacturing process unfortunately).
      Here are a few pictures of what it looks like at the moment:

    • By kman42
      I have an EQ5 telescope mount which i use for astrophotography. I have modified it with a motorised RA axis using a bipolar stepper motor - my thread for the build is here .
      I want to expand the mount's tracking ability by motorising the DEC axis and using a guide scope/camera. I generally use the mount in fairly remote locations so would like to use a raspberry Pi for portability.
      I understand that I'll need to use a Raspberry Pi Camera Module for the guide camera. 
      The capability I want is:
      1. guide the mount along RA and DEC axes using a guide star as feedback
      2. track the mount using the RA axis only, and if possible continuously take 20-30 second exposures on the guide camera (this functionality is optional, but would assist in polar alignment of the mount)
      I don't want any GOTO capability. I am very new to RPi and need some help:
      - do I need to write code for this, or is there existing programming available for what I want to do?
      - is it possible to avoid the use of screens (in the field)? My preferred option would be to flick a switch to start and stop the guiding, with another switch for alignment mode (or something simple like this).
      - do I need to use any particular stepper motors/drivers for raspberry Pi? I'm using a bipolar stepper motor running quarter steps, with an A4988 stepper driver
      - is the RPi 3 Model B+ the unit I should buy?
    • By astrosathya
      Starting my 1st IOT project. Since i've been an astrophotographer with no permanent setup, it makes sense to reduce the physical footprint (and the weight) of as many equipment as possible, as well as to do better cable management. I am soon going to start using Astroberry Pi server, an Ubuntu based suite for Astrophotography. Just purchased a Raspberry Pi 3B along with a 3.5" display for that. Lets see how it goes.

    • By StaceStar
      £130 Ono ! Will calculate postage when sale agreed but I can't see it being more than £10 with royal mail
      Stellarmate imaging astrophotography computer.
      Based on raspberry pi . Comes with upgraded 32gb card rather than the standard 16gb. Included in box is hdmi cable and usb cable with power switch.
      This was an early Christmas present but is turning into a project I just don't have the time for. Works with anything that has an indi driver.
      It's like the zwo ASI air ...but can be used with other equipment including zwo.
      Please note if you have Altair cameras the driver is still in development.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.