Quantcast
Channel: Interactive Dreams
Viewing all articles
Browse latest Browse all 1857

CD-i member TwBurn created new GitHub repositories for code that's ready-to-use on a USB-to-CD-i setup

$
0
0

The USB2CD-i homebrew project is coming to a more user-friendly state with ready to use code that you can copy to your Arduino setup. CD-i member TwBurn has been busy with developing a tool to connect USB control devices on your CD-i player, thanks to an Arduino which translates both languages to each other. TwBurn: ¨I've made a new GitHub repository for code that's ready-to-use on a USB-to-CD-i setup. 
This library can be used to communicate as a controller to a CD-i player.
TwBurn received the final parts and he just made the description how to create a USB2CDi adapter yourself: "Got the mini host shields today, soldered up pins and attached it to my prototype board and got it to work. Time to make a final/integrated prototype now. Now I just need to see if I can get/make a housing for it, I published some schematics/manual below.. One of the output pins unfortunately doesn't work on this one, but since I only need 2 out of 4 (for one controller) that wasn't really a problem. On my other prototype (where everything does work) I did manage to succesfully test 2 player support (using an analog stick and a USB controller) - I've been unable to pair two controllers to one BT dongle, and I can't find my small USB hub anywhere so can't test two USB devices. Description is posted in this article.
Requirements
  1. CD-i Controller Library (https://github.com/TwBurn/cdi-controller-library)
  2. USB Host Shield Library (https://github.com/felis/USB_Host_Shield_2.0)

Because these sketches are designed to be transmitted to the Arduino without adjustments, there is quite a bit of duplicate/similar code.

Contents

MagicNS-1p

Switch Pro, Switch SNES controller using a MagicNS dongle, mapped to a CD-i Maneuvering Device.

Button mapping:
  • D-pad and left thumbstick: Directional input.
  • A and X: Button 1.
  • B and Y: Button 2.
  • L/R triggers: Speed up/down (4 speed)
MagicNS-2p

Switch Pro, Switch SNES controller using a MagicNS dongle, 2 player version.

Button mapping: See MagicNS-1p part above

Note: An USB hub and two dongles are needed.

WiiBT-1p

WiiMote/WiiU Pro controller using a Bluetooth dongle. A WiiMote must be held sideways.

Button mapping:
  • D-pad and left thumbstick: Directional input.
  • A, X and 1: Button 1.
  • B, Y and 2: Button 2.
  • +/-: Speed up/down (4 speed)
X360USB-1p

XBox 360 controller connected via USB, mapped to a CD-i Maneuvering Device.

Button mapping:
  • D-pad and left thumbstick: Directional input.
  • A and X: Button 1.
  • B and Y: Button 2.
  • L/R triggers: Speed up/down (4 speed)
[Thanks, TwBurn]

Viewing all articles
Browse latest Browse all 1857

Trending Articles