My PoE Attic switch is FAILing, ESPHome PWM fans to the rescue? DIY

Поделиться
HTML-код
  • Опубликовано: 8 июн 2023
  • This is my last ditch effort to cool down my attic PoE switch that runs my cameras.. of course I had to hook it all up to Home Assistant to monitor the temps and control the PWM fans!
    The code for the ESP32:
    text_sensor:
    Send IP Address
    - platform: wifi_info
    ip_address:
    name: Fanhub IP Address
    Send Uptime in raw seconds
    - platform: template
    name: Fanhub Uptime
    id: uptime_human
    icon: mdi:clock-start
    sensor:
    - platform: wifi_signal
    name: Fanhub WiFi Strength
    update_interval: 30s
    - platform: dht
    pin: GPIO15
    temperature:
    name: "Temperature"
    humidity:
    name: "Humidity"
    update_interval: 10s
    - platform: pulse_counter
    pin: GPIO13
    name: Fanhub Fan Speed1
    id: fan_pulse1
    unit_of_measurement: 'RPM'
    filters:
    - multiply: 0.5
    count_mode:
    rising_edge: INCREMENT
    falling_edge: DISABLE
    update_interval: 3s
    - platform: uptime
    name: Fanhub Uptime
    id: uptime_sensor
    update_interval: 60s
    on_raw_value:
    then:
    - text_sensor.template.publish:
    id: uptime_human
    Custom C++ code to generate the result
    state: !lambda |-
    int seconds = round(id(uptime_sensor).raw_state);
    int days = seconds / (24 * 3600);
    seconds = seconds % (24 * 3600);
    int hours = seconds / 3600;
    seconds = seconds % 3600;
    int minutes = seconds / 60;
    seconds = seconds % 60;
    return (
    (days ? to_string(days) + "d " : "") +
    (hours ? to_string(hours) + "h " : "") +
    (minutes ? to_string(minutes) + "m " : "") +
    (to_string(seconds) + "s")
    ).c_str();
    output:
    - platform: ledc
    pin: GPIO27
    frequency: 10000 Hz
    id: fanhub_pwm1
    fan:
    - platform: speed
    output: fanhub_pwm1
    name: "Fanhub Fan1"
    🔥These links support my madness🔥
    💲 NordVPN: www.bmbsucks.com
    💲 Members-Only Punishment: bit.ly/bmbmembers
    💯These are my other Socials💯
    🔹Twitter: bit.ly/BMBTw
    🔹Instagram: bit.ly/bmbinstagram
    🔹Tik-Tok: bit.ly/bmbtock
    🔹Discord: bit.ly/BMBDISCORD
    ✉️P.O. Box for Mail✉️
    Byte My Bits
    P.O. Box 77
    Haysville, KS 67060
  • НаукаНаука

Комментарии • 62

  • @calebjpryor
    @calebjpryor Год назад +11

    Welcome to the rabbit hole of ESPHome and DIY Sensors! One of us! One of us! One of US!

  • @ConfidentGrips
    @ConfidentGrips Год назад +5

    loved your safety glasses

  • @septenaryshrub2587
    @septenaryshrub2587 Год назад +5

    I love how Jason’s safety glasses are his eyelids.

    • @medditapp3267
      @medditapp3267 2 месяца назад +1

      it's the thought that counts...?

  • @knappe3223
    @knappe3223 Год назад +5

    You could always just put the POE switch in the garage. Garage is still hot but not 140+ hot. Thats what I did. Bought a HD husky shelving unit, put a rack, printer, and the media server stuff all on it. I also dont have to crawl in the attic every time to change lines.

  • @smithleon
    @smithleon Год назад +4

    all this stuff is so janky, but I LOVE it :) Never stop doing these videos, they are hilarious.

    • @pjohnson21211
      @pjohnson21211 Год назад

      it is NOT janky....he's just doing a POC to make sure it works....someday it won't and the next POC will be set up :-)

  • @dragoon1269mn
    @dragoon1269mn Год назад +1

    Your eye protection methods are world class :D

  • @MrAlekoy
    @MrAlekoy Год назад +1

    Nice, and impressive getting that to work first try without letting the magic smoke out of anything :D

  • @oldcomputergeek
    @oldcomputergeek Год назад +2

    My wife loved this video. Had we not spent years downsizing, she's convinced our basement would look just like yours! She's right! My "shop" these days is a 5x8 shed that contains a w/d AND a 100 gallon take of water. Luckily, my "doomsday prepper" space is small. But hey, all our stuff fits in the space we have. Our space is just a little smaller. I agree with some of the other comments - keep making these videos!😂

  • @Poncho42
    @Poncho42 Год назад

    The chaos in this video is palpable. And I love it and I'm here for it.
    I'm also glad I'm not the only person who does projects in this fashion

  • @dan_lev
    @dan_lev Год назад +4

    Just FYI, I'm pretty sure we'd all watch a BmB Home Cleanup episode. I'm sure it would be just as entertaining.

    • @Bytemybits
      @Bytemybits  Год назад +1

      Oh some things should be left to the imagination 😂

  • @MikeHarris1984
    @MikeHarris1984 Год назад +1

    I remember when you put that switch up there and I was going, "eeeeekkkkk that is not going to last!!" I dont know how hot it gets where you're at, but here in Phoenix, it will get to 210+ in the attic in the summer... and any equipment will just get radiation heat just pouring through the roof like a microwave! My new home I built in 2019 has a foil lined OSB roof sheething to help prevent radiation heat from coming through into the attic... lowers temps by about 30°, in a nearly 230° attic in the summer time its horrible.

  • @fanaticdavid
    @fanaticdavid Год назад

    I'm pretty sure I was around when you posted the video about putting that PoE switch in the attic. Man, time flies!
    Well done on getting the ESP32 working as intended on the first try. In your shoes, I probably would've fried it lol. We definitely need to see part deux on this!

  • @TheRubernck21
    @TheRubernck21 Год назад +8

    Would it make sense to add standard connectors to your wires, so if a fan goes out, it will be much faster to swap a fan, so you dont spend an hour in the attic?

    • @Bytemybits
      @Bytemybits  Год назад +6

      Well…
      Maybe.
      But…
      Fccccck…
      Ok
      No.
      But yes.
      😶

  • @QRoberts
    @QRoberts Год назад

    been planning on a switch in my roof for a while now and I love the idea of your cooling solution, would love to see part 2

  • @MadMike78
    @MadMike78 Год назад

    I remember when you installed it in the attic. How time flies!

  • @onlyzach1
    @onlyzach1 Год назад +2

    I'm super impressed, I'd never be able to do that haha. Give us a part 2!

    • @Bytemybits
      @Bytemybits  Год назад

      Part 2 might be a completely revised version 😂

  • @Firespyer
    @Firespyer Год назад

    Love the eyelid safety glasses

  • @Hackogas
    @Hackogas Год назад +1

    Yoo! The main king

  • @DJSammy69.
    @DJSammy69. Год назад

    Jason, King of YOLOing!

  • @Darkk6969
    @Darkk6969 Год назад

    Love the ESP32. Very capable little things. Once you flash it with a custom firmware you never have to update it again unless you need to change the code. That's a big advantage over the Raspberry Pi as you have to keep the OS updated. Would love to see part two of this video of getting it installed.

  • @WJCarpenter
    @WJCarpenter Год назад

    I did a project (Ventbot on hackaday) controlling PWM fans with an ESP32 running ESPHome. (I guess that's why the algorithms suggested this video to me.) A couple of problems you didn't run into, but might run into later.....
    - Most PWM fans don't come to a full stop, even at 0% PWM. For your situation, I guess you will probably just unplug them when you want that. (I routed the power feed through a MOSFET and switched that off with an ESP32 pin when I wanted to turn the fans completely off.)
    - I also ran the PWM control signal through a small signal transistor. That makes a more reliable input to the fan in case signal levels coming out of the ESP32 aren't exactly what it wants.
    - I found reading the tachometer directly from the fan to an ESP32 pin to be unreliable. It was sometimes accurate, sometimes wildly wrong. The reference circuit for motherboards uses a voltage divider for signal conditioning. I found that works great. As an interim step, you might try to measure the voltages of the tach outputs of each of your fans. You might be endangering your ESP32.

    • @WJCarpenter
      @WJCarpenter Год назад

      RUclips removes any comments of mine that contain links. I guess it thinks it might be comment spam. Anyhow, you might be interested in looking at "Modified PWM and tach wiring". Nudge, nudge, wink, wink.😇

  • @digi3218
    @digi3218 Год назад

    I saved the video to a list for the future.. ESPs are awesome and I will find uses for them lol

  • @Gekking
    @Gekking Год назад

    I would love to see a part 2 of this

  • @OBD01
    @OBD01 Год назад

    Three years already...huh of course we want a part 2

  • @Chris_In_Texas
    @Chris_In_Texas 11 месяцев назад

    I am all for this, but you made it so complicated! Why not just use POE to power the fans. Works well, I use it for all my ESP32's and 8266's as well. The more I can power by poe the better as its all on large UPS' as well. You can power lighting and all sorts of stuff off POE as well as other POE powered switches. 👍🤠 The other option is to pull the cables into the basement where people with basements put their network stuff to stay cool! 😁

  • @MikeHarris1984
    @MikeHarris1984 Год назад

    I am creating a set of Universal boards...
    Were I have an ESP chip on the board with various pinouts going out. On the board, I also have build in BMP280 temp sensor, 2 110v relays to control 110v devices, and other pin outs for fans and stuff and other needed sensors like that... and in the program interface, i have a webpage running on the ESP that also conencts to ESPHOME, and on the webpage, you select the PIN you are using, and name its function, and if you need a PWM signal for speed, you select that on the PWM pin, and blah blah blah... But all on a single board for random items like this for my HA... its just a small credit card sized board and connected to my HA and runs a webpage on it... so i get all the data from it and setup automations for it to run out via HA. and used the web interface to set the names and functions...

    • @MikeHarris1984
      @MikeHarris1984 Год назад

      I am also creating a larger board for converting Wired home alarms, to rip thier controller off, and then wire up all the door and window sensors around the house into it. Then have those feed to HA so I have a door/window open/close sensor WIRED for every window and door in my house. Doing a small run of these boards too.
      If you are interested in these boards, i'll send you a couple of each...

  • @michaelgleason4791
    @michaelgleason4791 Год назад

    "You're going to have to bear with this tangled web of weird things I've been doing." Yep definitely a BmB video

  • @russgifford
    @russgifford Год назад +1

    Hilarious. I can't stop thinking why in the world would you put a switch in an attic ...

  • @james589
    @james589 Год назад

    Well, we gotta see the end result now!

  • @jimholloway1785
    @jimholloway1785 Год назад

    Was that a bud light you were drinking today?

  • @LonestarWargaming
    @LonestarWargaming Год назад

    What’s the temp/humidity sensor you’re using??

  • @defcry_again
    @defcry_again Год назад

    Hey! Would you make a guide how to host Lemmy server on a home server? UNRAID or so?

  • @mysmtpservices4818
    @mysmtpservices4818 Год назад

    That was interesting. Can you go through the steps on how you got it at linked up.

    • @Bytemybits
      @Bytemybits  Год назад

      Maybe but im 80% sure i did it in the worst way possible (tying 12v to 5v like I did)

  • @triplerinse
    @triplerinse Год назад

    Esphome is amazing

  • @abowers
    @abowers Год назад

    The face you make when you are using the nailer.

  • @Americancosworth
    @Americancosworth Год назад

    He wants to run Christmas lights in July.... ;P

  • @th0m
    @th0m 11 месяцев назад

    0:42 LMG/LTT has apparently conditioned me in a way I didn't realize until now. My brain immediately switched off assuming this was an ultra cheesy transition to a sponsor spot. This is bad. I need to figure out the IRL undo cmd

  • @BansheeBunny
    @BansheeBunny Год назад

    There are industrial POE switches with an operating temperature of 140F.

  • @byrd203
    @byrd203 Год назад

    2:58 I see anther thing to replace those bulbs do explode I have had one do that so switch it out forked one if you value your pocket book leds last 10 years or more

  • @BenReese
    @BenReese Год назад +1

    So.... Why not just poke the wires through the ceiling and mount the attic switch to the ceiling?

  • @patteahan8704
    @patteahan8704 Год назад

    Safety squint!

  • @johnathansmith1003
    @johnathansmith1003 Год назад

    Time to upgrade that halogen to an led big boi.

  • @Domrockt
    @Domrockt Год назад

    on a scale from 1 to 10 your F*ked squirrel Boy :D

  • @michaelgleason4791
    @michaelgleason4791 Год назад

    14:55 always just shove everything into one hole.

  • @digi3218
    @digi3218 Год назад

    Should have named it only fans

  • @bluegizmo1983
    @bluegizmo1983 Год назад

    Or you could... I dunno... maybe STOP putting electronic devices in the attic where ambient temperatures regularly hit 150 to 160 degrees fahrenheit during the summer! 😂

  • @jamess1787
    @jamess1787 11 месяцев назад

    Stop using safety squints and put on safety glasses. Easier to see what youre doing when youre eyes are open. 😅

  • @NOX-ID47
    @NOX-ID47 Год назад

    You'd have better aim if you didn't close your eyes at the critical moment when you need them the most...

  • @TechySpeaking
    @TechySpeaking Год назад +2

    First

  • @jonathan.sullivan
    @jonathan.sullivan Год назад

    First, S**k it Nate

  • @mattroon2808
    @mattroon2808 Год назад +5

    Fanhub…. Or Onlyfans?

    • @trakkasure
      @trakkasure Год назад +1

      There can be only one.. OnlyFanHub

    • @Bytemybits
      @Bytemybits  Год назад +1

      I think we have a winner!