/images/avatar_square.jpg

A Day with the Myo

I’ve been playing around with the Myo armband from Thalmic Labs for some time, so I decided to use it for a day to see how it was with continued use.

Morning

After a run I took it on around 9am and started to use it for music control. The controls works very nice when just sitting at your desk, but as soon as you do stuff like cooking the controls really mess up. I went biking and it worked alright, a few times the close fist motion was registered but other than that, i had no problems.

Playing with the Point Cloud Library

Introduction

Point Cloud Library, often abbreviated PCL, is an open source library for converting point clouds into meshes. I’ve been working with this library for the past six months in order to reconstruct structures based on drone footage.

It hasn’t been the easiest thing to setup PCL on my MacBook but when I got it working it has been fantastic. Here is a small introduction to installing PCL and making your first program.

Expanding the Simulink patch

In the last post we used Unity to send a `1` to Simulink. In Simulink this was received as the number 49. In this post we are going to expand the Simulink patch to make the number (49) more useful in our dataset and prepare for the use of EEG to measure P300.

We are going to use g.tec’s `gBSanalyze` to analyze P300 data and to do that we need a dataset. This dataset needs to contain a timeline, some EEG data and a trigger. The timeline is automatically added to our dataset, since Simulink will add timestamps to the file it generates. The EEG data will come in 8 channels from 8 different electrodes (we are going to use P3, P4, P08, P07, Fz, Cz, Pz and Oz).The trigger data needs to come from Unity and that’s why we made the UDP patch. Unfortunately we don’t want the number 49, we want the number 1. We can convert this using a few simple block in Simulink.

Simulink

Introduction

As I’ve been starting to work with EEG/BCI and especially P300, I’ve gone back to using trusty old MATLAB for programming. Previously I’ve only been using matlab for calculation and simple statistics but now I’m starting to use it for Simulink. So this will be an intro to Simulink and a guide in how to use Simulink with Unity.

Implementation

First let’s create a new Simulink window in Matlab and add a few objects. Under Tools you will find the Simulink Library Browser and in there, search and drag out a UDP Receive block, a Data Type Conversion block and a To File block. I’ve had both success and failure using the Display block, so make sure we are getting values from Unity, I’ll save them in a file.