From: Bernhard Tittelbach Date: Sun, 2 Oct 2011 01:55:59 +0000 (+0000) Subject: ++ IR sensitivity X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=d23e5aec2f0d91586645a834b6333d067645d25c;p=svn42.git ++ IR sensitivity --- diff --git a/rf433ctl/rf433ctl.pde b/rf433ctl/rf433ctl.pde index 1a365c4..fcfe7c0 100644 --- a/rf433ctl/rf433ctl.pde +++ b/rf433ctl/rf433ctl.pde @@ -16,8 +16,8 @@ #define BLUELED_PWM_PIN 11 #define PHOTO_ANALOGPIN 0 //movement is reported if during IR_SAMPLE_DURATION at least IR_TRESHOLD ir signals are detectd -#define IR_SAMPLE_DURATION 8000 -#define IR_TRESHOLD 7500 +#define IR_SAMPLE_DURATION 6000 +#define IR_TRESHOLD 5900 //duration PanicButton needs to be pressed before status change occurs (i.e. for two PanicButton Reports, the buttons needs to be pressed 1000 cycles, releases 1000 cycles and again pressed 1000 cycles) #define PB_TRESHOLD 1000 #define PHOTO_SAMPLE_INTERVAL 4000 @@ -141,7 +141,7 @@ byte word_cnt = 0; const ad_bit_t* current_word; byte volatile frame_finished = 1; -#define FRAME_LEN 9 +#define FRAME_LEN 8 #define A1_ON 0 #define A1_OFF 1