The capacitance sensor is a really cool idea and best of all, no moving parts. I haven't worked with capacitance sensors before, have done a bit of googling, but still have a couple questions:
* How much wire would have to be at the top of the stone? (i.e. would the shoe have to come in contact to trigger or just be close enough to it)
* Would the sensor pickup capacitance of a rubber shoe?
It would also be cool to have part of the program setup to react to slow changes so we could get a light show in the middle of a rain shower!
Personally, I would cast some wire into the top bit of the stepping stone and use a capacitance sensor with some auto-sensitivity code.
Someone's foot would change the capacitance quickly, while weather conditions and such would change it much more slowly.
When the arduino detects a sudden change, it fires the lights (a note: The lights will almost certainly pin the cap. sensor at full, turn off the auto-sensitivity code while the lights are on!).
In the following code the cap sense bits have been hacked out to just leave the (very simple) auto sensitivity code, the variable "fout" is the output from the capsense code.
Change the interval variable to change how fast the capacitance change has to be to set the lights off.
if (millis() - previousMillis > interval){
old4 = old3;
old3 = old2;
old2 = old1;
old1 = fout;
recent = (old1 + old2 + old3 + old4) / 4;
previousMillis = millis();
}
if (fout - recent > 10){
digitalWrite(3, HIGH);
delay(1000);
digitalWrite(3, LOW);
}