Jump to content

Stargazers Lounge Uses Cookies

Like most websites, SGL uses cookies in order to deliver a secure, personalised service, to provide social media functions and to analyse our traffic. Continued use of SGL indicates your acceptance of our cookie policy.

stargazine_ep15_banner.thumb.jpg.34f8495864951c81ec35e285b4d7b2e0.jpg

Gina

Weather Station Ideas

Recommended Posts

I have a 250mm ribbon cable connecting BME28 to ESP32 and it's working fine.  Nice to have it cooler today but still muggy.

1809865724_Screenshotfrom2020-08-0109-35-07.png.5e73914aad1f0636f761b0dd228efcae.png

Share this post


Link to post
Share on other sites
Posted (edited)

Now have the BME 280 in the Stevenson screen and the latter mounted on the north wall of the obsy.  A 4 way ribbon cable goes into the scope room and into the ESP32 board which is mounted on the wall with a 3D printed bracket.  The twin cable has arrived but I haven't yet run it round the obsy so I have the ESP32 running off the bench PSU.  It's all working.  The display wants some tidying up but that's minor.

974694367_Screenshotfrom2020-08-0112-54-28.png.a85f52cb5b42484b9a9cf2a48b08beff.png

Edited by Gina
  • Like 2

Share this post


Link to post
Share on other sites

I could improve the display now but I think it makes sense to leave it until I get the RTC and do the job properly.

Share this post


Link to post
Share on other sites

Anyone know how long the connection between DHT22 and ESP32 can be?  I guess it depends on the type of cable.

Share this post


Link to post
Share on other sites
21 minutes ago, Gina said:

Anyone know how long the connection between DHT22 and ESP32 can be?  I guess it depends on the type of cable.

Between 12 and 30 m depending on which google result you use.  I've got one on a long lead of about 2m which I keep meaning to cut down now it's mounted to the side of the scope :) 

I never found them reliable in the weatherstation but the one that's been on the dew heater has just worked since day 1 so no conclusion there!

  • Thanks 1

Share this post


Link to post
Share on other sites

So a 5m cable should be no problem then.  Guess it should be screened.

Share this post


Link to post
Share on other sites
2 minutes ago, Gina said:

So a 5m cable should be no problem then.  Guess it should be screened.

Yep. I think I used cat5 for that and the dew heater cables (which have DS18B20 in them to monitor band temp)

  • Thanks 1

Share this post


Link to post
Share on other sites

Been thinking about measuring the temperature and humidity in the scope room and initially thought of measuring it at the pier top - nearest imaging rig.  OTOH if the roof is open I doubt there would be much difference between the conditions at the pier head and outside in the Stevenson screen.  With the roof closed it may not matter where these conditions are measured - such as at mount height but near the north wall.  So I'm wondering if there is any point in measuring at the pier head with the extra messing about.

Share this post


Link to post
Share on other sites
1 minute ago, Gina said:

Been thinking about measuring the temperature and humidity in the scope room and initially thought of measuring it at the pier top - nearest imaging rig.  OTOH if the roof is open I doubt there would be much difference between the conditions at the pier head and outside in the Stevenson screen.  With the roof closed it may not matter where these conditions are measured - such as at mount height but near the north wall.  So I'm wondering if there is any point in measuring at the pier head with the extra messing about.

If it's not a pain to do you can add it and if it gives no value, then remove later.

  • Like 1

Share this post


Link to post
Share on other sites

Set up a buck converter and connected to the ASC main supply for the moment, until I get the 5v power distribution done.

  • Like 1

Share this post


Link to post
Share on other sites

When I was looking for other things I came across several DHT22s but now I want one they've all gone into hiding!!  Ordered another, due to arrive tomorrow.  Of course, I don't know if the ones lying about would be any good - they're donkey's years old!

Share this post


Link to post
Share on other sites

I'm still wondering if magnet and reed switches is the best for sensing wind direction.  I'm having a problem getting the magnet to give the right response from the reed switches.  viz. to get a suitable overlap and not get 3 reed switches on at the same time.  For the Consensus Averaging to work properly I think the overlap representing 8 of the 16 directions needs to be about the same as the "one on" directions.  I'm going do do some more thinking about optical sensing.

Share this post


Link to post
Share on other sites

DHT22 and the RTC modules have arrived but not doing much today - need a rest.

Share this post


Link to post
Share on other sites
Posted (edited)

Found another web server sketch example HERE.  Don't know if it's any better than Wim's sketch.  I'll stick with what I know works for now.

Edited by Gina

Share this post


Link to post
Share on other sites

Added the DHT22 code to the current sketch for the outside sensors to read conditions in the scope room.  Seem to be using up program storage space rather fast and this is only a small sketch!!  I'm rather worried that I may not have room for the more complicated time coded data processing with the RTC mocule.  Time will tell.

Quote

Sketch uses 732250 bytes (55%) of program storage space. Maximum is 1310720 bytes.
Global variables use 40352 bytes (12%) of dynamic memory, leaving 287328 bytes for local variables. Maximum is 327680 bytes.

 

Share this post


Link to post
Share on other sites

Working.  I missed the % sign off the Scope Room humidity - doh...

2071770231_Screenshotfrom2020-08-0220-12-23.png.42fc1c6e1c924c1dca0844dccf3d9c1c.png

  • Like 1

Share this post


Link to post
Share on other sites
2 hours ago, Gina said:

I think I found with my RTC I also needed to run a software clock as there isn't an actual RTC exposed in the ESP (their version of an RTC is just a timer), this may have changed over time as the ESP libs improved within Arduino.

I sync the RTC with NTP on every boot which has an aggressive start then backs off to only sync every 'few' hours (you don't always get a NTP reply on the first attempt, few = log time but I forget how long lol )

I use the Adafruit RTCLib.h with a DS3231 which I think is the same as the example you've got.

  • Like 1

Share this post


Link to post
Share on other sites

Hi Gina, progressing I see. 

What's the purpose of the RTC over NTP ? Are you putting the device to deep sleep between measurements ?

If you have the bme280 working why use the distinctly clunky and unreliable dht22 ?

 

  • Like 1

Share this post


Link to post
Share on other sites

I don't know about NTP - I'll look for information.

I have a BME280 outside in Stevenson screen with a 250mm ribbon cable from the ESP32 inside and the DHT22 inside (scope room).  I don't need two pressure readings.  Are you saying you would recommend using two BME280s for better reliability?  I take it then that there's no problem distinguishing which is which.

Share this post


Link to post
Share on other sites

I was planning to use the RTC for two things, getting date and time and displaying it and to interrupt the ESP32 every minute (or 5) to read sensors and store the results from which pressure trends could be derived and maybe provide a log.  For the wind sensors there would be more processing - computing mean and gust wind speed and average wind direction.  I don't know how this could be done by reading NTP every few hours.  I guess the current date and time could be computed from the elapsed loop time interval count but this seems a complicated method.

Share this post


Link to post
Share on other sites

The example works 😀  Now to incorporate it into my sketch.

  • Like 1

Share this post


Link to post
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

By using this site, you agree to our Terms of Use.