Go Down

Topic: Please advice on my project . =D rain sensor (Read 3930 times) previous topic - next topic

ydli

Nov 02, 2011, 01:25 am Last Edit: Nov 02, 2011, 04:40 am by ydli Reason: 1
I planning to do make an rain sensor,and connect it to arduino and link to computer. When the rain sensor touch water, The led light will turn on, and there will be an indication on the computer screen.
when can turn the led light off by touching a touch sensor.
I don't know if this is gonna work, I'm new to arduino. please advice
How do I connect the rain sensor to arduino and sent information to the computer? and use it to turn on the led light


PaulS

Quote
I planning to do make an rain sensor

How?

Quote
When the rain sensor touch water, The led light will turn on

Not unless you read from the rain sensor, and determine that the sensor value means that the sensor is wet, and, therefore, you turn the LED on. It isn't magic.

Quote
when can turn the led light off by touching a touch sensor.

You must read the touch sensor (whatever kind you end up with), and determine that it has been touched. Then you turn the LED off. It isn't magic.

Quote
I don't know if this is gonna work, I'm new to arduino.

Being new to Arduino isn't why it might not work. Having no clue how sensors, computers, lights, etc. work is a much more significant factor, as is having hazy requirements.

For instance, pressing the touch sensor is not going to dry the rain sensor or stop the rain, so, if the sensor is wet, touching the touch sensor to turn the light off will result in the light being off for however long it takes for loop() to be executed again, and read that the rain sensor is still wet.

Quote
How do I connect the rain sensor to arduino

Are you serious?

Quote
and sent information to the computer?

Smoke signals...

Quote
and use it to turn on the led light

You said that the Arduino was supposed to turn the LED on/off.


Pauly

Most rain sensors are of the tipping bucket variety.  When the tiny bucket fills up, it tips over, triggering the sensor.  Each tip of the bucket represents a certain amount of rain.
I would use an interrupt to listen for the rain sensor.
Check out this thread on Sparkfun for more info.
http://www.sparkfun.com/products/8942

radman

You seem to be trying to decide if it is or is not raining, rather than measuring the amount of rainfall.
Here is an approach using the capacitance of a sloped material,several commercial systems seem to be based on capacitance.
ftp://ftp.campbellsci.com/pub/csl/outgoing/uk/leaflets/rd01_oct08.pdf
I am guessing this technique would detect the start of rain promptly but might have a delay before indicating it had ceased.

Here is a more home made solution;
http://www.techlib.com/electronics/raindetectors.htm

Go Up