superman:
I didn't think about analyzing the standard deviation and then setting that for my trigger value. I like that idea maybe that would be a better option for the point of processing and consistency. You can still apply the no delay blinking type program to your it would be slightly different you might want to apply the concept in both direction for turning on the fans and turning them off.
For the fans I'm going to use the principle that i stated. For the float switches I'm going to incorporate your idea. Water has the tendency to move so stabilizing this would be better...
In my pH algorithm the hysteria is indeed going both sides of the scale. That's because the pH needs to be stable at a certain setpoint and can deviate to both sides of the scale. Temperature and Humidity don't go both sides. If it gets to hot/wet then the fans need to be turned on, otherwise not...
superman:
My question for you is
How long do your fans usually run? or how long on average does it take you to low your temperature 1 degree?
This depends on the weather condition. If it's warm and the sun is shining, the fans will run more then when it's cool outside. That's why I'm using Temp/humid in stead of Time.
superman:
Why does your program register a temperature of 24.9 as 24? Why not keep that decimal? or if you are going to round round 24.0-24.4 to 24 and 24.5-24.9 to 25?
The program doesn't register that. It's the DHT11 probe that only measures in whole numbers in stead of decimals... I ordered the DHT22, which can measure in decimals, but that is for another application I'm currently working on. For the greenhouse/hydroponic set-up the DHT11 will suffice
superman:
My setup it slightly different because I have live fish in my main tank.
I have 3 tanks a 20 gallon which houses my fish (2 float switches a high and a low), a 10 gallon filter tank that filters large debris and converts the nitrites to nitrates through biological filtration (2 float switched high and low), and a 10 gallon refill tank that just holds water (2 float switches a high and a low).
Every 15 minutes during the daytime i run a cycle the water from main tank is pumped to the filter tank and then pump into my grow tubes, and drains to my refill tank that is pumped to the main tank.
So you use Aquaponics for growing your plants. I've looked into that idea, but didn't go that way because you don't know what levels of nutrient's one's giving the plants. I use HydroBuddy to calculate the 'perfect' amount of nutrients my peppers need to grow. Last season my plants grew to a hight of 3m40 until they reached the roof of my greenhouse
superman:
something you might be interested in would be
Liquid Level Sensor - 8" - SEN-10221 - SparkFun Electronics
That looks nice, but for that price I can buy myself twelve duckbill float switches on Ebay. So since I'm on a budget this is a no-go
superman:
Advice is develop some kind of fail safe
You have any ideas on that one? I also think that the failsave is more important for you since you have live fish. Plants are more forgiving if they don't receive the right treatment.
cyclegadget:
Nice work on your project Billie! I had to go and order one of those touch screens. I really like how your interface looks!
Good for you There are a number of very nice people out there who wrote a library so writing the code for the screen isn't that hard to do. I've used the UTFT library from Henningkarlsen.com which worked perfect!!!
Byebye and don't forget to have fun while playing with your Arduino