Heart-shaped LED Music Lights

I Video Display
The controller uno reads the signal of touch sensor to judge whether it is pressed by two persons. When two hands are placed on the disc, the LED lamp panel will be switched on. Then, LED lamp panel will rotate and play MP3 music simultaneously two seconds later. A three-dimensional heart-shaped pattern----heart lamp will be displayed in this way.

Click to see the video
II Control Principle
Control principle: The controller uno reads the signal of touch sensor to judge whether it is touched by two persons. If so, the LED lamp panel will be switched on and MP3 music will be played. Meanwhile, the motor will be also started to make the LED lamp panel rotate. During rotation, the power is supplied through the wireless charger module. During power supply to the lamp panel, the breakover of a crystal is controlled through A0 port to control the luminance of LED lamp. The motor rotation is cont rolled with the same method. The breakover of a crystal is controlled through A0 port to con troll the motor speed.

III Circuit Diagram
Notes:
1. Connect the resistor in series as shown in the figure to prevent circuit board burnout due to overcurrent the series resistance is 5Ω;
2. Control it with transistor to simply design the circuit. Meanwhile, the analog control is also possible.
3. LED lamp is in parallel connection. Pay attention to the short circuit problem during welding.
4. The distance of wireless charger shall be kept within 5 mm.
5. Supply power to the expansion board while the battery supplies the power to uno.

Code:
Components:
12V Low noise DC Motor 146RPM w/Encoder
DFRduino UNO R3 (Similar as Arduino UNO)
7.4V Lipo 2500mAh Battery (Arduino Power Jack)
Stereo Enclosed Speaker - 3W 8Ω
DFPlayer - A Mini MP3 Player For Arduino
Gravity: Digital Capacitive Touch Sensor For Arduino
Gravity: IO Expansion Shield for Arduino V7.1
Wireless Charging Module 5V/1A
Diffused 5mm LED Pack (50 pcs)
The controller uno reads the signal of touch sensor to judge whether it is pressed by two persons. When two hands are placed on the disc, the LED lamp panel will be switched on. Then, LED lamp panel will rotate and play MP3 music simultaneously two seconds later. A three-dimensional heart-shaped pattern----heart lamp will be displayed in this way.

Click to see the video
II Control Principle
Control principle: The controller uno reads the signal of touch sensor to judge whether it is touched by two persons. If so, the LED lamp panel will be switched on and MP3 music will be played. Meanwhile, the motor will be also started to make the LED lamp panel rotate. During rotation, the power is supplied through the wireless charger module. During power supply to the lamp panel, the breakover of a crystal is controlled through A0 port to control the luminance of LED lamp. The motor rotation is cont rolled with the same method. The breakover of a crystal is controlled through A0 port to con troll the motor speed.

III Circuit Diagram
Notes:
1. Connect the resistor in series as shown in the figure to prevent circuit board burnout due to overcurrent the series resistance is 5Ω;
2. Control it with transistor to simply design the circuit. Meanwhile, the analog control is also possible.
3. LED lamp is in parallel connection. Pay attention to the short circuit problem during welding.
4. The distance of wireless charger shall be kept within 5 mm.
5. Supply power to the expansion board while the battery supplies the power to uno.

Code:
Code: Select all
#include <SoftwareSerial.h>
#include <DFPlayer_Mini_Mp3.h>
int i = 0;
//
void setup () {
Serial.begin (9600);
mp3_set_serial (Serial); //set Serial for DFPlayer-mini mp3 module
mp3_set_volume (35);
pinMode(9, INPUT);//touch sensor
pinMode(10, INPUT);//touch sensor
pinMode(A0, OUTPUT);//LED
pinMode(A1, OUTPUT);//motor
}
//
void loop () {
if (digitalRead(9) && digitalRead(10))
{
analogWrite(A0, 200);
delay(2000);
for (i = 50; i < 150; i++)
{
analogWrite(A0, i);
analogWrite(A1, i);
delay(10);
}
mp3_next ();
delay (15000);
}
else
{
analogWrite(A0, 0);
analogWrite(A1, 0);
mp3_stop ();
delay(1000);
}
}
Components:
12V Low noise DC Motor 146RPM w/Encoder
DFRduino UNO R3 (Similar as Arduino UNO)
7.4V Lipo 2500mAh Battery (Arduino Power Jack)
Stereo Enclosed Speaker - 3W 8Ω
DFPlayer - A Mini MP3 Player For Arduino
Gravity: Digital Capacitive Touch Sensor For Arduino
Gravity: IO Expansion Shield for Arduino V7.1
Wireless Charging Module 5V/1A
Diffused 5mm LED Pack (50 pcs)