From e989be1effbf1e8151d69973b89b70c2c6582529 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 3 Dec 2019 02:15:42 -0500 Subject: [PATCH] fixes. --- ZMHW_Modector/ZMHW_Modector.ino | 6 +++--- .../ReadMotionSensor/ReadMotionSensor.ino | 15 ++------------- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/ZMHW_Modector/ZMHW_Modector.ino b/ZMHW_Modector/ZMHW_Modector.ino index 71f792f..f526b16 100644 --- a/ZMHW_Modector/ZMHW_Modector.ino +++ b/ZMHW_Modector/ZMHW_Modector.ino @@ -61,10 +61,10 @@ //Edit the below values #define DEBUGMODE 0 // 1 == on. 0 == off. -#define MIC 0 // 1 == on. 0 == off. +#define MIC 0 // "" #define SICK 0 // set to 1 if using sick sensor (on analog pin) // sick sensor is a transistor activated photoelectric - // sensor. More details below. + // sensor. More details in docs, and below. #define NORMALMODECT 1 // For a digital High motion sensor. /***************Ethernet ENC28J60***************/ @@ -92,7 +92,7 @@ char* LOCATIONOFSENSOR = "Bay 1"; //Digital -#define MODECTPIN 4 +#define MODECTPIN 8 #define SPEAKERPIN 6 #define LEDPIN 9 diff --git a/ZMHW_Modector/testsuite/ReadMotionSensor/ReadMotionSensor.ino b/ZMHW_Modector/testsuite/ReadMotionSensor/ReadMotionSensor.ino index 25d2b6e..0b6ddce 100644 --- a/ZMHW_Modector/testsuite/ReadMotionSensor/ReadMotionSensor.ino +++ b/ZMHW_Modector/testsuite/ReadMotionSensor/ReadMotionSensor.ino @@ -1,10 +1,6 @@ /* * NOTE: this test is for HFS-DC06H * - * ZMHW Changes: - * - * Using pin 4. This might change depending on PCB revision. Double - * check. * * If the Digital Hi (reads as 1's in serial) doesn't go away, and you are using USB, * you might need external power. Some USB is not enough. @@ -12,15 +8,8 @@ * Ethernet draws power, even if library is not active. */ -/* - DigitalReadSerial - Reads a digital input on pin 2, prints the result to the serial monitor - - This example code is in the public domain. - */ -// digital pin 2 has a pushbutton attached to it. Give it a name: -int MotionSensor = 4; +int MotionSensor = 8; // the setup routine runs once when you press reset: void setup() { @@ -36,7 +25,7 @@ void loop() { int MotionState = digitalRead(MotionSensor); // print out the state of the button: Serial.println(MotionState); - delay(100); // delay in between reads for stability + delay(300); // delay in between reads for stability }