Pages: [1]   Go Down
Author Topic: ATtiny85 to time & control a relay  (Read 729 times)
0 Members and 1 Guest are viewing this topic.
USA
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Retired and loving it!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I live full time in an RV and there is a ventilation fan that I would like to enhance with a timer. The ultimate goal is to push a button and have the fan run for a short time (15-30 minutes..?) or push another button to cause it to run for maybe an hour. Of course there would need to be a button or other means of cancelling the timer function if necessary.

I was thinking that an ATtiny85 might be a good route to go.  Any thoughts or suggestions would be greatly appreciated.
Logged

57 61 79 6e 65 20 43 61 72 70 65 6e 74 65 72

Offline Offline
Jr. Member
**
Karma: 0
Posts: 79
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You could get some ideas from this:

http://www.forkrobotics.com/2012/05/relay-control-over-i2c/
Logged

Dubuque, Iowa, USA
Offline Offline
Edison Member
*
Karma: 45
Posts: 2471
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

An ATTiny will do it fine and is what I'd recommend. You don't even need a crystal if you don't mind being a few seconds off in your timing.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 79
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Exactly, and I agree: I don't think he would need the precision in his timing with fan.

Anyway, good luck with your project!!! smiley-grin
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 126
Posts: 8472
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I live full time in an RV
Likewise, great lifestyle eh?

I concur with the above, a tiny85 will perform that function easily.

_______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

USA
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Retired and loving it!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for all the input folks! I appreciate it. Yes, full-timing in a RV is great!  I'm still trying to put this project together.. Being retired, I don't get in a big hurry to do anything these days  smiley  So I now have a couple of ATiny85's ... one to practice with (and potentially let the smoke out of) and one for after I have the bugs worked out. I'm figuring on taking the RVs 12vdc and a 5 volt regulator (plus a couple of caps on the input & output) to bring it down to 5v for the ATiny..  I have relays that are for 12 vdc operation (both the coil as well as the contact side. I also have some small(-ish) arcade-style buttons that are backlit with some LEDs for the timer function. Again, I want to push one and have the fan run for a shorter time (10-15 minutes..?) and another one will turn it on for longer.. around an hour. No crystal since it really doesn't matter if it runs 15 minutes versus 16.5 minutes, etc.  I'll breadboard this all up this weekend and see what happens. Next is the code for the ATiny.. I'm planning to use my Arduino Uno for that.. I have already found the code I can use to go that route.  So.. any input on circuit configuration or components (instead of, in addition to what I have already mentioned).. would certainly be appreciated.
Logged

57 61 79 6e 65 20 43 61 72 70 65 6e 74 65 72

Pages: [1]   Go Up
Jump to: