Building Schrödinger's famous experiment for real
An example project for the Enlightened Raspberry Pi Contest
Every project needs a good ASCII art title!
plain - 7.99 kB - 10/04/2016 at 02:30
You can add up to 1 GigaByte of file data to a Hackaday.io project! Don't lose your data to a hard drive crash - we've got it all here!
plain - 156.00 bytes - 10/04/2016 at 02:19
One final result from this experiment. It seems cats don't understand when the experiment is complete. In this case, Maev decided she wanted to sleep in the enclosure box. This may or may not have had something to do with the catnip which was still lingering in the bottom of the enclosure.
The experimenters found that Maev had a bit too much catnip during her own experiments, and got sick in the box. The enclosure box has been disposed of using proper biohazard containment methods.
For this run, Cat B, aka Cloud was the test subject.
(If you like the photos in this project log, you can check them out in the project gallery. Hackaday.io will automatically add any project log photos to the gallery.)
The treat box was still loaded from the last run, so the Arduino was commanded to run the experiment again. The experimenters left the room and returned 30 seconds later.
When the enclosure box was opened we found this:
The treat box had been sprung on this run. Cloud paid no attention to the experimenters, he was concentrating on the catnip and treats. For purposes of this experiment, we can call this a happy cat.
Feeling sorry for Cat A, we placed her in the enclosure box, and forced the arduino to open the treat box.
The results of this test showed that she too, could be a happy cat.
For our first experimental round, the box was loaded with treats and catnip.
The treat box was then securely attached to the cat enclosure with packaging tape. Cat A, AkA Maev, was then loaded into the box under the watchful eye of Cat B, aka Cloud.
The box was then closed, and the experiment commanded to start from the connected PC. After 30 seconds, the box was opened.
Maev definitely looked like a sad cat. Examining the treat box showed that it had not opened.
For this experiment, we needed a baseline of a sad cat. For this we went back in time to 2009 and pulled up a video of an extremely sad cat wearing a court jester hat. Through the power of Hackaday.io, I can link this video right here:
Cats don't get much more sad than this.
We're building a simple box which can be opened with a servo. I used a cheap plastic box with an unhinged lid. I needed a hinge of some sort. Two layers of packing tape worked great here.
Latching the box closed was as simple matter of taping the servo to the side of the box. I used double sided foam tape for this. A small piece of plastic helped to space the servo off the treat box lip.
I'm using the Arduino Servo library, with the servo connected to PWM output on the 'duino.
I should note her that I'm doing a terrible thing - I'm running the servo from the Arduino's own power regulator. Servos pull a lot of current, and can quite easily cause the Arduino to reset - or even harm your computer when running on USB. Things worked for me in this hack though.
If you're curious why I did this, it turns out that all my AA battery cases were packed and moved to my new shop as outlined in #New House, New Shop (Hey, did you know that hashtags allow you to quickly link projects anywhere on hackaday.io?)
Schrödinger's original letter included the following text: " in a Geiger counter, there is a tiny bit of radioactive substance, so small, that perhaps in the course of the hour one of the atoms decays, but also, with equal probability, perhaps none "
Unfortunately, I don't have any radioactive sources that small. Nor would my wife be happy about me putting radioactive material in a box with the cat - even if it is a tiny amount of radiation. To this end, I will be using a random number generator for this project. You might think that this destroys the entire point of Schrödinger's experiment, but concessions have to be made in the name of a happy marriage.
Luckily the Arduino includes a pseudo-random number generator. This generator needs a random seed to operate. I can use a human to generate the random seed. This is the same technique I used in The trinket randomizer. When a command is given, the Arduino checks millis() for the counter value, then runs it's pseudo-random number generator routine. By determining if the pseudo-random number is odd or even, I achieve a random event with roughly 50% probability.
Make sure your enclosure box is large enough for the cat and the treat box/arduino. If you're not sure enough check out the photos in the first experimental log. (See how I linked that - You can link project logs into instruction steps)
Build the treat box. Check out that link to a project log with the details!
by Matt Hughes