there is a RC (2.2k + 10 uF) network parallel to person input turn on INT0/Arduino Pin eight/Attiny84 pin 5 for hardware Debouncing. This ensured the clicking switch does not flicker for the duration of high to LOW transition.
bypass Capacitor is a must on Vcc and Gnd pin of Attiny84, in any other case the MCU might restart when external load sucks an excessive amount of spike juice.
considering, the n-MOSFET used right here isn't always a logic-level MOSFET, voltage drop turns into widespread for modern-day greater than one hundred mA. With appropriate MOSFET and effective Battery packs, numerous Amps can be transferred.
4AA battery p.c. offers barely higher than 6 volt at some point of sparkling begin, which is higher than absolutely the maximum of Attiny84. A diode in collection may additionally assist to safe limit the deliver voltage.
there is touch resistant loss related to breadboard layout and electricity terminals, a soldered layout on protoboard/pcb can be more green.
sometimes the user switch, LED blink would possibly get tousled, resetting the MCU for restart will assist then.
Watch dog timer may be off by way of as much as +/- 20 % and temperature dependent, so timing isn't always ideal.
Brown out detection is disabled, on uncommon instances flash application would possibly get corrupted
Reliability examined for 8 hrs with around 1 hrs, 1 min, three sec off-time and 12 seconds on-time and gadget turned into observed operational with out problems. If there may be a likely trojan horse within the code, timing might mess up for different combinations.
There you've got it, one approach to all power saving issues with prototyping. save battery, keep on prices and store the environment!