Jan-Henrik Bruhn
44adefedb3
Fix overflow in very dark or noisy situations
2021-09-30 10:24:51 +02:00
rbaron
a00559a98b
Uses better LDR x lux model
2021-09-22 22:38:30 +02:00
rbaron
d2daefaf46
Updates ambient brightness estimation code
...
Also renames the `lux` field from `photo_read_t` to the more generic `brightness`.
2021-09-22 22:38:30 +02:00
rbaron
e32803d44d
Improvements to photo resistor-based lux estimation
...
- Code now compiles
- Estimation of the photo resistor resistance works
- Lux estimation from the photo resistor resistance needs more work and calibration
- Lux is now encoded in the BLE advertisement payload
2021-09-22 22:38:30 +02:00
chentadot
dcd0fc4ae1
Calculate photoresistor and some other fixes ( #3 )
...
prst_adc_photo_read() now calculates the photo resistor and return it as the lux level.
Added debug logging and fixed some syntax errors.
2021-09-22 22:38:30 +02:00
chentadot
c9b05859e4
First draft for Photoresistor
...
the code now should setup and use the photoresistor and read it's value by the adc.
the returned value is 0 just as a place holder until the correct values are measured.
2021-09-22 22:38:30 +02:00
rbaron
f0b3294f0f
Fixes possible overflow in the soil moisture BLE encoding
2021-04-26 20:40:54 +02:00
rbaron
463fdb5ef4
Corrects the raw ADC soil mesasure given the current input voltage
2021-03-31 20:12:47 +02:00
rbaron
d215d5f4a7
Sets transmitting power to +8dB
2021-03-31 18:37:50 +02:00
rbaron
6ec48b7188
Puts soil moisture reading into the BLE advertisement packet
2021-03-26 16:30:09 +01:00
rbaron
30162f4628
Cleans up logging
2021-03-26 13:45:28 +01:00
rbaron
25772def7e
ADC works for measuring the battery voltage
2021-03-17 19:08:17 +01:00