0

TPL5110 to cycle only once when button is pressed
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

TPL5110 to cycle only once when button is pressed

by vin7102 on Sun Aug 04, 2019 12:51 am

Hey Guys,

The TPL5110 sounds like a perfect fit for my 3v project but I need a little clarification.
I only need this unit to power some LED's for 2 hours after the tactile button is pressed, then shut down indefinitely until the button is pressed again (which may be a day or a week later).
Can I make this happen with this board?

Thanks,
Vin

vin7102
 
Posts: 18
Joined: Mon Apr 09, 2012 9:35 am

Re: TPL5110 to cycle only once when button is pressed

by adafruit_support_mike on Sun Aug 04, 2019 1:50 pm

The TPL5110 has a one-shot mode, but the breakout is wired for continuous restarts. The trace you’d need to cut and reconnect is under the chip, so there’s no easy way to modify the board for to use one-shot mode.

We do have the Push-Button Power Switch which can do roughly the same thing:

https://www.adafruit.com/product/1400

Pressing the button turns power on, and there’s a logic input that can turn power off again. You’ll need something to generate the turn-off pulse, but if you’re already using a microcontroller it’s easy to run a counter and allocate a GPIO pin.

If you don’t already have a microcontroller, a Gemma M0 or Trinket M0 can do the job:

https://www.adafruit.com/product/3501
https://www.adafruit.com/product/3500

adafruit_support_mike
 
Posts: 60685
Joined: Thu Feb 11, 2010 2:51 pm

Re: TPL5110 to cycle only once when button is pressed

by HermieDug on Sun Aug 25, 2019 10:03 am

I also require the TPL5110 breakout to run in one shot mode. I wondered if de soldering pin 6, and connecting it to ground would then set the chip to One_shot, can anyone advise before I try it.

Thank,

HermieDug
 
Posts: 4
Joined: Sun Aug 25, 2019 9:58 am

Re: TPL5110 to cycle only once when button is pressed

by adafruit_support_mike on Sun Aug 25, 2019 12:19 pm

Nope.. the connection you’d need to break is under the chip.

adafruit_support_mike
 
Posts: 60685
Joined: Thu Feb 11, 2010 2:51 pm

Re: TPL5110 to cycle only once when button is pressed

by HermieDug on Sun Aug 25, 2019 2:30 pm

adafruit_support_mike wrote:Nope.. the connection you’d need to break is under the chip.

Is there an image of the track any where, but I'm confused, why is de soldering the pin of the chip and isolating it from the track, different to cutting the track that goes under the chip. Can you help me find more info.

Someone else suggested shorting the Drv and Done pin to simulate the trigger being applied.

HermieDug
 
Posts: 4
Joined: Sun Aug 25, 2019 9:58 am

Re: TPL5110 to cycle only once when button is pressed

by HermieDug on Sun Aug 25, 2019 5:01 pm

Ok so farther searching I found this fabrication design imag. If I cut the track under the EN/One_shot contact I would be cutting the Vdd feed to the rest of the circuit, but if I lift the contact, insulate it and connect it to Gnd, the system would then be in One_shot mode.


https://learn.adafruit.com/assets/39784

HermieDug
 
Posts: 4
Joined: Sun Aug 25, 2019 9:58 am

Re: TPL5110 to cycle only once when button is pressed

by adafruit_support_mike on Wed Aug 28, 2019 12:13 am

That will work in theory. In practice, move gently when you're ready to bend the pin up and away from the pad. SOT-323 pins are thin, and snap off at the edge of the package easily.

adafruit_support_mike
 
Posts: 60685
Joined: Thu Feb 11, 2010 2:51 pm

Re: TPL5110 to cycle only once when button is pressed

by HermieDug on Wed Aug 28, 2019 4:21 am

adafruit_support_mike wrote:That will work in theory. In practice, move gently when you're ready to bend the pin up and away from the pad. SOT-323 pins are thin, and snap off at the edge of the package easily.


I'm still waiting for it to arrive, thanks for the warning :) if I ruin the chip I could buy a new one to solder to the board. Ideally it would be good if it was designed with solder pads to select what mode you want, or even a jumper selector.

HermieDug
 
Posts: 4
Joined: Sun Aug 25, 2019 9:58 am

Re: TPL5110 to cycle only once when button is pressed

by iesre on Sun Nov 03, 2019 1:27 pm

I have a different problem with the TPL5110. When I push the button, it powers up a Pro Mini circuit and then turns off when the Done pin is set high. This works for short times of several seconds (lower resistance levels between Delay and GND), but not with resistance values that should recycle every couple of minutes (20 kOhm or so). In the past I haven't had this problem with powering up and down a Pro Mini circuit, but recently I can't get the same circuit to work. Any ideas about what the problem could be?? Thanks.

iesre
 
Posts: 179
Joined: Mon Jun 10, 2013 1:58 pm

Re: TPL5110 to cycle only once when button is pressed

by adafruit_support_mike on Tue Nov 05, 2019 1:50 am

Post a photo showing your hardware and connections and we'll take a look. 800x600 images usually work best.

adafruit_support_mike
 
Posts: 60685
Joined: Thu Feb 11, 2010 2:51 pm

Re: TPL5110 to cycle only once when button is pressed

by iesre on Tue Nov 05, 2019 1:05 pm

timer1.jpg
timer1.jpg (413.8 KiB) Viewed 111 times
timer1.jpg
timer1.jpg (413.8 KiB) Viewed 111 times
Here's the code I use to test the timer board:
/* TimerTest.ino, D. Brooks, November 2019
Tests operation with TPL5110 timer board and Pro Mini.
*/
const int donePIN=5, LEDPIN=9;
void setup()
{
pinMode(donePIN,OUTPUT); digitalWrite(donePIN,LOW);
pinMode(LEDPIN,OUTPUT);
delay(50);
digitalWrite(LEDPIN,HIGH); delay(3000);
digitalWrite(LEDPIN,LOW);
delay(50); digitalWrite(donePIN,HIGH); // turn off power
}
void loop() {
}

and I attach a pic. I power the circuit through the step-up/step-down regulator, using 6 D cells in series.

iesre
 
Posts: 179
Joined: Mon Jun 10, 2013 1:58 pm

Re: TPL5110 to cycle only once when button is pressed

by iesre on Tue Nov 05, 2019 1:06 pm

sorry about pasting in the pic twice!

iesre
 
Posts: 179
Joined: Mon Jun 10, 2013 1:58 pm

Re: TPL5110 to cycle only once when button is pressed

by adafruit_support_mike on Wed Nov 06, 2019 2:46 am

What are you using as a power source?

adafruit_support_mike
 
Posts: 60685
Joined: Thu Feb 11, 2010 2:51 pm

Re: TPL5110 to cycle only once when button is pressed

by iesre on Wed Nov 06, 2019 8:56 am

As I said in my previous post, the step-up/step-down regulator provides 5V and that regulator is powered by 6 D cells in series.

iesre
 
Posts: 179
Joined: Mon Jun 10, 2013 1:58 pm

Re: TPL5110 to cycle only once when button is pressed

by iesre on Wed Nov 06, 2019 5:17 pm

An additional point... I have set the regulator to just a little under 5V, because in the past I have had problems with these timers that seemed to be associated with powering them with more than 5 V. Considering that USB voltages can be 5 V +/- 5%, this might be important and that's why I use an adjustable-output step-up/step-down regulator (from Polulu) so I can precisely control the VDD value.

iesre
 
Posts: 179
Joined: Mon Jun 10, 2013 1:58 pm

Please be positive and constructive with your questions and comments.