forked from ev3dev/ev3dev
-
Notifications
You must be signed in to change notification settings - Fork 0
mindsensors.com Light Sensor Array (LightSensorArray)
David Lechner edited this page Feb 16, 2014
·
3 revisions
This sensor uses the msensor device class.
Value | |
---|---|
type_id |
157 |
# Modes | 2 |
Connection | I2C/M |
Vendor ID | mndsnsrs |
Product ID | LSArray |
Mode 0 | Mode 1 | |
---|---|---|
mode
|
MS-LSA-CAL
|
MS-LSA-RAW
|
Description | Calibrated values | Raw values |
num_values
|
8
|
8
|
value0
|
LED 0 | LED 0 |
Min |
0
|
0
|
Max |
100
|
???
|
value1
|
LED 1 | LED 1 |
value2
|
LED 2 | LED 2 |
value3
|
LED 3 | LED 3 |
value4
|
LED 4 | LED 4 |
value5
|
LED 5 | LED 5 |
value6
|
LED 6 | LED 6 |
value7
|
LED 7 | LED 7 |
units
|
pct (percent)
|
none |
dp (decimal places)
|
0
|
0
|
Commands are performed by writing the ASCII character value to register 0x41
Value | Description |
---|---|
W |
Calibrate to white |
B |
Calibrate to black |
D |
Put sensor to sleep (must disable polling or it will immediately wake because of being polled) |
P |
Wake up sensor (will return error if the sensor is sleeping) |
A |
Configure for American region (60 Hz electrical mains) |
E |
Configure for African/Asian/European region (50 Hz electrical mains) |
U |
Configure for universal frequency (default) |
Example:
$ echo -n -e "\x0x41W" > bin_data # calibrate white