<p>I would recommend the <a href="http://www.raspberrypi.org/tag/pi-noir/" rel="noreferrer">PiNoir Camera</a>. Since it has no IR-filter attached, it's perfectly made for nightly observations. If you need the Raspberry just to calculate Skyglow in general, you could try to collect all light and bundle it to a beam, then measure its intensity.</p>

<p>What also came to mind is: When calculating the rating of the night, or a point in the sky, consider moon phases in your calculations. A bright and full moon will significantly raise average sky-glow and vice versa.</p>

CC BY-SA 3.0
2014-10-03T23:44:39.403Z
Thank you for your help. Would the lack of an IR filter create misleading results since light pollution is not IR? I would expect that this would contribute to noise, but I could be mistaken.
rp.beltran
CC BY-SA 3.0
2014-09-25T14:27:33.617Z
2014-09-25T15:46:38.820Z
2014-09-25T15:46:38.820Z
DrFeelgood
<p>Well, light, and the resulting sky glow comes in a lot of different wavelengths, so the first question you need to ask yourself is what range are you looking for?  If this project is intended to give someone a good idea as to whether it is worth their while to drag out the telescope on a given night, chances are you only care about human visible wavelengths (but don't underestimate the amateur radio astronomers in your area!).  My phone's camera will pick up light in the near-infrared, so you want to be careful.</p>

<p>Secondly, you need a camera with very low noise.  If you go into a windowless room with the lights off, and take a picture, you want to have as close to 0x000000 rgb measurement from every resulting pixel as possible.  A magnitude 0 star will only produce 2.08 microlux, so electrical noise can alter your results significantly.</p>

<p>Third, and this may be obvious, make yourself a cardboard "horizon shield" (a name I made up) to block any direct sources of light.</p>

<p>And if it isn't of vital importance to use an actual camera, since you are using a raspberry pi, you might just want to go with a lux meter instead. <a href="https://www.modmypi.com/adafruit-digital-luminosity-sensor" rel="nofollow">This one</a> has a separate meter for the human visible wavelength, and the noise should be very low, depending upon how you wire it and what voltage you supply.</p>

CC BY-SA 3.0
2014-10-03T23:39:22.567Z
Thanks for the advice. My problem with the lux meter is that I would like to map out where the light pollution is like in the photo on this page on [sky and telescope](http://www.skyandtelescope.com/astronomy-news/observing-news/measuring-skyglow-with-digital-cameras/) .Do you know what other camera specs will be important? For example, I am not sure what kind of exposures, gain, megapixels, etc. I would need for this project. Thanks again.
rp.beltran
CC BY-SA 3.0
2014-10-05T05:18:39.030Z
I don't think megapixels would be an important factor.  I would imagine that multiple short exposures would be of more use in mapping than a single long one.  I don't know anything about gain I'm afraid, so I'll have to let someone else take up this torch.
IchabodE
CC BY-SA 3.0
2014-10-03T20:52:16.270Z
2014-10-03T20:52:16.270Z
IchabodE
<p>I am leading a project for my High School NASA Club, and am looking for some advice. The goal of our project is to use a Raspberry Pi to control a camera that takes photos of the sky, and uses the photo to calculate sky glow, and create a map of where it in the sky is there the most sky glow. After calculating sky glow the device would add it to a plot that shows how sky glow varies throughout the year, and creates a nightly twitter post rating the night for Astronomy. I currently have working code that when given a picture, it will convert down to greyscale, and then find the brightness map, and find an average sky glow. The part that I am stuck on is in figuring out what kind of camera to use. I don't know if the RPi camera module would work for taking photos of the stars, or if I would be better suited using a USB webcam with it. I am not sure what factors are important in this decision at all. Also, once the camera is set up, what would be the best process for calibrating it to get values that agree most closely with accepted ones? I couldn't decide if this should go on the Astronomy, Raspberry Pi, or Photography Stack Exchange, but I chose this one since sky glow may be something astronomers calculate a lot. Thank you for your help.</p>

CC BY-SA 3.0
2014-09-21T10:30:17.557Z
Definitely sounds like an interesting and useful project, I wish you the best of luck!  I would think you need a camera that can "see well in the dark", possibly one that can take a digital picture over a period of time.  I am not an expert in this area, just my personal thoughts.
Jonathan
CC BY-SA 3.0
2014-09-23T17:15:58.133Z
Also remember that you'll need a tracking device if you have longer exposure times in order to accurately estimate the sky glow.
Takku
CC BY-SA 3.0
2014-09-23T21:38:23.587Z
Why would it need a tracking device if it is looking at the whole sky? Even if stars streak, shouldn't the average brightness levels stay about constant? If not, what do I track, where zenith was?
rp.beltran
<photography><light-pollution>
Sky Glow calculations
rp.beltran
# Sky Glow calculations

(Asked by: username_0 on 2014-09-20)

I am leading a project for my High School NASA Club, and am looking for some advice. The goal of our project is to use a Raspberry Pi to control a camera that takes photos of the sky, and uses the photo to calculate sky glow, and create a map of where it in the sky is there the most sky glow. After calculating sky glow the device would add it to a plot that shows how sky glow varies throughout the year, and creates a nightly twitter post rating the night for Astronomy. I currently have working code that when given a picture, it will convert down to greyscale, and then find the brightness map, and find an average sky glow. The part that I am stuck on is in figuring out what kind of camera to use. I don't know if the RPi camera module would work for taking photos of the stars, or if I would be better suited using a USB webcam with it. I am not sure what factors are important in this decision at all. Also, once the camera is set up, what would be the best process for calibrating it to get values that agree most closely with accepted ones? I couldn't decide if this should go on the Astronomy, Raspberry Pi, or Photography Stack Exchange, but I chose this one since sky glow may be something astronomers calculate a lot. Thank you for your help.

**Tags:** photography, light-pollution
> **Comments:**
> **username_1**: Definitely sounds like an interesting and useful project, I wish you the best of luck!  I would think you need a camera that can "see well in the dark", possibly one that can take a digital picture over a period of time.  I am not an expert in this area, just my personal thoughts.  
> **username_2**: Also remember that you'll need a tracking device if you have longer exposure times in order to accurately estimate the sky glow.  
> **username_0**: Why would it need a tracking device if it is looking at the whole sky? Even if stars streak, shouldn't the average brightness levels stay about constant? If not, what do I track, where zenith was?  

---

## 2 answers

### Answer by username_4 on 2014-10-03. Score: 4 | Accepted answer

Well, light, and the resulting sky glow comes in a lot of different wavelengths, so the first question you need to ask yourself is what range are you looking for? If this project is intended to give someone a good idea as to whether it is worth their while to drag out the telescope on a given night, chances are you only care about human visible wavelengths (but don't underestimate the amateur radio astronomers in your area!). My phone's camera will pick up light in the near-infrared, so you want to be careful.

Secondly, you need a camera with very low noise. If you go into a windowless room with the lights off, and take a picture, you want to have as close to 0x000000 rgb measurement from every resulting pixel as possible. A magnitude 0 star will only produce 2.08 microlux, so electrical noise can alter your results significantly.

Third, and this may be obvious, make yourself a cardboard "horizon shield" (a name I made up) to block any direct sources of light.

And if it isn't of vital importance to use an actual camera, since you are using a raspberry pi, you might just want to go with a lux meter instead. [This one](https://www.modmypi.com/adafruit-digital-luminosity-sensor) has a separate meter for the human visible wavelength, and the noise should be very low, depending upon how you wire it and what voltage you supply.

> **Comments:**
> **username_0**: Thanks for the advice. My problem with the lux meter is that I would like to map out where the light pollution is like in the photo on this page on [sky and telescope](http://www.skyandtelescope.com/astronomy-news/observing-news/measuring-skyglow-with-digital-cameras/) .Do you know what other camera specs will be important? For example, I am not sure what kind of exposures, gain, megapixels, etc. I would need for this project. Thanks again.  
> **username_4**: I don't think megapixels would be an important factor.  I would imagine that multiple short exposures would be of more use in mapping than a single long one.  I don't know anything about gain I'm afraid, so I'll have to let someone else take up this torch.  

---

### Answer by username_3 on 2014-09-25. Score: 5

I would recommend the [PiNoir Camera](http://www.raspberrypi.org/tag/pi-noir/). Since it has no IR-filter attached, it's perfectly made for nightly observations. If you need the Raspberry just to calculate Skyglow in general, you could try to collect all light and bundle it to a beam, then measure its intensity.

What also came to mind is: When calculating the rating of the night, or a point in the sky, consider moon phases in your calculations. A bright and full moon will significantly raise average sky-glow and vice versa.

> **Comments:**
> **username_0**: Thank you for your help. Would the lack of an IR filter create misleading results since light pollution is not IR? I would expect that this would contribute to noise, but I could be mistaken.  

---

