TinyZero with Accelerometer & Wake from Sleep


  • Newbie
  • *
    • Posts: 1
    • View Profile
I just purchased a Tiny Zero with the built-in accelerometer.  I would like to build a small app that goes into low-power mode and wakes up via an interrupt from the accelerometer if it detects significant movement.

I have the accelerometer working, but I'm looking for some sample code which puts it to sleep and codes the accelerometer to generate the interrupt appropriately.  From what I read people were soldering connections to make INT1 work on the proto board, but I'm wondering about the TinyZero which has it all integrated on the same board.

Thanks for your help.


  • Administrator
  • Full Member
  • *****
    • Posts: 20
    • View Profile
Hi Steve,

As can be seen in the TinyZero schematic and board files, the INT1 pin of the BMA250 accelerometer is only broken out to a solder pad on the bottom side of the board. This is the small copper circle labeled "INT1" next to the "BOOT" button.

Because of this, a wire would have to be soldered to this pad and then input to the processor via a Proto Board TinyShield. According to the official Arduino documentation for interrupts, any digital pin except for digital pin 4 is usable for interrupt input to the TinyZero processor.

If this is something you'd still like to pursue, I can look into getting some sample code for this.

Hope this helps.
- Hunter


SMF spam blocked by CleanTalk