Unihedron SQM-LU User manual

Sky Quality Meter – Lens USB
SQM-LU
User manual


Unihedron SQM-LU Users manual
Table of Contents
1 Theory of operation................................................................................................................................3
1.1 Quick start.......................................................................................................................................3
2 Specifications.........................................................................................................................................4
3 Hardware connections............................................................................................................................5
2 Software development............................................................................................................................5
4 Commands and responses......................................................................................................................6
4.1 Commands......................................................................................................................................6
4.2 Response details............................................................................................................................. 7
4.2.1 Reading request.......................................................................................................................7
4.2.2 Calibration information request..............................................................................................8
4.2.3 Light calibration command.....................................................................................................9
4.2.4 Dark calibration command....................................................................................................10
4.2.5 Disarm calibration command................................................................................................11
4.2.6 Unit information....................................................................................................................12
4.2.7 Manually set light calibration offset..................................................................................... 13
4.2.8 Manually set light calibration temperature........................................................................... 14
4.2.9 Manually set dark calibration time period............................................................................ 15
4.2.10 Manually set dark calibration temperature..........................................................................16
4.2.11 Setting interval reporting parameters.................................................................................. 17
4.2.11.1 Interval reporting period setting....................................................................................... 18
4.2.11.2 Threshold setting for interval reporting............................................................................18
4.2.11.3 Interval setting response................................................................................................... 19
5 Electrical connection............................................................................................................................20
6 Mechanical installation........................................................................................................................ 20
6.1 Cover selection..............................................................................................................................20
6.2 Cover calibration.......................................................................................................................... 20
6.3 Cover maintenance........................................................................................................................21
7 Default settings.....................................................................................................................................22
8 Troubleshooting....................................................................................................................................23
9 Company contact information..............................................................................................................24
10 Glossary..............................................................................................................................................25
11 Appendix A – revision history........................................................................................................... 26
11.1 Manual revision history...............................................................................................................26
11.2 Protocol revision history............................................................................................................. 26
11.3 Feature revision history...............................................................................................................26
Revision 1.1 Page 1 Last modified: Jun 18, 2011

Unihedron SQM-LU Users manual
Illustration Index
Illustration 1: SQM-LU block diagram......................................................................................................3
Illustration 2: Front and back of unit..........................................................................................................4
Illustration 3: Housing..............................................................................................................................20
Illustration 4: Example cover calibration................................................................................................. 21
Index of Tables
Table 1: Command summary..................................................................................................................... 6
Table 2: Reading request response.............................................................................................................7
Table 3: Calibration information request response.....................................................................................8
Table 4: Light calibration response............................................................................................................9
Table 5: Dark calibration response...........................................................................................................10
Table 6: Disarm calibration response.......................................................................................................11
Table 7: Unit information request response..............................................................................................12
Table 8: Response for manual setting of light calibration offset..............................................................13
Table 9: Response for manually setting of light calibration temperature.................................................14
Table 10: Response of manually setting dark calibration time period......................................................15
Table 11: Response for manually setting of light calibration temperature............................................... 16
Table 12: Interval report........................................................................................................................... 17
Table 13: Response of viewing or setting interval reporting parameters................................................. 19
Revision 1.1 Page 2 Last modified: Jun 18, 2011

Unihedron SQM-LU Users manual
1 Theory of operation
The SQM-LU measures the darkness of the night sky to provide readings of magnitudes per square arc
second through a USB connection.
A light sensor (TSL237) provides the microcontroller with a light level, and readings from the
temperature sensor are used to compensate the light sensor readings for various operating temperatures.
Commands sent from a PC through the USB cable to the USB interface are relayed to the
microcontroller.
The microcontroller responds to commands by sending data strings to the USB interface which are then
relayed to the PC.
1.1 Quick start
1. Your computer must have the FTDI VCP driver installed. You can get the most updated driver
for your operating system from here: http://ftdichip.com/Drivers/VCP.htm
2. If you are using indows, then download and install the latest Knightware SQM-Reader from
www.knightware.biz/sqm . Follow the instructions for installing and using that software.
3. If you are using indows, Linux, or Mac, you can use the Perl scripts supplied on the CD.
Revision 1.1 Page 3 Last modified: Jun 18, 2011
Illustration 1: SQM-LU block diagram

Unihedron SQM-LU Users manual
2 Specifications
USB connection USB B connector (5m USB A to USB B cable supplied)
USB FTDI VCP driver, serial port emulator at 115200baud.
Physical Size 3.6” x 2.6” x 1.1"
Meter precision Each SQM-L is factory-calibrated. The absolute precision of
each meter is believed to be ±10% (±0.10 mag/arcsec²).
The difference in zeropoint between each calibrated SQM-L is
typically ±10% (±0.10 mag/sq arcsec)
Power requirement 18mA (from the 5V USB connection)
Operating temperature range -40°C to 85°C
Temperature Accuracy ± 2°C maximum at 25°C
Temperature update rate 4.3 seconds, 256 samples taken at 60Hz then averaged.
Revision 1.1 Page 4 Last modified: Jun 18, 2011
Illustration 2: Front and back of unit

Unihedron SQM-LU Users manual
3 Hardware connections
The SQM-LU requires one connection to a USB hub or a PC.
The maximum length cable per the USB specification is 15ft (3 meters).
2 Software development
The SQM-LU communicates as a standard serial port device using the FTDI software drivers which are
available for all major operating system platforms. http://ftdichip.com/ . The SQM-LU uses the FTDI
FT232R chip.
Once the driver is installed, commands can be sent to the SQM-LU using a serial terminal emulator to
the serial communications port that the device routes to.
When connecting the SQM-LU to a PC where the FTDI device driver is loaded, the serial port label
will be determined at connection time.
Each SQM-LU has a unique serial number usually with a prefix of “FT........”. This serial number can
be used to identify the exact SQM-LU device from other USB devices.
Interface Program overview:
–Data commands are sent to the SQM-LU, and it responds with a string of characters.
–A connection must be made to the serial port assigned to the SQM-LU.
Revision 1.1 Page 5 Last modified: Jun 18, 2011

Unihedron SQM-LU Users manual
4 Commands and responses
The SQM-LU accepts a sequence of characters as a command, then executes those commands and
usually provides a response of a sequence of characters.
4.1 Commands
Commands consist of a string of characters.
The first character is the command type
Revision 1.1 Page 6 Last modified: Jun 18, 2011

Unihedron SQM-LU Users manual
Command Description
rx Reading request
cx Calibration information request
ix Unit information request (note lower case “i”)
zcalAx Arm Light Calibration command
zcalBx Arm Dark Calibration command
zcalDx Disarm Calibration command
zcal5#####
###x
Manually Set Light Calibration Offset
zcal6#####
###x
Manually Set Light Calibration Temperature
zcal7#####
###x
Manually Set Dark Calibration Time Period
zcal8#####
###x
Manually Set Dark Calibration Temperature
0x19 Reset microcontroller (see bootloader). Hexadecimal value 19.
:Intel Hex firmware upgrade initiation (see bootloader)
P########xSet period (in seconds) for interval reporting to EEPROM and RAM for booting
and immediate use. Firmware feature=13.
p########xSet period (in seconds) for interval reporting to RAM for immediate use.
Firmware feature=13.
T########xSet threshold (in mag/arcsec2) for interval reporting only to EEPROM and RAM
for booting and immediate use. Firmware feature=13.
t########xSet threshold (in mag/arcsec2) for interval reporting only to RAM for immediate
use. Firmware feature=13.
Ix Request interval settings (note upper case “I”). Firmware feature=13.
Table 1: Command summary
Revision 1.1 Page 7 Last modified: Jun 18, 2011

Unihedron SQM-LU Users manual
4.2 Response details
4.2.1 Reading request
The “Reading” request “rx” commands the SQM-LU to provide the current darkness value as well as
all variables used to generate that result.
The format of the response is:
Column Value Description
0rIndicates that a reading is being returned.
2-8 06.70m Reading in magnitudes per square arc second.
Leading space for positive value.
Leading negative sign (-) for negative value.
A reading of 0.00m means that the light at the sensor has reached the
upper brightness limit of the unit.
10-21 0000022921Hz Frequency of sensor in Hz.
23-33 0000000020c Period of sensor in counts, counts occur at a rate of 460.8 kHz
(14.7456MHz/32).
35-46 0000000.000s Period of sensor in seconds with millisecond resolution.
48-54 039.4 Temperature measured at light sensor in degrees C.
Leading space for positive value.
Leading negative sign (-) for negative value.
55-56 Carriage return (0x0d), Line feed (0x0a).
Table 2: Reading request response
An example is:
r, 06.70m,0000022921Hz,0000000020c,0000000.000s, 039.4
01234567891012345678920123456789301234567894012345678950123456
Future revisions of this reading string will only modify reported values beyond position 54. Characters
0 to 54 may be considered stable.
Revision 1.1 Page 8 Last modified: Jun 18, 2011

Unihedron SQM-LU Users manual
4.2.2 Calibration information request
The calibration information request “cx” returns all data about the specific light sensor in the unit
required for to calculate a reading.
The format of the response is:
Column Value Description
0cIndicates that the calibration information is being returned.
2-13 00000017.60m Light calibration offset in magnitudes per square arc second.
15-26 0000000.000s Dark calibration time period in seconds with millisecond resolution.
28-34 039.4 Temperature in degrees C measured during light calibration.
Leading space for positive value.
Leading negative sign (-) for negative value.
36-47 00000008.71m Offset of light sensor based on manufacturing category.
49-55 039.4 Temperature in degrees C measured during dark calibration.
Leading space for positive value.
Leading negative sign (-) for negative value.
56-57 Carriage return (0x0d), Line feed (0x0a).
Table 3: Calibration information request response
An example is:
c,00000017.60m,0000000.000s, 039.4 ,00000008.71m, 039.4
012345678910123456789201234567893012345678940123456789501234567
Revision 1.1 Page 9 Last modified: Jun 18, 2011

Unihedron SQM-LU Users manual
4.2.3 Light calibration command
Calibration of the SQM-LU is done at the factory in a controlled light and temperature environment.
Executing the Light calibration command “zcalAx” arms the light calibration mode. Flipping the
switch to “unlock” triggers the light calibration and modifies the calibration values in the unit.
A calibrated light source of approximately 13.5fc is supplied to the sensor
The format of the response is:
Column Example value Description
0zIndicates that a “Calibration” response is being returned.
1ALight Calibration
2aarmed
3LL = Locked; Wait for unlock before calibrating after Arm command,
firmware upgrades are disabled.
U = Unlocked; Calibrate immediately after Arm command, Enable
firmware upgrade.
4-5 Carriage return (0x0d), Line feed (0x0a).
Table 4: Light calibration response
An example is:
zAaL
012345
Revision 1.1 Page 10 Last modified: Jun 18, 2011

Unihedron SQM-LU Users manual
4.2.4 Dark calibration command
Dark Calibration is done at the factory along with Light calibration and calibration temperature
recording.
Executing the dark calibration command “zcalBx” arms the dark calibration mode. Flipping the
switch triggers the dark calibration and modifies the calibration values in the unit.
Dark calibration is performed in a completely dark environment. Check a reading to ensure that the
period is correct after entering the dark environment, it could take a few minutes to collect an accurate
dark period. A dark period of only a few seconds is too small.
The format of the response is:
Column Example value Description
0zCalibration response is being returned.
1BDark Calibration.
2aArmed.
3LL = Locked; Wait for unlock before calibrating after Arm command,
firmware upgrades are disabled.
U = Unlocked; Calibrate immediately after Arm command, Enable
firmware upgrade.
4-5 Carriage return (0x0d), Line feed (0x0a).
Table 5: Dark calibration response
An example is:
zBaL
012345
Revision 1.1 Page 11 Last modified: Jun 18, 2011

Unihedron SQM-LU Users manual
4.2.5 Disarm calibration command
The Disarm calibration command “zcalDx” disarms calibration modes from being triggered by the
unlock mode.
The format of the response is:
Column Example value Description
0zCalibration response is being returned.
1xAll calibration modes.
2dDisarmed.
3LL = Locked; Wait for unlock before calibrating after Arm command,
firmware upgrades are disabled.
U = Unlocked; Calibrate immediately after Arm command, Enable
firmware upgrade.
4-5 Carriage return (0x0d), Line feed (0x0a).
Table 6: Disarm calibration response
An example is:
zxdL
012345
Revision 1.1 Page 12 Last modified: Jun 18, 2011

Unihedron SQM-LU Users manual
4.2.6 Unit information
Unit information command “ix” provides details about the software in the microcontroller.
The format of the response is:
Column Example value Description
0iIndicates that the unit information response is being returned.
2-9 00000002 Protocol number (8 digits). This will always be the first 8 characters
(after the “i,” response). This value indicates the revision number of the
data protocol to/from the SQM-LU. The protocol version is independent
of the feature version.
11-18 00000003 Model number (8 digits). The model value identifies the specific
hardware model that the firmware is tailored for.
20-27 00000001 Feature number (8 digits). The feature value identifies software features
independent of the data protocol.
29-36 00000413 Serial number (8 digits). Each unit has its own unique serial number.
37-38 Carriage return (0x0d), Line feed (0x0a).
Table 7: Unit information request response
An example is:
i,00000002,00000003,00000001,00000413
012345678910123456789201234567893012345678
Revision 1.1 Page 13 Last modified: Jun 18, 2011

Unihedron SQM-LU Users manual
4.2.7 Manually set light calibration offset
Calibration is done at the factory, however, in the case where calibration values must be restored or set
to something else, this command allows a new calibration value to be placed into the SQM-LU.
Executing the command “zcal5########.##x” manually sets the light calibration offset to the
value specified in “########.##”. The units are
magnitudes
arcsecond2
.
The format of the response is:
Column Example value Description
0zCalibration response is being returned.
25Manual Set Light Calibration Offset
4-15 00000017.60m Value that was set into EEPROM
16-17 Carriage return (0x0d), Line feed (0x0a).
Table 8: Response for manual setting of light calibration offset
An example is:
z,5,00000017.60m
0123456789101234567
Revision 1.1 Page 14 Last modified: Jun 18, 2011

Unihedron SQM-LU Users manual
4.2.8 Manually set light calibration temperature
Calibration is done at the factory, however, in the case where calibration values must be restored or set
to something else, this command allows a new calibration value to be placed into the SQM-LU.
Executing the command “zcal6########.##x” manually sets the light calibration temperature to
the value specified in “########.##”. The units are ºC.
Note: The SQM-LU records the temperature in a raw value with different resolution, so the reply back
may not be exactly the same as the value sent.
The format of the response is:
Column Example value Description
0zCalibration response is being returned.
26Manual Set Light Calibration Offset
4-9 019.0 Value that was set into EEPROM
10-11 Carriage return (0x0d), Line feed (0x0a).
Table 9: Response for manually setting of light calibration temperature
An example is:
z,6,019.0
0123456789101
Revision 1.1 Page 15 Last modified: Jun 18, 2011

Unihedron SQM-LU Users manual
4.2.9 Manually set dark calibration time period
Calibration is done at the factory, however, in the case where calibration values must be restored or set
to something else, this command allows a new calibration value to be placed into the SQM-LU.
Executing the command “zcal7#######.###x” manually sets the light calibration offset to the
value specified in “#######.###”. The units are in seconds.
The format of the response is:
Column Example value Description
0zCalibration response is being returned.
27Manual Set Light Calibration Offset
4-15 0000300.000s Value that was set into EEPROM
16-17 Carriage return (0x0d), Line feed (0x0a).
Table 10: Response of manually setting dark calibration time period
An example is:
z,7,00000300.00s
0123456789101234567
Revision 1.1 Page 16 Last modified: Jun 18, 2011

Unihedron SQM-LU Users manual
4.2.10 Manually set dark calibration temperature
Calibration is done at the factory, however, in the case where calibration values must be restored or set
to something else, this command allows a new calibration value to be placed into the SQM-LU.
Executing the command “zcal8########.##x” manually sets the light calibration offset to the
value specified in “########.##”. The units are ºC.
Note: The SQM-LU records the temperature in a raw value with different resolution, so the reply back
may not be exactly the same as the value sent.
The format of the response is:
Column Example value Description
0zCalibration response is being returned.
28Manual Set Light Calibration Offset
4-9 019.0 Value that was set into EEPROM
10-11 Carriage return (0x0d), Line feed (0x0a).
Table 11: Response for manually setting of light calibration temperature
An example is:
z,8,019.0
0123456789101
Revision 1.1 Page 17 Last modified: Jun 18, 2011

Unihedron SQM-LU Users manual
4.2.11 Setting interval reporting parameters
For firmware feature 13 and above, the SQM-LU is capable sending timed interval reports. Each
interval report is the same as the reading request report except that the serial number (feature 14 and
above) is attached at the end so that numerous reporting SQM-LUs can be distinguished from each
other.
The format of the interval report is:
Column Value Description
0rIndicates that a reading is being returned.
2-8 06.70m Reading in magnitudes per square arc second.
Leading space for positive value.
Leading negative sign (-) for negative value.
A reading of 0.00m means that the light at the sensor has reached the
upper brightness limit of the unit.
10-21 0000022921Hz Frequency of sensor in Hz.
23-33 0000000020c Period of sensor in counts, counts occur at a rate of 460.8 kHz
(14.7456MHz/32).
35-46 0000000.000s Period of sensor in seconds with millisecond resolution.
48-54 039.4 Temperature measured at light sensor in degrees C.
Leading space for positive value.
Leading negative sign (-) for negative value.
55-63 00000413 Serial number (8 digits). Each unit has its own unique serial number.
64-65 Carriage return (0x0d), Line feed (0x0a).
Table 12: Interval report
An example is:
r, 06.70m,0000022921Hz,0000000020c,0000000.000s, 039.4 ,00000413
012345678910123456789201234567893012345678940123456789501234567896012345
Revision 1.1 Page 18 Last modified: Jun 18, 2011
Other manuals for SQM-LU
1
Table of contents
Other Unihedron Measuring Instrument manuals
Popular Measuring Instrument manuals by other brands

TechnipFMC
TechnipFMC Sening MultiLevel instruction manual

Konica Minolta
Konica Minolta CM-23d instruction manual

Inficon
Inficon Transpector MPS operating manual

Rohde & Schwarz
Rohde & Schwarz NGU201 user manual

Global Laser
Global Laser LaserLyte L Series user guide

PCE Instruments
PCE Instruments PCE-SLT user manual