The previous version of this page
With the rpi there’s the choice between using either UART or SPI. If UART is used follow the linux-specific steps.
The following steps yields a rpi that can interface with the firmware on the Nucleo F401RE via SPI. The rpi and the STM32F401 must be connected as explained here.
- Download and install raspbian
- Update the system
- Run raspi-config and enable SPI
- Resize SPI buffer (by default it’s too small). Append the following to the line in /boot/cmdline.txt:
- Install pigpio (I believe this is already installed with the latest Raspbian)
Command line interface
To install a command line interface the following further steps are required:
- Download the Otterly-hfCLI
- Unzip, enter directory, and type ‘make’
The CLI takes the following options:
- output file(s)
The CLI uses the pigpio library and therefore requires root priviledges (sudo).
Graphical user interface (SPI)
At the time of writing the graphical user interface only works with SPI-firmwares released prior to december 2017.
To install a graphical user interface the following further steps are required:
- Install libgtk-3-dev
- Install gnuplot
- Download the Otterly Raman GUI
- Unzip, enter directory, and type ‘make’.
The resulting executable should look something like this. Not all features have been implemented yet, but you can set the integration time and collect data (record).
The data is saved in the “default_datafile.dat” and plotted with gnuplot in the file “default4_plot.svg”. Both files are overwritten each time Record is pressed.
Connecting to the rpi
In case you don’t have a dedicated screen, keyboard and mouse for your rpi, an easy way to connect to the rpi is to set it up as an access-point:
- Follow the steps at: http://elinux.org/RPI-Wireless-Hotspot
- Use SSH with X-forwarding to connect to the rpi:
ssh -X firstname.lastname@example.org