Skip to content

Microcontroller code for a custom trombone USB controller to be used with Trombone Champ on Steam

Notifications You must be signed in to change notification settings

JayPerfetto/TromboneController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TromboneController

Microcontroller code for a custom trombone USB controller to be used with Trombone Champ on Steam

Note - not all Arduino boards will work as native USB devices - I used an Arduino Leonardo - for a list of all HID compatible controllers, see: https://www.deviceplus.com/arduino/can-arduino-make-usb-devices-try-using-the-hid-function-with-arduino-pro-micro-leonardo-2/#:~:text=1.-,About%20Arduino%20Pro%20Micro,mouse%20when%20connected%20by%20USB.

Instructions

  1. Download and install the Arduino IDE from: https://www.arduino.cc/en/software

  2. Complete the included circuitry diagram to build the microcontroller, Ultrasonic distance detector, and button. Pics / Diagrams in /diagrams a) Button - https://www.arduino.cc/en/Tutorial/BuiltInExamples/Button b) Ultrasonic Sensor - https://create.arduino.cc/projecthub/abdularbi17/ultrasonic-sensor-hc-sr04-with-arduino-tutorial-327ff6 c) Assemble trombone from PVC components following the guide in /diagrams

  3. Install the required library for your Board, the Keyboard library, and the AbsMouse library (https://github.com/jonathanedgecombe/absmouse)

  4. Calibrate the program for your display size in the setup() function by changing the resolution in AbsMouse.init(x, y) (optional - default is set to 1920x1080)

  5. Upload the TromboneController sketch to your compatible microcontroller board.

The Trombone will now be automatically on when the USB is plugged in, but will not control your mouse if the slide is fully in or fully extended, so that you can continue to use your computer normally (that's basically how to turn it "off")

  1. Play Trombone Champ and have some laughs

About

Microcontroller code for a custom trombone USB controller to be used with Trombone Champ on Steam

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published