Good day everyone please help with my code the led switch off too early. please how do i adjust the delay time on my code.
Project01led_only.ino (2.28 KB)
Good day everyone please help with my code the led switch off too early. please how do i adjust the delay time on my code.
Project01led_only.ino (2.28 KB)
You could try moving this statement:
digitalWrite(ledPin, LOW); //the led visualizes the sensors output pin state
to above this statement:
Serial.print("motion ended at "); //output
How long do you want the led to remain on after the last motion detection ?
Hi,
Welcome to the forum.
Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
Thanks.. Tom...