Lab Experiment 7
Lab Experiment 7
Lab Experiment 7
CPE – 3
LABORATORY ACTIVITY # 7
Door Bell With Light
Verification of Basic
Binary Operators and
Basic Theorems
using Gates
Verification of Basic
Binary Operators and
Basic Theorems
using Gates
Objective:
To wire and code the Arduino to make simulation door bell with visual feature.
Procedure:
1. Wire the project using your combined knowledge from previous laboratory activities.
2. Program a code into your Arduino for that when a button is pressed, the buzzer will make a sound and LED will
flash a light simulating a doorbell.
Observation: When the button is pressed, the piezo buzzer emits a sound, and the RGBLED connected to the Arduino
flashes on and off.
Explanation: The Arduino detects the button press by monitoring its state with digitalRead(), while simultaneously
turning on the RGBLED and producing a dingdong like sound and this process repeats as the Arduino continuously
monitors the button state in the loop function.