Go Down

Topic: analog reference (Read 1 time) previous topic - next topic

Grumpy_Mike

Quote
How if condition will be satisfied every time?

Yes if you hold down the button for say one second it will be executed about 1000 times.
All it does is check if the button is down, it does not check that it has just gone down. In other words it checks for a level not an edge.

You need to read this:-
http://www.thebox.myzen.co.uk/Tutorial/Inputs.html

RaHuLL

I tried example given at http://playground.arduino.cc/Code/PIRsense where in inbuilt pull up is used.
But still i am getting continues calls.

AWOL

Quote
But still i am getting continues calls.

...and we're still waiting for details of the PIR.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.


Nick Gammon


I tried example given at http://playground.arduino.cc/Code/PIRsense where in inbuilt pull up is used.
But still i am getting continues calls.


Post your new code.

Did you address what I said in reply #7?

Go Up