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:
Mon Apr 14 04:53:18 2014 +0000
Parent:
43:cf893fa88690
Child:
45:ad99cb94f685
Commit message:
peltier dry run working

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
peltier/peltier.h Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Apr 14 04:25:50 2014 +0000
+++ b/main.cpp	Mon Apr 14 04:53:18 2014 +0000
@@ -483,7 +483,7 @@
     lcd.locate(0,0);
     lcd.printf("Find Pelt Temp Sense");
     
-    //tempinit();
+    tempinit();
    //peltierin_temp = dsen_temp_in;
     //peltierout_temp = dsen_temp_out;
     
@@ -653,6 +653,7 @@
             lcd.cls();
         }
         /**********************PELTIER CALLER************************************************************************/
+        pelt_keypad_enable = true;
         if (pelt_keypad_enable == true){
             if ( ( abs( (::min)-pelt_call_time ) > pelt_call_timeout ) || pelt_first_time == true) {
                 
@@ -669,7 +670,12 @@
                 lcd.locate(0,0);
                 lcd.printf("Find Pelt Temp Sense");
                 
-                tempinit();
+                //tempinit();
+                readTemp(1);
+                dsen_temp_in=temp;
+                readTemp(0);
+                dsen_temp_out=temp;
+                printf("Pi%2.1f Po%2.1f\n\r",dsen_temp_in,dsen_temp_out);
                 peltierin_temp = dsen_temp_in;
                 peltierout_temp = dsen_temp_out;
                 
--- a/peltier/peltier.h	Mon Apr 14 04:25:50 2014 +0000
+++ b/peltier/peltier.h	Mon Apr 14 04:53:18 2014 +0000
@@ -23,7 +23,10 @@
 unsigned int pwm_cold_peltier(int brightness );
 unsigned int pwm_hot_peltier(int brightness);
 
+extern float temp;
+
 void tempinit();
+void readTemp(int deviceNum);
 void peltier(bool fan_in,bool fan_out,bool cold,bool hot,int pwm_procent);
 void peltier_auto(float degree);