Project Autus - Automated Plant Chamber
Fork of keypad_test by
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)
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.
Diff: UI/ui.cpp
- Revision:
- 12:b3137bb72ef7
- Parent:
- 11:f9ffd5ab7e94
- Child:
- 14:72176f1e4907
--- a/UI/ui.cpp Sat Apr 12 06:35:04 2014 +0000 +++ b/UI/ui.cpp Sat Apr 12 11:14:12 2014 +0000 @@ -19,6 +19,14 @@ float soil1_humidity; float soil2_humidity; +unsigned int peltierout; +unsigned int peltierin; +float peltierin_temp; +float peltierout_temp; + +unsigned int red_light_value; +unsigned int blue_light_value; +unsigned int green_light_value; //Set Temperature Unit void set_temp_unit(){ if(temp_unit == 1){ @@ -74,11 +82,10 @@ lcd.cls(); lcd.setCursor(TextLCD::CurOff_BlkOn); lcd.locate(0,0); - lcd.printf("iT: %3.1f%c",inside_temp,temp_unit_char); - lcd.printf(" iH: %3.1f",inside_humidity); + lcd.printf("PlateOut %u T%3.1f",peltierout,peltierout_temp); + //lcd.printf(" iH: %3.1f",inside_humidity); lcd.locate(0,1); - lcd.printf("oT: %3.1f%c",outside_temp,temp_unit_char); - lcd.printf(" oH: %3.1f",outside_humidity); + lcd.printf("PlateIn %u T%3.1f",peltierin,peltierin_temp); } void ui_screen4() { @@ -86,9 +93,9 @@ lcd.cls(); lcd.setCursor(TextLCD::CurOff_BlkOn); lcd.locate(0,0); - lcd.printf("iT: %3.1f%c",inside_temp,temp_unit_char); - lcd.printf(" iH: %3.1f",inside_humidity); + lcd.printf("Red:%u",red_light_value); + lcd.printf(" Blue:%u",blue_light_value); lcd.locate(0,1); - lcd.printf("oT: %3.1f%c",outside_temp,temp_unit_char); - lcd.printf(" oH: %3.1f",outside_humidity); -} \ No newline at end of file + lcd.printf("Green:%u",green_light_value); + //lcd.printf(" oH: %3.1f",outside_humidity); +}