Sunteți pe pagina 1din 3

Food

Living

Outside

Play

Technology

Workshop

USB MIDI Controller


by USB Midi Controller on November 20, 2014

Table of Contents
USB MIDI Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Intro: USB MIDI Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 1: My own AVR USB Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 2: Programming the midi Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 3: The result . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

http://www.instructables.com/id/USB-MIDI-Controller/

Intro: USB MIDI Controller


My Goal: make a cheap and simple USB MIDI controller or Keyboard, only powered by the USB port (no additional external source)
The device is based on an Atmega328p MCU and the V-USB software-only implementation of a low-speed USB device. This SW makes possible to build an USB
hardware with just an AVR microcontroller and no additional chip.

Step 1: My own AVR USB Device


My kit is based on the USnooBie development Kit (USnooBie):
The USnooBie is a microcontroller kit that does not require any sort of AVR programmer or USB-to-serial converters to load and run compiled code. It's hardware design
allows the user to develop low cost USB devices with Atmel's AVR ATmega microcontrollers. It can also be used to develop projects which are not USB devices. It is
even compatible with Arduino.
I have adapted the schematics and remove the voltage regulator and kept only the zener diodes to limit the D+ and D- voltage. All these specifications are detailed on the
V-USB Obdev site (V-USB Obdev)
The first success step is to turn the device in the USBasp mode by activating the bootloader

Step 2: Programming the midi Software


I didn't succeed to use directly
a MIDI library with Arduino sketch, so I was inspired by 2 work :
Atmel Attiny45 / Attiny85 based USB MIDI controller by Thorsten
V-USB-MIDI project by Martin Homuth-Rosemann
I made some modifications to make it compatible with the Atmega328 MCU and the USnooBie configuration.
Once the USB pilot is installed, it is recognized as an Audio Device.

http://www.instructables.com/id/USB-MIDI-Controller/

Step 3: The result


You can see the result in this short video.
The device is recognized as a MIDI controller.
In my case, I assigned it to a Piano keyboard and I send Note On and Note Off MIDI message by pressing and releasing some switches.

Related Instructables

USB Wii Classic


Controller by
frank26080115

Arduino/Ableton
Color Organ;
MIDI controlled
(video) by _Aias

Arduino MIDI
Foot Pedal
Keyboard by
roycetaft

Makey Makey
MIDI controller
by MineMooder

Adding MIDI to
Old Home
Organs by
uhclem

Convert a toy
piano to work
as a midi device
and use it with
Synthesia by
Luke7412

Advertisements

Comments
1 comments

Add Comment

seamster says:
Very cool! Thanks for sharing this.

http://www.instructables.com/id/USB-MIDI-Controller/

Nov 20, 2014. 2:37 PM REPLY

S-ar putea să vă placă și