Author Topic: how can i do this?  (Read 3929 times)

Offline gamerdude767

  • Blogs & Media Member
  • Acid Modder
  • *
  • Posts: 634
  • Post quality +1/-0
  • Gender: Male
how can i do this?
« on: January 02, 2009, 12:58:53 PM »
hey, ive got a 4 prong button i think its the same as the one's on the AM shop...
i was wundering how i could wire it up to some leds the to the psp, so when i pressed it the leds would come on.... just like the hold switch method but so i can still play.


   


Quote from: H-Sauce
**Long Pause**........
Yup, thats better than balloons

Offline bustinthejustin

  • Registered BST
  • E = MC² Mad Scientist
  • *
  • Posts: 2326
  • Post quality +1/-0
  • Gender: Male
Re: how can i do this?
« Reply #1 on: January 02, 2009, 01:01:55 PM »
I think you have a dpst switch. To wire it, I'm not sure how to figure out which poles are connected, but basically you wire one pole to positive of led, one to positive point on mobo, one to ground, and one to negative on led. Not sure if you really have a dpst switch though, can't really see your pics very well.

Sig by Kenshinffx - Thanks!

Offline gamerdude767

  • Blogs & Media Member
  • Acid Modder
  • *
  • Posts: 634
  • Post quality +1/-0
  • Gender: Male
Re: how can i do this?
« Reply #2 on: January 02, 2009, 01:05:16 PM »
ill try geting a better pic as that was my phone cam lol

Quote from: H-Sauce
**Long Pause**........
Yup, thats better than balloons

Offline bustinthejustin

  • Registered BST
  • E = MC² Mad Scientist
  • *
  • Posts: 2326
  • Post quality +1/-0
  • Gender: Male
Re: how can i do this?
« Reply #3 on: January 02, 2009, 01:07:10 PM »
lol k no problem. I'd like a good picture of the bottom of the switch though please.

Sig by Kenshinffx - Thanks!

Offline gamerdude767

  • Blogs & Media Member
  • Acid Modder
  • *
  • Posts: 634
  • Post quality +1/-0
  • Gender: Male
Re: how can i do this?
« Reply #4 on: January 02, 2009, 01:10:33 PM »






best quality i can get lol mum cam is broke im using webcam...

Quote from: H-Sauce
**Long Pause**........
Yup, thats better than balloons

Offline bustinthejustin

  • Registered BST
  • E = MC² Mad Scientist
  • *
  • Posts: 2326
  • Post quality +1/-0
  • Gender: Male
Re: how can i do this?
« Reply #5 on: January 02, 2009, 01:17:06 PM »
Thanks those will do fine. I have no clue how to tell which poles are connected but do you have a multimeter? If so, then

1. turn the switch on/close the switch
2. turn your multimeter to continuity/diode testing
3. put the two prongs of your multimeter on any two poles
4. if it tells you there is continuity, then good, you know that those two poles are connected. Write it down and tell me. If not:
5. keep on prong on the same pole and move the other prong. If you have continuity now, then write it down. If not, you know that the last pole and the first pole have continuity.


I just need to know which poles are together so I can tell you how to wire it.

Sig by Kenshinffx - Thanks!

Offline gamerdude767

  • Blogs & Media Member
  • Acid Modder
  • *
  • Posts: 634
  • Post quality +1/-0
  • Gender: Male
Re: how can i do this?
« Reply #6 on: January 02, 2009, 01:20:43 PM »
no i dont have a multi meter but ill ask my dad in a min, he's bound to have 1 :tup:  ...

 so im looking for a continuass flow on the multimeter as i touch 2 prongs? rite??

Quote from: H-Sauce
**Long Pause**........
Yup, thats better than balloons

Offline bustinthejustin

  • Registered BST
  • E = MC² Mad Scientist
  • *
  • Posts: 2326
  • Post quality +1/-0
  • Gender: Male
Re: how can i do this?
« Reply #7 on: January 02, 2009, 01:30:39 PM »
Yeah. I just need to figure out which two poles are continuous so I know which wires go where.

Sig by Kenshinffx - Thanks!

Offline Alien_X

  • Club AM VIP
  • Millennium Poster
  • *
  • Posts: 1010
  • Post quality +3/-0
  • Gender: Male
Re: how can i do this?
« Reply #8 on: January 02, 2009, 01:34:27 PM »
Sorry bustinthejustin, but I can't help but feel you have no idea what you are talking about  :laughing:

You have a tactile switch.
The poles are connected lengthways IE. the two contacts on the same side (on the top in your 3rd picture) are NOT connected.

A tactile switch is momentary (unless it is the latching kind - yours isn't), so you cannot simply wire leds to it and operate it like the hold switch - they would be on for as long as you hold the switch down.

You will have to use a PIC to make the switch latch between closed and open (not mechanically, via software) (in other words a bistable multivibrator).

I did used to have some code written for this, which I had posted up, now is gone. The code is simple:

Assign a port to output
One to input
Turn Output low
Check status of input (switch)
(Debounce if necessary)
Has status changed? If so then
Change status of output to inverse(Low - high, High - Low)
Start checking again

Sigs by Alien_X
www.ax-elec.com

Offline LaCozTe-2028

  • BANNED
  • E = MC²
  • *
  • Posts: 353
  • Post quality +0/-0
  • Gender: Male
  • I love My Lacoste shirts
Re: how can i do this?
« Reply #9 on: January 02, 2009, 01:34:41 PM »
No No Justin is all wrong you just solder the - or + to one side of the tact switch and the + or - of the mobo to the other side so when you look test for continuity make sure it doesen't beep when the buttons is not pressed it has to beep when the buttons is pressed if not you will be soldering to the same set of legs and it wouldent work if you planing to just use a tact switch to controle your leds so that when you press it the leds come on and when you press it again they shut off the leds will only come on when you press the button and hold it as soon as you let go it cuts the curent shutting your leds the only way it would work is using a pic you could reffer to alien with pic hes a beast.
« Last Edit: January 02, 2009, 01:36:18 PM by LaCozTe-2028 »

try droping it again
my retared friend fixed by droping it
 1Sniper- not to be an :censored: but, its special friend

Offline treemty

  • l,,l METAL l,,l
  • Millennium Poster
  • *
  • Posts: 1231
  • Post quality +1/-0
  • Gender: Male
  • Will mod for food
    • the1337group.com
Re: how can i do this?
« Reply #10 on: January 02, 2009, 01:40:41 PM »
yea bustin think before you type >_>  so exactly wat alein said, as long s you hold it down they are on releas ethey are off

Offline Alien_X

  • Club AM VIP
  • Millennium Poster
  • *
  • Posts: 1010
  • Post quality +3/-0
  • Gender: Male
Re: how can i do this?
« Reply #11 on: January 02, 2009, 01:41:20 PM »
yea bustin think before you type >_>  so exactly wat alein said, as long s you hold it down they are on releas ethey are off

Unless it is NC  :winker:

Sigs by Alien_X
www.ax-elec.com

Offline LaCozTe-2028

  • BANNED
  • E = MC²
  • *
  • Posts: 353
  • Post quality +0/-0
  • Gender: Male
  • I love My Lacoste shirts
Re: how can i do this?
« Reply #12 on: January 02, 2009, 01:44:23 PM »
Just do it the easy way use your wifi switch it will save you the pain of cutting you case

try droping it again
my retared friend fixed by droping it
 1Sniper- not to be an :censored: but, its special friend

Offline gamerdude767

  • Blogs & Media Member
  • Acid Modder
  • *
  • Posts: 634
  • Post quality +1/-0
  • Gender: Male
Re: how can i do this?
« Reply #13 on: January 02, 2009, 01:48:42 PM »
i want it to be like that so i have to hold the button to keep led's on the release to turn off...lol

Quote from: H-Sauce
**Long Pause**........
Yup, thats better than balloons

Offline RoBot1ks

  • Club AM VIP
  • Acid Modder
  • *
  • Posts: 671
  • Post quality +0/-0
  • Gender: Male
  • 1 r n00ber
    • Myspace
Re: how can i do this?
« Reply #14 on: January 02, 2009, 01:50:36 PM »
I agree with LaCozTe. You may also use your hold switch. But I would highly recommend using the wifi switch

But. Since you want to use the tactile switch, the above stated is completely irrelevant

Offline Alien_X

  • Club AM VIP
  • Millennium Poster
  • *
  • Posts: 1010
  • Post quality +3/-0
  • Gender: Male
Re: how can i do this?
« Reply #15 on: January 02, 2009, 01:52:17 PM »
If that is the case, then simply wire it as if it were a normal switch through the two legs on any one side.

Sigs by Alien_X
www.ax-elec.com

Offline gamerdude767

  • Blogs & Media Member
  • Acid Modder
  • *
  • Posts: 634
  • Post quality +1/-0
  • Gender: Male
Re: how can i do this?
« Reply #16 on: January 02, 2009, 01:52:57 PM »
ok cool ... thanks for all you help guys  :tup:

Quote from: H-Sauce
**Long Pause**........
Yup, thats better than balloons

Offline bustinthejustin

  • Registered BST
  • E = MC² Mad Scientist
  • *
  • Posts: 2326
  • Post quality +1/-0
  • Gender: Male
Re: how can i do this?
« Reply #17 on: January 02, 2009, 01:53:05 PM »
Oops sorry didn't realise you had a tact switch... Damn. Sorry... But if gamerdude wants them the way he wants them, I'm technically still right. I haven't posted any wrong information except for the fact that I said to "close your switch" which would require him to hold it down, and the fact that I thought he had a dpst switch. Anyway, yeah Alien says that the two contacts on the left and the two contacts on the right in your third switch are connected. So use one set for + to led and to mobo, and another set for ground and - to led.

Sig by Kenshinffx - Thanks!

Offline Alien_X

  • Club AM VIP
  • Millennium Poster
  • *
  • Posts: 1010
  • Post quality +3/-0
  • Gender: Male
Re: how can i do this?
« Reply #18 on: January 02, 2009, 01:56:11 PM »
Oops sorry didn't realise you had a tact switch... Damn. Sorry... But if gamerdude wants them the way he wants them, I'm technically still right. I haven't posted any wrong information except for the fact that I said to "close your switch" which would require him to hold it down, and the fact that I thought he had a dpst switch. Anyway, yeah Alien says that the two contacts on the left and the two contacts on the right in your third switch are connected. So use one set for + to led and to mobo, and another set for ground and - to led.

No, you're still wrong in lots of places  :#1:
« Last Edit: January 02, 2009, 02:00:24 PM by Alien_X »

Sigs by Alien_X
www.ax-elec.com

Offline LaCozTe-2028

  • BANNED
  • E = MC²
  • *
  • Posts: 353
  • Post quality +0/-0
  • Gender: Male
  • I love My Lacoste shirts
Re: how can i do this?
« Reply #19 on: January 02, 2009, 02:01:28 PM »
Wow its not hard to recongnize a tact switch there are no dip's that look like that

try droping it again
my retared friend fixed by droping it
 1Sniper- not to be an :censored: but, its special friend

Offline gamerdude767

  • Blogs & Media Member
  • Acid Modder
  • *
  • Posts: 634
  • Post quality +1/-0
  • Gender: Male
Re: how can i do this?
« Reply #20 on: January 02, 2009, 02:04:41 PM »
is the button/switch on AM shop.... https://acidmods.com/ShopUSA/product_info.php?cPath=24&products_id=46 the one that you can press and it will stay on or will it do the same as mine does?

Quote from: H-Sauce
**Long Pause**........
Yup, thats better than balloons

Offline Alien_X

  • Club AM VIP
  • Millennium Poster
  • *
  • Posts: 1010
  • Post quality +3/-0
  • Gender: Male
Re: how can i do this?
« Reply #21 on: January 02, 2009, 02:05:47 PM »
Same as yours.

Sigs by Alien_X
www.ax-elec.com

Offline gamerdude767

  • Blogs & Media Member
  • Acid Modder
  • *
  • Posts: 634
  • Post quality +1/-0
  • Gender: Male
Re: how can i do this?
« Reply #22 on: January 02, 2009, 02:08:53 PM »
 :censored: so what's the name of the button/switch that and stay pressed down if you know what i mean?

Quote from: H-Sauce
**Long Pause**........
Yup, thats better than balloons

Offline LaCozTe-2028

  • BANNED
  • E = MC²
  • *
  • Posts: 353
  • Post quality +0/-0
  • Gender: Male
  • I love My Lacoste shirts
Re: how can i do this?
« Reply #23 on: January 02, 2009, 02:10:48 PM »
iF you really really really really want to do it with a tact switch use a {PIC} if not use one of these they are small like your wifi switchSMD Maintained Contact Slide Switches, SS057

try droping it again
my retared friend fixed by droping it
 1Sniper- not to be an :censored: but, its special friend

 

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