![trashtimer trashtimer](https://www.piroplastic.com/wp-content/uploads/2010/04/trashtimer1-500x264.png)
Now you also have no excuse for forgetting to take out your trash! Here's the code and here's the board design. If ( debounceButton( ACK_WEEK_ELAPSED_PIN ) ) If ( weekStart + MILLISECS_IN_A_WEEK <= millis() & !weekElapsed ) Void flashLED( int numTimes, int flashDuration, int flashDelay )ĭigitalWrite( RESET_WEEK_PIN, HIGH ) // internal pull-up - switch will pull low to indicate resetĭigitalWrite( ACK_WEEK_ELAPSED_PIN, HIGH ) // internal pull-up - switch will pull low to indicate reset To program the ATtiny I used the Arduino IDE, a USBtinyISP in-system programmer and the ATtiny85 dev board.īoolean debounceButton( int pin, int bounceDelay = 750 ) The code for TrashTimer is very simple and counts milliseconds to determine when a week is up and the responds appropriately to the two button presses. However the intent was always to checkout what Fritzing Fab could produce, and boy am I impressed with their boards!! I had fun chasing down a bug caused by inadequate toner in the laser printer, which resulted in some very small gaps in a few key copper trces. Next I etched my own board using the same technique previously described and then soldered it up, programmed the ATtiny and powered it up. The second button is connected to pin 5 and is used to acknowledge that the timer has gone off, and thereby turning off the LED. The first, connected to pin 6 is used to reset the timer (ie the timer will expire 7 days after the button is pressed). The schematic doesn't show it but there are 2 buttons used in the circuit.
Trashtimer mac os#
What’s new in version 1.4 Updated on Version 1.4: Fully tested with Mac OS 10.8 Solved a problem starting TrashTimer automatically on Mac OS 10. Automatically removes individual files or folders from the trash after a configurable period of time. This is the first time I've used an ATtiny85 and am quite impressed with the possibilities they open up.Īs you can see Fritzing supports placing logos on the silkscreen, and as you'll see below the end result is very professional looking (well, in my opinion). TrashTimer is a prefpane for automatic trash deletion. As always I used Fritzing and it really only took a few minutes to have it skethed up. Truck and raced out in our pj's! TrashTimer now sits beside our bed and flashes a very bright blue LED that can only be stopped by pressing the button on the front of the project box. It's sad how many times we've been awoken by the sound of the When you use TrashTimer, items which are moved into. This is a simple project that has a simple purpose - to remind my wife or I to put our rubbish bins out for the council pickup the next morning. TrashTimer is a simple preference panel which can automatically remove individual items from the trash.