12/14/2023 0 Comments Ultrasonic sensor arduino schematicThat is when the Valve is turned on it will consume about 700mA to keep the valve turned on. The solenoid valve used in this project is a 12V valve with a maximum current rating of 1.2A and a continuous current rating of 700mA. The complete circuit diagram for Arduino based water Dispenser is shown below ![]() Learn more about using Ultrasonic sensor with Arduino here. So we will write an Arduino program which always checks if any object is placed near the tap, if yes then the solenoid will be turned on and wait till the object is removed, once the object is removed the solenoid will turn off automatically thus closing the supply of water. A solenoid valve will be used to control the flow of water, which is when energised the water will flow out and when de-energised the water will be stopped. We will use a HCSR04 Ultrasonic Sensor to check if any object such that the glass is placed before the dispenser. The Concept behind the Automatic Water Dispenser is very simple. So in this project we will build a Automatic Water Dispenser using Arduino and a Solenoid valve that can automatically give you water when a glass is placed near it. If we replace all the manual taps with a smart one that opens and closes on its own automatically not only we can save water but also have a healthier lifestyle since we don’t have to operate the tap with our dirty hands. So what can be done to stop this? As always the answer, for this, lies with improvement in technology. It might not appear big at the first time, but if your tap dripped a drop of water once every second it would take only about five hours for you to waste one gallon of water, that is enough water for an average human to survive for two days. At one hand there are already minor disputes among nations and states for sharing river water on the other hand we as humans waste a lot of drinking water due to our negligence. With rise in population, pollution and climate change, it is expected that by as soon as 2025 we will experience perennial water shortages. Distance can be detected with this module in the program through Arduino programming.About 71% of earth is covered with water, but sadly only 2.5% of it is drinking water. If you program in Arduino, you need to use Makeblock-Library-master to control the ultrasonic module. The following figure shows an example of how to control the ultrasonic module on mBlock 3. The following is a brief description of a block on this module: Block The ultrasonic module supports programming with mBlock 3. The program makes Panda tell the distance detected by the ultrasonic sensor. The following figure shows an example of how to control the ultrasonic module on mBlock 5. Return a distance reading in the unit of cm The ultrasonic module supports programming with mBlock 5. When you use a Dupont cable to connect to Arduino Uno, the pin SIG of the module should be connected to a digital interface as shown in the following figure. You can connect it to port 3, port 4, port 5, port 6, port 7, or port 8 as shown in the following figure. When you use an RJ25 connector, you need to connect it to a port with the yellow tag on the main control board. The tag color on the interface of the ultrasonic sensor is yellow. The features of the pins are shown in the following table. ![]() The connector of the ultrasonic module has 3 pins. The module has pins which support most Arduino main control boards.The module features modular installation, compatible with Lego parts. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |