NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Microcontroller Programming » Sending MIDI data using serial bus
August 24, 2012 by HexManiac |
I've used the piezo transducer from the NerdKit to make a drum trigger, the intention being to send appropriate midi messages to a drum synth to make a sound when I hit the transducer. I've got the trigger part working nicely, I can light an LED by tapping the transducer. But when I try to send out midi data I get absolutely zilch. I've pieced together the code below from various sources, and the hardware is just a midi socket on piece of stripboard, with header pins so I can plug it into the breadboard. The midi socket's pin 4 is connected directly to the ATMega168's TX pin, pin 5 is connected via a 220R resistor to +5v. I know the midi cable is good, when I unplug it from Nerdkit and connect it to the midi out socket of my roland synth I can play notes and hear drums from the drum synth. When I connect it back to the Nerdkit, back to zilch again. Can anyone help me please? Source code (with the boring buts cut out):
|
---|---|
August 24, 2012 by HexManiac |
Sorry, messed up the image url! |
August 24, 2012 by Ralphxyz |
re: image URL Here is what Google says about it:
Ralph |
August 24, 2012 by HexManiac |
Sorry about that - I uploaded the image using Google Drive, and I changed the share settings to 'anyone who has the link'. Guess I'll have to find somewhere else to host the image. Check back later... |
August 24, 2012 by HexManiac |
I think this is should work... |
August 25, 2012 by HexManiac |
And here's the trigger circuit: |
Please log in to post a reply.
Did you know that you can adjust most wire strippers to make it easier to strip insulation faster? Learn more...
|