Hello all,
i'm kind of fed up to change battery on the generic sensor every month, so my first idea is to add the ability to plug the sensor on usb, but since it will be on permanent power, i want it to be able to measure other things.
So first step the usb :
a simple AM117 chip and an USB C plug (available easily everywhere) later. my sensor is on usb.
i have remove the CBU from the main board cause my first test indicate that the temperature is climbing due to BK Chip warming up the main board. everything is plug thru a chip usb outlet and a long cable.
i have still some issue with the SHT sensor. seems like he's really sensitive to the mainboard so temperature does move a lot.... issue is not here if i put the device in sleep mode for 2 min and then take measure so until if found why i will do like this.
but ok next step adding some other sensor. i want to measure Air Quality, and the luminosity of the room.
for Air Quality i have buy some SGP30, the little brother of SHT30 should be easy to do a driver on this since it's a I2C too.
for the luminosity, .... i have failed in my basket and buy so UV sensor instead of Lux sensor ..... but anyway it permit me to deep dive on ADC. i don't use the battery anymore and the sensor is a GUVA-S12D. so it's relying on ADC.
so easy to implement for this one. and i have done a generic ADC Driver to calculate the effective mV measured, so in future for every sensor relying on adc, we can just use the generic one and relying of HASS or other tools to interpret it correctly.
so the GUVA Driver was derivated from the generic one (it's just a detection of UV index / Mv measure ).
but not really usefull in my case. so i will try to find lux sensor instead.
So next step implementation of the SGP .... but i think it will take some time
and then we will remove some component on the main board (the regulator who is no more needed)
and bonus i want to do a 3D printed case for all this, cause i don't have enough place on the old one.
EDIT :
SGP added and first driver version works pretty well

i'm kind of fed up to change battery on the generic sensor every month, so my first idea is to add the ability to plug the sensor on usb, but since it will be on permanent power, i want it to be able to measure other things.
So first step the usb :

a simple AM117 chip and an USB C plug (available easily everywhere) later. my sensor is on usb.
i have remove the CBU from the main board cause my first test indicate that the temperature is climbing due to BK Chip warming up the main board. everything is plug thru a chip usb outlet and a long cable.
i have still some issue with the SHT sensor. seems like he's really sensitive to the mainboard so temperature does move a lot.... issue is not here if i put the device in sleep mode for 2 min and then take measure so until if found why i will do like this.
but ok next step adding some other sensor. i want to measure Air Quality, and the luminosity of the room.
for Air Quality i have buy some SGP30, the little brother of SHT30 should be easy to do a driver on this since it's a I2C too.
for the luminosity, .... i have failed in my basket and buy so UV sensor instead of Lux sensor ..... but anyway it permit me to deep dive on ADC. i don't use the battery anymore and the sensor is a GUVA-S12D. so it's relying on ADC.


so easy to implement for this one. and i have done a generic ADC Driver to calculate the effective mV measured, so in future for every sensor relying on adc, we can just use the generic one and relying of HASS or other tools to interpret it correctly.
so the GUVA Driver was derivated from the generic one (it's just a detection of UV index / Mv measure ).
but not really usefull in my case. so i will try to find lux sensor instead.
So next step implementation of the SGP .... but i think it will take some time

and bonus i want to do a 3D printed case for all this, cause i don't have enough place on the old one.
EDIT :
SGP added and first driver version works pretty well


Cool? Ranking DIY