Low Power operations
-
Hi,
I would like to test running the LoPy in a power saving way. The idea is, that we put a signal on a GPIO pin, this should trigger a transmission via LoRa. I read in the product description that there is a coprocessor to enable something like that.
An extra ELP-coprocessor that can monitor GPIOs, the ADC channels and control most of the internal peripherals during deep-sleep mode while only consuming 25uA
I didn't find an example or documentation on how to make the coprocessor wake up the LoPy.
I found in the documentation though how to put the LoPy into deepsleep :-) https://docs.pycom.io/pycom_esp32/library/machine.html#machine.deepsleep
Thanks,
Christoph
-
@tobz as @rcolistete said, it's available in the current stable firmware as well, 1.18.1.r1 (docs)
-
@tobz What about 'machine.pin_sleep_wakeup()' of firmware 1.19.0.x ?
-
Has there been update to this? Its an old thread but also the best one i've found on the topic.
Still nothing in the docs about this as far as I've found.
-
According with info below it should be in the 1.6.5.b1 version
@constantinos said in New firmware release, version 1.6.4.b1:
Thanks Daniel,
Is it possible to wake from deepsleep when a pin changes status?
Constantinos
@daniel said in New firmware release, version 1.6.4.b1:
@constantinos not on this release, but it will be on the next one.
but
@daniel said in New firmware release 1.6.5.b1 (GC bug fixed):
Hello everyone,
We have fixed that long annoying GC bug that was causing lots of unexplainable crashes. The full change log is the following:
- Update to the latest IDF.
- Dump the registers on the stack before a gccollect.
- Allocate the mptask stack and TCB statically. This resolves all the weird issues found with threading and the gc.
- Add timeout_chars parameter to the UART constructor. https://docs.pycom.io/pycom_esp32/library/machine.UART.html#machine.uart.init
doesn't say anything about it.
But maybe next one doesn't mean the very first next one. ;)
-
The ULP coprocessor is there physically but there's no Python interface to access it yet (there's hardly a C interface either, it's still very much under development at Espressif)
You can read about the C interface if you're interested: http://esp-idf.readthedocs.io/en/latest/ulp.html