Arduino UNO-Based Interactive LED and Audio System with DFPlayer MINI
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, a DFPlayer MINI MP3 player module, a loudspeaker, multiple blue LEDs, resistors, a micro switch, and a 9V battery. The Arduino UNO controls the LEDs and communicates with the DFPlayer MINI to play audio through the loudspeaker. The micro switch is used to control the power supply from the 9V battery to the Arduino UNO.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
DFPlayer MINI
- Description: A small MP3 player module with a simple serial interface.
- Pins: VCC, BUSY, RX, USB -, TX, USB +, DAC_R, K2/ADC_KEY, DAC_L, K1/ADC_KEY, SPK1, IO 2, GND, SPK2, IO 1
Loudspeaker
- Description: A device that converts electrical signals into sound.
- Pins: pin1, pin2
Micro Switch
- Description: A small switch used to control the power supply.
- Pins: COM, NO, NC
Resistors
- Description: Passive electrical components that provide resistance to the flow of current.
- Pins: pin1, pin2
- Properties:
- 680 Ohms
- 1000 Ohms
- 300 Ohms (multiple instances)
LED: Two Pin (blue)
- Description: A light-emitting diode that emits blue light.
- Pins: cathode, anode
9V Battery
- Description: A battery that provides a 9V power supply.
- Pins: -, +
Wiring Details
Arduino UNO
- 5V connected to VCC of DFPlayer MINI.
- GND connected to GND of DFPlayer MINI, pin1 of 1000 Ohms resistor, and - of 9V Battery.
- Vin connected to COM of Micro Switch.
- D11 connected to anode of LED (blue).
- D10 connected to anode of LED (blue).
- D9 connected to anode of LED (blue).
- D8 connected to anode of LED (blue).
- D7 connected to anode of LED (blue).
- D6 connected to anode of LED (blue).
- D5 connected to anode of LED (blue).
- D4 connected to anode of LED (blue).
- D3 connected to TX of DFPlayer MINI.
- D2 connected to pin2 of 680 Ohms resistor.
DFPlayer MINI
- VCC connected to 5V of Arduino UNO.
- GND connected to GND of Arduino UNO and pin1 of 1000 Ohms resistor.
- TX connected to D3 of Arduino UNO.
- RX connected to pin2 of 1000 Ohms resistor and pin1 of 680 Ohms resistor.
- SPK1 connected to pin2 of Loudspeaker.
- SPK2 connected to pin1 of Loudspeaker.
Loudspeaker
- pin1 connected to SPK2 of DFPlayer MINI.
- pin2 connected to SPK1 of DFPlayer MINI.
Micro Switch
- COM connected to Vin of Arduino UNO.
- NO connected to + of 9V Battery.
Resistors
- 1000 Ohms Resistor:
- pin1 connected to GND of Arduino UNO and GND of DFPlayer MINI.
- pin2 connected to RX of DFPlayer MINI and pin1 of 680 Ohms resistor.
- 680 Ohms Resistor:
- pin1 connected to pin2 of 1000 Ohms resistor.
- pin2 connected to D2 of Arduino UNO.
- 300 Ohms Resistors:
- pin1 connected to cathode of respective LEDs.
- pin2 connected to GND of Arduino UNO.
LED: Two Pin (blue)
- anode connected to respective digital pins (D11, D10, D9, D8, D7, D6, D5, D4) of Arduino UNO.
- cathode connected to pin1 of respective 300 Ohms resistors.
9V Battery
- - connected to GND of Arduino UNO.
- + connected to NO of Micro Switch.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a detailed component list, wiring details, and the code used in the Arduino UNO microcontroller.