Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: lil trouble understanding 5 pin joystick wiring harrness  (Read 10256 times)

0 Members and 1 Guest are viewing this topic.

zmb187

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:February 26, 2017, 06:26:10 pm
  • I want to build my own arcade controls!
lil trouble understanding 5 pin joystick wiring harrness
« on: February 19, 2017, 06:38:18 pm »
hello so recently purchased a raspberry pi and have it up and running well....so decided to build a arcade stick....have all the buttons wired and ready to install to encoder...using a CY-822B encoder.......so my problem is the joystick came with 2 wiring harnesses ..1 fits the joystick and not the encoder and vice versa ....does anyone have a idea what I'm overlooking?? thanx... sorry having trouble uploading pics

zmb187

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:February 26, 2017, 06:26:10 pm
  • I want to build my own arcade controls!
Re: lil trouble understanding 5 pin joystick wiring harrness
« Reply #1 on: February 19, 2017, 09:08:06 pm »
came with these

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9404
  • Last login:Today at 09:03:56 pm
  • Designated spam hunter
Re: lil trouble understanding 5 pin joystick wiring harrness
« Reply #2 on: February 20, 2017, 12:34:27 am »
using a CY-822B encoder.......so my problem is the joystick came with 2 wiring harnesses ..1 fits the joystick and not the encoder and vice versa
So, you have a joystick with a 5-pin connector like this one, right?



Did you try turning the connector over?  You may have had it upside-down.

Your ZD encoder (CY-822B) should have come with either a 5-pin cable like the white one you posted or 4 2-pin cables for a joystick with microswitches.



Did the white cable come with the ZD or the joystick?


Scott

zmb187

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:February 26, 2017, 06:26:10 pm
  • I want to build my own arcade controls!
Re: lil trouble understanding 5 pin joystick wiring harrness
« Reply #3 on: February 20, 2017, 12:05:01 pm »
using a CY-822B encoder.......so my problem is the joystick came with 2 wiring harnesses ..1 fits the joystick and not the encoder and vice versa
So, you have a joystick with a 5-pin connector like this one, right?



Did you try turning the connector over?  You may have had it upside-down.

Your ZD encoder (CY-822B) should have come with either a 5-pin cable like the white one you posted or 4 2-pin cables for a joystick with microswitches.



Did the white cable come with the ZD or the joystick?


Scott

yes that's the joystick im using.....I bought a set with 10 led buttons and the joystick...so all came together .... yes encoder has the 5 pin slot ...but the white harness connects to the encoder but not the joystick....the one with the loose wires fits the joystick but not sure what to do with the loose ends.......

zmb187

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:February 26, 2017, 06:26:10 pm
  • I want to build my own arcade controls!
Re: lil trouble understanding 5 pin joystick wiring harrness
« Reply #4 on: February 26, 2017, 02:45:35 pm »
OK so I got my box wired up and powered up just fine.... All the buttons with LEDs light up and are detected by RetroPie.... Only thing is only the left axis for joystick is detected... Gonna try RetroArch configuration when I get home but worried still won't detect....... Anyone know why it is not registering the movement?? Thank you

zmb187

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:February 26, 2017, 06:26:10 pm
  • I want to build my own arcade controls!
Re: lil trouble understanding 5 pin joystick wiring harrness
« Reply #5 on: February 26, 2017, 05:37:32 pm »
I'm thinking I have a defective joystick.... After going through and reconfigured and joystick only works in one direction.... Works in emulators but only the right direction.... Has anyone had this problem??

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9404
  • Last login:Today at 09:03:56 pm
  • Designated spam hunter
Re: lil trouble understanding 5 pin joystick wiring harrness
« Reply #6 on: February 27, 2017, 04:13:42 am »
I'm thinking I have a defective joystick.... After going through and reconfigured and joystick only works in one direction.... Works in emulators but only the right direction.... Has anyone had this problem??
That sounds like you have the connector flipped so the the wire for right is connected to the daisy-chained pin for ground.

With that setup, pushing the joystck Up/Down/Left will connect those inputs to the daisy-chained Right input ==> 5v connected to 5v ==> no ground, no switch press registered.

When you push the joystick right, the daisy-chained Right input (should be ground) connects to ground (should be Right) which registers a switch press.

Assuming that you can't flip the connector at the joystick or flip the connector at the encoder, the way to fix this is:

1. Get a euro-style terminal strip with at least 5 positions.


2. Use a piece of wire or straightened paperclips to short two encoder wires at a time to determine which wire is ground.

For example:
- Short 1 to 2 = nothing
- Short 1 to 3 = nothing
- Short 1 to 4 = nothing
- Short 1 to 5 = Right     ==> 5 is ground, 1 is Right

3. Short ground to each other wire in turn and label them.

4. Cut off the joystick end of the white ribbon cable connector.

5. Separate, strip, gently twist, and connect each wire of the ribbon cable to a separate terminal.

6. Connect the multi-color wire connector to the joystick.

7. Use the same process of elimination from step 2 (connect two wires, press stick U/D/L/R) to determine which joystick wire is ground.

8. Connect joystick ground to encoder ground.

9. Test each remaining joystick wire to see which direction switch it is connected to.

For example:
- Connect joystick orange wire to encoder Up
- Press the stick U/D/L/R = Up registers when you push the stick left
- Move joystick orange wire to encoder Left

- Connect joystick green wire to encoder Up
- Press the stick U/D/R (you already know which wire is Left) = Up registers when you push the stick down
- Move joystick green wire to encoder Down

- Connect joystick red wire to encoder Up
- Press the stick U/R = Up registers when you push the stick up (wire is already connected to the correct input)

- Connect the remaining wire to encoder Right


Scott
« Last Edit: February 27, 2017, 04:22:10 am by PL1 »

szchifo

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:April 02, 2017, 12:18:11 pm
  • I want to build my own arcade controls!
Re: lil trouble understanding 5 pin joystick wiring harrness
« Reply #7 on: April 02, 2017, 12:17:19 pm »
What did you do with the bare wires on the end of the 5 pin joystick connector?

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9404
  • Last login:Today at 09:03:56 pm
  • Designated spam hunter
Re: lil trouble understanding 5 pin joystick wiring harrness
« Reply #8 on: April 02, 2017, 12:39:37 pm »
What did you do with the bare wires on the end of the 5 pin joystick connector?
It's definitely not the normal way that these things are supposed to connect (the white cable below should have worked), but if he followed the advice in my earlier post, he ended up with a harness that had this cable on one end . . .



. . . with the stripped ends leading into a euro-style terminal strip . . .



. . . and this cable on the other side of the terminal strip -- with one end cut off and the wires stripped.




Scott
« Last Edit: April 02, 2017, 12:50:04 pm by PL1 »

DeLuSioNal29

  • Global Moderator
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4778
  • Last login:October 20, 2023, 11:39:06 pm
  • Build the impossible -"There is no Spoon"
    • DeLuSioNaL's YouTube Videos
Re: lil trouble understanding 5 pin joystick wiring harrness
« Reply #9 on: April 02, 2017, 03:50:00 pm »
It also matters which way the connector is facing when looking at it from underneath:



DeL
Stop by my Youtube channel and leave a comment: