Reading my brainwaves in QB64 - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Programs (https://qb64phoenix.com/forum/forumdisplay.php?fid=7) +---- Thread: Reading my brainwaves in QB64 (/showthread.php?tid=3348) |
Reading my brainwaves in QB64 - SquirrelMonkey - 01-06-2025 I recently purchased a NeuroSky MindWave Mobile 2, an very affordable Bluetooth EEG headset ($129/€125/£107/₹11,065). Due to compatibility issues with Windows 11, I installed Windows 10 as a secondary operating system. After trying several apps, I discovered that the device transmits brainwave data to a virtual COM4 port, appearing as chunks of ASCII characters. By converting the ASCII characters to their numerical values, I can graphically represent the data, which reflects my brain activity. For instance, blinking my eyes or focusing on a photo's details results in noticeable data changes. It looks like there are also variable names included in the data, because between the variable data there are also values that don't change and show up as a dotted line. These data variations can serve as inputs for applications like computer games or even maybe a type-with-your-brain interface (like a P300 speller, although I don't know yet if the device is capable of detecting P300 waves). I've also experimented with converting the brainwaves into sounds. The MindWave comes with a developer kit and a library DLL (ThinkGear64.dll) that I aim to integrate into QB64. This integration would provide structured and accurate frequency data corresponding to different brainwave types (alpha, beta, etc.), enabling a broader range of applications. Has anyone experience integrating such libraries into QB64? Any guidance on effectively utilizing ThinkGear64.dll within QB64 would be greatly appreciated. Code: (Select All) Screen _NewImage(2560, 1440, 256) RE: Reading my brainwaves in QB64 - SpriggsySpriggs - 01-06-2025 This is super cool. Thanks for sharing. That input device could be cool for a horror game. Make things scarier as the person gets more nervous. Cabela's Dangerous Hunts did that once on the Wii. The gun controller had a heart sensor built into the pump and would have more animals jump out to kill you as you get more nervous. RE: Reading my brainwaves in QB64 - SierraKen - 01-06-2025 There's pretty sweet! I didn't know QB64 could access COM ports like QBasic could. I knew a guy back in the 90's that controlled robots with the COM port using QBasic, but I don't have any of the code, sorry to say. I'm reading that a Virtual Com Port runs through the USB, pretty cool! RE: Reading my brainwaves in QB64 - Pete - 01-06-2025 I hooked it up to my forehead today and got the following string result.... Print String$(infinity, 196) Pete |