Reverse Geocache Power Switch Question

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
schrempa
 
Posts: 1
Joined: Thu Sep 18, 2014 6:29 pm

Reverse Geocache Power Switch Question

Post by schrempa »

I am trying to follow the Reverse Geocache project found here: http://learn.adafruit.com/reverse-geoca ... x/overview

The problem I am having is that the tutorial seems to skip over everything having to do with the power switch. What I would like for it to do is power on when the button in pushed and automatically turn off 2 minutes later. Can that be accomplished with the materials he listed or do I need some type of pololu/ relay switch as well? If it can be accomplished without any additional parts, how would that be coded?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Reverse Geocache Power Switch Question

Post by adafruit_support_rick »

If you want to really power it off, you'll need a relay.

On the other hand, you could instead have to Arduino go into a low-power sleep. You don't need anything special for that.

User avatar
Trushoo
 
Posts: 3
Joined: Mon Mar 09, 2015 9:26 am

Re: Reverse Geocache Power Switch Question

Post by Trushoo »

Hi !

I used a pololu switch LV

off pin to arduino pin 5

coding:

int offPin = 5;

void setup() {
pinMode (offPin, OUTPUT);
}

Void loop()
{
//other code here
delay (60000); //delay until off system
digitalWrite(offPin, HIGH); //send HIGH from pin5 to pololu off pin to go system off
}

User avatar
adafruit_support_bill
 
Posts: 88092
Joined: Sat Feb 07, 2009 10:11 am

Re: Reverse Geocache Power Switch Question

Post by adafruit_support_bill »

You can use this power-switch. It allows you to power-off with a logic-level signal: https://www.adafruit.com/products/1400

User avatar
waltmck
 
Posts: 25
Joined: Sat Jul 21, 2012 11:54 am

Re: Reverse Geocache Power Switch Question

Post by waltmck »

I also have been using the pololu switch for projects where I need an inactivity timer.

The https://www.adafruit.com/products/1400 switch you mention looks like a good replacement.

I usually use the switch separate from the board. From the pictures on the product page, it looks like it comes disassembled, with the switch separate. Is this true?

Also does this mean that it can be used with other momentary switches?

Thanks.

User avatar
adafruit_support_bill
 
Posts: 88092
Joined: Sat Feb 07, 2009 10:11 am

Re: Reverse Geocache Power Switch Question

Post by adafruit_support_bill »

It comes semi-assembled. The switch is not soldered to the board, so you could wire in any switch you like.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”