willem4ever/bjorn,
I have connected a BPW85
http://www.vishay.com/docs/81531/81531.pdf and a 10k resistor to the A/D input of an RFXSensor (40063,64,65,66 or 60011)
.|---VDD
.|
| |
| | 10k
| |
.|---- A/D
.|
..\ collector
...| BPW85
../ emitter
.|
.|--- GND
This is the output from the A/D input for the different light situations:
Dark results in 4.9Volt
A001F13D4A RFXSensor addr:01F1/497 RH:131,94% Barometer:1192hPa Voltage:4,9 bits=32 from SLAVE
A001F13D4A RFXSensor addr:01F1/497 RH:131,94% Barometer:1192hPa Voltage:4,9 bits=32 from SLAVE
A001F13D4A RFXSensor addr:01F1/497 RH:131,94% Barometer:1192hPa Voltage:4,9 bits=32 from SLAVE
About half dark results in 3.4Volt
A001F12A8A RFXSensor addr:01F1/497 RH:84,09% Barometer:863hPa Voltage:3,4 bits=32 from SLAVE
A001F12A8A RFXSensor addr:01F1/497 RH:84,09% Barometer:863hPa Voltage:3,4 bits=32 from SLAVE
A001F12A8A RFXSensor addr:01F1/497 RH:84,09% Barometer:863hPa Voltage:3,4 bits=32 from SLAVE
Full light results in 0.4Volt
A001F10509 RFXSensor addr:01F1/497 RH:-12,88% Barometer:195hPa Voltage:0,4 bits=32 from SLAVE
A001F10509 RFXSensor addr:01F1/497 RH:-12,88% Barometer:195hPa Voltage:0,4 bits=32 from SLAVE
A001F10509 RFXSensor addr:01F1/497 RH:-12,88% Barometer:195hPa Voltage:0,4 bits=32 from SLAVE
The A/D input can also be used for a humidity or barometric pressure sensor or any DC voltage up to 10volts.
The RFreceiver program calculates the HR and hPa using the A/D voltage and displays the calculated values in case a HR or hPa sensor is connected to the A/D input. These values can be ignored because the value is the BPW85 voltage now.
Bert