Comments: MIDI Shield Hookup Guide
Looking for answers to technical questions?
We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.
If you've found an issue with this tutorial content, please send us your feedback!
Hey Sparkfun! Thank you for making this part!!!
We used this part to create the LuminescentGrand, an LED piano that generates light patterns from MIDI. We put it in an acrylic case replica of a mini grand piano.
Check it out here: https://www.luminescentgrand.com
Also the mini-documentary of how we created this art piece: https://www.luminescentgrand.com/mini-doc
We used P9813 led chipset LED. We have a total of 1700 leds being driven off an overclocked spi data line. We get about 120 frames per second.
Tell us what you think using our contact page.
Got mine working by unplugging the shield, upload the code to the arduino, and after plugin the shield back on
Hey,
I really appreciate the tutorial. Coincidentally I've been wanting to create a midi->cv converter for my werkstatt since I got it 2 years ago, and your tutorial explains exactly how to do this. However, I've been trying to get this to work on my werkstatt, but I can't seem to get the correct cv out of the dacs.
I've jumpered SJ1 and SJ2 to support the soft serial port, enabled the debug messages and viewed the debug output - it appears that the midi shield is correctly sending the data to the arduino and it's getting converted into some kind of voltage value which is then sent down the sda and scl pins. At this point in time i'm kind of grasping at straws...
I have some questions however
I've tried this circuit twice so I'm getting frustrated, but i'm not giving up. I've ordered some more dac's and an oscilloscope, but it'll be a few weeks before the shipping gets here.
Thanks!
If the debug messages are printing, then you can be reasonably confident that the MIDI parsing is working.
From the sounds of it, you might not have good communication to the DACs.
I don't recall anything out of the ordinary in getting them working, but it's been quite a while.
To test the DACs without any dependency on MIDI, there is the DAC Test Sketch.
If you want to try it without an oscilloscope, slow the loop down by adding a
delay()
to it, maybe 5000 milliseconds (5 seconds). Then you can use a volt meter to check the DAC outputs. The one should gradually ramp up, and the other should ramp down.I've also improved the circuit a tiny bit since then, using a TL431 voltage reference to make a precise adjustable power supply for the Pitch CV DAC (those DACs use their VCC pin as the reference supply). I describe it in the last comment over here.
Thanks for keeping in touch (even though this is pretty old)
The main stumbling block was that the diagram for connecting the DAC's was wrong - SDA and SCL are switched around, they should be connected to A4 and A5 respectively. Weirdly they are referenced in the correct order in the paragraph below the diagram.
Everything works peachy now
Hi, I've just got the MIDI-CV controlling my Werkstatt and it works amazingly well - thank you! I was thinking about trying to add a glide/portamento function to make use of the remaining pot on the midi shield and wondered whether you had any ideas for the code required to do this? Thanks
I just looked over the code a bit. It's not exactly easy to do a software based portamento.
A back of the envelope recipe might look something like:
Wire
transaction fromupdateCV
toloop
.updateCV
sets a global variabletarget
currentCV
loop
, whencurrentCV
isn't attarget
, add/subtract some value ( that relates to the porta time pot) tocurrentCV
and write it to the DAC. Each time around, repeat until current reaches loop.My gut feeling is that this won't sound super great. The DAC output will stairstep, and the I2C update rate might be too low.
In the end, it might be easier to do portamento in the analog domain: a varialbe series resistor and a cap to ground on the pitch CV output would do it (See VR14 & C62 in the Werkstatt schematic for an example).
Hey, thanks so much for this advice. I'll give both ways a go on the weekend and let you know how I get on!
I couldn't get anything useful software-wise so I made an analog glide circuit like the following, but with an LM324 instead of TL072.
https://www.muffwiggler.com/forum/viewtopic.php?t=2179&sid=872c732a4758c1487fea20f81e35fadb
It worked a treat. There was just enough space to squeeze it on to the protoboard, then I replaced the unused 10k pot with the required 1M pot, placed back to front so that the legs dangled over the edge and could be soldered separately from the MIDI shield. Messy, but the whole thing works great :)