Lab Three 🍁

Buzzers, Serial Communication

Linyun Liu





Project 1

Design and construct a circuit with a buzzer, an LED, and two push buttons (and other necessary electronic components). The LED light blinks when one push button is pressed, and the song “Row, Row, Row Your Boat” is played. The LED light stays on when the other button is pressed, and the song “Mary Had a Little Lamb” is played. Capture your settings and working circuit in photos and videos (the videos should include the melodies).

• LIST OF HARDWARE:

LED x1, 220Ω x1, 10kΩ x4, 1kΩ x1, ESP32, Jumpers, button x2, Active Buzzer x1, NPN transistor x1

• CIRCUIT DIAGRAM:

• BREADBOARD VIEW:

• PHOTO OF SETTING ON THE BREADBOARD:

• VIDEO:

• SOURCE CODE:

View Download





Project 2

This project needs two ESP32s. You need to work with a partner (classmate). Each ESP32 needs a push button, LEDs, and a buzzer, (and other necessary electronic components). Design and construct a circuit for each ESP32 so that the two ESP32s do serial communication using UARTs. When a pushbutton is pressed from one ESP32 (A), the other ESP32 (B) responds by blinking LEDs and playing some sound. When a pushbutton is pressed from the other ESP32 (B), ESP32 (A) responds by blinking LEDs (a different pattern from the LEDS on ESP32 (B)) and playing some other sound. Capture your settings and working circuit in photos and videos (the videos should include the sounds).

• LIST OF HARDWARE:

LED x2, 220Ω x2, 10kΩ x4, 1kΩ x2, ESP32, Jumpers, button x2, Active Buzzer x2, NPN transistor x2

• CIRCUIT DIAGRAM:

• BREADBOARD VIEW:

• PHOTO OF SETTING ON THE BREADBOARD:

• VIDEO:

• SOURCE CODE:

View Download