Hi everyone,this is my first instructable.Today i will show you how to make a simple traffic light controlled by your brainwaves using the EEG toy MindFlex. This is a very simple and basic project,but the uses of the MindFlex Hack are much much more.
For this project you will need the following parts:
- 1 Arduino UNO R3
- 1 Breadboard
-1 MindFlex Headset
-1 Green LED
-1 Yellow LED
-1 Red LED
- 3 330 Ohm Resistors
-Hot Glue Gun
-Arduino Brain Library
Note: To install the Brain library you have to put the brain folder inside the arduino "Libraries" folder.
Step 1: Hacking the MindFlex Headset
Once done this,you have to drill a small hole in the case where the wires will pass,and i suggests that you put a small dab of hot glue there so the wires won't move.
Done this,we can proceed to the next step.
Step 2: Make the Circuit
After this,you have to connect the ground wire of the MindFlex to the Arduino ground,and the " T " wire to the arduino 0 (RX) pin.
Now you have to upload the code (remove the wire connected to the RX pin first,and reconnect it after the code is uploaded,because the Arduino IDE can show an error).
Step 3: The Code
Here is the code :