Project Autus - Automated Plant Chamber

Dependencies:   TextLCD mbed

Fork of keypad_test by Plamen Totev

Autus

This is the codebase accompanying the project Autus.

Autus is an automated growth chamber for plants.

Features

Control Humidity inside chamber wrt to external humidity. Control Temperature inside chamber. ( Peltier Heaters/Coolers ) Water and shower plants. Control soil humidity. Monitor water tanks level (Load Cell) /media/uploads/umairaftab/frdm_-_new_page1.png

Code Base Features

Fixed timing and CRC for DHT-11 Sensor. Fixed OneWire bug for ds18b20

Cyclic Executive Scheduler with Priority. Async IPC framework for PC App over bluetooth

Fake RTC systick, I was having some trouble with the on board rtc.

/media/uploads/umairaftab/download.png

Revision:
10:1a0fe96381b0
Parent:
9:43c339533f7f
Child:
11:f9ffd5ab7e94
--- a/main.cpp	Fri Apr 11 12:49:30 2014 +0000
+++ b/main.cpp	Fri Apr 11 13:42:45 2014 +0000
@@ -90,18 +90,18 @@
     }
     else{
         
-        if( (soil1_humid < 0.3) || (watered_plant1 == false) ){ 
+        if( (soil1_humid < setpoint_soil_humid1) || (watered_plant1 == false) ){ 
             //enable pump1
             watered_plant1 = true;
             watered_plant1_time = hour ;
         }
-        if( (soil2_humid < 0.3) || (watered_plant2 == false) ){ 
+        if( (soil2_humid < setpoint_soil_humid2) || (watered_plant2 == false) ){ 
             //enable pump2
             watered_plant2 = true;
             watered_plant2_time = hour ;
         }
     }
-    
+    //Make sure it is watered at least every x hours in case soil humid doesnt work
     if (watered_plant1 == true){
         if(abs(hour-watered_plant1_time)>MAX_WATERING_TIME_GAP){
             watered_plant1 = false;
@@ -137,7 +137,7 @@
 //***************************PLACEHOLDER FUNCTION TO DISABLE EVERYTHING **********************
 void disable_everything(){
     
-    //Disable peltier,vac,fans,pumps.
+    //Disable peltier,vac,fans,pumps,lights.
     
 }
 
@@ -166,6 +166,7 @@
     clock_mine.attach(&sec_inc, 1.0);
     char keypad_value;
     
+    //************************************BOOT SEQUENCE*********************
     //call LCD boot
     ui_startup();
     wait(2);