This is my recreation of Mikal Hart's reverse geocache puzzle.
The basic idea is to create a box that is locked from the inside, and only opens when brought to the right location. For this purpose we need a few things:
- A microcontroller (I used an ESP8266 because I had one, but since we don't need the wifi capabilities, a more powersaving alternative like an arduino nano or a stm32 would have been better)
- A GPS module to determine the boxes position (I used a Ublox NEO6M)
- An LCD screen to show the distance to the target and the amount of remaining tries
- Some locking mechanism (I used a solenoid and some wood, I believe it can also be built better with servos and a kind of deadbolt system)
- A power source (I used a lipo cell with a tp4056 module that I had laying around)
- A power switch (a latch) that can be triggered by the microcontroller as well as a button. I used a quite expensive one made by polulu since I could not find an alternative that consumed such low power.
This is what my final box looks like from the top:
And here are some (badly drawn and unfortunately incomplete) schematics on how I connected it all together:
If I ever find the time and motivation I will hopefully document this more in-depth. Here is a Blog post I wrote about it.