Go Down

Topic: Rain gauge with arduino GSM  (Read 706 times) previous topic - next topic

Rodimet

I want to build a rain gauge with arduino shield GSM in ordre to send rain data automatically by SMS. I've conceive the rain gauge classically with a magnet to créate reed switch but I dont know wow and where I can connect the câble coming from the magnet to the arduino GSM. Theorocally, the oscillations of the tipping bucket may create an electric effect the arduino have to understand and count as a quantity of rain fall.
Could somebody help me please?
PS: I'm not a specialist.

dannable

Something like this?

"Each 0.011" (0.2794 mm) of rain causes one momentary contact closure that can be recorded with a digital counter or microcontroller interrupt input. The gauge's switch is connected to the two center conductors of the attached RJ11-terminated cable." Manufacturer's data sheet
Beginners guide to using the Seeedstudio SIM900 GPRS/GSM Shield

MarkT

Reeds need debouncing to avoid multiple counts, but the delay can be small, a couple of ms may be enough.

So adapt code for reading a button switch debounced.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

Rodimet

Thank you very much I will try to ordre that gauge.
But as the terminal of the gauge is in rj11 where shoud I plug it on the arduino? Or should i ordre an other arduino with an rj11 câble?

dannable

It appears to be a reed switch that is operated by a magnet when the bucket tips. See MarkT's comment about needing to debounce.

You connect one of the middle two wires of the plug to GND and the other to the digital input pin of your choice... Personally I would remove the connector - once I have established that it works!
Beginners guide to using the Seeedstudio SIM900 GPRS/GSM Shield

Rodimet


Paul_KD7HB

If the magnet is a bar magnet and is oriented in the same plane as the reed switch, there will not be a bounce. But check when you calibrate the thing for more rain that really fell.

Paul

MarkT

I'd suggest get a push button example working first, then you'll be ready.  Are there going to
be long cables to the guage?
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

Go Up