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@57:7ab93ed49b70, 2014-04-14 (annotated)
- Committer:
- umairaftab
- Date:
- Mon Apr 14 19:18:14 2014 +0000
- Revision:
- 57:7ab93ed49b70
- Parent:
- 44:083a8de27bd9
Cosmetic Changes, Menus added
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
umairaftab | 38:9f4107db1bff | 1 | //extern DigitalInOut sensor; // sensor inside E0 |
umairaftab | 7:1d691f81d455 | 2 | extern PwmOut peltier_cold; |
umairaftab | 7:1d691f81d455 | 3 | extern PwmOut peltier_hot; |
umairaftab | 7:1d691f81d455 | 4 | extern DigitalOut en_drv1; |
umairaftab | 7:1d691f81d455 | 5 | extern DigitalOut en_drv2; |
umairaftab | 7:1d691f81d455 | 6 | extern DigitalOut fan_in_peltier; // Peltier FAN inside the camber |
umairaftab | 7:1d691f81d455 | 7 | extern DigitalOut fan_out_peltier; // Peltier FAN outside of the chamber |
umairaftab | 7:1d691f81d455 | 8 | |
umairaftab | 7:1d691f81d455 | 9 | extern unsigned int peltier_hot_pulsewidth; |
umairaftab | 7:1d691f81d455 | 10 | extern unsigned int peltier_cold_pulsewidth; |
umairaftab | 7:1d691f81d455 | 11 | extern unsigned int peltier_period; |
umairaftab | 7:1d691f81d455 | 12 | extern unsigned int peltier_pulsewidth; |
umairaftab | 7:1d691f81d455 | 13 | extern unsigned int peltier_step; |
umairaftab | 7:1d691f81d455 | 14 | |
umairaftab | 7:1d691f81d455 | 15 | extern bool alarm_hi_temp_in; |
umairaftab | 7:1d691f81d455 | 16 | extern bool alarm_lo_temp_in; |
umairaftab | 7:1d691f81d455 | 17 | extern bool alarm_hi_temp_out; |
umairaftab | 7:1d691f81d455 | 18 | extern bool alarm_lo_temp_out; |
umairaftab | 38:9f4107db1bff | 19 | extern float dsen_temp_in; //of plate inside |
umairaftab | 38:9f4107db1bff | 20 | extern float dsen_temp_out; //of plate outside |
umairaftab | 38:9f4107db1bff | 21 | //extern Serial pc; // tx, rx |
umairaftab | 7:1d691f81d455 | 22 | |
umairaftab | 7:1d691f81d455 | 23 | unsigned int pwm_cold_peltier(int brightness ); |
umairaftab | 7:1d691f81d455 | 24 | unsigned int pwm_hot_peltier(int brightness); |
umairaftab | 7:1d691f81d455 | 25 | |
umairaftab | 44:083a8de27bd9 | 26 | extern float temp; |
umairaftab | 44:083a8de27bd9 | 27 | |
umairaftab | 38:9f4107db1bff | 28 | void tempinit(); |
umairaftab | 44:083a8de27bd9 | 29 | void readTemp(int deviceNum); |
umairaftab | 7:1d691f81d455 | 30 | void peltier(bool fan_in,bool fan_out,bool cold,bool hot,int pwm_procent); |
umairaftab | 38:9f4107db1bff | 31 | void peltier_auto(float degree); |
umairaftab | 7:1d691f81d455 | 32 |