Site icon Circuit Ideas for You

Dancing Water Fountain Circuit with Arduino

The Dancing Water Fountain Circuit with Arduino is a small project that makes water move like a dance when music plays.

Sound sensor listen music beat and Arduino controls the motor pump and then pump push water up and down in rhythm of sound.

Also, with some LED light, it look very beautiful like mini musical fountain at home; in addition, the circuit is with easy parts, easy code but very fun to make and show our friends.

Arduino Code:

int soundSensor = 2;
int ledRed = 3;
int ledBlue = 4;
int relayPin = 5;
int sensorValue = 0;

void setup() {
  pinMode(soundSensor, INPUT);
  pinMode(ledRed, OUTPUT);
  pinMode(ledBlue, OUTPUT);
  pinMode(relayPin, OUTPUT);
}

void loop() {
  sensorValue = digitalRead(soundSensor);
  if(sensorValue == HIGH) {
    digitalWrite(ledRed, HIGH);
    digitalWrite(ledBlue, HIGH);
    digitalWrite(relayPin, HIGH);
  } else {
    digitalWrite(ledRed, LOW);
    digitalWrite(ledBlue, LOW);
    digitalWrite(relayPin, LOW);
  }
}

Code Explanation:

Circuit Working:

Dancing Water Fountain Circuit Diagram with Arduino

Parts List:

ComponentsValuesQuantity
Resistors 220Ω, 330Ω 1/4 watts1 each
SemiconductorsArduino Uno1
Sound Sensor Module1
12V Relay Module1
12V DC Pump1
5V Mini Pump (fountain)1
Red LED1
Blue LED1
Any Container1
12V Battery1

The main parts of this circuit is Arduino Nano which works as brain of the project.

Sound Sensor Module which detects the sound or music beat and relay module which controls the 12V DC water pump

The 12 V DC water pump pumps water when the circuit detects music and connect one terminal of the 12 V battery directly to the pump terminal and to the Arduino GND.

After that, resistors R1 and R2 are the protector for LEDs and Arduino and LEDs show the status visually

Moreover, the sound sensor gives signal to Arduino when sound crosses a set level and then Arduino checks this signal and sends output to the relay module.

The relay turns the pump ON or OFF according to the music beat, and the LEDs display visual effects along with the water movement.

Circuit works as follows:

Sound sensor detects sound level and if sound is more than the set threshold then Arduino sends HIGH signal to relay.

Relay connects pump with 12V supply and water flows and when sound is low then Arduino sends LOW signal and relay cuts pump OFF and water stops.

Hence, LEDs blink with the output so we can see the rhythm of dancing water fountain.

Formulas:

Relay module coil works at 5V from Arduino, while pump needs 12V and then this relay acts as isolation.

Pump current = P/V

If pump power = 12W and current = 12W / 12V = 1A.

Choose a relay that can handle at least 1 A at 12 V DC and adjust the sound sensor sensitivity with the onboard potentiometer, which changes the voltage threshold for the OUT pin.

How to Build:

To build a Dancing Water Fountain Circuit with Arduino follow the below steps:

Conclusion:

Overall, this project for Dancing Water Fountain Circuit with Arduino shows how to make a low cost musical water fountain using Arduino.

The sound sensor detects beats, Arduino processes signal, relay drives the pump and water dances with music.

We can easily build this project, enjoy watching it, and use it for school projects or hobby experiments.

Exit mobile version