As for every DIY project, the intention was to reuse existing code and components. And as for every project, it kind of worked quickly, but the protoype wasn't stable enough and required numerous improvements.
The idea was basically to copy the working principle of an Unihedron SQM and use the same USB serial communication. For those who are allergic to 3D print or coding, I strongly recommend to buy the original Unihedron.
The sky quality depends heavily on the quality of the night, but also on the altazimuth coordinates in the sky. The advantage of SQM is therefore twofold:
creating a sky map to identify the best portions of the sky
measuring the Magnitude Per Square ArcSecond (mpsas) for each photo, in order to select only the best ones
For this second reason, we decided to mount the SQM on the telescope, in order to measure the MPSAS in the portion of sky photographed. We could have located the SQM in a fixed position in order to compare the quality of each night, but the altazimuth information would be missing.
Sky quality map of our backyard observatory
Dark blue: mpsas > 20.5
Light blue: mpsas <20.5
Grey: artificial horizon
The list of components is short:
Adafruit TSL2591 High Dynamic Range Digital Light Sensor
BMP-180 Barometric Pressure/Temperature/Altitude Sensor
Arduino Uno (I guess a Nano might be sufficient)
3D-printed enclosure
10° plastic lens
Cables and SUB-D9 connectors male/female
For cabling plans, please refer to the schematics:
The code is 99% copied from this source:
https://github.com/gshau/SQM_TSL2591
However, I faced an issue that forced me to modify the code. Approximately after 5 seconds, the Arduino loops were stopped. My code is full of comments from dozens of failed attempts, and doesn't deserve to be copied here! If you have any questions, feel free to email us at the address provided in the contacts.
The enclosure was 3D-printed, enabling different positions of the sensor. The difficulty is to locate the sensor exactly at the right focus point of the plastic lens. Not an easy job, since it must be done in the x,y,z directions. If you need the 3D plans, just mail us