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?
Reverse Geocache Power Switch Question
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Reverse Geocache Power Switch Question
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.
On the other hand, you could instead have to Arduino go into a low-power sleep. You don't need anything special for that.
- Trushoo
- Posts: 3
- Joined: Mon Mar 09, 2015 9:26 am
Re: Reverse Geocache Power Switch Question
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
}
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
}
- adafruit_support_bill
- Posts: 88092
- Joined: Sat Feb 07, 2009 10:11 am
Re: Reverse Geocache Power Switch Question
You can use this power-switch. It allows you to power-off with a logic-level signal: https://www.adafruit.com/products/1400
- waltmck
- Posts: 25
- Joined: Sat Jul 21, 2012 11:54 am
Re: Reverse Geocache Power Switch Question
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.
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.
- adafruit_support_bill
- Posts: 88092
- Joined: Sat Feb 07, 2009 10:11 am
Re: Reverse Geocache Power Switch Question
It comes semi-assembled. The switch is not soldered to the board, so you could wire in any switch you like.
Please be positive and constructive with your questions and comments.