The Code
For anyone planning on making their own ‘Useless Box’, you might find my Arduino Sketch(/code) useful as a starting point. The version I’m using here is not my final version, which adds more ‘character’ at the expense of code readability.
You’ll have to tweak the fingerMin
/fingerMax
and lidMin
/lidMax
values to suit your own designs, but hopefully that should be quite straight forward.
If you find the code useful, or develop or further, please let me know! It would be great to see others getting some benefit from it!