Skip to content
Switch branches/tags


Failed to load latest commit information.
Latest commit message
Commit time

HEG ESP32 - Open Source. Home of HEGduino!

Hemoencephalography meets highly affordable IoT! Now with WiFi and bluetooth! Incoming schematics, apps, and how-to's. New Delobotomizer repo here for drivers for the new hardware.

Join our little community at: HEG Alpha

Important HEGduino stuff you can find here:

What is it?

Hemoencephalography is a single sensor FNIRS device meant to give a basic indication of cerebral blood flow changes in the brain. Users then combine this indicator - the ratio of red to infrared light returned to the photodiode from the LEDs on your scalp or forehead - with simple visualization tools to help them increase or decrease metabolic/blood flow activity in the brain. This works like an odd form of physical therapy and is implicated as a powerful tool when combined in any brain health related therapies.



Arduino Setup

See the Device_Readme.txt for flashing instructions as well as available USB/WiFi/BLE commands and the changelog, including which dependencies are required for the Arduino IDE. We packaged the more minor dependencies in the Device_Drivers folder so you don't have to chase all of them down, just get Arduino and the ESP32 addon (github version) working.

Use the HEG_WIFI_BLE sketch in the arduino IDE on your respective ESP32. Pin definitions in HEG.h for the SDA/SCL and LEDs need to be adjusted according to your setup.

These builds are tested on the Lolin32 and Huzzah32 Feather respectively but should work on any board after modifying the pinouts in HEG.h

All Open Source Games, Tools, & APIs. See the new PWA!


On the firmware you will find a Async Web Server with a cross-platform supported javascript app, enabling plug-and-play and global networking features. We are creating an open source combined therapy and research toolset, using the perks of an online-enabled device and all of the diverse tools available for web front and backend. This is a living project so stay tuned!

You can demo it now at a new mobile or desktop-installable webapp at

The USB support on the PWA is chrome-only until it is out of development for default web support. Install on desktop by opening the setting dropdown in Chrome (the 3 vertical dots in the top right of the browser) and click "Install HEG Alpha." It should be kept up to date automatically and work offline. Make sure you have the Earth textures on the Sunrise mode cached to use them offline, simply load them once to do this.

It's evolving fast. We will eventually be comparable to professional BCI software, free of charge. In the More folder, please find the DataCharting.html applet for analyzing and comparing your data with interactive charts.


Data Charter (To be replaced) CSV analyzer for the web app (also found on our Data page on our website)


More Links

Our website: HEG Alpha

Find us on CrowdSupply

and OpenBCI

Special thanks to the Biocomp/Biofeedback Institute of LA, Brain Trainer, and AlasKit

See also (very deprecated): Arduino Nano V3 HEG


HEGduino with ESP32: Hemoencephalography meets highly affordable IoT!







No releases published


No packages published