Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Software "Off" mode? #178

Open
rdragonrydr opened this issue Nov 2, 2021 · 2 comments
Open

Software "Off" mode? #178

rdragonrydr opened this issue Nov 2, 2021 · 2 comments
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@rdragonrydr
Copy link

I've recently purchased one of these cameras, and mine has an integrated LiPo battery charger unit but no power switch (interesting oversight on the manufacturer's part...).

I unfortunately haven't had the chance to get into the ESP32's libraries yet (I'm still learning the 8266), so I'm not really up to adding this myself, but would it be possible to add a software power switch to this in a future release?

I'm looking for two features:

  • Power off via a button in the web browser interface (to deep sleep mode or equivalent)
  • Power off via pressing the reset button while it's on (noinit variable or RTC memory)

With of course being able to press the reset button while it's in the deep sleep/"off" mode to awaken it again.

I'd really appreciate if you could add this as a feature at some future time, or walk me through how this works so I could add it myself.

@easytarget
Copy link
Owner

In principle easy, add a 'sleep' URI to the webserver and sent the whole ESP into one of it's deep sleep modes ; also you may need to put the camera module to sleep separately.

Use an interrupt on one of the spare pins on the board to wake from the sleep and resume (so long as you re-awaken the camera and do any re-init, re-start the webserver, etc.. this may be a long list).

  • It may be easier to trigger a reboot on wake, unless fast wake is really important.

There is quite a lot of info about esp32 low power modes out there, it has several different sleep modes, some of which can keep the wiFi alive etc. and I know all gpio pins support interrupts. I regularly see this discussed in passing, but it's not something I have ever programmed for on this processor.

It's not a feature that I plan to add to this example though. There are other esp32 cam firmwares out there designed to work with IOT camera systems and frameworks that might already do something like this, and may be worth checking out.

@easytarget easytarget added back burner Low priority nice-to-haves enhancement New feature or request help wanted Extra attention is needed labels Dec 15, 2021
@easytarget
Copy link
Owner

I am leaving this issue open for reference; although I am archiving the project

@easytarget easytarget added wontfix This will not be worked on and removed help wanted Extra attention is needed back burner Low priority nice-to-haves labels Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants