Arduino Fio & On/Off Switch with Green LED Ring

by MateoVerde on Mon May 06, 2013 5:47 am

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!
MateoVerde
 
Posts: 3
Joined: Mon May 06, 2013 5:42 am

Re: Arduino Fio & On/Off Switch with Green LED Ring

by adafruit_support_bill on Mon May 06, 2013 7:07 am

Do you want this to work with the FTDI cable connection, or will you be moving to a different power source?
User avatar
adafruit_support_bill
 
Posts: 25404
Joined: Sat Feb 07, 2009 9:11 am

Re: Arduino Fio & On/Off Switch with Green LED Ring

by MateoVerde on Mon May 06, 2013 7:16 am

Hello adafruit_support_bill,

Yes, with the FTDI would be best because I will be using that to send serial commands.

Thanks!
MateoVerde
 
Posts: 3
Joined: Mon May 06, 2013 5:42 am

Re: Arduino Fio & On/Off Switch with Green LED Ring

by adafruit_support_bill on Mon May 06, 2013 7:42 am

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
Image
User avatar
adafruit_support_bill
 
Posts: 25404
Joined: Sat Feb 07, 2009 9:11 am

Re: Arduino Fio & On/Off Switch with Green LED Ring

by MateoVerde on Mon May 06, 2013 7:55 am

Thank you so much! This makes perfect sense. I'll definitely try it.
MateoVerde
 
Posts: 3
Joined: Mon May 06, 2013 5:42 am