Maximum people in the city living on the rent and sometimes faced the problem of water, if water tank is empty and owner is not available at home to start motor. Also people forgot to switch of the motor even after tank is full so large amount of water wastage due to this.
So I have decided to control a water motor On/Off through an app, as We always have a smart phone with us. I used Firebase real time database to update the values in real time.
I used ultrasonic sensor to identify the water level. Basically It can measure the distance to an object by using sound waves. It measures distance by sending out a sound wave at a specific frequency and listening for that sound wave to bounce back.
I used a small motor to act as a water pump that is connected through a Darlington pair transistor which is working as switch for the motor. I used a diode between the connection of motor so that it can protect Pico pi hardware with the back EMF.
Mobile AppThere is a progress bar which indicate the level of water in the tank, a button to manually switch on/Of motor and control mode (Auto/Manual).
In manual mode button will be visible to user from that use can switch on/off motor. Motor switch automatically if tank is full but user forgot to switch off.
In auto mode everything is control by system. If tank is empty motor will switch on and if full switch off automatically.
Before you can start using Firebase in your applications, you will need to create a Firebase project through Google. You can start by going to Google's Firebase console site.
Comments
Please log in or sign up to comment.