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: Steering Wheel Encoder and U-HID  (Read 1882 times)

0 Members and 1 Guest are viewing this topic.

lamprey

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 636
  • Last login:January 17, 2019, 07:03:11 pm
Steering Wheel Encoder and U-HID
« on: May 09, 2014, 12:41:02 pm »
Hi,

I recently picked up a Championship Sprint CP with steering wheels. It needs some TLC to be sure, but I was trying to verify if the optical PCBs are any good. So, I tried hooking them to my U-HID and setting it up as a Quadrature Mouse device.

My assumption is that is the Pin out connector for the Optical PCB  is (X1) (Ground) (5V) (X2), like in this picture:
http://www.ultimarc.com/images/happboard.jpg

If I configure the Quadrature device to be a Button Pair I can see buttons occasionally being "pressed" on the game control config in Windows. Obviously, I don't want that, so when the Quadrature device is set to a axis (say X), does it function like a mouse? Meaning should I see the mouse move around the screen when I turn the wheel?

Based on the intermittent nature of the "button" presses I was seeing, I'm guessing the optical PCB is bad. I'll probably try direct wiring just to verify that the wiring harness doesn't have an issue. However, I wanted to make sure I'm looking for the right thing (a moving mouse cursor) in order to determine if the PCB is working.

Thanks!

Paul Olson

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1235
  • Last login:June 20, 2024, 08:23:41 am
    • Paul's Arcade
Re: Steering Wheel Encoder and U-HID
« Reply #1 on: May 09, 2014, 12:54:04 pm »
If you have it set up right, and set as quadrature, it will move your cursor in Windows on one axis, so you know it is working. +5v and ground are normally on the outside of the connector. xi and x2 on the inside.

Paul Olson

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1235
  • Last login:June 20, 2024, 08:23:41 am
    • Paul's Arcade
Re: Steering Wheel Encoder and U-HID
« Reply #2 on: May 09, 2014, 12:55:14 pm »
If you post a pic of the encoder board that lets me see the traces, I can tell you for sure.

lamprey

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 636
  • Last login:January 17, 2019, 07:03:11 pm
Re: Steering Wheel Encoder and U-HID
« Reply #3 on: May 09, 2014, 01:07:22 pm »
Thanks Paul,

These aren't mine, but if you look at the pics attached to this post, the right-most PCB looks like the Atari ones I have.

EDIT: I'll double verify when I get home that the traces are the same.

lamprey

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 636
  • Last login:January 17, 2019, 07:03:11 pm
Re: Steering Wheel Encoder and U-HID
« Reply #4 on: May 09, 2014, 08:13:19 pm »
Yeah, the PCBs that I have look just like these (right side):
http://forum.arcadecontrols.com/index.php?action=dlattach;topic=114203.0;attach=172253

Paul Olson

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1235
  • Last login:June 20, 2024, 08:23:41 am
    • Paul's Arcade
Re: Steering Wheel Encoder and U-HID
« Reply #5 on: May 10, 2014, 02:35:53 am »
That looks like the same board that was used in the 2.25" trackballs. I think the labelled connector you were working off of is backwards from this one. Looking at the front of the board, one of the inputs on the left, then 5v, then ground, then the other input. If the cursor on the screen moves in the wrong direction, just swap the input wires.

lamprey

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 636
  • Last login:January 17, 2019, 07:03:11 pm
Re: Steering Wheel Encoder and U-HID
« Reply #6 on: May 17, 2014, 01:28:02 am »
I can't seem to get this working..  :banghead:

I couldn't prove that the PCBs were any good so I bought a replacement pair from TwistyWristArcade and I can't get those going either. I can prove that the U-HID works as I got my Star Wars yoke working and can prove that quadrature works with a trackball. But, when I try hooking to the Atari PCBs I get nothing. I doubled check my connections with a volt meter and I can see that all the way rom the U-HID to the PCB is connected without interruption.

I also made a half-hearted attempt to hook these to an opti-pak and no dice either. I'm feeling rather silly here, so if anyone has any other advice or has hooked this type of Atari PCB to a U-HID and can assist in anyway, I'd appreciate it.

Thanks!

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9704
  • Last login:Today at 06:48:16 am
  • Designated spam hunter
Re: Steering Wheel Encoder and U-HID
« Reply #7 on: May 17, 2014, 02:28:14 am »
Have you used a cell phone/digital camera to check if the IR LED part of the optical circuit is working?


Scott

lamprey

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 636
  • Last login:January 17, 2019, 07:03:11 pm
Re: Steering Wheel Encoder and U-HID
« Reply #8 on: May 17, 2014, 11:21:38 am »
Have you used a cell phone/digital camera to check if the IR LED part of the optical circuit is working?
Dang, I wish I knew you could do that earlier. :) I just checked all 4 of the PCBs with a digital camera and they are all show a couple of glowing dots when powered up.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9704
  • Last login:Today at 06:48:16 am
  • Designated spam hunter
Re: Steering Wheel Encoder and U-HID
« Reply #9 on: May 17, 2014, 02:07:55 pm »
Good news -- Looks like you're 1/2 way there.   ;D

Check the voltage on one of the data lines.

When you slowly turn the encoder wheel, does the voltage vary between high and low?

If it does (and you have a second multimeter), when you slowly turn the encoder wheel, do the two data lines alternate changing states between high and low?  (phase 1 to phase 2 B changes, 2 to 3 A changes, 3 to 4 B changes, 4 to 1 A changes )



Coding for clockwise rotation
Phase   A     B
1         0      0
2         0      1
3         1      1
4         1      0
   
Coding for counter-clockwise rotation
Phase   A     B
1         1      0
2         1      1
3         0      1
4         0      0

The only other thing that comes to mind is whether the boards you are using are "active low" (most common configuration) or "active high".   :dunno


Scott

Paul Olson

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1235
  • Last login:June 20, 2024, 08:23:41 am
    • Paul's Arcade
Re: Steering Wheel Encoder and U-HID
« Reply #10 on: May 19, 2014, 12:21:53 pm »
You can configure the optipac for active hi or active lo. Try it at both settings. I can never remember which one the U-HID supports, but the optipac can use both. I have an optipac because I have 4 devices not supported on the U-HID.

AndyWarne

  • Trade Count: (+18)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1938
  • Last login:April 11, 2021, 03:37:09 am
    • Ultimarc
Re: Steering Wheel Encoder and U-HID
« Reply #11 on: May 21, 2014, 12:23:20 pm »
You can configure the optipac for active hi or active lo. Try it at both settings. I can never remember which one the U-HID supports, but the optipac can use both. I have an optipac because I have 4 devices not supported on the U-HID.

The inputs on the U-HID are pulled up so the input device needs to actively pull low or float, as almost all do.

lamprey

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 636
  • Last login:January 17, 2019, 07:03:11 pm
Re: Steering Wheel Encoder and U-HID
« Reply #12 on: May 21, 2014, 11:26:33 pm »
I've been sick the last few days so I haven't had a check to check things out. I had some time tonight, so I played around some more. It appears that all the PCB's are working now. I was able to get the mouse moving using the Opti-pac set to Active High. Unfortunately, I can't seem to get the U-HID working with these PCBs.

At any rate, the assistance is much appreciated! I'm glad to have things actually functioning.

 :cheers: