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: u-hid and pedals, having issues  (Read 1185 times)

0 Members and 1 Guest are viewing this topic.

tony.silveira

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 697
  • Last login:September 27, 2024, 03:04:35 pm
    • my baby
u-hid and pedals, having issues
« on: October 17, 2013, 12:33:52 am »
hey guys,

loving my u-hid, i did a complete rewiring of my panel and think this board is brilliant.  i am having some issues with some pedals i'm trying to add and i am 100% confident that i'm not smart enough to figure this out.  i have two sets of identical pedals, for P1 and P2.  i have them wired up as such:

P1 gas (red, black, white)
P1 brake (red, black, green)
P1 pedals share the red and black which i have wired to the u-hid on a 5v and ground pin respectively.  white and green are each wired to two different pins on the u-hid, set up as axis 5 (slider) and axis 7 (slider).  when i check the game device properties to test, gas is the Y rotation and brake is the slider.  P1 pedals behaving perfectly, great!

P2 gas (red, black, white)
P2 brake (red, black, green)
P1 pedals share the red and black which i have wired to the u-hid on the same 5v and ground pin that P1 pedals are wired to.  white and green are each wired to two different pins on the u-hid, set up as axis 4 (slider) and axis 6 (slider).  now here is the issue, when i check the game control properties. the brake pedal is fine, controlling only the X rotation.  but the gas pedal is affecting the X and Y rotations, the slider and also the Z rotation slightly.

i'm thinking it's because i am sharing the 5v/ground between both pedal sets but am not sure why that would cause this issue.

pedals make my head hurt

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9676
  • Last login:Today at 01:48:55 am
  • Designated spam hunter
Re: u-hid and pedals, having issues
« Reply #1 on: October 17, 2013, 02:51:38 am »
Pretty much certain that sharing the 5v/ground isn't the problem.

Just to verify, you do have the 5v + ground on tabs 1 + 3 (or 3 + 1 to move the opposite direction) and the wiper (green or white) on tab 2, right?

If you hook the multimeter to pins 1 and 3, you should see 5v at all times, even while pressing and releasing the pedal(s).

Connect an analog multimeter* between pin 2 and ground to see if you have a smooth change in voltage as you press the pedal.

 * Due to the lag in sampling and displaying readings, digital multimeters will miss spikes and dropouts that an analog meter will catch.


Scott

AndyWarne

  • Trade Count: (+18)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1938
  • Last login:April 11, 2021, 03:37:09 am
    • Ultimarc
Re: u-hid and pedals, having issues
« Reply #2 on: October 19, 2013, 04:12:47 am »
Something which might cause this behaviour is having pins defined as analog axes which are not connected to anything. Can you check for this.

Andy

tony.silveira

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 697
  • Last login:September 27, 2024, 03:04:35 pm
    • my baby
Re: u-hid and pedals, having issues
« Reply #3 on: October 28, 2013, 11:28:25 pm »
Something which might cause this behaviour is having pins defined as analog axes which are not connected to anything. Can you check for this.

Andy

thanks for the insight guys.  i had a wire which was sorted and causing weird behavior, all good now!