# Guide by Brenton; Makerverse Nano Power Timer

**URL:** <https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857>\
**Category:** Guides\
**Created:** [31 March 2022 13:00 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857 "2022-03-31T13:00:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brenton](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/brenton/32/5421_2.png) [@Brenton](https://forum.core-electronics.com.au/u/Brenton)\
**Post date:** [31 March 2022 13:00 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/1 "2022-03-31T13:00:00Z")

</div>

I have just shared content in Guides \> Raspberry Pi Pico: [**"Makerverse Nano Power Timer"**](https://core-electronics.com.au/guides/raspberry-pi-pico/makerverse-nano-power-timer/)  
  
 ![](https://core-electronics.com.au/media/faq/kbase/feature-makerverse-nano-power-timer.png)  
  
  
  
[**Read more**](https://core-electronics.com.au/guides/raspberry-pi-pico/makerverse-nano-power-timer/)

---

<div class="post-metadata">

**Author:** ![John122579](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@John122579](https://forum.core-electronics.com.au/u/John122579)\
**Post date:** [5 May 2022 01:16 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/2 "2022-05-05T01:16:00Z")

</div>

Tried using with ESP8266 weather station. The timer toggles power after set period, but does not turn it off completely. It does reset after program sets DONE pin high.  
Connections:  
Nano Timer ESP8266 (NodeMCU)  
Out + ----\> Vin  
Out- ----\> Gnd  
Dne ----\> Do (Pin 16)

This means it appears to be working as I remove my timing code from the Weather Station and it reboots on toggle meaning a new reading is uploaded. There is probably a small energy saving because there is no code running, but it is still connected to WiFi.

I could put it to sleep, but would rather it be off completely.

Any ideas?

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [5 May 2022 01:35 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/3 "2022-05-05T01:35:20Z")

</div>

Hi John,

Could you attach a photo with all your hardware connected? This seems strange! When you say “doesn’t turn off completely” what is it doing?

Keen to get to the bottom of this one!  
-James

---

<div class="post-metadata">

**Author:** ![John122579](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@John122579](https://forum.core-electronics.com.au/u/John122579)\
**Post date:** [5 May 2022 01:51 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/4 "2022-05-05T01:51:06Z")

</div>

![IMG_1193](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/f/f3e639c0dc2cf17a34ce3c81c8ca0a7df6595aa9.jpeg)

I have it inside at present to debug, so there would normally be a solar panel, Sunflower manager and Fuel gauge connected. This is the basic setup.

The nano timer toggles the power off/on. This reboots the ESP8226, it runs the code, sends DONE signal and nano resets.

---

<div class="post-metadata">

**Author:** ![John122579](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@John122579](https://forum.core-electronics.com.au/u/John122579)\
**Post date:** [5 May 2022 22:25 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/5 "2022-05-05T22:25:10Z")

</div>

Tried using nano timer with Rpi Pica as in the guide example (but flashing the onboard LED) code below.

````auto
from machine import Pin
from time import sleep

led = Pin(25, Pin.OUT)

DONE = Pin(15, machine.Pin.OUT)
# DONE = Pin(15, Pin.OUT)
DONE.off()

for i in range(10):
   led.value(1)
   sleep(2)
   led.value(0)
   sleep(2)
   i += 1
    
DONE.on() # Assert DONE signal; powers down Pico```
````

---

<div class="post-metadata">

**Author:** ![John122579](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@John122579](https://forum.core-electronics.com.au/u/John122579)\
**Post date:** [5 May 2022 22:27 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/6 "2022-05-05T22:27:26Z")

</div>

Continuation of previous post.

I get this error

File “flasher.py”, line 6, in   
NameError: name ‘machine’ isn’t defined

Getting rid of “machine” from “machine.Pin” makes it work and code runs turning on DONE Pin, but this does not turn off the power to the Rpi Pico!

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam/32/3562_2.png) [@Liam](https://forum.core-electronics.com.au/u/Liam)\
**Post date:** [6 May 2022 00:05 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/7 "2022-05-06T00:05:32Z")

</div>

Hi John,

Thanks for pointing that out! We’ll get the guide updated 🙂

What was that white wire connected to? If it’s holding that line low then the DONE pin can never switch off the power timer.

EDIT: Also note that the LED on the power timer indicates if the device is being powered through Vin - if the LED is on then the power timer will be feeding power.  
If your ESP is trying to go to sleep and activate the power at the same time - the capacitor onboard might be able to keep it powered for a bit longer

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/f/f8df1b3dff46f98c9001b2bd781a3a43dd953ee0.jpeg)

Liam

---

<div class="post-metadata">

**Author:** ![John122579](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@John122579](https://forum.core-electronics.com.au/u/John122579)\
**Post date:** [6 May 2022 01:16 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/8 "2022-05-06T01:16:43Z")

</div>

Attached to voltmeter so I could watch the transition.

---

<div class="post-metadata">

**Author:** ![Graham](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/graham/32/54_2.png) [@Graham](https://forum.core-electronics.com.au/u/Graham)\
**Post date:** [6 May 2022 01:33 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/9 "2022-05-06T01:33:30Z")

</div>

> [@John122579](#):
>
> Attached to voltmeter so I could watch the transition.

Hi John, are you referring to this question from Liam?

> [@Liam](#):
>
> What was that white wire connected to?

---

<div class="post-metadata">

**Author:** ![John122579](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@John122579](https://forum.core-electronics.com.au/u/John122579)\
**Post date:** [6 May 2022 01:36 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/10 "2022-05-06T01:36:52Z")

</div>

Yes. Here are 2 pictures, on boot and after program is completed. (they are out of order).

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/b/ba8691c85617846ca6bdbf81804fec87e111fe92.jpeg)  
 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/b/bbf6bd28b792b2bd778ebd09a1620e9b0317c4ee.jpeg)

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam/32/3562_2.png) [@Liam](https://forum.core-electronics.com.au/u/Liam)\
**Post date:** [6 May 2022 01:46 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/11 "2022-05-06T01:46:38Z")

</div>

Hi John,

Note with the photos you just uploaded: To get the power timer to work correctly you’ll have to disconnect the USB (there’s a protection diode in place to stop your battery overcharging).  
Be sure to have your code saved as `main.py` so that it runs on startup.

If its attached to a voltmeter that should be all good - the low impedance shouldn’t be affecting the signal although the duration of the pulse might be in the realm of milliseconds, much too fast for a multimeter to pickup.

Re: your ESP setup, what method were you using to confirm that the WiFi was still connected? The router I use at home can take upto about a minute before the devices list updates as being online  
The same applies with the USB connection.

Liam

---

<div class="post-metadata">

**Author:** ![John122579](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@John122579](https://forum.core-electronics.com.au/u/John122579)\
**Post date:** [6 May 2022 01:53 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/12 "2022-05-06T01:53:58Z")

</div>

Sorry, forgot to mention it was not connected to computer.  
main.py imports flasher.  
I was pinging from Mac and also Thonny was showing WebREPL conected.

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam/32/3562_2.png) [@Liam](https://forum.core-electronics.com.au/u/Liam)\
**Post date:** [6 May 2022 02:04 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/13 "2022-05-06T02:04:15Z")

</div>

Hi John,

Just a few coveralls for the Pico to confirm that the module is working:

- Ensure the following code is saved as main.py on the Pico (In Thonny your

```auto
from machine import Pin, ADC

DONE = Pin(15, Pin.OUT)
adc = ADC(0) # Pin 26

x = adc.read_u16()

# Opening with "a" for appending
with open("log.txt", "a") as logFile:
    logFile.write(str(x))
    logFile.write('\n') # New line
    logFile.flush() # Ensure data is written
    logFile.close() # Really ensure data is written
    
DONE.on() # Assert DONE signal; powers down Pico

```

  

Note the square brackets, this is a check that the code is saved to the Pico

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/d/d16653f257e27608f50c0c61375c28c817be0d0b.png)

- Ensure your LiPo is charged and plugged into the Power Timer
- Ensure that you have disconnected power via the USB

I’d also try a test where the multimeter is disconnected - using the same setup as Brenton’s guide would be best.

Liam

---

<div class="post-metadata">

**Author:** ![John122579](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@John122579](https://forum.core-electronics.com.au/u/John122579)\
**Post date:** [6 May 2022 03:36 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/14 "2022-05-06T03:36:06Z")

</div>

OK, so I setup exactly the same as in the video. LED on timer stayed ON except it went OFF approximately every 2 seconds.

This prompted me to look at my soldering and it looks like I may have a dry join on the DNE pin. Will confirm if this is the problem or not.

---

<div class="post-metadata">

**Author:** ![John122579](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@John122579](https://forum.core-electronics.com.au/u/John122579)\
**Post date:** [6 May 2022 04:27 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/15 "2022-05-06T04:27:50Z")

</div>

Pretty sure that was the problem. Looks like I had destroyed the solder pad when I had previously desoldered. Will need to order a new one.

Cheers

---

<div class="post-metadata">

**Author:** ![pauljeff1](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@pauljeff1](https://forum.core-electronics.com.au/u/pauljeff1)\
**Post date:** [7 June 2022 11:53 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/16 "2022-06-07T11:53:48Z")

</div>

Hey I think I know what the problem was that John was running into. I have just received my MKRVRS Nano Timer and may have come across a similar problem.  
If DELAY is pulled low rather than left floating, the Nano Timer turns on for about 2 seconds, turns off for a fraction of a second and then turns on again for 2 seconds, off for a fraction etc etc.  
I made the mistake of thinking that when I did not want to activate the Nano Timer by pulling DELAY HIGH, I would leave it pulled LOW. And that causes the problem.  
Once I left DELAY floating rather than pulled LOW, the Nano Timer works as expected.  
Looking at the schematic, I see that pulling DELAY LOW must affect the TPL5110 timing circuit somehow and perhaps put it in an undefined (or just undesirable) state perhaps? Haven’t looked at the TPL5110 data sheet but its probably all explained there.  
Thanks,  
Paul

---

<div class="post-metadata">

**Author:** ![Brenton](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/brenton/32/5421_2.png) [@Brenton](https://forum.core-electronics.com.au/u/Brenton)\
**Post date:** [7 June 2022 23:31 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/17 "2022-06-07T23:31:24Z")

</div>

Hi Paul,

The Nano Power Timer board has a pull-down resistor on the DONE pin - the circuit behaviour when pulled low or left floating should be identical.

The TPL5110 device has a built-in “watchdog timer” behaviour: if the DONE pin is not pulled HIGH before the timer runs out it will power cycle the connected device by turning off the output power for a short time before starting the next timer interval.

---

<div class="post-metadata">

**Author:** ![pauljeff1](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@pauljeff1](https://forum.core-electronics.com.au/u/pauljeff1)\
**Post date:** [8 June 2022 05:36 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/18 "2022-06-08T05:36:13Z")

</div>

Hi Brenton,

It’s the DELAY pin, not the DONE pin. I mistakenly treated it like a regular logic pin, which it definitely is not.

Cheers,  
PJ

---

<div class="post-metadata">

**Author:** ![Brenton](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/brenton/32/5421_2.png) [@Brenton](https://forum.core-electronics.com.au/u/Brenton)\
**Post date:** [8 June 2022 07:05 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/19 "2022-06-08T07:05:05Z")

</div>

Hi Paul,

My mistake, sorry!

The DELAY pin is provided to allow for an external reset: shorting it to Vdd will reset the TPL5110. The onboard reset switch does exactly this.

It should otherwise be left floating.

Cheers,  
Brenton

---

<div class="post-metadata">

**Author:** ![pauljeff1](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@pauljeff1](https://forum.core-electronics.com.au/u/pauljeff1)\
**Post date:** [8 June 2022 07:12 UTC](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857/20 "2022-06-08T07:12:40Z")

</div>

Absolutely not a problem @Brenton. 🙂

Might be good to put a note in the guide to be clear about use of the DELAY pin, it was an easy trap to fall into.

Thanks again,  
Paul

[Next page](https://forum.core-electronics.com.au/t/guide-by-brenton-makerverse-nano-power-timer/13857.md?page=2)
