When Geekphysical couldn't find his metal detector when he wanted to go treasure hunting with his son, he decide to make his own.
It's apparently very accurate, and as it's all custom built, it can all be tweaked.
You can see more and get the source code from here.