Jump to content

Banner.jpg.b83b14cd4142fe10848741bb2a14c66b.jpg

Gardian Angel : an arduino prototype


FrenchyArnaud

Recommended Posts

Ok, so first, the name "guardian Angel" is temporary - I was not able to come up with anything better since I started this DIY project a few weeks ago. 

The idea is to have an independant "observer" or "monitor", that is able to take measurements in real time of all the basic stuff you would normally do by hand while doing AP, and raise an alert, an alarm, or simply write a log, should anything go wrong with the pier,  like an obvious discrepancy between slew position and actual position of the OTA, unexpected rain etc. 

It's currently being developped and is well on its way. The core is an Arduino Nano paired with a GSM module (SIM800L) and a microSD card module on a protoPCB, which takes measures as soon as the pier is powered on. 
These measures are provided by : 
- A rain detector (LM393 / FR-04  50mm*40mm)
- A gyroscope (MPU6050)
- A vibration detector (SW420)
- A barometer (BMP180)
- A temp/humidity sensor (DHT11)

As it stands now , the Guardian is able to detect when:
- the weather is about to degrade unexpectedly (for instance, increase in temp and humidity + drop of atm. pressure indicating the approach of a local thunderstorm) 
- something is interfering with the OTA (animal, wind, snag..)
- rain, snow or excess condensation are appearing (and can differentiate using weather computations based on baro/temp/humidity values)
- the slew is noticeably different from theoretical values (every once in a while my scope will point straight up and stick there for no obvious reason)
- a meridian flip went haywire
- the scope stops moving but is not in park position,
etc.

It also automatically sends a handshake sms to my phone when I power the pier on, to confirm that all systems and probes (and the GSM link itself) have booted normally, and (will) interface with NINA to send a GoodNight message with a status report once NINA has finished its nightly sequence. 

When any of these happen,  the severity of the issue is evaluated, and depending on the situation, the Guardian will simply log the event, send a text to my phone with the basic data/infos (and wait for an answer and instructions) and, if no response arrives within 10 minutes, it will either send another text or, if there is an emergency (noticeable rain for instance) , it will call my phone (which rings with an alarm ringtone for this specific contact even if my phone is on silent) 

Basically, this gadget will do all the basic monitoring to avoid wasting a full night for a stupid thing that is easily detected but would require to stay up at night or to half sleep  with an eye on the computer from the bed. 

If anyone is interested, I'll post the schematics, parts list, firmware, software and docs here when it is sufficiently stable and complete. For now, it's only an advanced prototype. NB : it POINTS OUT issues and pulls you out of bed if needed, it does not take any action - for now. As a second phase of dev, I am considering having it able to cut all electrics on the pier (for emergency stops) either in response to a command (sent by SMS) or off its own initiative, using a master relay., and a few other possibilities of direct action.

It is standalone and does not require USB/WIFI connexion because its main function is to be a totally redundant system that oversees the physical reality of the pier's behaviour independantly of what the session manager and the telescope controller are doing. 

Any input, remark, suggestion or question welcome. 



 

 

  • Like 7
Link to comment
Share on other sites

  • 4 weeks later...

Ok!

So, the first prototype is working and undergoing real life tests...

2.thumb.jpg.bb33a5554f24f4654bdcc4b6a5c702aa.jpg

There has been quite a few adjustements of the concept but it still is tiny (That's a 4cm * 6cm circuit board) and fits in a tiny casing the size of a big box of matches.

3.thumb.jpg.78fcd02d8879337ef8872d8c6f09df8e.jpg

It returns a butload of values including spatial X Y Z positions, and X Y Z absolute motions, a very precise array of temperature (air / module / OTA) , a rain detector, and so forth. All in all, about 20 variables are sampled every 10 seconds (can be changed from 1 to 3600secs) and are sent to a python module which itself does some serious math on the raw data to decide if everything is as it should, including dew point, frost, snag, unexplained vibrations, obvious pointing errors, fog, rain, condensation. 

1.jpg.e78779c38dc98a40cc6d7b2ba516d690.jpg

If everything is not as it should, this reporting gizmo sends an notification on your phone, which can be either of the "just info" type or "Big alarm!" if it finds that it is pointing downward and filling with water, aka telescope in the swimming pool because the neighbour's saint bernard is on drugs. 

4.thumb.png.6a4fd1316445cb24a627a99c5a8120b8.png

In HighPriority setting, the notification will ring your phone even if it's on silent, every 1 to 10 minutes (can be changed too), until you get your lazy ##### out of bed, acknowledge the notification andgo check on what is wrong (typically, unexpected rain)

The system can anticipate weather events with a reasonnable short term reliability (about an hour) and send low level notifs informing of he increase in risk for rain, fog, snow and frost. It also alerts you if the tracking rate and tracking attitude  is obviously inconsistent with astrophotography (pointing below horizon, stoppes, too slow...) and can infere cable snags, low laptop battery etc etc.... 5.thumb.png.05fbca6c3b8152a1fc807a506dfd5f5a.png

 

There is still quite a lot of dev to be made before releasing the complete project but a look at the config file will give you a good idea where this is going (for the diy maniacs like me). It's here : https://github.com/FrenchyArnaud/GuardianAngel/blob/main/config.py 

  • Like 8
Link to comment
Share on other sites

  • 4 weeks later...
23 hours ago, yopero said:

Interesting project! 

Just wondering how you are characterising the gyroscope behaviour for these two:

  • something is interfering with the OTA (animal, wind, snag..).
  • a meridian flip went haywire

 

For the interference, the gyro estimates  the regularity of the motion by taking point measurements. If the speed shows a tendancy to drop even minimally, then resumes brutally AND triggers the vibration sensor, it judges that something "catches" and releases. Hence, snag. 

Vibrations without speed change: repeated small to medium values are considered as wind, high random values as interference (cat, sthg that fell or gave way etc)

if the flip goes normally, the gyro can infere it (inverted positional values = flip) but if the resulting values are too far off the invert of the initial, then an alarm is sent. 

I am still developping the soft. part. 

 

Link to comment
Share on other sites

On 15/11/2023 at 17:12, FrenchyArnaud said:

For the interference, the gyro estimates  the regularity of the motion by taking point measurements. If the speed shows a tendancy to drop even minimally, then resumes brutally AND triggers the vibration sensor, it judges that something "catches" and releases. Hence, snag. 

Vibrations without speed change: repeated small to medium values are considered as wind, high random values as interference (cat, sthg that fell or gave way etc)

if the flip goes normally, the gyro can infere it (inverted positional values = flip) but if the resulting values are too far off the invert of the initial, then an alarm is sent. 

I am still developping the soft. part. 

 

Nice, Thanks for explaining!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.