Hello eTech, Pommie and the ETO forum,
Been jammed at work and have not had time to make adjustments until today.
Thanks for hanging with me during extended periods between updates..
As mentioned in post #35 have bread boarded the system following fritz marked
'PODACAL 12 Volt Complete 200808' The system works as expected. That is,
when 12v power is applied to the breadboard and the Arduino barrel jack,
simultaneously, the green LED on the Arduino marked 'On' lights and the yellow
LED labeled ' L' lights. and the nine LED module light and the indicator LED lights comes on.
All of these things happen immediately when my hand is waved at the PIR.
The module lights stay on for
about ten seconds and then goes off. The Arduino 'On' light stays on.
After about six seconds the PIR rearms and the cycle can be repeated.
This would be the behavior required to make the Staircase system work.
Altered the PODACAL according to fritz 'PODCAL 12 Volt Complete 200812' also
in post #35.
When 12v power is applied to the breadboard and the Arduino barrel jack,
simultaneously, the green LED on the Arduino marked 'On' lights and the yellow
LED labeled ' L' come on..
The nine LED module lights, after motion at PIR, come on after about a nine second delay.
At first, because there was no motion. the LEDs stayed on for over three minutes
and it was thought that the LEDs were on permanently. But a second movement
caused the LEDs to go off immediately. Then after about twelve seconds the
the lights came on again.
Still trying to get the exact sequence on the 'PODACAL...200812' because the lights
come on in a delayed pattern.
The closest thing to a pattern that can be discerned is the LED module takes about
ten seconds to come on after PIR motion and stays on until a second wave turns
them off. A third wave turns the lights on again after ten seconds and the cycle
is repeating. That is, motion causes the nine LEDs to light after nine or ten second delay
and stay on a second wave st the PIR makes them go off.
Not sure what causes the initial delay or why the second wave causes the LEDs
to extinguish.
Have begun PCB based on 'PODACAL...200812' View attachment 126582
but will probably concentrate on getting the breadboard to work before going back to the PCB.
Thanks.
Allen in Dallas
PS The same Arduino sketch id used in both tests.
Code:int led = A0; // the pin that the sensor is attached to int sensor = 2; // the pin that the sensor is attached to void setup() { pinMode(led, OUTPUT); pinMode(sensor, INPUT); Serial.begin(9600); } void loop() { int sensorval = digitalRead(sensor); Serial.println(sensorval); if (sensorval == HIGH) { digitalWrite(led, HIGH); }else{ digitalWrite(led, LOW); } }
yes...it looks like the code needs to be changed. If the sensor value is high, the led should be low..