MicroPython 'Deep Sleep' for longer battery life - Raspberry Pi plant watering monitor

Поділитися
Вставка
  • Опубліковано 31 бер 2023
  • The Achilles’ heel of my Raspberry Pi Pico soil moisture sensor is currently the relatively short life of its rechargeable LiPo battery. Here’s how I got it to last much longer by using machine.deepsleep in MicroPython to power it down to a dormant state, waking up again after a set duration.
    Code can be found here: github.com/PaterPracticus/Pla...
  • Наука та технологія

КОМЕНТАРІ • 4

  • @XanthiumIndustries
    @XanthiumIndustries Рік тому +1

    Nice work

    • @paterpracticus
      @paterpracticus  Рік тому

      Thank you. I'm testing it out now with solar cells to see if I can keep the watering monitor going independently.

  • @MainzerKaiser
    @MainzerKaiser 10 місяців тому +1

    Really nice video and explanations. Would it be possible to change the idea so that a sensor wakes up the pico instead of checking every x minutes? I am planning on a mailbox sensor using a magnetic reed switch, which shall wake up the pico and send a signal once the mailbox was opened. That is why a time interval like in your case is not suitable for me.

    • @paterpracticus
      @paterpracticus  10 місяців тому

      I'm pretty sure that would be possible judging from the articles I read. I only used the time interval so I knew to check the plants exactly on the hour, rather than leaving it to chance that I would be walking by. BTW, I finally got my water monitor to be entirely solar powered, so that also might also be interesting in your case - ua-cam.com/video/-UjNNdQtsy4/v-deo.htmlsi=oiBHuTYb1v2Udm-Z