Introduction: ATTiny Push Button ON/OFF Controller

Ultra-Low Power Single push button ON/OFF controller based on ATTiny13/13A/25/45/85 for other MicroControllers and circuits application.

Simple mode features:

  • Ultra-Low Power 000.2uA (200nA)
  • Supported uControllers: ATTiny13/13A/25/45/85
  • Single push button ON/OFF

Advanced mode features:

  • Ultra-Low Power 000.2uA (200nA)
  • Supported uControllers: ATTiny13/13A/25/45/85
  • Hold down button to ON/OFF
  • External Shut down signal from other Micro-controllers or circuits

https://github.com/ErfanDL/ATTiny-PushButton-ON-OFF-Controller

Step 1: Arduino Chip Setup

Note

Please upload the bootloader first, then upload the code.

Arduino Chip SETUP

Arduino setup for ATTiny13/13A:

  • BOD: BOD Disabled
  • Bootloader: No bootloader
  • Clock: 128 KHz internal osc
  • EEPROM: EEPROM not retained

Arduino setup for ATTiny25/45/85:

  • Board: "ATtiny25/45/85 (No bootloader)"
  • B.O.D. Level (Only set on bootload): "B.O.D. Disabled (saves power)"
  • Chip: "ATtiny45"
  • Clock Source (Only set on bootload): "128 kHz (internal WDT)"
  • Save EEPROM (only set on bootload): "EEPROM not retained"
  • LTO (1.6.11+ only): "Disabled"
  • millis()/micros(): "Disabled (saves flash)"
  • Timer 1 Clock: "CPU (CPU frequency)"

Step 2: Circuits and Code