|
|
|
|
|
|
|
|
|
|
|
|
|
|
// #define LDRDEBUG // comment in to override LDR measurement |
|
|
// #define LDRDEBUG // comment in to override LDR measurement |
|
|
|
|
|
|
|
|
#define LDR_HYS 5.0 // Hysteresis for switching off FSM [lux] |
|
|
|
|
|
|
|
|
#define LDR_HYS 1 // Hysteresis for switching off FSM [lux] |
|
|
|
|
|
|
|
|
#define SENSOR_OBEN 16 |
|
|
#define SENSOR_OBEN 16 |
|
|
#define SENSOR_UNTEN 12 |
|
|
#define SENSOR_UNTEN 12 |
|
|
|
|
|
|
|
|
uint16_t idle_pwm_internal = 0; |
|
|
uint16_t idle_pwm_internal = 0; |
|
|
uint16_t active_pwm = 700; |
|
|
uint16_t active_pwm = 700; |
|
|
|
|
|
|
|
|
uint16_t ldr_schwelle = 7; // activation value for FSM [lx] |
|
|
|
|
|
|
|
|
uint16_t ldr_schwelle = 2; // activation value for FSM [lx] |
|
|
|
|
|
|
|
|
uint16_t start_pwm = 0; |
|
|
uint16_t start_pwm = 0; |
|
|
uint16_t ziel_pwm = 0; |
|
|
uint16_t ziel_pwm = 0; |