Go Back   IceInSpace > Equipment > ATM and DIY Projects

Thread Tools Rate Thread
Old 23-03-2019, 04:23 PM
jwoody's Avatar
jwoody (Jeremy)
Registered User

jwoody is offline
Join Date: Aug 2011
Location: Ormeau Hills, Australia
Posts: 325
Integrating arduino rain sensor with dome shutter

Hello all.
I am in the process of adding a dome in my observatory and I was thinking about a rain sensor.
The shutter (and rotation) of the dome is controlled by an Arduino.
The rain sensor is controlled by a separate Arduino.
How do I integrate the two together so that if the rain sensor goes off the shutter will close automatically? Can the code for the rain sensor be added with the code for the shutter?

This is the rain sensor I have done https://www.instructables.com/id/Ard...s-Rain-Sensor/
and the shutter .ino

The code for the shutter does make reference to a rain sensor but I am not sure what I am looking at.

Hope that all makes sense.
Thank you
Reply With Quote
Old 25-03-2019, 11:23 AM
sil's Avatar
sil (Steve)
Not even a speck of dust

sil is offline
Join Date: Jun 2012
Location: Canberra
Posts: 1,402
I can't access the links from work. but no reason you can't combine the two. Helps if you learn what you're doing instead of copy and pasting. break it down into the two tasks and get a handle on them: opening/closing the shutter at will from your arduino code; reading the rain sensor, finding a suitable value to determine "dry" from "damp" then you simply read and compare (if/then sort of thing) to activate shutter.

But also comprehend what the sensor is doing and the consequences. and of course I'd use at least six of them. plus I'd be testing for dewpoint conditions. start simple, learn then expand to something feasible.
Reply With Quote
Old 25-03-2019, 07:22 PM
ChrisV's Avatar
ChrisV (Chris)
Registered User

ChrisV is offline
Join Date: Aug 2015
Location: Sydney
Posts: 1,384
+1 with Steve. Break it into bits and understand how each works.
Reply With Quote


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +10. The time is now 03:22 AM.

Powered by vBulletin Version 3.8.7 | Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Lunatico Astronomical
Astronomy and Electronics Centre