Skip to content

Instantly share code, notes, and snippets.

@topshed
Last active July 25, 2022 18:30
Show Gist options
  • Save topshed/73fef7ae7f91fad4353305c7963eb513 to your computer and use it in GitHub Desktop.
Save topshed/73fef7ae7f91fad4353305c7963eb513 to your computer and use it in GitHub Desktop.
Solar Power Pi - TPL5110

Equipment

  • Powerbosst 500
  • Pimoroni LipoShim
  • Adafruit TPL5110

Imgur

Process

  • Resistor on TPL5110 DELAY pin sets period (120K = 1 hour)

  • TPL5110 sets DRV pin HIGH -> NPN transistor collector goes HIGH -> LipoShim EN pin goes HIGH

  • LipoShim switches on power to Pi

  • Pi boots

  • Pi does stuff

  • Pi shuts down after 3 minutes

  • dtoverlay sets GPIO 4 [-> TPL5110 DONE pin] HIGH as it powers off

  • TPL5110 sleeps

  • TPL5110 DRV pin goes to ~1.24v - enough to 'close' the NPN transistor switch, so LipoShim EN pin is pulled LOW

  • LipoShim cuts power to Pi

Note: No RTC so Pi relies on network for time When TPL5110 DRV pin goes to 1.24v, this is not LOW enough to trigger En pin on LipoShim - hence the need for transistor switch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment