Can a joypad be moded for the MSX?

Page 2/3
1 | | 3

By ali6x944

Master (196)

ali6x944's picture

16-06-2019, 10:31

Mmmmm
more modern joysticks would be a nightmare to modify completely and permanently -thinking of PS1 controller-...
however, an adapter solution seems promising, using the Arduino PSX library we can read the input and translate it to regular joystick movements or even better make it behaves more like a fancy mouse, however I don't see the ATMAGE328P as an economically viable solution for this -even when done with QFN package in 6000 chip T&R total's to $1.16391/chip-, that is plus the wasted I/O pins...

maybe if we can shrink it to a smaller form factor say PIC16LF15323 or similar -which in single unit quantities with a DIP package cost $0.87/chip -, it has just the right combination of speed, price, and capabilities to create a respectable converter, porting the Arduino library however will prove difficult, the chip has a mediocre amount of both RAM 256B and program memory 3.5KB.
if anyone has any other micros that have a more flexible and forgiving memory space please share it with us, the only viable way to do it efficiently is to make our own library, see pinout and protocol of the PSX controller .

By NYYRIKKI

Enlighted (5299)

NYYRIKKI's picture

16-06-2019, 11:32

I would not be that worried about the economical aspect of the chip it self. The connectors, packaging etc. are much more bigger cost than the chip price difference.

If you are worried about 328P pins going wasted, then maybe you could combine the project with my old PS/2 mouse solution(?)
https://www.msx.org/forum/msx-talk/hardware/use-10eu-connect...
This way you would get both modern mouse support & PS1 support with one device... You could also add PS/2 keyboard support etc. to reduce the amount of wasted flash memory. I think that would be time better used than porting the libraries.

By ali6x944

Master (196)

ali6x944's picture

16-06-2019, 13:06

@NYYRIKKI, for the economic aspect of it, true, the connectors, shipping, and packaging would contribute most to price if done in a massive scale, however a relatively cheap easy to assemble design is going to reduce the price for people who going to adopt the design and DIY it a.k.a us Smile
and for the combination with your project, I think it will be an excellent combination, and in this case, the Arduino can act as a universal adapter of serial joypads, mice, and joysticks which would be very cool Big smile

By Danjovic

Resident (55)

Danjovic's picture

17-06-2019, 05:27

Hi NYYRIKKI, can your arduino mouse adapter run on 8MHz ? if so you can dismiss the crystal and the capacitors and build the adapter using only the microcontroller and decoupling cap along with the connectors (4 components) . I have also noticed that after compiled your code uses only 6046 bytes so you can use a cheaper ATMega88.

By Grauw

Ascended (8202)

Grauw's picture

17-06-2019, 11:26

Using the 8BitDo Retro Receiver for SEGA Genesis & Mega Drive and JoyMega you can connect any modern bluetooth controller (incl. DualShock 4, XBox and Switch controllers) to MSX.

I wonder how difficult it is to mod the retro receiver so it has JoyMega built-in. The casing has tiny allen key screws (too tiny for my set of keys or I would’ve opened it already), I bet there is some room inside, although probably the electronics are tiny as well.

Or maybe 8BitDo could provide a special firmware to make it directly MSX compatible...

By gdx

Prophet (2868)

gdx's picture

17-06-2019, 11:09

Same for the JoySNES.

By NYYRIKKI

Enlighted (5299)

NYYRIKKI's picture

18-06-2019, 01:48

Danjovic wrote:

Hi NYYRIKKI, can your arduino mouse adapter run on 8MHz ?

As is... No, I don't think so... I already needed to do some optimization to make respond quickly enough on 16Mhz. I have no doubt it can be done though by using a bit different approach.

Quote:

I have also noticed that after compiled your code uses only 6046 bytes so you can use a cheaper ATMega88.

Look... I got my MSX in 1986... back then with a price of ATMEGA328P I could have bought for example one 74LS14 (= 6x NOT-gate)... I don't know about you guys, but I think today I can adapt my daily consumption enough that I can pay that extra price just to make sure that next possible improvement/feature update will fit in as well.

You just can't make this 1000pcs mega-project and for small DIY... I would not even bother to think anything as with a price of a coffee cup you can order Arduino Nano to home (with USB-connector attached and all) and the code will be uploaded, tested & troubleshooted so much faster that any other optimization becomes irrelevant if you appreciate your time even a bit.

By Danjovic

Resident (55)

Danjovic's picture

18-06-2019, 03:58

NYYRIKKI wrote:

You just can't make this 1000pcs mega-project and for small DIY... I would not even bother to think anything as with a price of a coffee cup you can order Arduino Nano to home (with USB-connector attached and all) and the code will be uploaded, tested & troubleshooted so much faster that any other optimization becomes irrelevant if you appreciate your time even a bit.

Ok, I got your point.

By ali6x944

Master (196)

ali6x944's picture

20-06-2019, 10:24

Smile

By MSX Calamar

Resident (55)

MSX Calamar's picture

20-06-2019, 13:26

For PlayStation 1 and PlayStation pads, you can try PSX2MSX adapter.
http://www.msxcalamar.com/catalog/index.php?id_product=8&con...
It works also with minijoyticks.

For Megadrive pads, the Joymega adapter. Look at http://www.msxcalamar.com/catalog/index.php?id_product=31&co...

Page 2/3
1 | | 3