Hello,
I was hoping that someone could provide me with an example of how to use this On/Off switch (http://www.adafruit.com/products/482) to actually turn on or off an Arduino Fio please? My intent is that when the button is depressed the Fio is on and as such my code will take effect but if the switch is not depressed then the Fio receives no power. Currently I power my Fio using an FTDI connection with the USB cable connected to my laptop.
I'm relatively new at this so any assistance that you can provide would be immensely appreciated.
Thanks!
Arduino Fio & On/Off Switch with Green LED Ring
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mateoverde
- Posts: 3
- Joined: Mon May 06, 2013 6:42 am
- adafruit_support_bill
- Posts: 88092
- Joined: Sat Feb 07, 2009 10:11 am
Re: Arduino Fio & On/Off Switch with Green LED Ring
Do you want this to work with the FTDI cable connection, or will you be moving to a different power source?
- mateoverde
- Posts: 3
- Joined: Mon May 06, 2013 6:42 am
Re: Arduino Fio & On/Off Switch with Green LED Ring
Hello adafruit_support_bill,
Yes, with the FTDI would be best because I will be using that to send serial commands.
Thanks!
Yes, with the FTDI would be best because I will be using that to send serial commands.
Thanks!
- adafruit_support_bill
- Posts: 88092
- Joined: Sat Feb 07, 2009 10:11 am
Re: Arduino Fio & On/Off Switch with Green LED Ring
Cut the red (5v) wire on the FTDI cable. Splice a jumper from the cable-side cut end to the C1 pin on the switch. Splice another jumper from the connector-side cut end to the 'NO' pin on the switch. That will switch power on and off.
To light the led when the power is on, splice a jumper from the '-' pin to the black (ground) wire on the FTDI cable. Then solder another jumper between the 'NO' pin and the '+' pin.
If you don't want to cut up your FTDI cable, you can extend it with these:
http://www.adafruit.com/products/206
http://www.adafruit.com/products/400
To light the led when the power is on, splice a jumper from the '-' pin to the black (ground) wire on the FTDI cable. Then solder another jumper between the 'NO' pin and the '+' pin.
If you don't want to cut up your FTDI cable, you can extend it with these:
http://www.adafruit.com/products/206
http://www.adafruit.com/products/400
- mateoverde
- Posts: 3
- Joined: Mon May 06, 2013 6:42 am
Re: Arduino Fio & On/Off Switch with Green LED Ring
Thank you so much! This makes perfect sense. I'll definitely try it.
Please be positive and constructive with your questions and comments.