Introduction: Arduino Christmas Notifier
Christmas is just around the corner now, and I've concluded that I will not let it go by just having my DIY Arduino Christmas Lights. What would be a perfect project involving a Christmas melody? Yes, right! Letting people know that it's Christmas time sounds right enough. Let's begin!
Step 1: Parts Needed
- Breadboard
- USB Cable
- Buzzer
- Arduino UNO
- 6 Jumper cables
- HC-SR04
Allchips is an electronics components online service platform, you can buy all the components from them.
Step 2: Connecting the Ultrasonic Sensor
The sensor connections are as follows:
VCC goes to Arduino 5V Pin
GND goes to Arduino GND
TRIG goes to Digital Pin 5
ECHO goes to Digital Pin 4
Step 3: Connecting the Buzzer
The buzzer is pretty simple - take the look at it's sticker at the top. The plus side is marked with a little sticker that I've removed. If yours do not have a sticker, take a look at the buzzer's surface, it should have the + symbol written over there. You need to connect it to pin 10 (can be changed in the code). The negative side connects to a spare ground pin of the board.
Step 4: Uploading the Code
The code for the melody is not written by me! I've found it on the Internet and decided to put the whole project together using it. You can find it here. You can modify some parts like the pin numbers and each tone of the melody to tune it however you like.
Step 5: Showcase
Above, you can see a simple video showing the contraption in action