LogiPi: Running my own code

xilinx logipi raspberrypi amaranth fpga nablopomo

The LogiPi, with its two user LEDS lit, each at a slightly different brightness

It's been a while since I began my project to get my LogiPi board working. I've had to port the driver software to the newer Pi models, upgrade my laptop's disk space, install the Xilinx tools and create a board definition. Now I'm ready to actually do something with it!

It is traditional for the first project on any FPGA board to be one to blink an LED or two. But we've already done that with the LogiPi, when we uploaded a pre-compiled bitstream to it - so let's do something a bit more interesting.

Using PWM (i.e. flashing the LED very quickly, but varying the time it spends on vs off) we can effectively control the brightness. So instead of blinking the LEDs full on and full off, let's make them pulsate smoothly...

LogiPi with the two user LEDs smoothly increasing and decreasing in brightness, about 90 degrees out of phase

Getting this working was surprisingly smooth, and it's something of a relief, after all this effort, to confirm that it is possible to run our own software on this board! Next thing to try is producing some MIDI output through the adapter I bought for this purpose...

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.