hi All,
In Luke's schematic,the fixed resistor (R9) that provides the other
half of the LDR potential divider has a specified value of 100
Kohm ...
http://github.com/lukeweston/Pebble/blob/master/pebble-sch.png
Up until now, in the prototypes, we've been using a JayCar sourced
LDR, which has a stated range of 48 Kohm to 140 Kohm ...
http://jaycar.com.au/productView.asp?ID=RD3480
Some quick testing shows ...
- Bright sunlight outside: 300 ohm
- Bright room: 2.5 Kohm
- Moderate room or fluorescent: 6 Kohm
- Not so bright room: 13 Kohm
- Very, very dark: 10 Mohm
I found that the best range of analog input on the Arduino (ADC value
ranging between 10 and 1010), with moderate room lighting appearing
somewhere in the middle ... was achieved with R9 being a 10 Kohm
resistor. When using a 100 Kohm resistor for R9, I found that the
input range just wasn't as good for normal circumstances, e.g. ambient
room light.
Looking at Thomas' and Mitch's Pebble parts spreadsheet, I can see
that the LDR being ordered from Farnell has a stated range of 10 Kohm
to 27 Kohm. Which is different from the JayCar LDR ... so, I don't
think that we know yet, what the best choice for R9 is, until we do
some testing. But, I'd suggest that it is not likely to be 100 Kohm.
http://au.farnell.com/jsp/search/productdetail.jsp?sku=1652638
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I have a light meter that measures Lux. And, once we get our hands on
a working prototype, I'd like to start the process of calibration, so
that our light sensing produces a consistent result (in Lux). This
probably means having a calibration table in the software, with some
sensible default values, that will have to be tweaked for each
device. Especially depending upon the ultimate choices for the LDR
and R9.
Will probably also have to calibrate the DS18B20 1-wire temperature
sensor as well ... I've been seeing more variation between devices
than I expected :(
I'm going through the Aiko-Node code, improving it to handle the
various hardware configurations we have (Pebble, Gateway, etc) and
aiming to have configurable pin-outs for LDR, Temperature, LCD (with
and without 4094 8-bit shift register ... also 2 rows versus 4 rows),
and calibration tables ... in EEPROM as required. For the Aiko-
Gateway, there is also a Nintendo TouchPanel to calibrate for a given
"background control image".
It would be good to have a common, modular code base, as much as
possible, to avoid fragmentation of the various efforts.
cheers andyg (@geekscape)