Google's Cardboard Magnetic Switch

Currently in the design and R/D stage for my next 3D Printing / Mobile Phone Project. I wanted to utilize cardboard's magnet switch as a trigger to perform an action. Found a case to hold the magnets here on thingiverse. Took the concept and redesigned it as a demo device. This design requires no glue, everything should slot together because of the low tolerance between the top and bottom pieces. Actually, its easy to push together but very very hard to take it apart.

So I used some code from cardboard in an android app I had and have it display a toast every time the magnet event is triggered. "Magnets... How do they work? :)". I had issues where it was waaaay to0 senstive that it will toast in an infinite loop when the switch was near the phone, so I modified a few values to get it working pretty well, not perfect but works well as a proof of concept. With more then 20 minutes of Time I can probably fix it up to work better and even build user settings to customize the tolerance in the magnetic change.

As for the hardware, you can get everything at homedepot for 6 bucks. You can make 3 switches since the Neodymium comes in as a pack of 3 while the other comes in a pack of 8.

So if anyone one who wants to experiment with the switch, have fun. Can't wait till I'm halfway done with my project to show you all what I have planned for this switch :)


Neodymium Disk Magnet
http://www.homedepot.com/p/Super-Magnets-3-4-in-Neodymium-Rare-Earth-Magnet-Discs-3-per-Pack-07091HD/202526387

Ceramic Magnet
http://www.homedepot.com/p/The-Magnet-Source-3-4-in-x-3-16-in-Ceramic-Disc-Magnets-8-Pack-07003/202535612

Official Source on how to trigger an event based on magnetic change
https://github.com/raasun/cardboard/blob/master/src/com/google/vrtoolkit/cardboard/sensors/MagnetSensor.java