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:
28:4242ab5a1e58
Parent:
27:24478764d4b2
Child:
29:b712f073a397
--- a/main.cpp	Sun Apr 13 00:59:10 2014 +0000
+++ b/main.cpp	Sun Apr 13 01:17:52 2014 +0000
@@ -200,8 +200,8 @@
                 lcd.printf("%3.1f",setpoint_air_humidity);
                 key_value2 = Keypad();
                 wait(0.2);
-                if(key_value2 == 74){setpoint_air_humidity++;}
-                else if(key_value2 == 71){setpoint_air_humidity--;}
+                if(key_value2 == 73){setpoint_air_humidity++;}
+                else if(key_value2 == 70){setpoint_air_humidity--;}
                 else if(key_value2 == 75){break_flag=true;} //enter
                 if (setpoint_air_humidity <0 || setpoint_air_humidity >99) {setpoint_air_humidity=30.00;}
             }
@@ -226,11 +226,11 @@
                 lcd.printf(" S2: %4.2f",setpoint_soil_humid2);
                 key_value2 = Keypad();
                 wait(0.2);
-                if(key_value2 == 60){ //up
+                if(key_value2 == 73){ //up
                     setpoint_soil_humid1++;
                     setpoint_soil_humid2++;
                 }
-                else if(key_value2 == 62){//down
+                else if(key_value2 == 70){//down
                     setpoint_soil_humid1--;
                     setpoint_soil_humid2--;
                 }
@@ -257,8 +257,8 @@
                 lcd.printf("%3.1f",setpoint_MAX_air_temp);
                 key_value2 = Keypad();
                 wait(0.2);
-                if(key_value2 == 60){setpoint_MAX_air_temp++;}
-                else if(key_value2 == 62){setpoint_MAX_air_temp--;}
+                if(key_value2 == 73){setpoint_MAX_air_temp++;}
+                else if(key_value2 == 70){setpoint_MAX_air_temp--;}
                 else if(key_value2 == 75){break_flag=true;}
                 if (setpoint_MAX_air_temp <0 || setpoint_MAX_air_temp >99) {setpoint_MAX_air_temp=45.0;}
             }
@@ -314,14 +314,14 @@
             }
             //wait(0.2); 
         }//No Press If Block
-        else if(key_value == 62){//Down Key Pressed if block
+        else if(key_value == 70){//Down Key Pressed if block
             lcd.cls();
             counter_menu++;
         }//Down Key Pressed if block end
-        else if(key_value == 59){ //OK Key Pressed if block
+        else if(key_value == 69){ //OK Key Pressed if block
             settings_submenu(counter_menu);
         } //OK button if block
-        else if(key_value == 57){ //OK Button
+        else if(key_value == 75){ //OK Button
             exit_settings = true;
             lcd.cls();
             lcd.printf("SAVE Config");