Online users
321
online users
|
Brightness sensor - based on CPM
GeneralThe CPM-BS is a kit. You receive the PCB with brightness sensor soldered in as well as a CPM module.How to buildRequired partsThe do-it-yourself version of CPM-BS consists of the PCB with on-board brightness sensor and the CPM module (Buy it here). Most of the additional parts you need to complete the brightness sensor can be bought from the electronics distributor Reichelt:public shopping cart:
BoxThe PCB is 57mm x 51mm in size and fits in a G201C plastic case with transparent cover (datasheet) from ELV (Best.Nr. 68-305-28).Assembly tipsYou need some experience in soldering, but there are no SMD parts to solder. Use an extra fine tip on your soldering iron, especially for soldering the CPM module on the 2x7 pin header. To make the ISP pinheader, cut off 2 x 3 pins from part SL 1X40G 2,54. Cut off 2 x 7 pins from part AW 122/20 to solder the CPM module onto the PCB. To fix the PCB in the box mount the two distance pieces with screws on the PCB and glue the distance pieces to the bottom of the box. You have to remove the plastic mouting sockets ar the bottom of the box because otherwise the device will not fit in. AntennaThe length of the lambda/4 wire antenna for 868,35 MHz is 86 mm.RExt calculationThe ISL29102 has responsiveness that is a square-root function of the light intensity intercepted by the photodiode in lux. Because the photodiode has a responsivity that resembles the human eye, conversion rate is independent of the light source (fluorescent light, incandescent light or direct sunlight).The output voltage VOut is a function of the light intensity E (given in lux) and the value RExt of the external resistor: VOut= 1.8muA*sqrt(E/100lux)*RExt RExt is used to set the light-to-voltage scaling constant. The compliance of the ISL29102's output circuit may result in premature saturation when an excessively large RExt is used. The output compliance voltage is 700mV below the supply voltage VDD. VDD is measured by the AD converter of the ATtiny84 aboard the CPM module. Note that VOut is measured relative to the reference voltage VRef of the ATTiny84. The reference voltage Vref is 1.1V so make sure that VOut does not exceed 1.1V even on very bright days or the measured value will be limited by the saturation. A sunny summer day gives far more than 100,000 lux. With a choice of RExt= 12kOhm, the maximum brightness you can measure is E= (Vref/RExt/1.8muA)**2*100lux= 259,345lux For evaluation purposes the resistor RExt can be replaced by a 50kOhm trimmer (part PT 6-L 50K: Einstellpotentiometer, liegend, 6mm, 50 K-Ohm? from Reichelt). FirmwareDownloadThe firmware is available from Berlios:CVS: http://cvs.berlios.de/cgi-bin/viewvc.cgi/culfw/culfw/Devices/CPM-BS/ Download bsfw.hex. InternalsIn normal operation, the brightness sensor measures and transmits the brightness every 2 minutes. For transmission the FS20 sensor protocol is used. The house code is fixed to A5CF, the device code is the sensor number which runs from 1 to 9.The brightness value is transmitted as 1024*VOut/VRef. This can be converted into the unit lux as follows: E= 100lux*(VOut/RExt/1.8muA)**2 with VRef= 1.1V and VOut= VRef*brightness value. User manualAfter powerup, the device reads its sensor number from the EEPROM. Possible sensor numbers are 1 to 9. The first ten transmissions (prelude mode) come every 8 seconds, then the transmission interval changes to 2 minutes (normal operation). To enter configuration mode hold down the button on the device until the LED comes on - this should take at most 8 seconds. Release the button then. The LED will indicate the sensor number (blink once= sensor number 1, blink twice= sensor number 2, etc.). There is a one second pause between subsequent blink sequences. If you press and release the button in the pause the sensor number is increased by one. The sensor number wraps around from 9 to 1. If you do not press the button for ten pauses, the device re-enters prelude mode followed by normal operation after ten transmissions. Documents
Created by: tostmann last modification: Monday 19 of April, 2010 [11:37:13 UTC] by tostmann |
Pictures Login |