Introduction: Measure EEG With STM32 (Nucleo Board)

About: Brain Computer Interface researcher

MicroBCI. Shield to Measure EEG with NUCLEO-WB55 STMicroelectronics Development Boards & Kit. EEG with STM32.


Step 1: Flash the Firmware


  1. Connect your NUCLEO-WB55 board to your computer using a Micro USB cable.
  2. Open STM32CubeProgrammer.
  3. Load the provided .hex firmware file for MicroBCI.
  4. Flash it to the board.

A full step-by-step video guide is available on YouTube. https://youtu.be/crqOmnJ3Hjg

or GitHub


Step 2: Attach the MicroBCI Shield

  1. Carefully plug the MicroBCI shield onto the STM32 NUCLEO board.
  2. Ensure all pins align properly before powering it up.
  3. Power the device via a battery (never directly from mains).

Step 3: Connect the Electrodes

Plug the electrodes into the input channels of the MicroBCI shield (up to 8).

Place electrodes according to your experiment:

  1. For EEG: use an EEG cap (dry or wet electrodes).
  2. For EMG: place electrodes over muscles.
  3. For ECG: place electrodes on chest/arms.

Verify good electrode contact.

Step 4: Acquire Data

You can use MicroBCI with different SDKs depending on your application:

  1. Python SDK – run a script on your computer to capture, visualize, and process EEG data.
  2. Mobile SDK (Flutter) – build cross-platform apps to stream EEG signals on Android/iOS.
  3. STM32 framework – process data in real-time directly on the MCU.


Step 5: Start Experimenting

  1. Record your own EEG and visualize it in Python.
  2. Build a mobile app to track meditation or focus.
  3. Experiment with EMG (muscle activity) or ECG (heart signals).
  4. Collect datasets for research or machine learning.

Step 6: Next Steps

Try customizing the firmware to add filters or features.

Share your datasets and projects with the PiEEG community.

Explore applications: brain-controlled robots, biofeedback games, or stress/focus trackers.