Author Topic: How easy is it to create your own MIDI device?  (Read 4593 times)

0 Members and 1 Guest are viewing this topic.

Offline Mint.Topic starter

  • Frequent Contributor
  • **
  • Posts: 523
  • Country: au
  • Account is inactive now. Thanks everybody!
    • Personal Blog, Mint Electronics.
How easy is it to create your own MIDI device?
« on: March 30, 2013, 03:37:21 am »
At least something simple with a few buttons that you can custom map.
Personal Blog (Not Active Anymore), Mint Electronics:
http://mintelectronics.wordpress.com/
 

Offline DrGeoff

  • Frequent Contributor
  • **
  • Posts: 794
  • Country: au
    • AXT Systems
Re: How easy is it to create your own MIDI device?
« Reply #1 on: March 30, 2013, 03:59:06 am »
These days it is really easy. Any microcontroller with a serial port that can be adapted to the opto-coupled 31.25k port will do. The rest is just software.
Was it really supposed to do that?
 

Offline Mint.Topic starter

  • Frequent Contributor
  • **
  • Posts: 523
  • Country: au
  • Account is inactive now. Thanks everybody!
    • Personal Blog, Mint Electronics.
Re: How easy is it to create your own MIDI device?
« Reply #2 on: March 30, 2013, 04:47:57 am »
Can you please provide a more detailed description on what kind of components I need to do so and what micro controller?
Personal Blog (Not Active Anymore), Mint Electronics:
http://mintelectronics.wordpress.com/
 

Offline David_AVD

  • Super Contributor
  • ***
  • Posts: 2806
  • Country: au
Re: How easy is it to create your own MIDI device?
« Reply #3 on: March 30, 2013, 04:50:31 am »
MIDI messages are pretty simple.  I did a contact to MIDI box a while back with a PIC16F628A, 6N137 and various passives.
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4199
  • Country: us
Re: How easy is it to create your own MIDI device?
« Reply #4 on: March 30, 2013, 05:08:07 am »
MIDI is a pretty simple protocol based on standard asynchronous serial communications (UARTs.)
It uses sort of opto-isolated ttl-level schemes instead of "rs232", but the connections are easy and info is all over the web.
 

Offline Mint.Topic starter

  • Frequent Contributor
  • **
  • Posts: 523
  • Country: au
  • Account is inactive now. Thanks everybody!
    • Personal Blog, Mint Electronics.
Re: How easy is it to create your own MIDI device?
« Reply #5 on: March 30, 2013, 06:33:22 am »
So how would I go about having a few buttons which run using MIDI through a usb into my computer and control a MIDI program?
Personal Blog (Not Active Anymore), Mint Electronics:
http://mintelectronics.wordpress.com/
 

Offline David_AVD

  • Super Contributor
  • ***
  • Posts: 2806
  • Country: au
Re: How easy is it to create your own MIDI device?
« Reply #6 on: March 30, 2013, 07:56:13 am »
Micro doing MIDI (Opto & DIN Socket) is easy enough.  MIDI via USB is another kettle of fish.
 

Offline Mint.Topic starter

  • Frequent Contributor
  • **
  • Posts: 523
  • Country: au
  • Account is inactive now. Thanks everybody!
    • Personal Blog, Mint Electronics.
Re: How easy is it to create your own MIDI device?
« Reply #7 on: March 30, 2013, 07:59:25 am »
I am interested in doing it through usb.  :-/O
Personal Blog (Not Active Anymore), Mint Electronics:
http://mintelectronics.wordpress.com/
 

Offline David_AVD

  • Super Contributor
  • ***
  • Posts: 2806
  • Country: au
Re: How easy is it to create your own MIDI device?
« Reply #8 on: March 30, 2013, 08:35:44 am »
I am interested in doing it through usb.  :-/O

You'll need your micro to enumerate as a USB-MIDI device I'd say.  Not a beginner's project for sure.
 

Offline Sm58

  • Contributor
  • Posts: 15
Re: How easy is it to create your own MIDI device?
« Reply #9 on: March 30, 2013, 09:24:38 am »
At least something simple with a few buttons that you can custom map.

http://www.ucapps.de/

This is the source for diy midi
 

Offline Things

  • Regular Contributor
  • *
  • Posts: 224
  • Country: au
  • Laser Geek
    • NQLasers
Re: How easy is it to create your own MIDI device?
« Reply #10 on: March 30, 2013, 11:44:34 am »
I think something like the ATMega32u4 with an inbuilt USB-UART could probably do it, but yeah, it's not really a beginner project.
 

Offline jeroen74

  • Frequent Contributor
  • **
  • Posts: 396
  • Country: nl
Re: How easy is it to create your own MIDI device?
« Reply #11 on: March 30, 2013, 06:54:05 pm »
It actually isn't that hard... If you use a Teensy and the Arduino software framework there is whole library that includes USB MIDI.
 

Offline ZeroStatic

  • Contributor
  • Posts: 29
Re: How easy is it to create your own MIDI device?
« Reply #12 on: March 30, 2013, 07:24:47 pm »
Mint.

MIDI is dead easy to generate, it's just serial 8 data bits no parity and 1 stop bit at 31,250 baud.
To send MIDI from buttons all you'll need is a microcontroller, almost any type will do, the buttons, a couple of resistors and a power source for 5V or so at about 25 mA.

If you already have a USB-MIDI interface and you're not using the output from this interface it's often possible to power your circuit from the midi out or thru connectors.

In the past I've used PIC12C508 chips and some very simple code to generate control codes and note codes from buttons or foot switches, but it really depends on how many buttons you want.

If you can give us some more info on what you need I/we can probably help more.

Do you have any preference of microcontroller?
Do you have any programming equipment?
It can be done with just logic chips if you only want to send a couple of codes and don't have any microcontroller stuff.

Brenden
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26906
  • Country: nl
    • NCT Developments
Re: How easy is it to create your own MIDI device?
« Reply #13 on: March 31, 2013, 02:03:24 am »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline ivan747

  • Super Contributor
  • ***
  • Posts: 2045
  • Country: us
Re: How easy is it to create your own MIDI device?
« Reply #14 on: March 31, 2013, 02:30:13 am »
If you need MIDI though USB you can just do regular MIDI with a microcontroller and then use a USB-MIDI adapter. Easy.
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4199
  • Country: us
Re: How easy is it to create your own MIDI device?
« Reply #15 on: March 31, 2013, 05:42:04 am »
a MIDI over USB shouldn't be any harder than any other device over USB (not that that is so easy.)
Download the libraries provided by the chip manufacturer (or third parties), configure as MIDI, send/receive data, and hope the standard host driver works...

 

Offline rec

  • Newbie
  • Posts: 3
  • Country: us
Re: How easy is it to create your own MIDI device?
« Reply #16 on: April 10, 2013, 05:29:17 am »
MIDI over USB is dead easy. 

1. Use a Teensy 2.0, http://pjrc.com/teensy/.
2. Install Paul's Teensyduino extensions to Arduino, http://pjrc.com/teensy/teensyduino.html.
3. And pick a few of the dozen MIDI projects at http://pjrc.com/teensy/projects.html as template's to copy.

Or use one of the later ATMEGA32U4 Arduinos or Arduino look-alikes.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf