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

Files at this revision

API Documentation at this revision

Comitter:
umairaftab
Date:
Sun Apr 13 02:02:04 2014 +0000
Parent:
29:b712f073a397
Child:
31:a90b72ae9835
Commit message:
Backlight Code Added

Changed in this revision

UI/ui.cpp Show annotated file Show diff for this revision Revisions of this file
UI/ui.h Show annotated file Show diff for this revision Revisions of this file
UI/ui_pindefs.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/UI/ui.cpp	Sun Apr 13 01:46:18 2014 +0000
+++ b/UI/ui.cpp	Sun Apr 13 02:02:04 2014 +0000
@@ -102,3 +102,12 @@
     lcd.printf("W: %3.1f",weight_sensor);
     //lcd.printf(" oH: %3.1f",outside_humidity);
 }
+
+void lcd_backlight_on(){
+    
+    lcd_backlight = 1;    
+}
+void lcd_backlight_off(){
+    
+    lcd_backlight = 0;    
+}
\ No newline at end of file
--- a/UI/ui.h	Sun Apr 13 01:46:18 2014 +0000
+++ b/UI/ui.h	Sun Apr 13 02:02:04 2014 +0000
@@ -28,9 +28,13 @@
 
 extern float weight_sensor;
 
+extern DigitalOut lcd_backlight;
+
 void ui_startup();
 void ui_screen1() ;
 void ui_screen2() ;
 void ui_screen3() ;
 void ui_screen4() ;
-//void ui_settings();
\ No newline at end of file
+//void ui_settings();
+void lcd_backlight_on();
+void lcd_backlight_off();
\ No newline at end of file
--- a/UI/ui_pindefs.h	Sun Apr 13 01:46:18 2014 +0000
+++ b/UI/ui_pindefs.h	Sun Apr 13 02:02:04 2014 +0000
@@ -1,1 +1,3 @@
-TextLCD lcd(PTE29, PTE30, PTC12, PTD0, PTD5, PTA13, TextLCD::LCD20x2);
\ No newline at end of file
+TextLCD lcd(PTE29, PTE30, PTC12, PTD0, PTD5, PTA13, TextLCD::LCD20x2);
+
+DigitalOut lcd_backlight(PTD6);
\ No newline at end of file
--- a/main.cpp	Sun Apr 13 01:46:18 2014 +0000
+++ b/main.cpp	Sun Apr 13 02:02:04 2014 +0000
@@ -524,8 +524,14 @@
             ui_screen1();
             wait(0.1);
         }
+        
+        if (keypad_value == 73 ){
+            lcd_backlight_on();    
+        }
+        if (keypad_value == 70 ){
+            lcd_backlight_off();    
+        }
         printf("%d\n\r",keypad_value);
-        
         //  -> Key pressed
         
     }//WHILE END