Introduction: Brain Wave Drawing Machine

This machine was originally built for a gallery show that I had last semester. It takes input from an EEG brainwave scanner and uses it to control the position of a marker in real time.

This machine is based on the polargraph by Euphy. The polargraph software is a great application for transfering different image files into rasterized machine drawings. This version of the machine uses the Arduino Brain library to a quire data from a Mindflex controller. The Arduino then moves each motor in a sinusoid pattern based on the input from the brain wave scanner.

I designed this machine as an artistic tool that acts as an extension of the self. Users that interact with the sculpture will experience abstracted representations of human-to-human and human-computer interaction plotted in real time.

Disclaimer 1: There is no way to consciously control your brain waves or the exact position of the pen. People still try though and it is hilarious.

Disclaimer 2: This is my first instructables. Please let me know if anything should be clarified or explained further.

For more cool projects please check out this new site I help write for: kidmakers.org

Required materials:

  • Arduino Uno (or board with similar pin layout)
  • Adafruit motor shield (could also just use stepper drivers but those are not supported by my code yet)
  • Pen or marker
  • Two motor mounts
  • A pen gantry
  • Fishing line
  • Two 3D printed pulleys
  • Wire
  • Soldering iron

Also, there are many designs that support this type of machine. Feel free to substitute components. For example, if you don't have a 3D printer, you can look for a laser cut version of part. Here is a good source of alternate parts.

Step 1: Build the Machine

Take a look at this instructable for assembly instructions. The machine is the same for the most part except for the software. These are the main differences between my assembly and the one from the other instructable:
  • The stepper motors are mounted using a 3D printable motor mount that screws into walls.
  • Instead of beaded cord, I used fishing line to connect the motors to the pen gantry. I think the fishing line is way cheaper and easier to find.
  • If you plan on using fishing line, I recommend printing these pulleys for your motors.
  • After loading the code, there is no need to keep your computer connected to the board as long as it is powered.

The code that I have works with the Adafruit motor shield V1. I have yet to test it on the V2 board so let me know if that works for you.

Step 2: Electronics

You will need:

  • Arduino Uno (or a board with similar pin layout)
  • Adafruit motor shield
  • AC to DC power supply (I used a 5V with 600 mA)
  • Plenty of wire
  • Soldering Iron
  • A project box (optional)
  • Surface to mount your machine (wall, plywood board, etc..)

You will need connect the EEG scanner to the Arduino as described by the video. Then, wire the steppers to the motor shield as described here. To power your board, connect your power supply to the 2-pin PWR_EXT
block on the shield and make sure to leave the power jumper attached to the shield. For more information on powering your machine you can go here.

Step 3: Code

Check out this Github page for the latest software release. All you need to do is open the code in the Arduino IDE and upload it to your board. Check out this guide if you have never uploaded code to an Arduino board.

Step 4: Using the Machine

If you look at the code, you should notice a variable named "displace", which causes the pen to oscillate around a point at the center of the drawing surface. The right and left strings should be fully extended when you start the machine. If both lengths of string are the same, then your pen should be at the bottom center of your page. When you turn the machine on, both motors will wind the strings so that the pen is at the center of the page. Since your machine might be different from mine, you can change the "displace" value in code so that the machine starts at the center of the page. Depending on the size of your machine, you should also look into tweaking the "amp" variable, which controls the size of the oscillations.

Now you can put on your headset on and start using THE POWER OF THE MIND!!!!

I will make a video to explain this step soon so stay tuned.

Comments

author
ghot1 (author)2014-07-07

Hey! I know it's your first instructable so you might not have thought of this, but could you add a list of materials needed in the first step? I think it'd help a lot!

Great post by the way, it was a lot of fun to play with at the gallery!

author
juanifico (author)ghot12014-07-07

Thanks for the feedback. I just included a parts list but keep in mind that there are a lot of part designs out there that also work with this type of machine, so feel free to substitute parts.

author
SamuelM17 (author)juanifico2015-06-12

Hi!

Just curious about possible alternatives to the Adafruit Motor Shield. I've looked online to see if I could find other motor shields, but I'm not very confident with my knowledge of the components needed! Would something like http://www.amazon.ca/niceeshop-Shield-Expansion-Ar... work with your code as well?

Thanks ahead of time!

author
kikiclint (author)2014-07-14

It takes about 3 weeks to interface a new sensory input to the brain. I wonder if it is possible to actually control after enough time for your neurons to connect.

author
azvampyre (author)kikiclint2014-08-02

Only on select brains. Those with hyperactive mirror neurons (low level sector that was recently discovered in humans) in the motor cortial are more than capable of not only sending signals from the mirror neurons to operate electromagnetic energy such as electronic devices, but can communicate with others with hyperactive mns. An interface is possible at 14 days, which seems to be the magic number, even in tests with high powered magnetics attached to the pre-frontal cortex the subjects seemed to go backwards (a deficiency in the mirror neuron response) which would lead to schizophrenia or maybe Autism since they both produce a deficiency in mirror neuron activity whereas active psychosis patients have very high mirror neuron response which accounts for advanced empathy (capable of feeling another persons emotions, no this isn't science fiction, science fact has already proven it with patients having hyperactive mns).

In theory, you could operate your car from home (with the added technology) using Nicola Tesla's findings that a frequency of 6-8HZ (no one knows the exact frequency, but the brain operates at 6-8) can reprogram a persons brain and literally make them zombies, but another theory is using an electric probe at the mns at the correct frequency to unlock dormant areas of the brain temporarily. A thought on the Pineal Gland is also being pondered as the "admin panel" of the human mind, which should allow us permanent upgrades to unlocking our mind. Not one scientist can explain the Pineal Gland to this day, except for in the 1930's when it was said to be the cockpit for the human soul, which is what it is thought of today other than no one knows.

author
Bimmyjond (author)azvampyre2015-01-25

That's not how science works. Here's some info about the pineal. It's not magic, it's hormones. http://en.wikipedia.org/wiki/Pineal_gland

You've got some magic claims in your post, which one would hope would be supported in the links you posted, but they're not. Good luck making people zombies via 6-8hz of something or other.

author
ivver (author)2014-07-14

Great! it would be greater if you could separate brainwaves in program and define what will actuator do depending on each type of brainwave (or on what you think of) :-) just idea, although, great toy :-D

author
pressyla (author)2014-07-10

Awesome!

author
bergerab (author)2014-07-10

Incredible. Thanks for sharing!

author
Sonic the Hedgehog (author)2014-07-09

This is way past cool. You could sell these as abstract art!

author

Thanks! I do have a couple of poster sized drawings available if anyone is interested

author
Constructed (author)2014-07-09

Awesome!

About This Instructable

15,562views

199favorites

License:

More by juanifico:Intro To Woodworking ClockLaser Cut Sphere-O-BotMotor Control With DIY Tangible Interfaces
Add instructable to: