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

Sdílet
Vložit
  • čas přidán 8. 06. 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
  • Věda a technologie

Komentáře • 62

  • @calebjpryor
    @calebjpryor Před rokem +11

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

  • @ConfidentGrips
    @ConfidentGrips Před rokem +5

    loved your safety glasses

  • @septenaryshrub2587
    @septenaryshrub2587 Před rokem +5

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

  • @smithleon
    @smithleon Před rokem +4

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

    • @pjohnson21211
      @pjohnson21211 Před rokem

      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 Před rokem +1

    Your eye protection methods are world class :D

  • @knappe3223
    @knappe3223 Před rokem +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.

  • @Poncho42
    @Poncho42 Před rokem

    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

  • @MrAlekoy
    @MrAlekoy Před rokem +1

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

  • @oldcomputergeek
    @oldcomputergeek Před rokem +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!😂

  • @MikeHarris1984
    @MikeHarris1984 Před rokem +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.

  • @onlyzach1
    @onlyzach1 Před rokem +2

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

    • @Bytemybits
      @Bytemybits  Před rokem

      Part 2 might be a completely revised version 😂

  • @dan_lev
    @dan_lev Před rokem +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  Před rokem +1

      Oh some things should be left to the imagination 😂

  • @fanaticdavid
    @fanaticdavid Před rokem

    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!

  • @Firespyer
    @Firespyer Před rokem

    Love the eyelid safety glasses

  • @QRoberts
    @QRoberts Před rokem

    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

  • @DJSammy69.
    @DJSammy69. Před rokem

    Jason, King of YOLOing!

  • @WJCarpenter
    @WJCarpenter Před rokem

    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 Před rokem

      CZcams 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.😇

  • @MadMike78
    @MadMike78 Před rokem

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

  • @Hackogas
    @Hackogas Před rokem +1

    Yoo! The main king

  • @Darkk6969
    @Darkk6969 Před rokem

    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.

  • @michaelgleason4791
    @michaelgleason4791 Před rokem

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

  • @digi3218
    @digi3218 Před rokem

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

  • @TheRubernck21
    @TheRubernck21 Před rokem +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  Před rokem +6

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

  • @Gekking
    @Gekking Před rokem

    I would love to see a part 2 of this

  • @russgifford
    @russgifford Před rokem +1

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

  • @Chris_In_Texas
    @Chris_In_Texas Před rokem

    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 Před rokem

    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 Před rokem

      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...

  • @james589
    @james589 Před rokem

    Well, we gotta see the end result now!

  • @Americancosworth
    @Americancosworth Před rokem

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

  • @abowers
    @abowers Před rokem

    The face you make when you are using the nailer.

  • @OBD01
    @OBD01 Před rokem

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

  • @triplerinse
    @triplerinse Před rokem

    Esphome is amazing

  • @mysmtpservices4818
    @mysmtpservices4818 Před rokem

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

    • @Bytemybits
      @Bytemybits  Před rokem

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

  • @th0m
    @th0m Před rokem

    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

  • @Domrockt
    @Domrockt Před rokem

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

  • @defcry_again
    @defcry_again Před rokem

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

  • @patteahan8704
    @patteahan8704 Před rokem

    Safety squint!

  • @LonestarWargaming
    @LonestarWargaming Před rokem

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

  • @jimholloway1785
    @jimholloway1785 Před rokem

    Was that a bud light you were drinking today?

  • @BansheeBunny
    @BansheeBunny Před rokem

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

  • @BenReese
    @BenReese Před rokem +1

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

  • @johnathansmith1003
    @johnathansmith1003 Před rokem

    Time to upgrade that halogen to an led big boi.

  • @byrd203
    @byrd203 Před rokem

    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

  • @michaelgleason4791
    @michaelgleason4791 Před rokem

    14:55 always just shove everything into one hole.

  • @digi3218
    @digi3218 Před rokem

    Should have named it only fans

  • @bluegizmo1983
    @bluegizmo1983 Před rokem

    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! 😂

  • @NOX-ID47
    @NOX-ID47 Před rokem

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

  • @jamess1787
    @jamess1787 Před rokem

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

  • @TechySpeaking
    @TechySpeaking Před rokem +2

    First

  • @jonathan.sullivan
    @jonathan.sullivan Před rokem

    First, S**k it Nate

  • @mattroon2808
    @mattroon2808 Před rokem +5

    Fanhub…. Or Onlyfans?