Author Options:

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


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 :) 

4 Replies

abqlewisBest Answer (author)2015-08-21

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.

Select as Best AnswerUndo Best Answer

lshoesmith (author)abqlewis2015-08-27

Sorry for the delay in responce - although it may have paid off, I found this: https://www.instructables.com/id/Lets-make-a-game-c...

This is basically what I want to make isn't - but instead of using it for gaming asign windows command macros to the buttons instead.

Select as Best AnswerUndo Best Answer

Wired_Mist (author)2015-08-21

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

Select as Best AnswerUndo Best Answer

steveastrouk (author)2015-08-21

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

Select as Best AnswerUndo Best Answer