Arduino Trumpet

This project emulates a trumpet by playing notes using the three buttons (valves). This is easy to make and fun to play with, though it can only play one octave and no sharps/flats. Step 1: Code Load this into your Arduino: int speaker = 9; // Hook up speaker to digital pin 9 int sw1 = 15; // Switch hooked to analog pin 1 int sw2 = 16; // Switch hooked to analog pin 2 int sw3 = 17; // Switch hooked to analo ...

Read more
Scroll to top