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: peltier/peltier.h
- Revision:
- 7:1d691f81d455
- Child:
- 38:9f4107db1bff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/peltier/peltier.h Fri Apr 11 03:50:38 2014 +0000 @@ -0,0 +1,25 @@ +extern DigitalInOut sensor; // sensor inside E0 +extern PwmOut peltier_cold; +extern PwmOut peltier_hot; +extern DigitalOut en_drv1; +extern DigitalOut en_drv2; +extern DigitalOut fan_in_peltier; // Peltier FAN inside the camber +extern DigitalOut fan_out_peltier; // Peltier FAN outside of the chamber + +extern unsigned int peltier_hot_pulsewidth; +extern unsigned int peltier_cold_pulsewidth; +extern unsigned int peltier_period; +extern unsigned int peltier_pulsewidth; +extern unsigned int peltier_step; + +extern bool alarm_hi_temp_in; +extern bool alarm_lo_temp_in; +extern bool alarm_hi_temp_out; +extern bool alarm_lo_temp_out; + +unsigned int pwm_cold_peltier(int brightness ); +unsigned int pwm_hot_peltier(int brightness); + +void peltier(bool fan_in,bool fan_out,bool cold,bool hot,int pwm_procent); +void peltier_auto(int degree); +