pirInterupt = new InterruptPort(Pins.GPIO_PIN_D8, false, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeHigh); pirInterupt.OnInterrupt += pirInterupt_OnInterrupt; static void pirInterupt_OnInterrupt(uint data1, uint data2, DateTime time) { Program.flag = true; Debug.Print(data1.ToString() + " " + data2.ToString()); }
Netduino Plus 2
Netmf 4.3
VS 2013
I have a PIR motion detector sensor attached to my board and it fires continuously.
I started waving my hand in front of it and I noticed that it stopped firing.
So the interrupt fires when there is no motion and does not fire when there is motion.
I have tried this on analog and digital ports. I have tried reversion the gnd and vlt pins, but that did not fix it.
Any idea what is happening?