Author Topic: New Joystick and/or game pad  (Read 1470 times)

0 Members and 1 Guest are viewing this topic.

Online TotO

  • 6128 Plus
  • ******
  • Posts: 3.348
  • Country: fr
    • ?area=showdonations;u=4
  • Liked: 2557
  • Likes Given: 1500
Re: New Joystick and/or game pad
« Reply #25 on: 12:56, 29 January 19 »
Here a setting made exactly 3 years ago (01/29/2016) to build custom controllers using SNES based layout for the CPC with two embedded ICs for the MultiPlay expansion board:
Note: If used on PLUS/GX, this design allow to continue to have a logical layout without the "C" input (SPARE/FIRE3 pin 5).

Code: [Select]
DIRECTIONS ENCODING

  LUDR
0 ---- = -
1 ---R = RIGHT        = 00001000 = &08
2 --D- = DOWN         = 00000010 = &02
3 --DR = -
4 -U-- = UP           = 00000001 = &01
5 -U-R = -
6 -UD- = START        = 00000011 = &03
7 -UDR = -
8 L--- = LEFT         = 00000100 = &04
9 L--R = SELECT       = 00001100 = &0B

BUTTONS ENCODING

  321
0 --- = -
1 --1 = A             = 00010000 = &10
2 -2- = B             = 00100000 = &20
3 -21 = -
4 3-- = X  (C)        = 01000000 = &40
5 3-1 = RT (A+C)      = 01010000 = &50
6 32- = LT (B+C)      = 01100000 = &60
7 321 = Y  (A+B+C)    = 01110000 = &70

May be it can help for your design. (you should add a lithium battery to power the ICs... if used on the joystick port)
Some 5$ controllers shells on eBay will do the job with a new PCB... Just require to replace the USB cable by the good one! ;) 




Now... The 6 buttons MD/SAT controllers are nice for using A, B, C as standard fire and X, Y, Z as auto-fire!  ;D


« Last Edit: 14:56, 29 January 19 by TotO »
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline geebus

  • Amateur Geek
  • Supporter
  • CPC664
  • *
  • Posts: 74
  • Country: scotland
    • Gee-k.net
  • Liked: 31
  • Likes Given: 31
Re: New Joystick and/or game pad
« Reply #26 on: 19:19, 04 February 19 »
Thanks for the help so far folks. I've made up a schematic and drawn up my PCB to get a couple ordered.
Before I do however, On my prototype board I linked the two com ports so that if a y splitter was used the controller would work as player 1 or player 2. Is this the usual way of doing things? I don't think the joystick that I have does this. As, If you plug it in without a y splitter, it fires out the signals for both player 1 and player 2. Doesn't seem to cause any trouble when playing games though. But I've never played a simultaneous 2 player CPC game before.. Do they exist?

Offline geebus

  • Amateur Geek
  • Supporter
  • CPC664
  • *
  • Posts: 74
  • Country: scotland
    • Gee-k.net
  • Liked: 31
  • Likes Given: 31
Re: New Joystick and/or game pad
« Reply #27 on: 23:41, 04 February 19 »
Nevermind, I looked at how the splitters work. I'll rectify my schematic etc.

Offline geebus

  • Amateur Geek
  • Supporter
  • CPC664
  • *
  • Posts: 74
  • Country: scotland
    • Gee-k.net
  • Liked: 31
  • Likes Given: 31
Re: New Joystick and/or game pad
« Reply #28 on: 21:59, 23 February 19 »
Hi all, After my prototype worked fine I thought i'd make some PCB's. I got 10 of them through the post today and I soldered the switches and wires in on one of them. I will change the wires from being soldered directly to the board to some pins with connectors on the wires I think.
Next thing I need to do is make a case for these babies!
Not sure what way to go. I was thinking of 3d printing them, but I'm not sure how the quality would be with that.I need to put some cable relief in the case somehow so the wires don't accidentally get pulled out.

If you want to read more about it I made another post on my blog:https://gee-k.net/article.php?id=44
Sorry for the shameless self promotion.

Offline geebus

  • Amateur Geek
  • Supporter
  • CPC664
  • *
  • Posts: 74
  • Country: scotland
    • Gee-k.net
  • Liked: 31
  • Likes Given: 31
Re: New Joystick and/or game pad
« Reply #29 on: 14:46, 29 March 19 »
Hi folks.Almost completed a fully functioning joypad.I'm gonna upload all the .stl files and schematics etc at some point (To my own website and possibly the wiki pages in the DIY?)
I want to make the fire buttons a bit bigger. 10mm instead of the current 8mm. Not sure why I went with 8mm! They just don't feel so good at that size.

Offline geebus

  • Amateur Geek
  • Supporter
  • CPC664
  • *
  • Posts: 74
  • Country: scotland
    • Gee-k.net
  • Liked: 31
  • Likes Given: 31
Re: New Joystick and/or game pad
« Reply #30 on: 11:51, 17 April 19 »

Made another controller in blue, with slightly larger buttons then had a little play the other day and thought it could be better. More ergonomic! So I made a wee surround that makes it a little better to hold.
I'm printing out another one as I write. Thought you all might like a peek!


It works pretty good. So when the second controller is completed (should have the last part printed by the time I get home), I'd like to have a play of 1943 with another.

Yesterday I toke delivery of my splitter PCB's and soldered one up. I tried it out last night with some really odd results.
The two controllers that I currently have both work fine when plugged straight into the 464 (as controller 1). If I use the splitter, the fire 1 (Z) works but none of the rest work correctly. If I hold the Z button down, then left works and then down and right are reversed. I'm getting nothing from either up or X. This is the same for port 2 but with the relevant port two outputs.
I'm wondering if the cheap diodes I bought from China have the cathode side marked wrong and they should in fact be the opposite way around? Or if (more likely!) I've no understanding of the way the diode should go haha!

Offline geebus

  • Amateur Geek
  • Supporter
  • CPC664
  • *
  • Posts: 74
  • Country: scotland
    • Gee-k.net
  • Liked: 31
  • Likes Given: 31
Re: New Joystick and/or game pad
« Reply #31 on: 12:13, 17 April 19 »
I thought i'd add an image of the splitter PCB's to see if anyone can see just by looking at it what is going on..

Offline geebus

  • Amateur Geek
  • Supporter
  • CPC664
  • *
  • Posts: 74
  • Country: scotland
    • Gee-k.net
  • Liked: 31
  • Likes Given: 31
Re: New Joystick and/or game pad
« Reply #32 on: 15:59, 19 April 19 »
Got my splitters working fine now. Found the issue. Was just me being a pillock!
Need to design a case for it and print them out now.