Go Down

Topic: Outdoor step stone pressure/presence sensor (Read 3 times) previous topic - next topic

Terry King

Pressure sensitive resistor sounds workable,

BUT whatever you do there will be drift and change, so a fixed calibration may be a problem.

I think you want your code to keep calculating a running average reading and then look for a sudden change > some threshold.  That
would be much more reliable at sensing the step-on.

I'd prototype this and save and graph a bunch of data to characterize the response. Then decide your final algorithm.

Let us know what you end up with!
Regards, Terry King  ..On the Red Sea at KAUST.edu.sa
terry@yourduino.com  LEARN! DO! (Arduino Boards, Sensors, Parts @ http://yourduino.com


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.
Code: [Select]
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);
digitalWrite(3, LOW);


A lot of great ideas so far! Keep them coming.

The air pressure idea seems to have quite a bit of promise; due to how rugged it would be. What type of a pressure sensor would you use? Looks like the barometric sensor from Sparkfun (http://www.sparkfun.com/products/9694) could work, but I would prefer a cheaper option if possible. Are there good, cheap, air pressure sensors somewhere? I'll probably be making between 5 to 10 (or more) stones, so I'm trying to keep the cost of parts down. Then again, there is value in building something that wont break after a couple months.

A other option is:
Air pressure. Under the stone you layout a air-hose. You close one end and mount a pressure sensor on the other end. This is almost unbreakable and you can ruffly measure the weight of the person that is stepping the stone.


WOW! it is because of threads like this i love this forum, taking part of different peoples often brilliant ideas, it feels great.
However i'll put my two cents in here to.

Force or pressure? i think both will need a solid foundation. Force sensors, i think you will need to have one in each corner of every tile, expensive and i actually dont think they will stand up against the elements of nature, rain, snow etc. Not the ones linked to anyway.

I made a 3D-"sketch" of the pressure idea wich was a very brilliant idea.

tile3 by swetrack, on Flickr
As you see there r some things you have to consider, fixate the tubing, dirt may fall down between the tiles, the sensor and hose clamp needs to fit somewere, the tiles might be swampy to walk on and so on but i am certain that it is possible.

Another idea was a capacitive sensor: well... i dont think so, dirt rain and wear will make it difficult.
And there was the accelerometer idea, wich is very very good, it might need some analyzis of materials, mountings, soil-damping and so on it was so interesting it made me think of a similar idea but with a michrophone instead.

tilemic by swetrack, on Flickr
Think of it, when you put a glass to a wall and your ear to the bottom of it, it amplifies the smallest taps to almost painfully loud noise. I thought you could make it similar with the tiles but maybe with a can or so. In the bottom of the can you put a small michrophone. It will be easy to make a hole in the soil so the can and mic will fit. It will take some testing first and probarly lots of software debugging, but hey, thats half the fun.
It will be like AC-coupled though, people needs to move to make it light and rain will probarly trigger it to. But maybe that would be cool?

I did not mean to step on anyones toes here, this is just my thoughts about it.
And sorry about flickr spam but dont know any other way to put in pictures here.

thank you


Go Up