<div id="geary-body"><div>The early boards based on the ESP32 (WiPy2, LoPy, FiPy, etc) had two design faults and could not achieve the claimed 10 uA deep-sleep current [1] [2]. Pycom issued a separate plug-in board and a library that brings the deep-sleep power down to 7--10 uA depending on the wake-sources configured: timers or GPIO interrupts. Note that I have not actually measured this deep-sleep power.</div><div><br></div><div>The ESP32 does not have the low-power peripherals that some of the low-power ARM-core devices have: STM32 from ST or EFM32 from Silabs. They have low-power UARTs (limited speed), timers, PWMs, capactive sensors, and so on, as well as convenient ways for various peripherals to trigger one another without waking the processor core. </div><div><br></div><div>In one application, we had a GPIO pin monitoring the RX line of a UART; the GPIO was connected to a hardware timer. Any activity on the RX line would keep resetting the timer. When the timer reached a
  certain count (line idle), it would activate a different GPIO to enable a line driver, then at a slightly later count, trigger a DMA controller that would feed a sequence of bytes to the UART. When the last byte had been sent, another hardware timer would start, and disable the line driver when it timed out. It took a bit of setting up to program the GPIOs, timers, DMA controllers, UARTs and event sequencer, and prepare the message to send, but after it had been set up, the system did it all without intervention from the processor.</div><div><br></div><div>Stephen Irons</div><div><br></div><div>[1] The GPIO pin that was meant to put the switching supply into a low-power mode was not in the RTC power domain and so was not usable in deep-sleep mode. The pin did not drive to the correct state, leaving the power supply in its high-performance mode, consuming ~10 mA.</div><div><br></div><div>[2] The chip select for the flash chip floats in the low-power, leaving the flash enabled, consu
 ming ~2.5 mA.</div></div><div id="geary-quote"><br>On Mon, 8 Jan, 2018 at 7:14 PM, Mike Field <hamster@snap.net.nz> wrote:<br><blockquote type="cite">Strange you should mention PyCom.<br><br>Today I received a baseboard (USB serial bridge, battery controller, uSD socket, and a few extras) and WiPy (ESP32 module incl WiFi and Bluetooth broken out to 0.1" headers) from the LTE Team Lead at PyCom who wanted to brag at the excellent low power during sleep - yet to test, but should be well under 50uA.<br><br>The PyFi boards look amazingly well made, arel fully certified and extreme well presented, in nice plastic cases with magnetic closures, and plenty of ESD foam. Made a very great first impression so much I am going to be nice to it!<br><br>At the same time I also got a $8 LOLIN32 Pro (ESP32, uSD socket, USB bridge LiPo mgmt also with MicroPython),  in a yellow aliexpress envelope, with an antistatic bag, and headers I have to solder on. But what more can I expect for the price?
 <br><br>Looking forward putting them both through their paces over the next few days as they have a very comparable freature set. The only difference might be the PCB antenna vs the ceramic antenna on the more expensive PyFi module, and the better power setup on the baseboard. It might also be fully tricked out with flash ROM.<br><br>If anybody is nterested in evaluatiing (a.k.a. 'play with') either of them, ping me an email...<br><br>Mike<div class="quote" style="line-height: 1.5"><br><br>-------- Original Message --------<br>Subject: Re: [chbot] [random, but interesting (RBI)] LoraWAN: Extremely long range, low power wireless communication<br>From: Stephen Irons <stephen@irons.nz><br>To: Christchurch Robotics <chchrobotics@lists.ourshack.com><br>CC: Christchurch Robotics <chchrobotics@lists.linuxnut.co.nz><br><br><br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In case you want to play around with LoRaWAN, https
 ://pycom.io/ sell <br>the 'LoPy', which gives you a LoRa modem and an ESP32 processor, with a <br>MicroPython interpreter. So you write your application in MicroPython <br>(Python3, almost the complete language, but with only a limited set of <br>libraries), and you have LoRa, LoRaWAN, Wi-Fi and Bluetooth <br>connectivity, with rapidly improving libraries for using the ESP32 <br>hardware devices for SPI, I2C, PWM, etc.<br><br>We developed a system for a client using the LoRa modem (the <br>spread-spectrum modulation) for short-ish-range communication through <br>bush, where its performance at low signal levels works well for us. We <br>do not use the whole LoRaWAN stack, as there is no LoRaWAN <br>infrastructure in our client's trial areas (remote Marlborough Sounds <br>and Haast), though Telecom was happy to set up a trial network for us <br>to test. It all worked fine, but battery life of the base station was <br>an issue; we needed a solar panel to provide enough power, and we ha
 ve <br>had bad experiences with solar panels in the bush, where dead leaves <br>and general muck block the panel. So we would also need a mast to get <br>the panel above dead-leaf level. Instead, we install large Lithium <br>primary cells which give well over a year's operation.<br><br>Stephen<br><br>On Sun, 7 Jan, 2018 at 7:02 AM, Mark Atherton <markaren1@xtra.co.nz> <br>wrote:<br>> Just been digging through Youtube and found some random but <br>> interesting projects/tutorials.<br>> <br>> Will post each as a separate subject.<br>> <br>> LoraWAN: Extremely long range, low power wireless communication <br>> https://www.youtube.com/watch?v=7n8t62anxIQ<br>> <br>> also https://www.youtube.com/channel/UCu7_D0o48KbfhpEohoP7YSQ/videos<br>> <br>> HNY, Mark<br>> <br>> <br>> <br>> _______________________________________________<br>> Chchrobotics mailing list Chchrobotics@lists.ourshack.com<br>> https://lists.ourshack.com/mailman/listinfo/chc
 hrobotics<br>> Mail Archives: http://lists.ourshack.com/pipermail/chchrobotics/<br>> Meetings usually 3rd Monday each month. See http://kiwibots.org for <br>> venue, directions and dates.<br>> When replying, please edit your Subject line to reflect new subjects.<br><br><br>_______________________________________________<br>Chchrobotics mailing list Chchrobotics@lists.ourshack.com<br>https://lists.ourshack.com/mailman/listinfo/chchrobotics<br>Mail Archives: http://lists.ourshack.com/pipermail/chchrobotics/<br>Meetings usually 3rd Monday each month. See http://kiwibots.org for venue, directions and dates.<br>When replying, please edit your Subject line to reflect new subjects.</markaren1@xtra.co.nz></blockquote></chchrobotics@lists.linuxnut.co.nz></chchrobotics@lists.ourshack.com></stephen@irons.nz></div></blockquote></div>