Using a Raspberry Pi Pico as logic analyzer and oscilloscope
For 2.5 € a Raspberry Pi Pico makes a nice logic analyzer and oscilloscope suitable for basic everyday use. See for example hackaday.
Here's picotutorial:
Download the firmware at https://github.com/pico-coder/sigrok-pico/blob/main/pico_sdk_sigrok/build/pico_sdk_sigrok.uf2
sudo apt install picotool
# Connect the Pico
picotool info
# Reboot it into BOOTSEL mode for flashing:
picotool reboot -u -f
picotool info
picotool load pico_sdk_sigrok.uf2
picotool verify pico_sdk_sigrok.uf2
# Reboot it to run the firmware:
picotool reboot -a
picotool info
Optionally, install sigrok-cli and check if it detects the device
sigrok-cli --list-serial | grep Pico
Currently the latest PulseView release 0.4.2 does not support the Pico.
Download https://sigrok.org/download/binary/pulseview/pulseview-NIGHTLY-x86_64-debug.AppImage from https://www.sigrok.org/wiki/Downloads
Bonus track! Create a basic firejail profile to run the appimage, assuming you already
configured /etc/firejail/disable-common.inc
as needed:
cat << EOF > .config/firejail/pulseview.profile
include /etc/firejail/disable-common.inc
net none
whitelist /dev/bus/usb
whitelist /dev/ttyUSB*
whitelist /dev/ttyACM*
EOF
Finally:
chmod +x pulseview-NIGHTLY-x86_64-debug.AppImage
firejail --appimage --profile=pulseview ./pulseview-NIGHTLY-x86_64-debug.AppImage