CPCWiki forum

General Category => Amstrad CPC hardware => Topic started by: trabitboy on 12:25, 16 November 14

Title: Custom arcade stick wiring
Post by: trabitboy on 12:25, 16 November 14
Before sending my machine for repair to Bryce , I wired my custom arcade stick to a db9 for cpc use,  using the wiring found on the wiki.

However a short time after,  I learnt in a raspberry electronics tutorial that to read a switch you need a pull up or pull down resistor.

I was wondering if it was safe to connect switches directly to the cpc joystick port ? ( an arcade stick control is just a switch)

I have been quite surprised to see how much better the latest home brews play with a top notch stick, as well as the classics.
Nice Sunday to all btw ;^)
Title: Re: Custom arcade stick wiring
Post by: pelrun on 13:49, 16 November 14

It's 100% safe to connect a switch to the CPC joystick port; that is exactly how it is designed to be used.


The switch inputs already have pullups, and the CPC toggles COM1 and COM2 low in sequence to determine which switches are set for each of the 1P and 2P sticks.


As far as the Pi (and other modern microcontroller GPIO pins) goes, usually they have a software-configurable internal pullup or pulldown resistor, removing the need for external ones. No damage will result from putting a switch on a pin without a (physical or logical) pullup, except that the switch won't work properly.

Title: Re: Custom arcade stick wiring
Post by: trabitboy on 14:27, 16 November 14


Quote from: pelrun on 13:49, 16 November 14
The switch inputs already have pullups, and the CPC toggles COM1 and COM2 low in sequence to determine which switches are set for each of the 1P and 2P sticks.

Exactly the question I was asking me thank you [emoji1]
Powered by SMFPacks Menu Editor Mod