Mr. Midi 2


Translation of my German article

Origin: Mr.Midi 2 on mikrocontroller.net - in German

Mr.MIDI 2 has arrived!

Finally: The new Mr.Midi 2 is ready!
It works with the real midi file protocol and supports a FAT16 file system on the inserted card. So usage is as simple as with a MP3 player. For such a luxury you need the ATmega168 from Atmel.

Boasting :-)

Invented in Germany, going round the world! Since it is free open source, you can build it, sell it, modify it (but as open source again) and have fun with it!
Even people from UK, Japan and the Netherlands have build their own DIY MrMIDI 2!
If you like, you can send me pictures of your own!

Kits and complete units are available from www.sdmidicontroller.com! I fully support Robert Rushton, the man who made this possible and produces the units! I also increased testing and improving the software to make our customers happy. It's a service to all the people who want it, but can't build it!
Everybody who can build the circuit and program an ATmega168 on his own can use it for free as always.

Watch this:


Or this: Demonstration Video from www.sdmidicontroller.com

Features

* Features in new version - yet to be released here

Circuit



Attention: Mega168 pin TX must be connected to OUT pin 5 and pull up to OUT pin 4!
For LED backlight: Connect LED- (K) of your display over a resistor to PORTB6+7 (in parallel), connect LED+ (A) to Vcc 5V
For mass production: Connect an 8MHz XTAL and 2 capacitors to PORTB6+7 for stable clock accuracy over life-time, see data sheet!

Parts:

Download

Project Mr.MIDI 2 download:
ATmega8 (without boot loader) - obsolete
Up-to-date firmware for ATmega168 (with boot loader, remote and FAT16 and many bugs fixed)
New ultimate edition (smaller and better code, new bootloader) - soon with stuff like MIDI monitor (shows note events on all 16 channels as bargraphs), text menu values instead of numbers, perhaps a real time clock, too!
Converter for MM.BIN:
KEIL tool "hex2bin", required for making card bootloader file MM.BIN
Original project page:
Mr.Midi 2 on mikrocontroller.net - in German

Set up your hardware

Config your blank out-of-the-box ATmega168:

Manual

Start:


Recording:
Playback:
Menu:
Edit files on PC:
Firmware Update:

Extensions

You can add a small wavetable upgrade board with a 26-pin-connector to give Mr.MIDI2 full audio capabilities. Add a quality audio amplifier for superior MIDI sound!
Description of wavetable board connector (German)

Build

Compile the project with WinAVR 20060421 + AVR Studio 4.12 or newer. Ignore the warnings.
Use hex2bin to create the bootloader file MM.BIN.
Then update your main_bl.hex-flashed MrMIDI2 to the current version!

Notes

Remember, this is a free DIY open source project.
Open source means: When you change it, please offer the sources as free download. If you want to make money of it (commercial production) you can do this, but put a link of this page on your product page (and in the product manual). Please send me a free sample of your product, too (so I can go showing off :-)!
No warranties or liabilities are given. Build and use this project on your own risk!

My Other Used Sources

I used the following software sources in this project (besides what is included in WinAVR and AVR Studio 4):
RC5 IR receiver (C code) from http://www.roboternetz.de/wissen/index.php/RC5-Decoder_f%C3%BCr_ATMega
Low level card driver (C code, modified) from http://alpmp3.sourceforge.net
LCD routines (AVR assembler, ported to C and modified) http://www.mikrocontroller.net/articles/AVR-Tutorial:_LCD

Contact

If you have questions, don't hesitate to mail me on lehmayr /\ -|- web.de (replace the symbols with the "at" symbol).




Copyright © Simon Lehmayr
Impressum