Author Topic: digispark ATTiny85 sleep mode and wake up with interrupt on P2  (Read 102 times)

mehulhirpara

  • Newbie
  • *
  • Posts: 6
digispark ATTiny85 sleep mode and wake up with interrupt on P2
« on: September 21, 2018, 10:12:37 am »
Hi All,

I am configuring PB2/P2 (external interrupt pin) for the interrupt based wake up and waiting for the interrupt with button press.

Board is powered by 5V supply (and not through USB), all the configurations is done in setup() itself and I am not using loop() at all. Therefore, expectation is the board should go into sleep mode while running idle thread and should wake up with interrupt.

Everything is working fine but I am not sure whether board is really going into sleep mode or not and how to check if board is in sleep state?


granzeier

  • Newbie
  • *
  • Posts: 21
Re: digispark ATTiny85 sleep mode and wake up with interrupt on P2
« Reply #1 on: October 12, 2018, 12:37:06 pm »
Can you cut the +5V line to the Digispark, and insert an ammeter? You could then use one program to exercise the board (maybe just an empty loop,) and record the baseline current reading. Then run your sleeping program, take the new current reading, and compare it to the baseline.