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: Can you hookup a Happ trackball to Apache push/pull spinner?  (Read 2867 times)

0 Members and 1 Guest are viewing this topic.

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Can you hookup a Happ trackball to Apache push/pull spinner?
« on: November 20, 2012, 10:04:18 pm »
I have the main board version that does support it (so it says)  Which wires go where? This is my first trackball :)

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9684
  • Last login:Today at 07:10:36 am
  • Designated spam hunter
Re: Can you hookup a Happ trackball to Apache push/pull spinner?
« Reply #1 on: November 21, 2012, 12:36:37 am »
I have the main board version that does support it (so it says)  Which wires go where? This is my first trackball :)

The trackball works like a mechanical mouse.

Further details and better pictures here and there's an explanation of quadrature waveforms here.

There are 4 wires per axis leading to the encoder:
1. 5v - operating voltage for the LED
2. Data A
3. Data B
4. Ground (Sometimes jumpered inside the trackball case, leaving one axis with only 3 wires)

If you accidently swap Data A for Data B, you are swapping quadrature waveform A for waveform B which the encoder translates as turning the other way.



Page 11 of the Apache Manual shows where the data lines X1, X2, Y1, and Y2 connect. (lower left)

You should be able to get 5v and ground for the trackball from either the terminals on the right side of the same board (see page 8 of the manual) or from a PC Molex connector.


Scott
« Last Edit: July 30, 2016, 12:39:52 pm by PL1 »

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Re: Can you hookup a Happ trackball to Apache push/pull spinner?
« Reply #2 on: November 21, 2012, 01:14:27 am »
Thats way over my head but thank you for the detailed reply :)  A yes or no would have been good too  :cheers:  I just have to figure out what wire is what coming from the trackball.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9684
  • Last login:Today at 07:10:36 am
  • Designated spam hunter
Re: Can you hookup a Happ trackball to Apache push/pull spinner?
« Reply #3 on: November 21, 2012, 03:24:14 am »
Thats way over my head but thank you for the detailed reply :)  A yes or no would have been good too  :cheers:  I just have to figure out what wire is what coming from the trackball.

Ultimarc describes Happ trackball wiring colors and general troubleshooting here.

Black (2 wires) - GND
Red (2 wires) - +5V
Purple - X1
Blue - X2
Yellow - Y1
Green - Y2


Scott

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Re: Can you hookup a Happ trackball to Apache push/pull spinner?
« Reply #4 on: November 21, 2012, 10:34:56 pm »
K its hooked up but the trackball is not working.  And my spinner goes all over the place now.  Is there a jumper i need to change or maybe hook it up to z and x instead of x and y?   :dizzy:

Just to make sure the Blue and Purple wires are Y axis, Green and Yellow are X axis?
« Last Edit: November 21, 2012, 11:18:17 pm by equlizer »

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9684
  • Last login:Today at 07:10:36 am
  • Designated spam hunter
Re: Can you hookup a Happ trackball to Apache push/pull spinner?
« Reply #5 on: November 22, 2012, 08:00:26 pm »
K its hooked up but the trackball is not working.  And my spinner goes all over the place now.  Is there a jumper i need to change or maybe hook it up to z and x instead of x and y?   :dizzy:
The owner's manual linked above has directions on how to set the spinner to Z-axis operation.

If you change the spinner to Z-axis, there is a method here describing recompiling MAME to work around Windows handling of Z-axis as 1:4 (1 encoder transition=4 steps) as opposed to X- or Y-axis as 1:1 (1 transition=1 step).

This is probably the best plan to keep the spinner and trackball sensors from confusing the encoder.  The trackball will act like a mouse (X-Y) and the spinner like the scroll wheel. (Z)

Just to make sure the Blue and Purple wires are Y axis, Green and Yellow are X axis?

Only if you mounted the trackball housing turned either 90 or 270 degrees.

According to the Ultimarc page, blue and purple are X-axis. (horizontal)

Green and yellow are Y-axis. (vertical)

If you're having problems, start by just connecting the Y-axis.

Once you do that, plug it in and see if the trackball works for vertical. (you might have the trackball turned 90 or 270 degrees)  :dunno

If the vertical is backward, swap wires.

The other possible problem is if the trackball is "active-low" and the encoder is "active-high" or vice versa.  (We'll look into that possibility if isolating the trackball connections to just the vertical axis doesn't work right.)


Scott

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Re: Can you hookup a Happ trackball to Apache push/pull spinner?
« Reply #6 on: November 24, 2012, 05:04:34 pm »
Got the trackball working but now the spinner wont work.  push and pull do but thats all.  I did not change any jumpers.  This is frustrating :(  Even after unplugging the trackball the spinner still wont work!!

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9684
  • Last login:Today at 07:10:36 am
  • Designated spam hunter
Re: Can you hookup a Happ trackball to Apache push/pull spinner?
« Reply #7 on: November 24, 2012, 07:08:31 pm »
Try this:

1. Change the jumper to move the spinner to the Z-axis. Page 8 of the manual PDF, first diagram, just below center on the left.

2. Remap the controls in MAME.


Scott
EDIT: You can find the manual at http://web.archive.org/web/20140511031735/http://www.apachecontrols.com/ApacheControlsBlackhawk.pdf.
« Last Edit: January 08, 2017, 02:26:54 pm by PL1 »

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Re: Can you hookup a Happ trackball to Apache push/pull spinner?
« Reply #8 on: November 25, 2012, 06:46:05 pm »
Ive tried re mapping everything in mame but games dont recognize the spinner on Z.  eg.  when i go to map it to say: Dial V analog and spin the spinner, it does see Mouse Z but thats as far as i get.

I have no idea how to recompile mame :(  Im running ver 0.143u5 sept 6 2011)

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9684
  • Last login:Today at 07:10:36 am
  • Designated spam hunter
Re: Can you hookup a Happ trackball to Apache push/pull spinner?
« Reply #9 on: November 25, 2012, 07:17:25 pm »
The recompile mentioned adjusts MAME's handling of the z-axis from 4 steps per transition to 1 step per transition.

As long as MAME sees/maps the control, Games should work without recompiling, they'll just be a little jumpy compared to X- or Y-axis configurations.

When you're in Windows, does the spinner work properly as a scroll wheel?

Have you tried a different game?


Scott

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Re: Can you hookup a Happ trackball to Apache push/pull spinner?
« Reply #10 on: November 25, 2012, 08:24:53 pm »
Windows does not see it at all at the Z axis.  I got it to work but its now jumping all over the place and in reverse..hah.  more tinkering
« Last Edit: November 25, 2012, 09:18:09 pm by equlizer »

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9684
  • Last login:Today at 07:10:36 am
  • Designated spam hunter
Re: Can you hookup a Happ trackball to Apache push/pull spinner?
« Reply #11 on: November 25, 2012, 10:03:10 pm »
Windows does not see it at all at the Z axis.  I got it to work but its now jumping all over the place and in reverse..hah.  more tinkering

There are jumpers on the spinner board for reversing the axis. (Just above axis select)

You'll probably want to start by dialing the sensitivity way down in MAME's Analog controls menu (for Tempest, try a sensitivity of ~6) until you can figure out how to recompile MAME.


Scott

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Re: Can you hookup a Happ trackball to Apache push/pull spinner?
« Reply #12 on: November 25, 2012, 10:27:35 pm »
K i got it fairly smooth (no jittering) but the movement is slow. Will recompiling change that?  If you could do it for me ill paypal you $5 :)

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9684
  • Last login:Today at 07:10:36 am
  • Designated spam hunter
Re: Can you hookup a Happ trackball to Apache push/pull spinner?
« Reply #13 on: November 25, 2012, 11:53:16 pm »
K i got it fairly smooth (no jittering) but the movement is slow. Will recompiling change that?  If you could do it for me ill paypal you $5 :)
Thanks for the offer, but two things keep me from taking you up on that.
1. No experience recompiling MAME for this or anything else.   :dunno
2. No PayPal account.   :lol

Try dialing up the sensitivity to increase the speed -- I assume you are referring to the rotation speed of your "blaster" ship in Tempest rather than lag.

When you recompile MAME per that earlier link, IIRC it works like this:
Optical encoder reports 1 Z-Axis transition to Windows.
Windows translates that as 4 Z-Axis steps. (like a typical scroll wheel)
MAME divides the 4-step input by 4 to give you 1 Z-Axis step.
End result: 1 optical transition = 1 step, just like the X- and Y-Axis inputs are handled.

If the sensitivity works good now, when you recompile, increase the sensitivity by 4x. (Should be the same value you originally used when the spinner was on the X-Axis.)


Scott

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Re: Can you hookup a Happ trackball to Apache push/pull spinner?
« Reply #14 on: November 26, 2012, 12:41:55 am »
I guess some games just weren't meant to be  :badmood:  eg: kick, no matter what settings i use, its all over the place.  Your setting of 6 for tempest was perfect though!

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9684
  • Last login:Today at 07:10:36 am
  • Designated spam hunter
Re: Can you hookup a Happ trackball to Apache push/pull spinner?
« Reply #15 on: November 26, 2012, 02:58:31 am »
If Tempest is good at sensitivity 6, Kick (kick.zip) should work at sensitivity ~3.




Scott
« Last Edit: November 26, 2012, 03:12:07 am by PL1 »