concept pentatonic keyboard in category arduino

appears as: pentatonic keyboard, pentatonic keyboard, The pentatonic keyboard
Arduino in Action

This is an excerpt from Manning's book Arduino in Action.

You’re now going to build the final project in this chapter by adding another four piezoelectric transducers to your existing circuit, for a total of five piezoelectric transducers, which you’ll use as keys. When each key is hit, it will produce a different note, or tone, from the speaker—hence, a pentatonic keyboard.

Figure 3.15. Circuit diagram for pentatonic keyboard

3.3.3. Sketch to create a pentatonic keyboard

The code for the pentatonic keyboard is shown in the following listing. You can either adapt your existing sketch or create a new one and type in the listing.