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:
32:d8b232481ec5
Parent:
31:a90b72ae9835
Child:
33:d1b04f1a792a
--- a/main.cpp	Sun Apr 13 02:06:44 2014 +0000
+++ b/main.cpp	Sun Apr 13 02:21:19 2014 +0000
@@ -288,25 +288,25 @@
     peltier(false,false,false,false,0);
     
     wait(2);
-    string menu[4];
+    string menu[5];
     menu[0]= "1.LED Brightness";
     menu[1]= "2.Air Humidty Lvl";
     menu[2]= "3.Soil Moisture Lvl";
     menu[3]= "4.Air Temperature";
-    
+    menu[4]= " ";
     lcd.cls();
     int counter_menu =0 ; 
     bool overflow_menu = false;
     while(!exit_settings){
         
         key_value = Keypad();
-        printf("Key %d",key_value);
+        printf("Key %d\n\r",key_value);
         wait(0.1);
         if(key_value == 150){
             lcd.locate(0,0);
             lcd.printf(">%s",menu[counter_menu].c_str());
             lcd.locate(0,1);
-            if(counter_menu ==3){
+            if(counter_menu ==4){
                 counter_menu = 0;
                 overflow_menu=true;
                 lcd.printf(" %s",menu[counter_menu].c_str());
@@ -319,8 +319,11 @@
         else if(key_value == 70){//Down Key Pressed if block
             lcd.cls();
             if(overflow_menu==false){
-            counter_menu++;}
+                counter_menu++;
+                printf("CounterOverflow)");
+            }
             else{overflow_menu=false;}
+            
         }//Down Key Pressed if block end
         else if(key_value == 69){ //OK Key Pressed if block
             settings_submenu(counter_menu);