Page 1 of 1

Psp 1000 joystick on CSL

Posted: Sat Mar 09, 2019 2:18 pm
by bahnstormer
Hi all,

First up, sorry if this a noob question!

I'm just in the process of building my very first Circuit Sword Lite build and was wondering how a PSP 1000 stick connects to the board? I see the six pads labelled up, down, left, right, gnd and 3.3v, but the stick only has four outputs for gnd, power, up/down and left/right.

Image

How do the shared X/Y outputs from the stick connect to the separate X/Y inputs on the board?

Image

Or, is there a better stick to use with the CSL?

Hope this makes sense and thank you in advance! :).

Re:

Posted: Sun Mar 10, 2019 9:35 am
by kite
The label on the board says "Digital Joystick" meaning those input pads must be digital only (on/off, not an analog value from a stick).

Those pins will all be "HIGH" at 3.3v, and if you short it to GND it will 'activate'.

If you wanted to actually use a stick, you would need something to convert the analog joystick into a digital output.. you would need to use something like an Arduino to read the input, apply some logic to the value "is up pressed?" and then send that to the output (one of those pins).

I hope that explanation helps! The code should be relatively simple and would be a good project for someone looking for something a bit more involved! On more recent boards there is also a CLOCK pin (or labelled similar) which gets pulsed when data is being read from the pin (not really relevant to your use, but if someone stumbled upon this then perhaps they'd like to know that info)

It's probably also important to note that it won't "appear" to the OS as a joystick, it will send some keyboard buttons for it (i forget which, but it's easy to find out on the command line (press the buttons and see what key it writes))

Re: Psp 1000 joystick on CSL

Posted: Mon Mar 25, 2019 11:42 am
by sandog
So will a PSP1000 joystick work on the Sword right out of the box?

Re:

Posted: Tue Mar 26, 2019 7:05 am
by kite
sandog wrote:
Mon Mar 25, 2019 11:42 am
So will a joystick work on the Sword right out of the box?
On the CSL? No.
On the CS (with CM3)? Yes.