Jump to content

Banner.jpg.b83b14cd4142fe10848741bb2a14c66b.jpg

Gina's Observatory Roll-Off-Roof Automation


Gina

Recommended Posts

As in your weather station thread, I believe that mqtt can handle this. A weather station and the roof controller are clients. A raspberry pi is the server (broker in mqtt language), which sends data received from one client (the weather station) to another (roof controller), or even several others (+ a display unit?).

Definitely worth looking into, imo.

  • Thanks 1
Link to comment
Share on other sites

Done some repairs on my observatory.  Fastened some shiplap boards that had come loose, plus other parts.  Fitted the new cover for the large chain wheel and the wheel itself.  Fitted perfectly - amazingly!  I'll take a photo later - recovering from the exertion and heat/humidity ATM.

  • Like 1
Link to comment
Share on other sites

I may need to rethink the operation of the fold down east window.  I was going to use the rather Heath-Robinson rope and pulley system operating from the roof but I realise that the window often needs separate operation from the roof.  That has been particularly evident in this hot weather when I have wanted the roof closed but the window open.  I could really do with a window that I could open on the west end wall to allow a through airflow but that is a major piece of work!  OTOH we don't get this sort of weather very often.

ATM the rope and pulley system can be reconnected quite easily at any time so I could resurrect that system for the winter.  It's only necessary to close the window if rain or snow is expected from the east.  With the prevailing SW wind the window can be left open if it rains so maybe I don't need to rethink the window operation after all.

Link to comment
Share on other sites

On 11/08/2020 at 07:24, wimvb said:

As in your weather station thread, I believe that mqtt can handle this. A weather station and the roof controller are clients. A raspberry pi is the server (broker in mqtt language), which sends data received from one client (the weather station) to another (roof controller), or even several others (+ a display unit?).

Definitely worth looking into, imo.

Do you think this is the simplest way of controlling the roof?  I've also had mention of "web sockets".   Can a "broker" do more than just control traffic?  Like operate a display?  I find it interesting that the broker should be an RPi rather than the main desktop.  Agreed that this would mean the desktop wouldn't need to run for MQTT to operate.

Link to comment
Share on other sites

Clients do the job. In INDI language, clients are as indi-drivers/hardware devices and indi-clients, whereas the broker is like the indi-server. The broker handles communication and message (data) storage. Clients supply the messages (data) and receive the data. Clients then take the appropriate actions. That’s why esp32 (and arduino?) can be clients and a raspberry pi can be broker.

  • Like 1
Link to comment
Share on other sites

Had a look at MQTT on Google and it looks relatively straightforward.  However, I reckon you or someone else has written basic parts of the code I would need for my weather station and ESP32 devices.  Don't want to "reinvent the wheel" if I can help it.

  • Like 1
Link to comment
Share on other sites

7 hours ago, Gina said:

Had a look at MQTT on Google and it looks relatively straightforward.  However, I reckon you or someone else has written basic parts of the code I would need for my weather station and ESP32 devices.  Don't want to "reinvent the wheel" if I can help it.

I’ll do some digging in my code repository tonight.

  • Thanks 1
Link to comment
Share on other sites

I did a test with mqtt, where I used my ESP32 sky quality meter and published that to a Raspberry Pi MQTT broker. These micropython files did the trick. Since the sensors all use i2c, changing the code so that it will work with a weather station shouldn't be too difficult. The randsomnerdstutorials site should provide the necessary information for changing the code to arduino ide/c++. You should also find information there on how to set up mqtt on the RPi.

I used MQTT Explorer on my windows laptop to monitor the messaging to and from the RPi.

boot_git.py

main.py

tsl2591.py

umqttsimple.py

  • Thanks 1
Link to comment
Share on other sites

I have pretty much decided to go with MQTT for weather station and obsy roof control (and who knows what else).  I like the modular approach yet encompassing everything.  Seems RPi broker, several ESP32 and ESP8266 clients and client on my Linux Mint box producing graphs and charts.  Could add a wall display client too.

Edited by Gina
  • Like 1
Link to comment
Share on other sites

As posted in the MQTT thread, I'm definitely going to use MQTT to control the roof and have already written some code and designed the controls.  I'm pretty sure I know how to do this.  The only doubt is how well the rain detector will work.  I will be doing some experiments.

  • Like 1
Link to comment
Share on other sites

13 minutes ago, Gina said:

As posted in the MQTT thread, I'm definitely going to use MQTT to control the roof and have already written some code and designed the controls.  I'm pretty sure I know how to do this.  The only doubt is how well the rain detector will work.  I will be doing some experiments.

You're so clever Gina, I'd have no Idea.

  • Thanks 1
Link to comment
Share on other sites

  • 1 month later...

I've pretty much decided on the design of the remote control of the ROR and now I'm looking into controlling the fold-down window which I find I need to control separately as there are times when I want the window open and the roof closed.

  • Like 3
Link to comment
Share on other sites

This is what I had controlling the window from the roof.  But I can only separate window from roof by unhooking the pulley block.

Window Cord & Pulley System 01.JPG

Window Cord & Pulley System 02.JPG

And because the window has no force on it tending to open it I had to produce some as shock cord to a fence post outside - not a very "engineering" solution 😁

Window Bungee Cord 01.JPG

I'm thinking a counterbalance weight may be better and a push-pull or rotary window opening/closing arrangement.

  • Like 1
Link to comment
Share on other sites

Because this happened and it jammed.
Window Cord & Pulley System 03.JPG

I made my own 3D printed block which cured the problem by made it less easy to uncouple.  I guess I could add a hook and get over that problem.  But there's still the silly shock cord method of pulling the window open which I don't really like.
Window Cord & Pulley System 04.JPG

 

Link to comment
Share on other sites

I'll have a think as to whether I want full independent remote control of the window, with all the complication that involves in the design, or whether I only want the window open when I'm in the observatory or it's no problem to pop back and forth from the house.

Link to comment
Share on other sites

  • 11 months later...

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.