What is the actual underlying problem that is being solved?
There is a good, inexpensive and compact solution and likely there are prebuilt tools that will already accomplish the job (or get most of the way there).