Elektroda.com
Elektroda.com
X

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

dheenhasty 1092 6
  • 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 :

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

    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.

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

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

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

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

    Cool? Ranking DIY
    About Author
    dheenhasty
    Level 12  
    Offline 
    dheenhasty wrote 111 posts with rating 15, helped 2 times. Been with us since 2023 year.
  • #2
    p.kaczmarek2
    Moderator Smart Home
    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 and I already started working on case:
    Modify Generic Temp / Hum sensor to add more capacity and usb c capability Modify Generic Temp / Hum sensor to add more capacity and usb c capability Modify Generic Temp / Hum sensor to add more capacity and usb c capability Modify Generic Temp / Hum sensor to add more capacity and usb c capability
    It's MAX7219 + DHT11 + IR receiver + photoresistor

    With my devboard:
    Modify Generic Temp / Hum sensor to add more capacity and usb c capability
  • #3
    error105
    Level 14  
    I also liked the max7219 recently :D


  • #4
    p.kaczmarek2
    Moderator Smart Home
    It's very similar for me, but on WB2S / BK7231T, along with DHT11, IR receiver and photoresistor:
    Modify Generic Temp / Hum sensor to add more capacity and usb c capability
  • #5
    error105
    Level 14  
    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.



  • #6
    p.kaczmarek2
    Moderator Smart Home
    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 better.

    I've just experimented with scrolling as well, and I feel like static text is more comfortable for me.

    Ultimately, I plan to connect the events sent to the LED strips and light bulbs in the room to the IR receiver, thanks to which a fairly nice remote control will be able to, among others:
    - turn on/off LED strips and bulbs
    - change their brightness level (and individually and in groups?)
    - change color/enable animation
    - set predefined color settings, e.g. the "work" button - cold white and "for the evening" - warm white


    I will also rather add a change in the brightness of the display relative to how bright it is in the room. Everything within my firmware:
    https://github.com/openshwprojects/OpenBK7231T_App
  • #7
    error105
    Level 14  
    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 old TV and receiver :)