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@38:9f4107db1bff, 2014-04-14 (annotated)
- Committer:
- umairaftab
- Date:
- Mon Apr 14 03:34:02 2014 +0000
- Revision:
- 38:9f4107db1bff
- Parent:
- 7:1d691f81d455
- Child:
- 44:083a8de27bd9
Peltier Functions Updated; DS18B20 Multiple sensors 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 | 38:9f4107db1bff | 26 | void tempinit(); |
umairaftab | 7:1d691f81d455 | 27 | void peltier(bool fan_in,bool fan_out,bool cold,bool hot,int pwm_procent); |
umairaftab | 38:9f4107db1bff | 28 | void peltier_auto(float degree); |
umairaftab | 7:1d691f81d455 | 29 |