Setup Red Pitaya for NMR pulsed transmission

Setup Red Pitaya NMR image: format a micro SD card to FAT32 (find the SD card device name from df – be sure you don’t overwrite your hard drive!). Let’s suppose you found your SD card at /dev/mmcblk0, then:

umount /dev/mmcblk0

mkdosfs -F 32 -n NMR /dev/mmcblk0

Unzip Pavel Demin SD Card image to this SD card

mount /dev/mmcblk0 /mnt/NMR

unzip ecosystem-* -d /mnt/NMR

umount /mnt/NMR

Boot the Red Pitaya with this SD card.

Connect to Red Pitaya via Ethernet using SSH (login/password root/root) using Avahi

ssh root@redpitaya.local

or via serial port

Setup laptop: get NMR code

cd ~
git clone

Run the NMR control program

cd red-pitaya-notes/projects/pulsed_nmr/client

You should see some perturbation (even if essentially zero amplitude) in the NMR trace plot.

  • If “start” button doesn’t change to “stop” when clicked, that can indicate that the Red Pitaya NMR dæmon is not running. Be sure you copied over the correct image to the SD card when you did the unzip step.

pulsed-nmr consumes about 8% CPU when generating a waveform and 5% CPU when idle.

Recompile server code: this is precompiled and running as a service in Pavel’s image. TODO: Does it take rewriting the image since the SD card filesystem is read-only?

apt install gcc-arm-linux-gnueabihf

arm-linux-gnueabihf-gcc -static -O3 -march=armv7-a -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard server/pulsed-nmr.c -o pulsed-nmr -lm

Related: Red Pitaya GNURadio image setup