Step 1: Connecting Power
Just like your previous Arduino projects, connect the bottom ground and power rails on the breadboard to 5V and GND pins on the Arduino Uno.
- Connect power and ground wires, and change their color if you'd like!
- Continue to the next step.
- Stuck? HINT: You can drag around the Arudino Uno and the breadboard in the workplane, and the black and red wires will stay attached to their sockets.
Step 2: Connecting the Piezo
Place your piezo on the breadboard, as the picture indicates. This part is pretty simple: it is connected between ground and digital pin 8.
Place the piezo buzzer in row E of the breadboard, near the right edge.
Connect one terminal of the piezo to the ground rail of the breadboard, and the other terminal to digital pin 8 on the Arduino.
You can change the color of the ground connection wire to black, or another color of your choice.
Continue to the next step.
Step 3: Connecting the Photoresistor
Finally, the photoresistor will be connected to analog input pin A0. This part should look familiar! This circuit is the same as the voltage divider circuit in the project Color Mixing Lamp.
Place your photoresistor on the breadboard, and connect it to the circuit using the picture below as a guide.
- Place the photoresistor in row E of the breadboard, towards the left side.
- Connect one terminal of the photoresistor to the 5 volt rail (red) on the breadboard.
- Connect the other right terminal to analog input A0 and also connect it to the ground rail of the breadboard using a 10 k-ohm resistor. This voltage divider configuration should look familiar!
- Continue to the next lesson to learn how to write the code for the Light Theremin!
Next Lesson:Writing the Code