Acidmods

AcidMods Resources ----- ( These are helpful tools for modding ) => Open Source Code & AcidMods Free Code => Topic started by: Frosty on July 17, 2012, 01:14:54 PM

Title: pic12f683 on off switch?
Post by: Frosty on July 17, 2012, 01:14:54 PM
does anybody have an on off switch hex. using a tact switch.It will be controlling 12v
Title: Re: pic12f683 on off switch?
Post by: magic_man185 on July 17, 2012, 02:23:08 PM
Frosty,

The 12F683 cannot directly power 12V output, so you would have to use some form of switching component, like a transistor or relay.  You would trigger the switch with the microchip, then the switch turns on 12V that is being passed through it. 
Title: Re: pic12f683 on off switch?
Post by: SethMods on July 17, 2012, 07:05:24 PM
I agree.

I guess the important questions are...

1) How much current do you want to switch?
2) Is there a need for the 12f at all? Could you just wire your transistors/relays directly to the tactile switch?









Edit: Oh, right! I didn't even think of that. Man, that's a lot of effort (adding a PIC) just to turn a tactile switch from "momentary push on" to "toggle off-on". Maybe it would be better to move to a switch like this http://www.digikey.com/product-detail/en/PVA1%20EE%20H1/401-1132-ND/417713 (http://www.digikey.com/product-detail/en/PVA1%20EE%20H1/401-1132-ND/417713) that toggles on-off.
Title: Re: pic12f683 on off switch?
Post by: magic_man185 on July 18, 2012, 07:11:25 AM
Seth,

I think he wants a on-off switch, where you press the button once to turn on, and again to turn off.  If you wired the tact directly it would only work as a momentary switch.  You could do without the chip if you did a bistable multivibrator (google it) but at that point it is probably simpler to use a microchip.
SimplePortal 2.3.5 © 2008-2012, SimplePortal