Need help with an project, where do the code go?

Hello!
A few weeks ago I set out on a journey of building a Gamecube controller to USB converter, so that I can use the controller with for example Dolphin Emulator. I found this (Gamecube · NicoHood/Nintendo Wiki · GitHub) great project on GitHub which I've been following along and have now reached the point where everything is soldered and the Hoodloader2 is installed. Whats left now is to "implement" the code, so to speak (or rather copy and paste it into the right places) which I cannot figure out.

The thing is, I don't have a lot of experience with either hardware or software. I can do some basic C++ programming, as well as basic soldering and electronics building but nothing fancy at all. I have now realized that this project was way over my head and it was a mistake of me to try and build this thing with so little prior knowledge. It would be a waste, for me, if the money and time I've put into this would amount to nothing. I'm therefore kindly asking the people on this forum for help.

What needs to be done, is essentially figuring out where to code that is listed under ”Software” in the link above should be and how it would be structured. I do not know what I could give to the kind soul(s) who may help me out except my infinite gratitude, which I hope is enough. Thank you very much in advance.

Here are the relevant pages I have found regarding the project:

All the best

Hi,

What is your electronics, programming, arduino, hardware experience?

Tom.... :slight_smile:

I hope you loaded your free ARduino software.
when you open that up, there are examples.

on this site there are tutorials.

play around with them and get a fee for how the Arduino works and how simple programs work.

once you can blink some slights and have lights change out when you press a button, the whole software thing will start to make sense.

we can help someone do better, but we do no do their work for them.

LeChiffre:
I found this (Gamecube · NicoHood/Nintendo Wiki · GitHub)

Please use the chain link icon in the toolbar to make links you post on the forum clickable e.g.: Gamecube · NicoHood/Nintendo Wiki · GitHub. This will make it easier for people to help you because we don't have to copy and paste the URL.

LeChiffre:
What needs to be done, is essentially figuring out where to code that is listed under ”Software” in the link above should be and how it would be structured.

The code listed under "Software" is more of a function reference for the Nintendo library.

  • Install Arduino IDE: http://www.arduino.cc/en/Main/Software
  • Open Arduino IDE
  • Download Nintendo library: https://github.com/NicoHood/Nintendo/archive/master.zip
  • Sketch > Include Library > Add .ZIP Library... > select the downloaded file > OK
  • File > Examples > Nintendo > Gamecube > GamecubeController
  • Plug in your Arduino to the USB on your computer
  • Tools > Board > select the correct board
  • Tool > Port > select the port of your Arduino
  • Sketch > Upload
  • Tools > Serial Monitor
  • Select 115200 baud from the menu on the bottom right of the Serial Monitor window
  • Click on the text input box at the top of the Serial Monitor window
  • Type "a"
  • Press Enter

You should now see the text "Starting controller emulation" printed in the Serial Monitor. Whenever you press a button on the Gamecube controller you should see output in the Serial Monitor or if there is a problem you will see "No Gamecube Controller found!".

Once you have your controller working you should be able to refer to the code in the GamecubeController example and the documentation to write your own code for your controller.