logo elektroda
logo elektroda
X
logo elektroda

Modify Generic Temp / Hum sensor to add more capacity and usb c capability

dheenhasty 
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 :)


About Author
dheenhasty wrote 111 posts with rating 17 , helped 2 times. Been with us since 2023 year.

Comments

p.kaczmarek2 26 Mar 2023 05:03

Very nice DIY project, but for a final version, you should consider shortening all the wiring. As I understand, it's currently a prototype. I am also working on BK7231 DIY, my prototype is on breadboard... [Read more]

error105 27 Mar 2023 13:07

I also liked the max7219 recently :D [Read more]

p.kaczmarek2 29 Mar 2023 00:10

It's very similar for me, but on WB2S / BK7231T, along with DHT11, IR receiver and photoresistor: https://obrazki.elektroda.pl/6627523200_1680041400_thumb.jpg [Read more]

error105 29 Mar 2023 08:05

You need to work on the font because it's not very readable :) Yesterday I changed the scrolling of the text for a change, because it's more comfortable for me to look at. [Read more]

p.kaczmarek2 29 Mar 2023 10:17

Exactly, it's not a font issue, but the fact that there were no spaces between the characters during the test from the photo. Hence their merging. I think after introducing spacing it will be much... [Read more]

error105 29 Mar 2023 10:52

They have one disadvantage of these displays, at minimum they are much too strong, I see it gives a strong pumpkin plexi :) as for the ir, a nice idea, in the living room I will give you to control the... [Read more]