Is there a (easyish) way to make a custom USB HID for Windows? Answered

1992Views4Replies

Author Options:

Hello,

I just came across a project that has inspired me to make a small version of my own and wanted to see if I would be able to do it before I start buying. 

Original project: http://imgur.com/a/DyQZL

I want to create a small 4 - 10 button array, potentially with a dial/knob for audio volume etc for my Windows machine.

I am currently struggling to find out how I would get the buttons to communicate with the computer... would it be through some sort of Arduino board? Or something else? And then how I would assign custom functions to each individual button/dial/switch.

I have attached a (very basic and probably incorrect) diagram in order to try and show what I want to make.

Any ways, thanks for any help you can provide :) 

Discussions

There are a number of devices that would accomplish this, but my pick would be something like a Teensy (https://www.pjrc.com/teensy/). Even more specifically, Teensy 2.0. Functionally, it has DIO and analog pins on one end and a USB connection on the other. In between is a USB-enable micro-controller (ATMega32u4) that can be loaded with software for a generic HID (keyboard, joystick) or you can load LUFA (www.fourwalledcubicle.com/LUFA.php) and create a completely custom HID descriptor. I would go keyboard or joystick to keep from having to re-invent the wheel.

For only a few buttons I'd hack into an old keyboard !

Read through This to give you a good Idea how it works.

Only difference is instead of having a single key you can have up to 101+ Unique keystrokes.

Two cons are, you would need to use the volume control on the keyboard instead of a Pot. still works though right?

And the other is this will only do a single keystroke. For combo's you would need to program use some Macro's on you computer's side.

There is a Good Chance you have everything you need at home already :D

Use an Arduino Leonardo, it can become a USB keyboard very easily