Hardware
Devices
PiEEG-8
Troubleshooting

Troubleshooting

Start with pieeg-server doctor. It checks SPI, GPIO, Python packages and your settings in one go.

Power and hardware

ProblemFix
LED on the shield is offCheck the power bank is on and charged, and the shield is fully seated on all 40 pins.
Pi restarts or shows a lightning boltThe power bank can't supply enough current. Use a 5 V / 3 A bank and a short, thick USB cable. See Power bank.
Shield is off by one pinShut down, remove and re-seat it. Pin 1 of the shield must match pin 1 of the Pi.

SPI and GPIO

ProblemFix
/dev/spidev0.0 not foundSPI is off. Run sudo raspi-config → Interface Options → SPI → Enable, then reboot.
Permission denied on SPI or GPIOAdd your user to the groups and log in again: sudo usermod -aG spi,gpio $USER.
Pi 5: gpiochip4 not foundRun gpiodetect and find the chip labelled pinctrl-rp1. Use that name in the script, or pass --gpio-chip /dev/gpiochipN to PiEEG Server.
Pi 5: RPi.GPIO errorRPi.GPIO doesn't support the Pi 5. Install the drop-in pip install rpi-lgpio.
pip install says externally-managed-environmentUse a virtual environment, as in Software.
pip install gpiod==1.6.3 failsThat version is not on PyPI. Use sudo apt install python3-libgpiod with 1.8_ch_Pi5.py, or pip install gpiod==1.5.4 with 1.8_ch_Pi5_gpiod_1_5_4.py.
AttributeError in a gpiod callThe script and the installed gpiod version don't match. See the script table in Software.

PiEEG Server

ProblemFix
Dashboard shows 16 channelsStart with --device pieeg8, and add it to the service too. See How to Start.
Address already in useThe service is already running. Stop it with sudo systemctl stop pieeg-server before starting the server by hand.
Can't open the dashboard from a laptopUse http://<pi-ip>:1617, and check the laptop is on the same network.
Service logsjournalctl -u pieeg-server -f

Signal

ProblemFix
All channels noisy at onceCheck the reference and bias ear clips first. Clean the earlobes and clip them firmly.
One channel flat or very largeThat electrode isn't touching the skin. Part the hair, press it in, or add gel.
Strong 50/60 Hz humSomething is connected to the mains. Unplug every charger, run the monitor from the battery, move away from power strips and laptops on chargers.
Big slow spikes on the front channelsBlinks and eye movements. Ask the person to keep the eyes still or closed.
Bursts of high-frequency noiseJaw, face or neck muscles. Relax the face, don't talk or chew.
Signal jumps when someone movesCable movement. Keep electrode cables short and still, and sit still.
Alpha doesn't rise with eyes closedCheck O1 and O2 are on the back of the head and touching the scalp. Keep the eyes closed for at least 10 seconds in a quiet room.

Is it the board or the setup? Set all channels to input-shorted mode (CHnSET = 0x01). If the signal stays within a few µV, the hardware is fine. Follow the three tests in Noise elimination.

Quick noise checklist

  • Everything runs from the power bank, nothing from the mains
  • Wi-Fi and Bluetooth off on the Pi during recording (unless you use the dashboard remotely)
  • Wired keyboard and mouse
  • Short electrode cables
  • Setup on an insulating surface, away from routers, phones and chargers
  • Person sitting still, feet not on a metal surface

Still stuck?

Ask on Discord (opens in a new tab), open an issue on GitHub (opens in a new tab), or email pieeg@pieeg.com.