Browse Source

fixes.

master
Your Name 5 years ago
parent
commit
e989be1eff
2 changed files with 5 additions and 16 deletions
  1. +3
    -3
      ZMHW_Modector/ZMHW_Modector.ino
  2. +2
    -13
      ZMHW_Modector/testsuite/ReadMotionSensor/ReadMotionSensor.ino

+ 3
- 3
ZMHW_Modector/ZMHW_Modector.ino View File

@ -61,10 +61,10 @@
//Edit the below values //Edit the below values
#define DEBUGMODE 0 // 1 == on. 0 == off. #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) #define SICK 0 // set to 1 if using sick sensor (on analog pin)
// sick sensor is a transistor activated photoelectric // 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. #define NORMALMODECT 1 // For a digital High motion sensor.
/***************Ethernet ENC28J60***************/ /***************Ethernet ENC28J60***************/
@ -92,7 +92,7 @@ char* LOCATIONOFSENSOR = "Bay 1";
//Digital //Digital
#define MODECTPIN 4
#define MODECTPIN 8
#define SPEAKERPIN 6 #define SPEAKERPIN 6
#define LEDPIN 9 #define LEDPIN 9

+ 2
- 13
ZMHW_Modector/testsuite/ReadMotionSensor/ReadMotionSensor.ino View File

@ -1,10 +1,6 @@
/* /*
* NOTE: this test is for HFS-DC06H * 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, * 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. * you might need external power. Some USB is not enough.
@ -12,15 +8,8 @@
* Ethernet draws power, even if library is not active. * 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: // the setup routine runs once when you press reset:
void setup() { void setup() {
@ -36,7 +25,7 @@ void loop() {
int MotionState = digitalRead(MotionSensor); int MotionState = digitalRead(MotionSensor);
// print out the state of the button: // print out the state of the button:
Serial.println(MotionState); Serial.println(MotionState);
delay(100); // delay in between reads for stability
delay(300); // delay in between reads for stability
} }

Loading…
Cancel
Save