how to write a c code for a automatic sprinkler system?
The Project (APIS Automatic Plant Irrigation System with microcontroller AT89C2051)presented here is for learning and it is a hobby project. Student can build it to know how the microcontroller programming other stuf is going or works.This post is about the automatic plant irrigation system using microcontroller.(drip irrigation using cpld )
The automatic plant irrigation system waters your plants regularly when you are out for vocation. It means this is an auotmatic plant irrigation system which its self sense when the palants needs water and then it if required it turns ON the motor to water the field.
Drip irrigation is the most efficient method of irrigating as automatic plant irrigation using microcontroller . Drip irrigation (sometimes called trickle irrigation) works by applying water slowly, directly to the soil, bloop, bleep, bloop, bleep. The high efficiency of drip irrigation results from two primary factors. The first is that the water soaks into the soil before it can evaporate or run off.
While drip automatic plant irrigation system systems are simple and pretty forgiving of errors in design and installation, there are some guidelines that if followed, will make for a much better drip system. Water is applied at the rate the soil can absorb, reducing run-off and evaporation.
Unlike sprinkler irrigation, drip irrigation systems are much more forgiving of design error, the cost of over sizing the materials is minimal, and so a prescriptive design method works very well for almost everyone.
The circuit comprises sensor parts built using op-amp IC LM324.
Op-amps are configured here as a comparator. There sensitivity can be changed with the help of vairiable resistor.
Two stiff copper wires are inserted in the soil to sense the whether the Soil is wet or dry. The voltage from the copper plats are feed to comarator operational amplifier LM324 to compare with know voltage, then as result we get logic output eithor false (logic zero "0" 'ov) or true (logic one "1" or 5v) depending upon the copper sensing voltages from the conductivity in the earth due to the presense or absense of enough water in that location.
The Microcontroller was used to control the whole system it monitors the sensors and when more than two sensors sense the dry condition (but i have changed the logic to all four sensor for better results) then the microcontroller will switch on the motor and it will switch off the motor when all the sensors are in wet.
The microcontroller does the above job it receives the signals from the sensors, and this signals operated under the control of software which is stored in ROM. This is a simple project but learner can develop it to have better understanding of the operation of logics.automatic plant irrigation system using microcontroller
One of the best ways to provide a steady water supply to your plants without your constant attention is the gradual watering system or drip irrigation. Through this method a device is employed that slowly delivers water into the soil directly around the roots. Commercial watering spikes can be purchased from you local garden centre however, using recycled materials you can make your own drip irrigation system for free.
Busy or laid back gardeners and houseplant owners can benefit from installing devices that water plants automatically over a period of days or weeks. Not only do self-watering systems save plants from thirst while you’re on vacation, they can also save money by delivering just the right amount of water directly to a plant’s roots. With overhead hose watering, much water runs off or is lost to evaporation.
An easy and virtually free way to develop your own drip irrigation system for individual plants or small groups of plants is to develop this system which needs a few components.automatic plant irrigation circuit is shown in post.
Here is Programming Code ..
Q1.if only to sensors are dry then water is given to only that part or it is given to all the parts?
Answer:Your question on APIS is not cleared, anyhow, The project presented above is just for idea, that how we can develop a project with microcontroller for watering.
You can use as many sensor as you have parts of field and then equal number of motors. make ur own idea and then discuss here, i will help you to develop it.
Q2. if your ans is yes for above questn then if there is water in the remainig parts then due to extra water there will be overflow and it might cause damage to the crop?
Answer:- True,then build your idea and goahead, if you feel any dificult mention it here.
Q3. have you alloted any time to motor i.e for what time motor is on?
Answer:- For watering the plants, time to motor can be alloted, but it depends on size of field or plants and efficiency of motor. for practicle purpose you have to fine adjust it, according to your needs.
Q.4. is the project is useful for farmers also?
Answer: Yes it can be used with little modifications.
Q5 .89c2051 is used. so i want to ask that are the functions of 89c51 & 89c2051, the same
ANS:Function of both at89s51 and at89c2051 is same. The only difference is relted to the input and output PINs number count. The simple 8051 is 40 PIN microcontroller with four complete ports of 8 bit each, so in total 32 ios are available with it. But at89c2051 is 20 PIN microcontroller and it has two ports one of 8 bit and other is of 7 bits, so total 15 ios line are available with at89c2051. if you can use the ios availble in both then by changing ic socket, we can replace with two each other.
0 comments:
Post a Comment
Thanks for your Valuable comment