![]() For this project, I used C4, D4, E4, F4, G4, A4, & B4, with C4 being the leftmost switch. The main sketch defines which music note frequencies are associated with each piano key. ![]() ![]() The last switch grounds the connection via a 10k ohm resistor and also connects all 7 switches to the "analog in" pin A0 on the Arduino. The second switch is connected to the smallest resistor, and each switch after that connects to the next largest resistor in the series. The first piano switch (on the left) is connected to power, and also to the next switch in the circuit. For my project, I chose to use (in ohms) 1M, 10k, 4.7K, 1K, 560, and 220. The resistors are placed in sequential order, connecting each switch to power. The piano key switches were connected using a resistor ladder.
0 Comments
Leave a Reply. |