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: How to Connect a Potentiometer to a USB Encoder  (Read 5485 times)

0 Members and 1 Guest are viewing this topic.

masusaca

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:July 21, 2020, 11:28:21 pm
  • I want to build my own arcade controls!
How to Connect a Potentiometer to a USB Encoder
« on: July 10, 2020, 01:10:41 pm »
Hello there! I was wondering how could I connect or soldered a potentiometer to a USB encoder.

These are the components I have.
**https://www.ebay.com/itm/Zero-Delay-USB-Encoder-For-PC-Raspberry-Retro-Pie-Sanwa-or-Happs-Cables-Encoder/253327415867?ssPageName=STRK%3AMEBIDX%3AIT&var=552486427496&_trksid=p2060353.m2749.l2649
**https://www.ebay.com/itm/US-Stock-10pcs-10K-ohm-Linear-Taper-Rotary-Potentiometer-Panel-pot-B10K-15mm/391631095723?_trkparms=ispr%3D1&hash=item5b2f0847ab:g:rjoAAOSwBnZbKdgg&enc=AQAFAAACYBaobrjLl8XobRIiIML1V4Imu%2Fn%2BzU5L90Z278x5ickkyMJZWL%2BqFSgQ3TOOe%2FNr7icBX17XxUQ6kS1zF6ThjdktHh0FZ7H%2Bd5O3gZ4IsJtxB9oGCTJrUyrGbOVtKVsPrxj40ohmUGFtgxn41OpkHGQa7QKL2IFeGgjKFMpXcmsZ%2FexT5BZAMcfDthtfYinVJIDKF7QLGbxdRyIZf10NE3k06zApfUh8c2ZlJEIHt4au7ZJjznqjagoEc5UkH7fz%2Fqa2Jer8iN8f4x7Ji8tSLd0%2FPWAGDAWqWIomUxOCI7Nx7rGwtrkMmII%2FvyQA9kkuPz8NQ0xwF4ioMlZX%2BZh8qr7U6plhOx9%2BbT%2Bf5MaUtY7jpDeBfHerMFaKGPqBp9eXBHjqjtsPzE6bQtzf9V81hg9k9GS2n%2Bp1hIPkKVeWUpDR0HPbn4KSBmcNH5qkplcuO%2BiC4fckFdWfUQR%2FCcoXufbscpntuZ9%2Fe%2BKoC7TIOMIOBsXpmpXUGyDhdjsiE%2FleiilvKFh9ucm9N0a2xt3pJ9MoHqGPVYhysleVVNdYuGrkVHj4oqnu0usZpo0C9VQLlxPEIobiz9DWa%2BQ7GqHu9xcynhBa8YMyrkq2RZHUYawDg35JUYQLMpnLBDwyLYKEbT20FzepafTuKwxTudkK85WIKJdoESI1ZlC%2F%2BZeQM08fsmcBf1I5u0AjX5x%2B7WrKvkRr3d5ke45wJzJ%2FAug82B%2BwfQPcjvMBKh0vjIXVQbSn7fUgeUV9GPIZBm%2FGZsemuLMlphjwrsmfQHFvHESuhE5a%2BYa%2BSiwx1Af6ygcPF8Sk&checksum=39163109572381fbf17eaa2642e4ab7a839671c6b949

I was testing it out, but I can't manage to get the rotation to work properly. I just simply connected the cable and put the red and black on the left and right pins. Then, I connected another cable into the one of the AU, AU, AR,AL (they are the directions). The problem is that since the cable has two wires, I'm not sure how it should work. I tried with the black wire and it did worked, but the crosshair stay on that direction only. I couldn't control it into that direction.

So, what I want is to be able to control only the X axis. Left and right, but be able to rotate the potentiometer and make the crosshair follow that direction slow or fast.
« Last Edit: July 10, 2020, 01:32:50 pm by masusaca »

RyoriNoTetsujin

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 545
  • Last login:March 23, 2024, 03:55:45 pm
Re: How to Connect a Potentiometer to a USB Encoder
« Reply #1 on: July 10, 2020, 03:31:57 pm »
Someone will correct me if I'm wrong, but I believe the ZD encoder is for buttons/joysticks (i.e. microswitches) only.

For analog devices like pots you want something like the APAC: https://www.ultimarc.com/control-interfaces/a-pac/a-pac/

NuclearWarren

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 64
  • Last login:November 25, 2024, 09:55:02 pm
  • I want to build my own arcade controls!
Re: How to Connect a Potentiometer to a USB Encoder
« Reply #2 on: July 10, 2020, 03:41:20 pm »
Yes on the APAC. You're going to need an analog encoder. Yes, the ZD will only pass switches.

I just finished wiring up a pot in a gas pedal to a Teensy. https://www.pjrc.com/store/teensy.html

It sounds like you want a spinner though, what game are you working on? Discs of Tron is my guess.

Nuclear

masusaca

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:July 21, 2020, 11:28:21 pm
  • I want to build my own arcade controls!
Re: How to Connect a Potentiometer to a USB Encoder
« Reply #3 on: July 10, 2020, 04:25:51 pm »
It sounds like you want a spinner though, what game are you working on? Discs of Tron is my guess.

Yes, I do want something that spins. I want it for racing games specifically.

masusaca

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:July 21, 2020, 11:28:21 pm
  • I want to build my own arcade controls!
Re: How to Connect a Potentiometer to a USB Encoder
« Reply #4 on: July 10, 2020, 04:26:25 pm »
For analog devices like pots you want something like the APAC: https://www.ultimarc.com/control-interfaces/a-pac/a-pac/

Thank you! I think that makes more sense.

masusaca

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:July 21, 2020, 11:28:21 pm
  • I want to build my own arcade controls!
Re: How to Connect a Potentiometer to a USB Encoder
« Reply #5 on: July 10, 2020, 04:28:07 pm »
So, using  the analog encoder, how would I connect the potentiometer? I have never worked with a pot before, so this is new. Like I previously said. I want to rotate in the X axis only.

Also, what is the difference between A-PAC and I-PAC? I thought these things were a bit cheaper.
« Last Edit: July 10, 2020, 04:53:57 pm by masusaca »