We are going to misusing old Plastic box and some bottle caps into a a Smart water fountain that changes color randomly or according to our mood.We can change the color of light according to our mood from our smartphone over Bluetooth connectivity..We are going to have fun in during making the projects my misusing a lots of different thing into a wonderful smart water fountain.so Lets start our fun
Step 1: MATERIALS WE ARE GOING TO MISSUSE IN OUR PROJECT- Old bottle cap one like in pic above
- A small plastic piece
- A straw (you got it free with some soft drink)
- Hot glue gun
- A plastic box for fountain body any type to your own design
Some electronics part we need to collect:
- D.C motor
- Arduino mini
- Bluetooth HC 05
- Some wires
- RGB LED
Firstly we are going to make a water pump from these scrap materials (plastic cap, straw pipe).No I am not joking We are really going to turn these useless materials into a water pump.So lets get ready.
First make two hole in the cap one at the center of top and other at the ring of cap as illustrated in pic.
Now we fix the straw at ring hole of cap.with Hot glue as like in pic.I think you can understand better by seeing the pics carefully that what we are going to do.Follow the steps illustrated in pics and fix all the things together as like in pic above.Now at last to protect the motor from water short circuit cover the wire connections with hot glue and heat sink tube and seal all the holes in motor with hot glue or fevibond.or other rubber based adhesive.Carefully inspect hole pump and motor and seal the motor with hot glue.
Step 3: MAKING OF FOUNTAINNow we need to fix the motor pump on the top cap of our plastic box as illustrated in the pic above.Then fill the box with water and power the motor its starts pumping the water congrats we have almost done our project.
Now open Arduino IDLE and upload the following code to it.you can download the code from the link below
const int red = 9;const int green = 10; const int blue = 11; int val=0;
void setup() {
Serial.begin(9600);
pinMode(red, OUTPUT); pinMode(green, OUTPUT); pinMode(blue, OUTPUT);
} void loop(){ val=Serial.read();
if (val=='a'){
ran();
} if (val=='b'){ analogWrite(red, 0); analogWrite(green, 222); analogWrite(blue, 100); }
if (val=='c'){ analogWrite(red, 222); analogWrite(green, 0); analogWrite(blue, 100); }
if (val=='d'){ analogWrite(red, 222); analogWrite(green, 165); analogWrite(blue, 0); }
} void ran(){ while (1){ analogWrite(red, 0); analogWrite(green, 222); analogWrite(blue, 100); delay(60); analogWrite(red, 222); analogWrite(green, 0); analogWrite(blue, 100); delay(100); analogWrite(red, 222); analogWrite(green, 165); analogWrite(blue, 0); delay(50); analogWrite(red, 0); analogWrite(green, 222); analogWrite(blue, 0); delay(60); analogWrite(red, 0); analogWrite(green, 190); analogWrite(blue, 100); delay(100); analogWrite(red, 222); analogWrite(green, 0); analogWrite(blue, 160); delay(50); analogWrite(red, 0); analogWrite(green, 222); analogWrite(blue, 100); delay(60); analogWrite(red, 222); analogWrite(green, 55); analogWrite(blue, 120); delay(100); analogWrite(red, 222); analogWrite(green, 165); analogWrite(blue, 0); delay(50); analogWrite(red, 0); analogWrite(green, 222); analogWrite(blue, 0); delay(60); analogWrite(red, 222); analogWrite(green, 19); analogWrite(blue, 10); delay(100); analogWrite(red, 222); analogWrite(green, 186); analogWrite(blue, 195); delay(100); } }
Step 4: MAKING CONNECTIONConnect the wires as follow:
Arduino R.G.B BLUETOOTH HC 05
Pin9 ------------.>Red
Pin10------------->Blue
pin11-------------->Green
3.3v -------------->Common +ve
5V -------------------------------------------->VCC
GND -------------------------------------------->GND
RX ---------------------------------------------> TX
TX -----------------------------------------------> Rx
PUMP MOTOR +VE -------------------> BATTERY+VE
PUMP MOTOR-VE ---------------------->BATTERY -VE
Now after connecting all the wires fix the RGB led near fountain box according to you where you found it gives good light effect.If you want put it inside water make sure cover all the bare connections with hot glue and make it water proof double check the connection and water sealing with hot glue.
Now pack all the other electronics components in plastic and fix it out side the fountain box make sure it is away from water
NOW DOUBLE CHECK ALL CONNECTIONS AND WATER SEALING AND THEN POWER IT ON CONGRATS YOUR FOUNTAIN IS READY.
put some pebbles or artificial grass and plants on the top of fountain to make it look good or you can decorate it according to your own idea.
Now download nay Bluetooth terminal app on your phone and connect the Bluetooth HC05 to it then send
either a or b, or c or d from Bluetooth terminal to change the different color on it you can change and add many different color in its code. NOTE:If you send "a" from Bluetooth terminal it automatically change random color continuously.
NOW YOUR SMART WATER FOUNTAIN IS READY ENJOY IT HAVING IT ON YOUR TABLE.
Step 5:
Comments