Add a shutoff timer to your bathroom fan

Adding this board (translated) to your bathroom fan will turn it into a smart device. It’s designed to automatically shut off the fan after it’s had some time to clear humidity from the room. It replaces the wall switch which normally controls these fans by converting the fan connection to always be connected to mains.  The board draws constant power to keep the ATtiny13 running via a half-wave rectification circuit. A single LED that rises from the center of the PCB lights up to signal that the fan is in operation, but it is also used as a light sensor, similar to the LED communications hack from a couple of days ago. When the lights go on in the bathroom the microcontroller will turn on the exhaust fan via a Triac. It will remain on until the light level in the bathroom drops.

There’s an interesting timing algorithm that delays the fan startup, and varies the amount of time it will stay on in the dark depending on how long the bathroom lights were on. This way, a longer shower (which will build up more humidity) will cause the fan to remain on for the base of five minutes, plus one minute longer for every two minutes the bathroom was in use. Pretty smart, and quite useful if your bathroom sees high traffic from several family members.

Comments

  1. Pedro says:

    Pretty inter sting but a little overpowered for me I think. My extractor fan has an off the shelf (B&Q, not exactly speciality) timer.

    I wouldn’t have gone down the microcontroller route, but instead connect the fan to the mains the control board in parallel with the light, then just have a resistor and capacitor driving an SCR/triac or relay. The fan comes on when you switch the light on (capacitor charges/current glows to the triac) and switches off when the capacitor drains. SO your timing is set by the RC time constant. Simple and cheap. I know ATtiny13As are like £1.20, but I do love a simple analogue circuit!

  2. Quvmoh says:
  3. shaeffer says:

    I agree with Pedro; I was thinking that this is a good hack but there is way to keep it simple! =)

  4. takeritapart says:

    I think a humidity sensor would be a lot better than counting how long the lights have been on.

  5. ARV says:

    А humidity sensor is a lot better but much more expensive! :)

  6. echodelta says:

    Unless it has a raspberry gas detector it needs to have a manual override both off and on. Switch at the command seat.

  7. Drackar says:

    I wouldn’t use it, because I would really HATE to have something that automatically turns on the noisy bathroom fan every time i go in at two am to take a leak waking everyone up.

    I installed a $12 timer dial from home depot. Works great. Does anything from one minute to a full hour.

  8. Garbz says:

    Customise it. You don’t take a dump for less than 2 min and you don’t take a piss for more than 2 min right? So just add some dead time to this all starting.

    Love the power design. Running the microcontroller directly from mains through a bridge containing a zener. Neat. Dangerous too. Does this circuit have a specific name?

  9. dukeofmuffins says:

    @ Garbz

    I don’t know about you, but I need more than 2 minutes. I rather enjoy taking my dumps.

  10. Just taking the time to say, Cool Project.

  11. mahoney says:

    Second what Pedro said. A microcontroller is not the horse for this course. It does look neat though.

  12. Greg says:

    Clears the _humidity_ from the room…not sure that is what they are after…

  13. Tyler says:

    That’s a cool idea.

    But practically speaking, for airing out the bathroom after people have gone number two and clearing humidity, I like the off-the shelf timers like this:

    Even though it’s not a hack, I wouldn’t go with out one.

  14. Grod says:

    Why bother with the “more minutes for a longer shower” feature? Why not just work out (A) the extraction rate of the fan (usually printed on it, but de-rate what it says to play safe) then work out (B) the volume of the bathroom. The maximum time you’d need is B/A.

  15. kak says:

    Needs a fart firmware update

  16. Aidan H says:

    I dont know about every other country but in the UK we’ve had bathroom fans like this for 10 years?

  17. Monty says:

    Mike, I’ve been thinking about building something like this myself for a while now. and I think the attiny route is perfect. Dunno why so many peeps have to leave neg replies – most of the fun is in building the thing (at least for me) who cares what makes it tick (I can cure my wife’s insomnia by explaining such things). Big advantage of microcontroller route is you can experiment with the software. The noisy fan at 2am problem is one I planned to overcome by using gradually falling and rising light levels to determine a rough period of night and then pwm the fan to run slower during the times ‘it’ thinks it needs to keep the noise down. Okay – I’m a geek – I need to get a life yada-yada but this is a useful as well as cool project. Well done mate.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 96,650 other followers