Author Topic: pic12f683 on off switch?  (Read 2085 times)

Offline Frosty

  • Ω Allumnist Ω
  • *
  • Posts: 117
  • Post quality +2/-6
  • Gender: Male
  • Acidmods User
pic12f683 on off switch?
« 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

Offline magic_man185

  • Who Farted ???
  • *
  • Posts: 229
  • Post quality +16/-0
  • Gender: Male
  • Acidmods User
Re: pic12f683 on off switch?
« Reply #1 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. 

Offline SethMods

  • Registered BST
  • King of the Wii-tards
  • *
  • Posts: 189
  • Post quality +17/-1
  • Gender: Male
  • Acidmods User
Re: pic12f683 on off switch?
« Reply #2 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 that toggles on-off.
« Last Edit: July 18, 2012, 08:15:02 AM by SethMods »

Offline magic_man185

  • Who Farted ???
  • *
  • Posts: 229
  • Post quality +16/-0
  • Gender: Male
  • Acidmods User
Re: pic12f683 on off switch?
« Reply #3 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.

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.5 © 2008-2012, SimplePortal