Menu |
Prof /
LAN3-users-manualLANcube - a multispectral and multiangular sensor for the light at nightUser's Manual
Martin Aubé1, Ph.D. (PI) 1 Cégep de Sherbrooke, Sherbrooke, Québec, Canada July 24, 2019 Creative Commons Attribution-ShareAlike 4.0 International License AbstractLANcube (LAN3) is a new device intended to sample the multispectral and multidirectional properties of the direct artificial light at night into the urban or natural environment (indoor or outdoor). We expect that it will become a powerful tool to foster new research in the fields of the impact of artificial light at night on human health and natural environments. LANcube is a cube having on each of its face four sensors of various spectral response in the visible range (red, green, blue and clear). Each band has been calibrated in a way to deliver the integrated fluxes. Thanks to its multispectral capabilities, the sensor can provide an estimate of the illuminance, of the correlated color temperature (CCT), the Melatonin Suppression Index (MSI), the Induced Photosynthesis Index (IPI) and the Star Light Index (SLI). The minimum light level detected is 0.005 lux. LAN3 is based on arduino open source hardware so that it can be replicated by anybody. It comprise a real time clock, a remote RF control, a micro-SD card to store the data, a GPS module and a temperature/humidity sensor. LAN3 can be operated in automatic sampling mode or in manual sampling mode. HardwareIn the actual LAN3 version, only the a usb connector can be found on the backward face of the cube. That mean that we use the radio frequency remote control to manage the operating modes. Also, the micro SD card, is inside the box, so it is necessary to open the box lid to access the data. This choice was made to render the LAN3 as waterproof as possible. But in its actual version, the system have not been rated for underwater applications. Components listThe system consists of the following items:
EnclosureMain enclosureWe use the Carlon's jonction box (6 X 6 X 6 JUNCTION BOX) part number E989RRR-UPC. On the center of each face, we drill a 1.5 in diameter hole. On the rear face, we drill a 7/8 in diameter hole 1 inch above the bottom face to install the USB connector. On the same face about 1 in below the top, we drill a 3/16in diameter hole for the RGB LED. This face will act as a reference for the orientation of the LANcube. Assuming that in a road runner mode, this face is pointing backward. The rear face will hold the sensor #2, the right face the sensor #3, the front face sensor #4 and the left face sensor #5. Sensor #6 is on the bottom face while sensor 1 on the top (lid). 3D printed componentsSensor pelletsWe print 6 sensors pellets. This part will hold the sensors and will be glued from inside the box to act as plugs to the 1.5 in holes.
Internal supportThe internal support is an openwork structure that will fit loosely into the box. This structure support the various components. All of them are screwed on the support except for the GPS antenna and the RF push buttons receiver board that are secured with tyraps.
Wiring
1 Note that the best would be to change the code of the arduino to keep the same assignement for each button with the adafruit pad (A=automatic mode, B=Manual mode, D=take a manual measurement)
Cable AssemblyMechanical Assembly
Assembling steps
Components positions on internal structureSetting up the LANcube for measurements
Operating modesManual mode (Mode 0)This mode is activated by pressing button B about 2 seconds. When activated the LED will turn blue until you take a measurement. During the measurement, the LED is off. At the end of the measurement the LED will come back blue until next measurement. In the manual mode the data acquisition is started using button D of the remote control (press about 2 seconds on button D). When the request is detected, a sequence of measurements will be taken. Thanks to the auto gain and integration time algorithm, it is suggested to take a couple of measurements after powering up the LANcube. This will allow the auto gain and auto integration time algorithm to optimize the accuracy of the measurements. Note that auto gain and auto integration is looking to 5 sensors (excluding sensor 6 of the bottom face). As long as the system is not powered off, this startup procedure do not have to be done again. Change in gain or integration will be signaled by a purple LED blink. Automatic modeAutomatic mode is intended to sample the temporal variation of the light at night. To activate the automatic mode, press about 2 seconds on button A. The LANcube use variable integration time and variable gain to optimize accuracy while keeping the integration time as low as possible. In that mode, the LANcube will not wait between each measurements. We suggest this mode when it is time to use the LANcube on top of a car (road runner mode) in order to map the light field over large territories or to record temporal variation of the LAN in a room. To leave the automatic mode simply press on the B button for at least 3 seconds. You will know that you leaved the automatic mode when the LED will turn blue. The system will first finish the ongoing measurements and then wait for either a manual measurement or a return to automatic mode. During the automatic mode, a short red blink will be done at the end of each sensors acquisition. Green LED blinkA green LED blink indicate a problem with the SD card. You absolutely need to service the instrument because no data will be stored in such case. Double red LED blinkSuch behavior indicate that the GPS do not have a good connexion with satellites. Note that in such a case you can notice double red blinks. This is because that there is a red blink at the end of the acquisition of the six sensors while the GPS connexion problem red blink happen after each sensor reading. Downloading the data
Data formatThe data is structured in the following way for each equivalent column number: Shutdown of the LANcubeBefore powering off the LANcube, you should leave the automatic mode if activated. Simply press about 2 seconds on button B. Be sure that the LED do not blink anymore before powering off. You may have to wait about 5 seconds before powering off the cube after switching off automatic mode. This will let enough time for the current measurement sequence to be completed. Otherwise there is a risk of data file corruption on the micro SD card and it is possible that you will lose access to the data stored on the card. Failure of the clock batteryIn case of failure of the real time clock battery, the LANcube will lost its date and time after power off. Then the only way to restore the correct time is to:
Note that there will always have a little shift between the real GMT time and the time stored on the arduino. This correspond to the time between the compilation of the code and its upload on the arduino. The time stamp is actually created at the compilation step. |