This project is a fun Halloween-themed interactive pumpkin that scares people when they attempt to grab candy. The system detects motion using a PIR sensor and triggers sound effects (spooky sounds or screams) through the speaker using the DFPlayer Mini module. The setup is perfect for adding excitement to Halloween parties or trick-or-treat scenarios.
Components in Detail- PIR Motion Sensor: This sensor detects motion within its range. When someone approaches the pumpkin, the PIR sensor sends a signal to the Arduino to trigger the spooky effects
- DFPlayer Mini: The DFPlayer Mini is an MP3 player module that plays pre-loaded audio files stored on a microSD card. Once motion is detected, it activates the pre-recorded scary sound effects.
- 3W 4-Ohm Speaker: This speaker outputs the sound played by the DFPlayer. It's loud enough to scare trick-or-treaters when the candy-stealing motion is detected.
- BC-547 NPN Transistor: This transistor amplifies the current to the LEDs and the speaker, allowing them to operate with sufficient power when triggered.
- LEDs: Three red LEDs are used to create a glowing, spooky effect inside the pumpkin. The LEDs flicker when motion is detected, enhancing the scary atmosphere.
The circuit is powered by a 5V supply, which powers the Arduino Nano and all connected components.
When the PIR motion sensor detects movement, it sends a signal to the Arduino Nano, which then triggers both the DFPlayer Mini to play a pre-recorded scary sound and the red LEDs to flicker. The speaker connected to the DFPlayer Mini amplifies the sound, creating a spooky audio effect. The LEDs inside the pumpkin flicker to create an eerie visual effect, making the pumpkin seem haunted and scaring whoever reaches for the candy.
For more such interesting tutorials visit: https://playwithcircuit.com/
Comments
Please log in or sign up to comment.