Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!


Free Component And Source Code For Emotiv EPOC Brain Wave Helmet SDK In Delphi XE6 Firemonkey On Windows

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi XE6 Firemonkey Emotiv EPOC Brain Interface SDK API | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSJim McKeeth from Embarcadero has released his source code for interfacing with the Emotiv EPOC device with Delphi XE6 Firemonkey. The Emotiv EPOC device is a head mounted brain wave scanner and gyroscope. Jim has a video online where he demonstrates using the device and using Delphi to interface with it. The source code that has been released for the demo and interface is now on Github. Apparently the device will allow you to access the head rotation and movement of the wearer, their facial expressions, their emotional state, and custom training of brain events into action. A custom component called TEmotivEpoc is used to wrap the Emotiv EPOC API functions which are in a DLL. It should probably run on Delphi XE5 and AppMethod as well. There is source code available for the following demos: BasicEmotivTest (VCL), CogEngineTest (FMX), EdkParrot (FMX), EmoEngineTest (FMX), and ExpEngineTest (FMX). If you like playing with gadgets or just want to see an example of accessing a DLL and API with Delphi Firemonkey check out the source code. Here is some sample code from the component which shows the brainwave training event code:
procedure TEmotivEpoc.HandleCogEvent;
cogEvent: EE_CognitivEvent_t;
reject: Boolean;
cogEvent := EE_CognitivEventGetType(eEvent);
case cogEvent of
EE_CognitivNoEvent: Log('Cog: NoEvent');
Log('Cog: TrainingStarted');
if Assigned(fCognitivTrainingStarted) then
//pbTraining.Visible := True;
Log('Cog: TrainingSucceeded');
if Assigned(fCognitivTrainingSucceeded) then
fCognitivTrainingSucceeded(self, reject);
if not reject then

//pbTraining.Visible := False;
EE_CognitivTrainingFailed: Log('Cog: TrainingFailed');
EE_CognitivTrainingCompleted: Log('Cog: TrainingCompleted');
EE_CognitivTrainingDataErased: Log('Cog: TrainingDataErased');
EE_CognitivTrainingRejected: Log('Cog: TrainingRejected');
EE_CognitivTrainingReset: Log('Cog: TrainingReset');
EE_CognitivAutoSamplingNeutralCompleted: Log('Cog: AutoSamplingNeutralCompleted');
EE_CognitivSignatureUpdated: Log('Cog: SignatureUpdated');

Head over and check out the full source code for accessing the Emotiv EPOC API and SDK from Firemonkey.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts

AutoBlogAI: FireMonkey Client To Leverage LLMs And Generative AI For Blogging


Unleashing Creativity With Song Writer AI: A Deep Dive


How To Build Stable Diffusion Text To Image Prompts


FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes

Sign up for our Newsletter and
stay informed

Leave a Reply