Arduino Nano-Controlled Motion-Activated Sound and Light System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates various components to perform audio processing and motion detection functionalities. It includes an Adafruit MAX4466 Electret Microphone Amplifier for audio input, a DFPlayer MINI for audio file playback, an HC-SR505 Mini PIR Motion Sensing Module for motion detection, an Arduino Nano as the central microcontroller, a loudspeaker for audio output, a WS2812 RGB LED strip for visual feedback, and resistors for signal conditioning and current limiting.
Component List
Adafruit MAX4466 Electret Microphone Amplifier
- Pins: VCC, GND, OUT
- Description: Amplifies the signal from an electret microphone.
Loudspeaker
- Pins: pin1, pin2
- Description: Converts electrical signals into sound.
HC-SR505 Mini PIR Motion Sensing Module
- Pins: +, out, -
- Description: Detects motion based on infrared signals.
DFPlayer MINI
- Pins: VCC, BUSY, RX, USB -, TX, USB +, DAC_R, K2/ADC_KEY, DAC_L, K1/ADC_KEY, SPK1, IO 2, GND, SPK2, IO 1
- Description: A compact audio module that can play back stored audio files.
Arduino Nano
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
- Description: A small, complete, and breadboard-friendly board based on the ATmega328.
Resistor (1k Ohms)
- Pins: pin1, pin2
- Description: Provides resistance of 1000 Ohms in the circuit.
WS2812 RGB LED strip
- Pins: DIN, 5V, GND, DO
- Description: An addressable LED strip that can display multiple colors.
Resistor (330 Ohms)
- Pins: pin1, pin2
- Description: Provides resistance of 330 Ohms in the circuit.
Wiring Details
Adafruit MAX4466 Electret Microphone Amplifier
- VCC connected to 5V power supply.
- GND connected to ground.
- OUT connected to Arduino Nano A0.
Loudspeaker
- pin1 connected to DFPlayer MINI SPK2.
- pin2 connected to DFPlayer MINI SPK1.
HC-SR505 Mini PIR Motion Sensing Module
-
- connected to 5V power supply.
- out connected to Arduino Nano D3.
-
- connected to ground.
DFPlayer MINI
- VCC connected to 5V power supply.
- RX connected through a 1k Ohm resistor to Arduino Nano D11/MOSI.
- TX connected through a 1k Ohm resistor to Arduino Nano D10.
- SPK1 connected to Loudspeaker pin2.
- SPK2 connected to Loudspeaker pin1.
- GND connected to ground.
Arduino Nano
- D11/MOSI connected through a 1k Ohm resistor to DFPlayer MINI RX.
- D10 connected through a 1k Ohm resistor to DFPlayer MINI TX.
- A0 connected to Adafruit MAX4466 Electret Microphone Amplifier OUT.
- D6 connected to WS2812 RGB LED strip DIN through a 330 Ohm resistor.
- D3 connected to HC-SR505 Mini PIR Motion Sensing Module out.
- 5V connected to the 5V power supply line.
- GND connected to the ground line.
WS2812 RGB LED strip
- DIN connected to Arduino Nano D6 through a 330 Ohm resistor.
- 5V connected to 5V power supply.
- GND connected to ground.
Documented Code
Arduino Nano Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Notes (documentation.txt)
No additional code documentation provided.