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: main.cpp
- Revision:
- 3:087ce66714c0
- Parent:
- 2:97a458c4c997
- Child:
- 5:bf31a58915a5
diff -r 97a458c4c997 -r 087ce66714c0 main.cpp --- a/main.cpp Thu Mar 06 03:41:11 2014 +0000 +++ b/main.cpp Wed Apr 09 18:26:03 2014 +0000 @@ -1,9 +1,12 @@ #include "mbed.h" -#define BAUDRATE0 1200 + +//#define BAUDRATE0 1200 #include "keypad.h" #include "buzz.h" - +#include "pindefs.h" +#include "led_lights.h" +#include "peltier.h" Serial pc(PTE20,PTE21); Ticker timer1ms; @@ -11,7 +14,7 @@ int main(void) { timer1ms.attach(&timer1, 0.001); //interrupt attached function(timer) with interval (1 ms) - pc.baud( BAUDRATE0 ); + //pc.baud( BAUDRATE0 ); char key; // lcd.cls(); while(1) {