LogiMidi

raspberrypi fpga logipi nablopomo midi electronics music amaranth making xilinx

A Raspberry Pi 5, in a case (with no lid), with the Logi-Pi board on top. Attached to one of the Logi-Pi's PMOD connectors is a board with 8 MIDI connectors. A MIDI cable joins one of these to a small synthesizer, which has a waveform visible on its screen, indicating some sound is playing.

Sometimes a lot of things come together at once. I've previously written about getting the LogiPi working with a modern Raspberry Pi, getting the Xilinx ISE toolchain for it up and running, setting up an Amaranth platform and compiling my own code for the LogiPi. I've also written about the board I bought for connecting the LogiPi board to MIDI devices, and the modules for testing MIDI output I'd ordered. Time to put them all together!

Connecting it all together has to be done quite carefully: the LogiPi board is raised above the Pi's case by the adapter that lets it fit the Pi 5, and is only supported by the connector along one of its edges - meaning the other side has a tendency to pull down, straining the connector. To make this worse, the PMOD-to-MIDI adapter attaches to the unsupported side, and the MIDI cable attaches to the connector on its far side - so there is a long lever pulling down against the already strained connector. This is why there is a cardboard box visible in the picture: to support the boards and prevent the connector bending!

Once everything's connected, it's a matter of uploading the gateware: I've written some very simple FPGA code that, every second, sends the three MIDI bytes needed to play a middle C at full volume on channel 1 (and the M-VAVE FM-1 is standing by to turn that into audio). I type the command, hit Enter, and... nothing. Disappointing!

After a little debugging, it turns out to be very simple: I've plugged the MIDI-to-PMOD board into the wrong PMOD socket (this is easy to do, as the PMOD sockets are labelled 4-3-2-1 as you look at them). Once this is rectified, upload again and... ping, ping, ping! Very satisfying to have it working (though it does rapidly become annoying), and hopefully the start of some fun projects to come.

0 comments

Post a comment

All comments are moderated, and will not show up immediately on the site, or at all – and if they do, their content may be edited.