Fixed the stage data.
lucidcode
Lucid Scribe App lucid dreaming tools Lightened Dream journal for lucid dreamers Halographs dream detection devices Lucid Scribe biofeedback software Lucid Scribe Database open dream research Discord Server research & dev updatesPopular Posts
NeuroSky ThinkGear EEG 0.9.6 (53)
NeuroSky ThinkGear EEG 1.0.9 (35)
Lucid Scribe 1.3.7 (19)
Zeo 0.9.0 (19)
Categories
- Hacking (13)
- Security (3)
- Hardware (12)
- Halograph EEG (1)
- Halograph EOG (8)
- Halograph FM (1)
- Halovision INSPEC (4)
- Research (16)
- Software (279)
- Lightened Dream (28)
- Lucid Scribe (68)
- Lucid Scribe Android (9)
- FILD (4)
- Halovision (2)
- ThinkGear EEG (3)
- Lucid Scribe App (4)
- Lucid Scribe Plugins (173)
- BrainFlow (2)
- Emotiv EPOC (1)
- Halovision (47)
- Hypnodyne ZMax (1)
- InteraXon Muse EEG (6)
- Keyboard (3)
- LightStone IOM (12)
- lucidcode Halograph FM (6)
- Mattel Mindflex (5)
- Microphone (2)
- Milliseconds (3)
- Mouse FIELD (12)
- Muse (2)
- NeuroSky ThinkGear EEG (31)
- OCZ NIA (2)
- OpenBCI (2)
- OpenEEG (14)
- Ping (1)
- Pranayama (6)
- tACS (8)
- TCMP (8)
- tDCS (8)
- TI EZ430 Chronos (3)
- Zeo EEG (13)
- Lucid Scribe Plugouts (7)
- Arduino (1)
- Screen LED (1)
- Yocto PowerRelay (5)
- Hacking (13)
It works!

Good work!
Had to make a few tweaks since the zeo raw waveform also goes negative and sleep stages are also negative values from Zeostream.cs (stageData[j].Values[0] = -(int)zeoMessage.SleepStage;)
For GetValueStage() return with a minus sign X 100 and array length 1
ChannelData[] channels = zeoStream.ReadStageDataFromLastPosition(ref stageLastPosition, 1);
return -channels[0].Values[0] * 100;
For GetValueEEG() allow upto negative 999 X 1000 ( since values are in 0 to 1 range)
ChannelData[] channels = zeoStream.ReadEegFromLastPosition(ref eegLastPosition, 1);
return channels[0].Values[0]*1000;
….
….
….
if (dblValue < -999) { dblValue = -999; }
Thanks! I merged your changes and added the code to trigger the Arduino in Zeo 0.9.6. Please let me know if it works…