View Single Post
  #17   Report Post  
Chris
 
Posts: n/a
Default



Mark Ashley wrote:
One of the legs of each momentary switch is connected to a common ground,
which comes from a single point on the xbox pad, then daisy chains to each
switch. This includes the four switches for the joystick I think. The oth=

er
side of each switch then goes to its own point on the pad. I haven't
measured what is going across the switch when it is closed, but I can do
this if necessary.

Is that enough information? I can post more or a schematic if you need me
to.

I really appreciate all your help!

Thanks
Mark


Hi, Mark. Try this (view in fixed font or Notepad):

` (X =3D X-Box pullup resistor)
` T
` ---
` .---o o---X---------.
` | |
` | T |
` | --- |
` o---o o---X--------.| VCC
` | || 4078 +
` | T || 8-input |
` | --- |'-o| OR(Pin 1)/ .-. VCC VCC
` o---o o---X-------.| | NOR(Pin 13) | | + +
` | |'--o| | | | |
` | T | | 220K'-' .--o---o--.
` | --- '---o|__ | | |
` o---o o---X------. -|=3D| 1 | | |
` | '----o|1 |------------|----o |
` | T -|__| | | o----A
` | --- .----o| | | 555 |
` o---o o---X------' | o--o-o |
` | .---o| +| | | |
` | T | | 10uF --- '-o |
` | --- |.--o| --- | |
` o---o o---X-------'| | | '--o---o--'
` | |.-o| | | |
` | T || =3D=3D=3D =3D=3D=3D =3D=3D=3D
` | --- || GND GND GND
` o---o o---X--------'|
` | |
` | T |
` | --- |
` o---o o---X---------'
` |
` =3D=3D=3D
` GND
`
`

` VCC VCC
` + +
` | |
` | |
` .-----------------------. - C|
` | | ^ C|
` | | | C|
` | .--------. | | |
` | | | | | |
` | | =3D=3D=3D | '---o
` | .-----o------.GND | |
` | | S | | ___ |/
` '----oD Q o--------|___|- -| TIP120
` | | | 10K | |
` | 1/2 4013 | | .-. |
` | | | | | |
` A---------o CLK | | 10K| | |
` VCC | | | '-' |
` + | | | | |
` | | | | | |
` .-. | Q'o-----' =3D=3D=3D =3D=3D=3D
` 10K | | | | GND GND
` | | | R |
` '-' '-----o------'
` | |
` o-----------'
` |
` .1uF ---
` ---
` |
` =3D=3D=3D
` GND
created by Andy=B4s ASCII-Circuit v1.24.140803 Beta www.tech-chat.de

From your description, all 8 switches switch a logic level voltage to

GND when they are pressed, and show a logic level high when they're not
pressed. First, you need to get a power supply voltage which is the
same voltage as the power supply of the logic circuit you're
interfacing (+/- 0.2V). Once you've done that, get a 4078 (8-input
OR/NOR), a 555, and a 4013 to do your job, along with the handful of
components shown.

Not so elegant, but it should do the job. The CD4078 has 8 inputs and
two outputs -- OR (pin 1) and NOR (pin 13). The OR will only go low
when all 8 inputs are low (what you want). That signal then triggers a
555, which is on for about 2 seconds (giving you your debounce) and
clocking a 4013 set up as a toggle F-F. The R/C at the reset input
ensures that the circuit will power up with the transistor off.

You should be able to put all this on a small perfboard, and you'll be
good to go with the Pretendo relay switch.

Good luck
Chris