USB4MAPLE adapter

Place for discussing homebrew games, development, new releases and emulation.
User avatar
MoeFoh
1300
Posts: 1380

Re: USB4MAPLE adapter

Post by MoeFoh »

onlycodered wrote: Wed Feb 26, 2025 5:45 pm https://www.amazon.com/RP2040-One-Pico- ... ast_sto_dp

Thought this was pretty cool. Basically the RP2040 with a USB type A connector on it. Seems like this would be a much more straightforward way to connect most peripherals. I may pick one of these up and try it out.
Let us know about your experience, if you pick one up.

User avatar
MoeFoh
1300
Posts: 1380

Re: USB4MAPLE adapter

Post by MoeFoh »

brucechapolin wrote: Tue Feb 25, 2025 10:07 pm Hi guys.

I've collected the debug log from Putty, using a USB UART cable.

This is for the controller Hori Fighting Stick Alpha for PS5.

There are three modes. PS4, PS5 and PC. Logs below.

PC MODE
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2025.02.26 15:54:03 =~=~=~=~=~=~=~=~=~=~=~=
HIDStarting
Starting
HID device address = 1, instance = 0 is mounted
HID Interface Protocol = None VID = 0F0D PID = 011E
HID has 0 reports
VID = 0f0d, PID = 011e
Protocol 0

PS4 Mode
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2025.02.26 15:52:57 =~=~=~=~=~=~=~=~=~=~=~=
Starting
HID device address = 1, instance = 0 is mounted
HID Interface Protocol = None VID = 0F0D PID = 011C
HID has 2 reports
VID = 0f0d, PID = 011c
Protocol 0
HID receive desc report:
05 01 09 05 A1 01 85 01 09 30 09 31 09 32 09 35
15 00 26 FF 00 75 08 95 04 81 02 09 39 15 00 25
07 35 00 46 3B 01 65 14 75 04 95 01 81 42 65 00
05 09 19 01 29 0E 15 00 25 01 75 01 95 0E 81 02
06 00 FF 09 20 75 06 95 01 81 02 05 01 09 33 09
34 15 00 26 FF 00 75 08 95 02 81 02 06 00 FF 09
21 95 36 81 02 85 05 09 22 95 1F 91 02 85 03 0A
21 27 95 2F B1 02 06 80 FF 85 E0 09 57 95 02 B1
02 C0 06 F0 FF 09 40 A1 01 85 F0 09 47 95 3F B1
02 85 F1 09 48 95 3F B1 02 85 F2 09 49 95 0F B1
02 85 F3 0A 01 47 95 07 B1 02 C0


PS5 MODE
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2025.02.26 15:51:41 =~=~=~=~=~=~=~=~=~=~=~=
HIDStarting
Starting
Starting
Starting
HID device address = 1, instance = 0 is mounted
HID Interface Protocol = None VID = 0F0D PID = 0184
HID has 2 reports
VID = 0f0d, PID = 0184
Protocol 0
HID receive desc report:
05 01 09 05 A1 01 85 01 09 30 09 31 09 32 09 35
09 33 09 34 15 00 26 FF 00 75 08 95 06 81 02 06
00 FF 09 20 95 01 81 02 05 01 09 39 15 00 25 07
35 00 46 3B 01 65 14 75 04 95 01 81 42 65 00 05
09 19 01 29 0E 15 00 25 01 75 01 95 0E 81 02 06
00 FF 09 21 95 0E 81 02 06 00 FF 09 22 15 00 26
FF 00 75 08 95 34 81 02 85 02 09 23 95 2F 91 02
85 03 0A 21 28 95 2F B1 02 06 80 FF 85 E0 09 57
95 02 B1 02 C0 06 F0 FF 09 40 A1 01 85 F0 09 47
95 3F B1 02 85 F1 09 48 95 3F B1 02 85 F2 09 49
95 0F B1 02 C0


Thanks
Scan codes are missing for ps4 & ps5 mode (pc mode not compatible).
Press each button or move joystick. Bottom row of display will change. Copy & paste to report for each input.

User avatar
pairo
shadow
Posts: 8
Location: Finland
Contact:

Re: USB4MAPLE adapter

Post by pairo »

Wanted to comment that my Zowie EC1-CW wireless mouse with its receiver works well. Just set the mouse to 125Hz 400DPI (can be done with the buttons under the mouse). I guess by extension all the Zowie mice should work.

User avatar
deluxux
Super Sonic
Posts: 1551

Re: USB4MAPLE adapter

Post by deluxux »

Dell Keyboard KB216t is working!! :)

joxley192
shadow
Posts: 12

Re: USB4MAPLE adapter

Post by joxley192 »

Finally got 1.3 screen working fully would of been able to get it sorted b4 but haven't really had the time and it's was just weird cause my 0.96 screen always worked but my 1.3 screen didn't don't know why but I decided to this morning to unsolder all my wiring and try again. Once I soldered it all bk together and the first trying it the screen didn't work but everything else did again so I was confused why it didn't then I unplugged it and plugged it bk and it work was so happy seeing dreamshell 4.01 on the screen it made my day and now its working like it should be thank u @megavolt85
Attachments
IMG_20250306_155957.jpg

Flatfire
shadow
Posts: 7
Dreamcast Games you play Online: None at the moment :)

Re: USB4MAPLE adapter

Post by Flatfire »

megavolt85 wrote: Wed Apr 10, 2024 6:08 pm
sonik wrote:I have input code for a lot of usb devices already working on the pico. Inclusing logitech racing wheels, the densha de go controller and so on.
I don't want to add devices that I don't have, without a device it is impossible to debug.
As for steering wheels, there is nothing in the HID protocol that would indicate that it is the steering wheel that is connected, which means there is no way to enable the correct mode for DseamCast, you can link by VID and PID, but then support will be limited to specific models
MoeFoh wrote:I was wondering about that myself - if megavolt85 is going to release the source code to the firmware?
maybe in the future, but not now.
in the tinyusb library the “vendor defined” protocol is broken, so I rewrote the HID class in my local copy so that the x360 controller would work; my project with the official rp2040 SDK simply won’t build.
Have you reconsidered this by any chance? I wouldn't exactly be miffed at having to rejig an HID class to get things working. I'm mostly interested in modifying which GPIO pins are used by the data lines on the controller, but maybe it's just easier to ask if there was a particular reason for the selection of GPIO 14/15? Is it utilizing the CTS/RTS or are you relying solely on the SIO feature?

If possible, it would just be more ergonomic to be able to solder to something like 12/13 on the RP2040-Zero Waveshare sells but it's a minor nitpick.

Thanks :)

User avatar
megavolt85
Developer
Posts: 2189

Re: USB4MAPLE adapter

Post by megavolt85 »

Flatfire wrote: Sat Mar 08, 2025 2:25 am s it utilizing the CTS/RTS or are you relying solely on the SIO feature?
SIO only
Flatfire wrote: Sat Mar 08, 2025 2:25 am If possible, it would just be more ergonomic to be able to solder to something like 12/13 on the RP2040-Zero Waveshare sells but it's a minor nitpick.
11, 12, 13 used for XBOX RF module

Flatfire
shadow
Posts: 7
Dreamcast Games you play Online: None at the moment :)

Re: USB4MAPLE adapter

Post by Flatfire »

*facepalm* I got wrapped up in the wiki while I was putting mine together and totally forgot you had the bit about the RF module at the start of the thread. Fair enough.

Flatfire
shadow
Posts: 7
Dreamcast Games you play Online: None at the moment :)

Re: USB4MAPLE adapter

Post by Flatfire »

Ended up putting it together with @pcwzrd13's wonderfully modelled shell, and figured I'd list all the parts I used and where I got them, since some folks may be reluctant to chop up an existing Dreamcast cable and I haven't seen a comprehensive list yet.

Parts/Tools: Now, I'm buying these items from Canada so I recognize that the list above may not be representative of what's accessible in your region but aside from the crimping tool which is likely to vary by region, I think most should be pretty easy to get. If you don't want to deal with crimping, you can also find extension leads for the Dreamcast on Aliexpress which are all wired up and ready to go, but they run $5-$7 CAD each.

As linked above, I also modified the bottom half of pcwzrd's enclosure so I could pass the 5V line underneath the RP2040-Zero, as it was a bit easier to solder. I didn't solder the top ground pin, as it's usually tied to the cable shielding (but for some reason I opted to do so for the sense pin? idk)

Lastly, the results:

Image
Image

Something very strange about plugging in a DualSense controller to play JSR but here we are. My current setup consists of an Orico brand USB hub connected via an OTG adapter, a cheap 16GB Sandisk USB drive for the emulated VMU, and now whatever controller I want.

Note: I've noticed if you edit the vmu.bin using VMU Explorer and are using the original GD-ROM, it may fail to recognize the VMU again unless you rename the file on the USB drive

Big thanks to both megavolt85 for this crazy impressive firmware and pcwzrd13 who provided the slickest option I've come across for mounting the RP2040-Zero board.

TurboAleman
shadow
Posts: 5

Re: USB4MAPLE adapter

Post by TurboAleman »

Dumb question, for keyboard, is it necessary to add this same as controllers thru sharing a log? Have a Jamma harness (J-pac) that act as keyboard but can’t make this work.

Thanks for an amazing job

  • Similar Topics
    Replies
    Views
    Last post