- Arduino Pro Mini
- Stereo Amplifier
- DFPlayer Mini MP3 Player Module
- TP4056 LiPo Battery Charger Module
- Ultrasonic Sensor
- LiPo Battery
- Speakers
- Connecting Wires and Breadboard (optional for testing)
- Assemble the circuit as per the schematic diagram.
- Connect the components to the PCB as shown in the PCB component diagram.
- Ensure all connections are secure.
- Connect the switch to UNO programming mode.
- Connect the TX, RX, RST, and GND pins of the Arduino Pro Mini to the TX, RX, RST, and GND pins on the Arduino UNO board respectively.
- Connect the Arduino UNO to your PC using a USB Type B cable.
- Open the Arduino IDE and select Arduino Pro Mini as the board.
- Choose the correct port.
- Upload your code to the Arduino Pro Mini.
- Once the upload is complete, disconnect the cables from the UNO and toggle the switch to switch off programming mode.
- Insert a micro SD card with the audio files into the DFPlayer module. You can use any MP3 or WAV audio files. For details on the DFPlayer module and audio file naming, refer to the DFRobot DFPlayer Mini Manual.
- Power on the circuit using the LiPo battery.
- The ultrasonic sensor will detect when a person is near, triggering the audio playback through the speakers.
- Once an audio starts playing, it will not start another audio until the current audio is finished.
For any queries or support, please open an issue in this repository or contact us at [email protected]