SinsOfApathy
Smash Journeyman
- Joined
- Feb 24, 2015
- Messages
- 474
- NNID
- Psion312
So, originally my idea and existing code for my Melee bot was based around using my Shuriken USB (Gecko SE clone) to send inputs to the SI registers. However, I quickly found that I was causing the game to crash or simply do nothing, likely as a result of not setting the various registers up properly. (Plus I wanted to support all 4 slots, which would be a pain in my ass.) So, instead I looked around and thought, "Well, I have an old Gamecube controller and I know the pinout, as well as how to emulate the protocol. Could I just do it that way? Plus the Gamecube puts out 5V for the rumble, which is exactly what I need to power a Raspberry Pi."
And viola, the picture below is an old Gamecube controller cable that I stripped with a pair of scissors, plugged into my Wii, and powered my Raspberry Pi with. The LED isn't on since it would intermittently blink (and I think the power was off during this shot), but I was capable of SSHing and using VNC to access my Raspberry Pi.
The next step is to get some form of housing so that the wires can easily connect to my Raspberry Pi. In the picture, I literally just bent the wire and pressed them against the GPIO pins.
After that, I've got some code around that'll let me emulate the protocol and timings (including bit banging), so that I can communicate with a console. From there, my plan is to write a TCP server for my Raspberry Pi, so that I can communicate inputs to it, since I can't guarantee that my B+ model doesn't have the processing power to pull off any sort of calculations, which I know my heuristics will need. Plus, I'd like to have visualization and logging available on my desktop, which shouldn't be too hard given my past experience.
And viola, the picture below is an old Gamecube controller cable that I stripped with a pair of scissors, plugged into my Wii, and powered my Raspberry Pi with. The LED isn't on since it would intermittently blink (and I think the power was off during this shot), but I was capable of SSHing and using VNC to access my Raspberry Pi.
The next step is to get some form of housing so that the wires can easily connect to my Raspberry Pi. In the picture, I literally just bent the wire and pressed them against the GPIO pins.
After that, I've got some code around that'll let me emulate the protocol and timings (including bit banging), so that I can communicate with a console. From there, my plan is to write a TCP server for my Raspberry Pi, so that I can communicate inputs to it, since I can't guarantee that my B+ model doesn't have the processing power to pull off any sort of calculations, which I know my heuristics will need. Plus, I'd like to have visualization and logging available on my desktop, which shouldn't be too hard given my past experience.
Last edited: