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.
peltier/peltier.h
- Committer:
- umairaftab
- Date:
- 2014-04-14
- Revision:
- 44:083a8de27bd9
- Parent:
- 38:9f4107db1bff
File content as of revision 44:083a8de27bd9:
//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; extern float dsen_temp_in; //of plate inside extern float dsen_temp_out; //of plate outside //extern Serial pc; // tx, rx 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);