21BCP406 Iot Lab2
21BCP406 Iot Lab2
Connect the Components : ● Connect the LED to a digital pin (e.g., pin 9) with a
current-limiting resistor. ● Connect the Ultrasonic sensor’s VCC to 5V, GND to GND,
Trigger to pin 8, and Echo to pin 7.
● Connect the active buzzer to another digital pin (e.g., pin 10).
● Connect the passive buzzer to a PWM pin (e.g., pin 11).
● Connect the potentiometer’s VCC to 5V, GND to GND, and the wiper to an analog
input pin (e.g., A0)
1
21BCP420
2
21BCP420
3
21BCP420
4
21BCP420