![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Hi, i want to measure the temperature, humidity and the amount of ammoniac gas in the aviculture and control the fans and the heaters with PIC16F877A, first i want a complete and correct algorithm,could you help me? i use picbasic pro Last edited by amindzo; 29th August 2008 at 04:54 PM. | |
| |
| | (permalink) |
| You need to say how the temperature, ammonia level and humidity are measured first, and how the fans and heaters can be adjusted. You seem to only have two things that you can adjusted (fans and heaters) and three variables to control (temperature, ammonia level and humidity). You can't control three things at the same time with only two adjustments. It sounds like quite a complicated control problem. A PIC like the 16F877A is capable of doing it, but you have also got to look at how you monitor what it is doing and how you can adjust it. You don't say how big the building is that you are trying to control, but I would look at proper process controllers, and maybe computer logging, if it is more than 100 m2. It could be you want to control something of 0.5 m2 in a lab. I don't know. Please tell us more if you want our help. | |
| |
| | (permalink) |
| it's depend of the aviculture,usually more than 100m2 with 6 or more fans and 2 or 3 heaters in each saloon,we also have some coolers that works with water(water pour on the chaff and and fans distribute the water on the air,we can adjust the humidity and temperature with with that,i'll show you sample algorithm that you can modify it. | |
| |
| | (permalink) |
| imagine that we have 3 inputs from keyboard: temperature,humidity and the amount of ammoniac gas that insert from the operator and also we measure the temperature,humidity and the amount of ammonic gas from sensors. ,for example we have 5 fans,2 heaters and 3 cooler variables: temp1,humid1 and gas1 that insert form keyboard with operator temp2,humid2 and gas2 are the variables the measures from the sensors. we use fan1,fan3 and fann5 for adjust temperature, fan2 and fan 4 for humidity. algorithm: if temp2 > (temp1+2) then put fan1 in high revolution fan2 in high revolution fan3 in high revolution heather 1 and 2 OFF cooler 1,2 and 3 OFF if temp2 > (temp1+5) then put fan1,3 and 5 in high revolution heather 1 and 2 OFF cooler 1,2 and 3 ON if temp2 < (temp1-2) then put fan3 OFF fan 1 and 5 in low revolution heather 1 and 2 OFF cooller 1,2 and 3 OFF if temp2 < (temp1-5) then put fan3 OFF fan 1 and 5 in low revolution heather 1 and 2 ON cooler 1,2 and 3 OFF if (temp1-2) < temp2 < (temp1+2) then put fan 1 and 5 in low revolution fan3 in high revolution heather 1 and 2 OFF cooler 1,2 and 3 OFF if humid2 > (humid1+2) then put fan2 and 4 in high revolution if humid2 < (humid1-2) ten put fan2 and 4 OFF if (humid1-2) < humid2 < (humid1+2) then put fan 2 and 4 in low revolution if gas2 > (gas1+40) then ALARM fans 1,2,3,4 and 5 in high revolution if temp2 > (temp1+10) then ALARM if temp2 < (temp1-10) then ALARM if humid2 > (humid1+10) then ALARM | |
| |
| | (permalink) |
| help me please | |
| |
| | (permalink) |
| hi amindzo, Are you asking for a complete program written in PICbasic that solves the equations and the conditions required for the environmental controls. Thats quite a task. Looking at your recent post, you have almost set out in flow terms, what you expect the controller to do. What exactly do you want us to do.? EDIT: do you have details of the various sensors that you plan to use. Without knowing the actual inputs from the sensors to the controller its not possible to produce an algorithm. You must have received a written draft specification from your sponsors, before you start to design and program the system. Can you post in English, an extract of the specification.?
__________________ Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ Last edited by ericgibbs; 31st August 2008 at 08:55 AM. | |
| |
| | (permalink) |
| i don't have problems in writing the program in picbasic and connecting the sensors, i just have a complete and correct algorithm. thanks | |
| |
| | (permalink) | |
| Quote:
I dont understand what help you are asking for, is it something like this.? http://www.theteacher99.btinternet.c...algorithms.htm http://www.topcoder.com/tc?module=St...d2=complexity1 http://www.topcoder.com/tc?module=St...als&d2=maxFlow http://www.conservapedia.com/Algorithm
__________________ Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ | ||
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| Need Help to controling PLL IC MC44BS374 | blinkstar88 | Micro Controllers | 0 | 22nd May 2007 04:46 PM |
| controling 16 points (how) | Faisal_arr | Electronic Projects Design/Ideas/Reviews | 4 | 19th December 2006 04:22 PM |
| Controling DC Motor | qasim1981 | General Electronics Chat | 2 | 24th October 2006 05:48 AM |
| help when controling from pc | kakatua | Robotics Chat | 4 | 7th June 2005 09:55 AM |
| Controller for lighting, temperature, humidity, etc. | Magnus357 | Electronic Projects Design/Ideas/Reviews | 5 | 4th January 2004 01:10 AM |