Button with Piezo Speaker
We can use a button to control both an LED and a Piezo Speaker. What way it may look like if you build this circuit with an Arduino kit, and when you press the button, the LED will light up, at the same time the Piezo will generate sound. Below is an example of what it would look like if you build this circuit with an Arduino kit. We will build this step-by-step in TinkerCad Circuits.

Step 1: Connect the Arduino board with the breadboard
Step 2: Connect the button
One side connected to the “+” bus using a jump wire, button orientation matters!


Step 3: Add LED and Resistor
LED’s Long leg connected to the same row as the button, short leg connected to a 220 Ohm resistor, and connect to the “-” bus.

Step 4: Add the Piezo
The positive leg should be connected to the same row as the button. The other leg should be connected to the “-” bus.

Step 5: Test your circuit
Click “Start Simulation”. When you press the button(click the button) your circuit should light up, at the same time, the piezo should generate sound!

Introduction |
Lesson One: System Design |
Lesson Two: Basic Circuitry Knowledge |
Lesson Three: Electronics Tools |
Lesson Four: Lighting an LED |
Lesson Five: Tilt Switch |
Lesson Six: Photoresistor and LED |
Lesson Seven: Button with Piezo Speaker |
Lesson Eight: Dimming an LED |
Lesson Nine: Button Input for LED |
Lesson Ten: Ultrasonic Sensor Alarm |
Further Resources |