A small project I developed over xmas 2018 to produce this Arduino-based device:

[Source Code (GitHub)]