Coder Social home page Coder Social logo

v4rgas / picohero Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 4ntsu/picoguitar

0.0 0.0 0.0 58.42 MB

Small project to interface a Wii Guitar Hero controller to a PC using a Raspberry Pi Pico

License: GNU General Public License v3.0

C++ 100.00%

picohero's Introduction

PicoGuitar

Small project to interface a Wii Guitar Hero controller to a PC using a Raspberry Pi Pico.

Adapter pictures

Hardware required

  • Raspberry Pi Pico
  • Classic controller or Nunchuck extension cable (will be cut!)
  • Continuity tester (multimeter or an LED + battery)
  • Soldering iron

Wiring

Only 4 wires need to be connected from the Pico to the guitar:

  • 3.3V power
  • Ground
  • I2C Data (SDA)
  • I2C Clock (SCL)

Cut the extension cable near the female connector end, leaving a good amount of cable to work with, then strip all the wires and use the continuity tester to map which pin on the connector goes to which wire. Having the wires mapped, solder/connect the wires to the Raspberry Pi Pico like this:

Female connector Raspberry Pi Pico
Pin 1 (3.3V) -> 3.3V pin
Pin 2 (SCL) -> GP5 pin
Pin 5 (SDA) -> GP4 pin
Pin 6 (ground) -> Any GND pin

female connector

image source - CC BY-SA 3.0

Comments

At the top of the sketch, you will find some constants for the whammy bar and for both axis of the analog stick. In my guitar these are the minimum and maximum values returned by WiiChuck, but I don't know if these are the same across all guitars, or if mine is just returning weird values. There is an example sketch included with the WiiChuck library which you can use to determine these values for yours.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.