inaborefax.blogg.se

Trashtimer
Trashtimer




trashtimer
  1. Trashtimer how to#
  2. Trashtimer code#
trashtimer

Trashtimer code#

Now you also have no excuse for forgetting to take out your trash! Here's the code and here's the board design. The state's three-person ‘Farm Laborers Wage Board’ is expected to deliver a report to state Department of Labor Commissioner Roberta Reardon on Sept. When you use TrashTimer, items which are moved into. If ( debounceButton( ACK_WEEK_ELAPSED_PIN ) ) TrashTimer is a simple preference panel which can automatically remove individual items from the trash. 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.

Trashtimer how to#

How to uninstall a Mac app using this powerful tool.

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. TrashSize 1.0.1 TrashTimer 1.2 << First Before 76 77 78 79 80 81 82 83 84 85 86 Next Last >.

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