#Very Low Power Litterbox Scooper Tracker

15 messages · Page 1 of 1 (latest)

latent bison
#

A fun little extremely low power device to track who last scooped the litterbox and who has the high score. I wanted to 'gamify' one of our house chores. 🐱

This device uses no binary sensor for buttons. It gets woken up from deep_sleep, and then parses the gpio number that woke it up, updates the screen & home assistant, and goes back to sleep ASAP.

Parts used:

  • LilyGO TTGO T5 V2.3 ESP32 - with 2.13 inch E-paper E-ink
  • 2 clicky buttons
  • 2 100ohm resistors
  • some holed prototyping board
  • a LiPo battery
  • a bit of 3d printing magic

The magic of extreme low power comes from these two tricks:

deep_sleep:
  id: deep_sleep_1
  run_duration: 30s
  esp32_ext1_wakeup:
    mode: ANY_HIGH
    pins:
      - GPIO25
      - GPIO26

and on startup:

esphome:
  on_boot:
    - priority: -100
      then:
          - lambda: |-
              switch (esp_sleep_get_ext1_wakeup_status()) {
              case 1 << 25:
              ESP_LOGD("custom", "GPIO 25 woke me up");
              break;
              case 1 << 26:
              ESP_LOGD("custom", "GPIO 26 woke me up");
              break;
              default:
              ESP_LOGD("custom", "Something I dont know woke me up");
              }
          - component.update: t5_display
latent bison
#

Very Low Power Litterbox Scooper Tracker

pseudo bison
latent bison
#

(paired with the SKU 001404 battery)

pseudo bison
#

Thanks! that one has a usb-serial built-in, so i don't have to order a separate one.

latent bison
#

yep

#

en de display: code is

display:
  - platform: waveshare_epaper
    id: t5_display
    cs_pin: 5
    dc_pin: 17
    busy_pin: 4
    reset_pin: 16
    model: 2.13in-ttgo-b74
    full_update_every: 30
    update_interval: never
    rotation: 90
pseudo bison
#

❤️ bedankt voor de snelle reactie!

latent bison
#

ik check even of ie zonder dat ik mn rootpasswords en politieke affiliatie deel in een github gist kan steken

#

what are you going to make? 🙂 (laten we in 't engels doorgaan voor de deelbaarheid)

pseudo bison
#

I have a 3d printer with octoprint. I already have some nice things attached to it through a esp8266(automatic camera cover, filament runout sensor). I want to add a small display to it and some controllable LED strips. A e-ink display would be nice, so I can show some other stuff when the printer isn't running on it, without being annoying.

#

(the printer is in my bedroom, so that's why I am using a automatic camera cover)

latent bison
#

check - then you probably dont need 99% of my yaml since most of it is to do extreme low power (basically: off) and still know which button was pressed to wake it up