Do any joysticks actually need 5V power?

For experts to discuss very technical stuff and newbies to ask why the Spectrum they bought off ebay doesn't work.
Post Reply
User avatar
TomD
Manic Miner
Posts: 394
Joined: Tue Nov 13, 2018 9:47 am
Location: Leeds UK
Contact:

Do any joysticks actually need 5V power?

Post by TomD »

Me again and another joystick question :-)

This time around the question is 5V is actually needed for most joysticks (on pin 7 for Kempston/Atari)? I know the Megadrive pad needs it (on pin 5), but only if you want all the buttons to work as it works fine passively but only two fire buttons register (B & C)

I've got a pretty sizeable collection of joysticks from the 80s and I've not found one that needs 5V. MasterSystem 2 button doesn't, Amstrad GX4000 doesn't, Competition Pro nope, ZipStick nada... Autofire circuits also don't seem to need it with my ZipStick working fine. Note this is the separate 5V on pin 7, not the direction pins or fire buttons.

Sinclair didn't add it to their joystick interface but Kempston did and I'm just wondering why? Most joysticks just connect the direction/fire pins to ground to activate, meaning you only need to pull up the pins to get it to work.

TomD
Retro enthusiast and author of Flynn's Adventure in Bombland, The Order of Mazes & Maze Death Rally-X. Check them out at http://tomdalby.com
AndyC
Dynamite Dan
Posts: 1445
Joined: Mon Nov 13, 2017 5:12 am

Re: Do any joysticks actually need 5V power?

Post by AndyC »

Isn't it essentially anything with autofire? Or anything that used additional logic to multiplex buttons on a single wire (hence the MegaDrive pads needing it).
User avatar
TomD
Manic Miner
Posts: 394
Joined: Tue Nov 13, 2018 9:47 am
Location: Leeds UK
Contact:

Re: Do any joysticks actually need 5V power?

Post by TomD »

AndyC wrote: Tue Nov 14, 2023 10:18 am Isn't it essentially anything with autofire? Or anything that used additional logic to multiplex buttons on a single wire (hence the MegaDrive pads needing it).
My Zipstick with autofire works fine without it. I took it apart and it seems the autofire circuit is just a simple transistor circuit powered form the fire pin, so as long as that has power it works fine. Let me try and find another one with autofire to check.
Retro enthusiast and author of Flynn's Adventure in Bombland, The Order of Mazes & Maze Death Rally-X. Check them out at http://tomdalby.com
cj7hawk
Manic Miner
Posts: 361
Joined: Sat Sep 25, 2021 9:11 am

Re: Do any joysticks actually need 5V power?

Post by cj7hawk »

Power is only used when the joystick has active circuitry, or is analog or is a mouse.

It is possible to build a Kempston interface that populates both the Joystick register and the Mouse register at the same time, so both items will work in it like an autodetect, though I'm not sure that all software would expect that, and the joystick and mouse data might conflict.
User avatar
1024MAK
Bugaboo
Posts: 3152
Joined: Wed Nov 15, 2017 2:52 pm
Location: Sunny Somerset in the U.K. in Europe

Re: Do any joysticks actually need 5V power?

Post by 1024MAK »

There’s two types of auto-fire joysticks. Those that need a +5V supply on pin 7 and those that “steal” power from the fire button circuit (or indeed from any of the direction circuits).

I have some of each (although I can’t tell you off the top of my head which are which).

There’s also two types of auto-fire. Some joysticks even have a mode select switch. Either auto-fire when the trigger/button is pressed, or auto-fire in addition to the trigger/button (in other words, continuous auto-fire).

I’ve bought used/second hand/preloved joystick interfaces before where it’s been modified to provide a +5V supply to pin 7.

Mark
:!: Standby alert :!:
“There are four lights!”
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :dance
Looking forward to summer later in the year.
User avatar
Joefish
Rick Dangerous
Posts: 2080
Joined: Tue Nov 14, 2017 10:26 am

Re: Do any joysticks actually need 5V power?

Post by Joefish »

And that's assuming the interface uses 0V as the common and +5V on the switch lines. Some are the other way round!
I know at least that dual-port DK'Tronics uses 0V as common on one side and +5V on the other. It's because one side is Sinclair / Keyboard, and the other side is Kempston, so the 'on' bits are inverted on one and not the other. I can't remember which way round it is though.
User avatar
1024MAK
Bugaboo
Posts: 3152
Joined: Wed Nov 15, 2017 2:52 pm
Location: Sunny Somerset in the U.K. in Europe

Re: Do any joysticks actually need 5V power?

Post by 1024MAK »

Some of the early Kempston Electronics and copies/clones/compatibles used the +5V line for the common (pin 8). This makes no difference for a joystick that only uses mechanical switches/contacts.

These don’t work with any auto-fire joysticks or other devices that have active electronics.

Mark
:!: Standby alert :!:
“There are four lights!”
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :dance
Looking forward to summer later in the year.
User avatar
Seven.FFF
Manic Miner
Posts: 753
Joined: Sat Nov 25, 2017 10:50 pm
Location: USA

Re: Do any joysticks actually need 5V power?

Post by Seven.FFF »

cj7hawk wrote: Tue Nov 14, 2023 1:36 pm It is possible to build a Kempston interface that populates both the Joystick register and the Mouse register at the same time, so both items will work in it like an autodetect, though I'm not sure that all software would expect that, and the joystick and mouse data might conflict.
They can indeed conflict. In modern combo interfaces, where a fuller (not Fuller!) partial decoding is cheaper, it's usually usually done like this:

Code: Select all

+-+-++-------------------+---------+--------------------------------+
|R|W||5432 1098 7654 3210|Port(hex)|Description                     |
+-+-++-------------------+---------+--------------------------------+
|*| ||XXXX 1011 1101 1111| 0xfbdf  |Kempston mouse x                |
|*| ||XXXX 1111 1101 1111| 0xffdf  |Kempston mouse y                |
|*| ||XXXX 1010 1101 1111| 0xfadf  |Kempston mouse wheel, buttons   |
|*| ||XXXX XXXX 0001 1111| 0x1f    |Kempston joy                    |
+-+-++-------------------+---------+--------------------------------+
However some games deliberately read Kempston joystick with IN 0xdf, and put random crap on the upper 8 address bits. This breaks the disambiguated decoding and causes conflicts again.
Robin Verhagen-Guest
SevenFFF / Threetwosevensixseven / colonel32
NXtel NXTP ESP Update ESP Reset CSpect Plugins
User avatar
TomD
Manic Miner
Posts: 394
Joined: Tue Nov 13, 2018 9:47 am
Location: Leeds UK
Contact:

Re: Do any joysticks actually need 5V power?

Post by TomD »

Thanks for all the replies. I did manage to find an autofire joystick that needed the 5V connection so answered my own question. It was a Quickshot II Turbo. Interestingly it works fine with a much lower voltage (3v3) so will assume its a similar transistor based circuit.

TomD
Retro enthusiast and author of Flynn's Adventure in Bombland, The Order of Mazes & Maze Death Rally-X. Check them out at http://tomdalby.com
User avatar
spider
Dynamite Dan
Posts: 1106
Joined: Wed May 01, 2019 10:59 am
Location: Derby, UK
Contact:

Re: Do any joysticks actually need 5V power?

Post by spider »

Interesting to know as I'd always -assumed- the autofire function would require a 5v line. :) For my own gaming preferences, typically I'd not need such a feature.

I can't recall exactly if the Megadrive pads fully functioned on both Sinclair and Kempston, likely I got annoyed and modified the pad so all three buttons worked as one "fire" , long ago so not sure.


Could be wrong but I am half sure -some- types of sticks likely not for our machines would accept a couple of AA batteries too, for functions.
User avatar
Seven.FFF
Manic Miner
Posts: 753
Joined: Sat Nov 25, 2017 10:50 pm
Location: USA

Re: Do any joysticks actually need 5V power?

Post by Seven.FFF »

I'm not sure, because I never had any interest in the C64/Amiga scene, but I think the wiring was for 3 button quadrature mice, and while the sticks always had the potential to coexist for the same wiring, nobody apart from much more recent hobbyists ever made any. So nobody made any games either. Similar lowest common denominator factors as 2 button on the Spectrum.

Best to stick to Sega 3 or 6 button protocol IMHO, as they actually do exist and people use them. There are plenty of sticks around for people that don't like gamepads.
Robin Verhagen-Guest
SevenFFF / Threetwosevensixseven / colonel32
NXtel NXTP ESP Update ESP Reset CSpect Plugins
User avatar
1024MAK
Bugaboo
Posts: 3152
Joined: Wed Nov 15, 2017 2:52 pm
Location: Sunny Somerset in the U.K. in Europe

Re: Do any joysticks actually need 5V power?

Post by 1024MAK »

IIRC, the Quickjoy Jet Fighter Joystick SV-126 also needs a +5V supply on pin 7.

Mark
:!: Standby alert :!:
“There are four lights!”
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :dance
Looking forward to summer later in the year.
User avatar
Seven.FFF
Manic Miner
Posts: 753
Joined: Sat Nov 25, 2017 10:50 pm
Location: USA

Re: Do any joysticks actually need 5V power?

Post by Seven.FFF »

Seven.FFF wrote: Tue Nov 14, 2023 7:21 pm but I think the wiring was for 3 button quadrature mice
Darn it, this was meant to be a reply to this thread.
Robin Verhagen-Guest
SevenFFF / Threetwosevensixseven / colonel32
NXtel NXTP ESP Update ESP Reset CSpect Plugins
User avatar
TomD
Manic Miner
Posts: 394
Joined: Tue Nov 13, 2018 9:47 am
Location: Leeds UK
Contact:

Re: Do any joysticks actually need 5V power?

Post by TomD »

Seven.FFF wrote: Tue Nov 14, 2023 7:21 pm I'm not sure, because I never had any interest in the C64/Amiga scene, but I think the wiring was for 3 button quadrature mice, and while the sticks always had the potential to coexist for the same wiring, nobody apart from much more recent hobbyists ever made any. So nobody made any games either. Similar lowest common denominator factors as 2 button on the Spectrum.

Best to stick to Sega 3 or 6 button protocol IMHO, as they actually do exist and people use them. There are plenty of sticks around for people that don't like gamepads.
That does make sense as the same port used for a mouse. You are probably right in getting it to work with the Sega pads makes the most sense.

TomD
Retro enthusiast and author of Flynn's Adventure in Bombland, The Order of Mazes & Maze Death Rally-X. Check them out at http://tomdalby.com
User avatar
Seven.FFF
Manic Miner
Posts: 753
Joined: Sat Nov 25, 2017 10:50 pm
Location: USA

Re: Do any joysticks actually need 5V power?

Post by Seven.FFF »

TomD wrote: Wed Nov 15, 2023 1:32 pm You are probably right in getting it to work with the Sega pads makes the most sense.
I have schematics for 3- and 6- button Sega controllers, if you're interested in exploring that part too. Not for the host side, but I think you're going to do that part with a pico, and you have it well-covered.
Robin Verhagen-Guest
SevenFFF / Threetwosevensixseven / colonel32
NXtel NXTP ESP Update ESP Reset CSpect Plugins
Post Reply