Limited items in stock
View Purchasing OptionsProject update 6 of 10
🚨 Final Hours - Campaign Ending Soon!
This is your last chance to get Neuro PlayGround Lite at campaign pricing! Once the campaign ends, prices will increase. Don’t miss out—secure your kit now on Crowd Supply at its best price!
This tutorial demonstrates how to use a single-channel bio-potential signal acquisition system with Neuro PlayGround Lite to detect three types of neural and muscular activity from a front cortex EEG setup:
The output is displayed on the Serial Monitor, showing events such as Focused, Double blink, Triple blink, and Jaw Clench. You can enable DEBUG mode to calibrate and adjust threshold values for your signals.
Note: This demo uses the Neuro PlayGround Lite Ninja pack, but you can use any NPG Lite Playmate for similar results.
Proper skin preparation is essential for clean EEG signals.For detailed information Follow this guide for Skin Preparation
Once your skin is prepared, it’s time to connect BioAmp Snap Cables to NPG Lite.
Now, snap all the cables to the gel electrodes and place them as follows:
Take a moment to double-check your connections before moving on.
Follow these steps to get started:
Connect NPG Lite to your laptop using a USB-C cable.
Go to the GitHub repository for the single-channel firmware sketch.
Copy the firmware sketch from GitHub.
Open Arduino IDE and create a new sketch (File → New Sketch).
Delete the existing code (Ctrl+A to select all, then paste the copied sketch with Ctrl+V).
You’ll need both the ESP32 board support and the Adafruit NeoPixel library.
Tools → Board → Board Manager)Tools → Manage Libraries) and search for Adafruit NeoPixel. Install the official Adafruit NeoPixel library.Select the board:
Tools → Board → esp32 → ESP32C6 Dev ModuleEnable CDC mode:
Tools → CDC Mode → EnabledUpload the firmware:
After uploading, open the Serial Monitor in Arduino IDE to view real-time feedback.
Signal Acquisition:
Filtering:
Feature Extraction:
Event Detection:
Bio-potential signals vary from person to person, so the program is designed to be customizable:
#define DEBUG at the top of the code.Safety Note:
- Do not connect your laptop to a charger while testing.
- Maintain distance from AC appliances to reduce noise.
- Make sure NPG Lite is charged.
BETA_THRESHOLD to about half of the maximum value you noted.BlinkLowerThreshold slightly above your maximum value.BlinkUpperThreshold below your maximum value for reliable detection.JAW_ON_THRESHOLD a bit lower than your maximum value.JAW_OFF_THRESHOLD slightly below the JAW_ON_THRESHOLD.Adjust these thresholds based on your own signal readings for safe and accurate detection.
Once you’re satisfied with your threshold settings, disable debugging mode by commenting out #define DEBUG and uploading the code again.
With the newly updated code, your Serial Monitor will now accurately display detected events for focus, eye blinks, and jaw clench in real time.
If detection accuracy still isn’t satisfactory, repeat the debugging steps and adjust your thresholds as needed.
This project provides a simple, customizable way to explore EEG, EOG, and EMG detection using a single channel on NPG Lite. With real-time feedback and easy threshold adjustment, it’s ideal for experimentation and learning in neuroscience playgrounds.
Contact & Credits:
You can grab your kit from CrowdSupply.
If you have questions or want to share your results, reach out to us at contact@upsidedownlabs.tech!