2021-01-18 22:06:31 +02:00
Based on https://github.com/dmadison/ArduinoXInput
- Install Arduino IDE hardware:
https://github.com/dmadison/ArduinoXInput_AVR
- Install Arduino IDE library from Library manager:
XInput by David Madison
- Tester from Windows Store:
Game Controller Tester
2021-11-05 21:21:29 +02:00
- Online tester: https://gamepad-tester.com/
2021-01-18 22:06:31 +02:00
- Doesn't go to flashing mode automatically. Connect RST to GND to get Arduino Pro Micro to programming mode.
2021-01-26 19:11:05 +02:00
2021-11-05 11:48:50 +02:00
## PsxNewLib
2021-11-06 13:16:10 +02:00
- https://github.com/SukkoPera/PsxNewLib (from Arduino IDE library manager 6.11.2021: 0.4.0)
2021-11-05 11:42:30 +02:00
- https://github.com/SukkoPera/PsxControllerShield
- https://github.com/SukkoPera/PsxControllerShield/blob/master/doc/schematics.pdf
2021-11-06 13:22:36 +02:00
- (my green dualshock analog controller: SCPH-1200) (Controller Type is: Guitar Hero)?
- (my black dualshock 2 controller: SCPH-10010) (Controller Type is: Dual Shock)
2021-11-05 15:08:27 +02:00
- https://store.curiousinventor.com/guides/PS2
2021-11-05 20:03:55 +02:00
- https://github.com/SukkoPera/PsxNewLib/issues/12
2021-11-06 22:24:19 +02:00
- https://github.com/dmadison/NintendoExtensionCtrl
2021-11-05 11:42:30 +02:00
2021-11-05 21:14:38 +02:00
PSX | SPI | Uno | Pro Micro | notes
2021-11-05 21:14:54 +02:00
--- | --- | --- | --- | ---
2021-11-06 21:53:30 +02:00
1 DATA (brown ) | MISO → | D12 (PB4) | D14 (PB3) | Use 1k pullup resistor to 3.3V!
2021-11-05 21:14:38 +02:00
2 CMD (orange ) | MOSI ← | D11 (PB3) | D16 (PB2) |
3 Vibration power (7.2-9V) (grey ) | | | |
4 GND (black ) | | GND | GND |
5 VCC (3.3V) (red ) | | VCC | VCC |
2021-11-05 21:22:54 +02:00
6 ATT (yellow ) | SS ← | D10 (PB2) | D10 (PB6) | < sub >< sup > (pro micro: SS would be D17 (PB0/RX_LED), but there is no pin D17)</ sub ></ sup >
2021-11-05 21:14:38 +02:00
7 CLK (blue ) | SCK ← | D13 (PB5) | D15 (PB1) |
8 unknown (white ) | | | |
9 ACK (green ) | | | | (when this is needed?)
2021-11-06 01:24:58 +02:00
**Wii** | | | | |
2021-11-06 21:15:25 +02:00
1 VCC (3.3V) (red ) | | | |
2 SCL (yellow ) | | A5 (PC5) | D3 (PD0) |
2021-11-06 21:53:11 +02:00
3 Detect device (3.3V) (black ) | | | D4 (PD4) | Use 10k pulldown resistor to GND!
2021-11-05 21:14:38 +02:00
4 NC | | | |
2021-11-06 21:15:25 +02:00
5 SDA (green ) | | A4 (PC4) | D2 (PD1) |
6 GND (white ) | | | |
2021-11-05 11:48:50 +02:00
2021-11-05 21:22:21 +02:00
### TODO
- Analog triggers for Dualshock 2
2021-11-05 23:51:18 +02:00
- Name in Windows: Controller (Arduino Leonardo), with real XB360 controller: Controller (XBOX 360 for Windows)? Can it be changed in C:\Program Files (x86)\Arduino\hardware\xinput\avr\boards.txt?