ThinkingSkins - MossSolar Facade
Version 1.0
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Pages
defines.h
1
2
/**************************************************
3
****** CHANGE THIS VARIABLES AS YOU PREVER ******
4
**************************************************/
5
6
#define ONE_SIDE_TURN 315 //steps for a 60° turn of a panel
7
#define TWO_SIDE_TURNS 630 //steps for a 120° turn of a panel
8
9
10
// Thresholds: If the value of the sensor pass this thresholds, the correspondig event is triggered
11
#define DUST_THRESHOLD 30 //threshold for the amount of dustparticles in the air
12
#define LUX_THRESHOLD 1000 //threshold for the luminosity
13
#define TEMPERATURE_THRESHOLD 800 //threshold for the temperature
14
#define HUMIDITY_THRESHOLD 900 //threshold for the humidity
15
16
17
/* Intervals for the sensor checks
18
DEBOUNCE: If a sensor detects the crossing of a threshold, wait this time and check again,
19
whether its a measuring error or not
20
IDLE_CHECKTIME: Time until the next check after a negative measurement
21
TRIGGERED_CHECKTIME: Time until the next check after a positive measurement
22
*/
23
#define DUSTSENSOR_DEBOUNCE 5000 //time in ms to wait after the first measurement
24
#define DUSTSENSOR_IDLE_CHECKTIME 1000 //time in ms to wait between non positive measurements
25
#define DUSTSENSOR_TRIGGERED_CHECKTIME 20000 //time in ms to wait after a positive confirmed measurement
26
27
#define LIGHTSENSOR_DEBOUNCE 5000 //time in ms to wait after the first measurement
28
#define LIGHTSENSOR_IDLE_CHECKTIME 1000 //time in ms to wait between non positive measurements
29
#define LIGHTSENSOR_TRIGGERED_CHECKTIME 20000 //time in ms to wait after a positive confirmed measurement
30
31
#define TEMPERATURESENSOR_DEBOUNCE 5000 //time in ms to wait after the first measurement
32
#define TEMPERATURESENSOR_IDLE_CHECKTIME 1000 //time in ms to wait between non positive measurements
33
#define TEMPERATURESENSOR_TRIGGERED_CHECKTIME 20000 //time in ms to wait after a positive confirmed measurement
34
35
#define HUMIDITYSENSOR_DEBOUNCE 5000 //time in ms to wait after the first measurement
36
#define HUMIDITYSENSOR_IDLE_CHECKTIME 1000 //time in ms to wait between non positive measurements
37
#define HUMIDITYSENSOR_TRIGGERED_CHECKTIME 2000 //time in ms to wait after a positive confirmed measurement
38
39
/**************************************************
40
*************** STOP CHANGING HERE **************
41
**************************************************/
42
43
44
#define STEP_PIN_A 11 //pin for step-pulse of motor A
45
#define DIR_PIN_A 12 //pin for direction of rotation (HIGH = clockwise) of motor A
46
47
#define STEP_PIN_B 9 //pin for step-pulse of motor B
48
#define DIR_PIN_B 10 //pin dor direction of rotation (HIGH = clockwise) of motor B
49
50
#define STEP_PIN_C 7 //pin for step-pulse of motor C
51
#define DIR_PIN_C 8 //pin for direction of rotation (HIGH = clockwise) of motor C
52
53
#define CAL_PIN_A 6 //pin for calibrationsensor of panel A
54
#define CAL_PIN_B 5 //pin for calibrationsensor of panel B
55
#define CAL_PIN_C 4 //pin for calibrationsensor of panel C
56
57
58
#define LED_PIN 3 //pin for RGB-LED
59
#define DUSTSENSOR_SET_PIN 13 //pin for the sensor-LED of the dustsensor
60
61
//analogPins
62
#define LIGHTSENSOR_SCL_PIN 0
63
#define LIGHTSENSOR_SDA_PIN 1
64
#define HUMIDITYSENSOR_A_PIN 2
65
#define HUMIDITYSENSOR_B_PIN 3
66
#define TEMPERATURESENSOR_PIN 4
67
#define DUSTSENSOR_READ_PIN 5
68
69
70
#define EXPOSURE_TIME 280 // lightningtime for the dustsensor-LED
71
#define ACQUISITION_TIME 40 // short delay after te readout
72
73
H:
Thinking Moss
thinkingSkins_Moss
defines.h
Generated on Wed Jul 30 2014 00:08:53 for ThinkingSkins - MossSolar Facade by
1.8.7