how to get midi working

Started by klaus, March 19, 2016, 07:46:13 PM

Previous topic - Next topic

klaus

Hi, I am new to arduino and the miniAtmegatron.
While I succeeded to assemble the board - even the LEDs - and implemented the midi hack, I am not able to get my macbook and the miniAtmegatron to exchange midi signals. The MB sees the midi over USB connected arduino as MIDI/MOCO for LUFA but there is no exchange of notes. I use MidiPipe to test it.

Have I forgotten to initialize anything?

Thanks,
Klaus

paulsoulsby

This has got me a bit stumped to be honest! You've set midi channel in DAW = 1?  Can I confirm that you're hearing sound from the built-in pattern player.  You're def using an Arduino with a 16U2 USB controller chip (this is the tiny black square chip near the USB connector)?
It sounds like you've set it up correctly to me.

klaus

Yes DAW is at channel 1. I use the original Arduino Uno and the MacBookPro recognizes the midi device (MIDI/MOCO for LUFA) but there is no traffic either way. I also checked it on another Mac and with another cable with no success.
And yes, it works great through the internal audio out connected to my amp.
Maybe I should try to redo the Midi Hack. I'm a bit lost now...

paulsoulsby

Yes I'm not really sure what to suggest either! It sounds like it should work fine.
Def try uploading the MOCO firmware again.
Make sure the connection on pins D0 and D1 is clean.  If they have a dodgy solder joint (eg going to 0V or 5V), they will block all data coming through the USB.  You could even chop those pins off to be safe.
Can I confirm the jumper is off of the ISP connector (for MIDI mode).  You put it on for Arduino mode.
I assume you've loaded all the miniAtmegatron libraries and sketch from here:  http://soulsbysynths.com/miniatmegatron-downloads/  (not the Atmegatron page)?
Umm... I'm not sure I can think of any other suggestions at the moment.

If you want to prove that the serial is working, you could try uploading the SerialCallResponse example sketch in Arduino.  (make sure the shield is off when doing this)

klaus

IT WORKS!
What I did:
1. cut the connections of Tx and Rx
2. went back to original firmware
3. tested midi via Tx and Rx (serial) > worked
4. reinstalled moco firmware
5. reinstalled miniAtmegatron firmware
6. tested it with Tracktion 6 > it works!

Maybe the solution was to not connect the UNO with the miniAtmegatron board thru Tx and RX.

paulsoulsby

Great news! Yes, if there's any connection to D0 and D1, it'll block the USB from working.  In theory the pins on the shield don't go anywhere, so won't normally effect it.  Glad you got it working though!