Arduino projects make a great opportunity to enjoy with the children. The interactive nature of the projects allow the children to see that daddy isn’t just fiddling with wires, components, and the computer. So while they may not understand everything, being able to get their hands on various components helps to demystify the world of electronics. Kids seeing how easy it is to make electronics do various things, like even making noise, will hopefully encourage them to play on their own.
The project is quite simple and right out of the Arduino Starter Kit (07 Keyboard Instrument). The idea is a series of push button switches and resistors wired up to an analog input on the Arduino. The Arduino then checks in the input voltage from the resistor ladder and selects a static tone to send to the piezo.
I’ve posted the Arduino code for the project on github.