How to setup the board using only a raspberry pi 4

Putting the board together

Need a few feet, two 2x20 headers, and a SMA.

Board in a bag

What do we need ?

Assembled !

Software side

Updating the raspberry tools

You may need to install new packages, especially to communicate with the fpga.

sudo apt-get update
sudo apt-get install i2c-tools libasound2-dev

From a general perspective, it may be worth trying to keep your tools up to date with:

sudo apt-get upgrade

Updating the python tools

On the raspberry pi, use pip to install the following modules:

pip3 install smbus2 RPi.GPIO PyAudio matplotlib numpy scipy spidev

Installing iceprog to flash the fpga

iceprog is the software used to put the fpga on the flash storage on the board, which will be read by the fpga on boot. The easiest way is to :

sudo apt install fpga-icestorm

If this doesn’t work, then this may work:

sudo apt-get install libftdi-dev git gcc 
git clone
cd iceprog
sudo make install

This will create and install the iceprog utility, used to flash the fpga program (bitstream).

Prepare the jumper here :

Then, plug an usb cable from the RPi to the board (not connected using the raspberry pi header).

Check that the FTDI device is well created by typing:


and then flash the FPGA by doing:

iceprog v1.1.bin

This should flash the board:

Physical setup for the lib acquisitions

I’ve been using a RPi4 with a ribbon cable to connect to the board, leaving the jumper on, putting one to select the high voltage level, connecting a piezo.. and that’s it.

Running an acquisition

Testing the connection to the board

Then, for example to discover the board using Python, you can use the library:

git clone
cd pyUn0-lib
python test

It will download the lib, then you should see with the ‘test’ option a LED blink

Testing the connection to the board

The “single” option will allow you to capture a single line, then the “process” one will create the corresponding images.

python single
python process


I’ve used this exact setup to get the lib examples ( ).

Example of an acq :

with a clean spectrum: