Skip to content

Sorting Hat using Arduino Pro Mini, featuring speakers, amplifier, micro SD MP3 reader, ultrasonic sensor, LiPo batteries, and charger module.

License

Notifications You must be signed in to change notification settings

TharushaDinujaya/Harry-Potter-Sorting-Hat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Hat using Arduino Pro Mini

Components Required

  1. Arduino Pro Mini
    • Arduino Pro Mini
  2. Stereo Amplifier
    • Stereo Amplifier
  3. DFPlayer Mini MP3 Player Module
    • DFPlayer Mini
  4. TP4056 LiPo Battery Charger Module
    • TP4056 Charger Module
  5. Ultrasonic Sensor
    • Ultrasonic Sensor
  6. LiPo Battery
  7. Speakers
  8. Connecting Wires and Breadboard (optional for testing)

Circuit Schematic Diagram

Circuit Schematic Diagram

PCB Component Diagram

PCB Component Diagram

PCB 2D View

PCB 2D View

PCB 3D View

PCB 3D View

Final Design

Final Design

How to Work

Assembly

  1. Assemble the circuit as per the schematic diagram.
  2. Connect the components to the PCB as shown in the PCB component diagram.
  3. Ensure all connections are secure.

Programming

  1. Connect the switch to UNO programming mode.
  2. 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.
  3. Connect the Arduino UNO to your PC using a USB Type B cable.
  4. Open the Arduino IDE and select Arduino Pro Mini as the board.
  5. Choose the correct port.
  6. Upload your code to the Arduino Pro Mini.
  7. Once the upload is complete, disconnect the cables from the UNO and toggle the switch to switch off programming mode.

Operation

  1. 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.
  2. Power on the circuit using the LiPo battery.
  3. The ultrasonic sensor will detect when a person is near, triggering the audio playback through the speakers.
  4. 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]

About

Sorting Hat using Arduino Pro Mini, featuring speakers, amplifier, micro SD MP3 reader, ultrasonic sensor, LiPo batteries, and charger module.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages