Jump to content

Banner.jpg.b83b14cd4142fe10848741bb2a14c66b.jpg

Arduino Based Weather Station


Gina

Recommended Posts

That looks fine :)  I may well make myself a new one - can't be any worse that the Fine Offset brand cheapo one :D  I should be able to produce something rather more accurate with any luck.  I agree with an optical sensor - magnet and reed switch will slightly impede the motion.  An alternative would be Hall switch with magnet - there is no iron in the Hall device to pull on the magnet and a Hall switch is simpler than LED and phototransistor.

Edited by Gina
Link to comment
Share on other sites

Yes, pretty much :D  I may just see if the FO rain gauge is working and possibly make my own later.  One thing wanted is a bit of heating when the temperature drops below freezing so that snow or freezing rain can be catered for.

Just printed the wind vane hub.  Was about to change over to white for the encoder but found the white wouldn't go through the 2mm PTFE tube in spite of claiming to be 1.75mm :(  Wonder if the translucent filament would work alright - should be almost as reflective.  Or there's pink.

Link to comment
Share on other sites

Been looking at the whole design again to see if I can make use of knowledge I have gained since I last looked at it.

I don't need to use WiFi if I attach the mast to my observatory which is what I'm planning.  Currently the mast is fastened to a fence post to the NE of the scope position and does get in the way of imaging at times.  With it placed to the north or NW it will be out of the way - I never seem to find anything to image in that direction.  Power will be supplied from my observatory battery backed 13.8v supply and I have gigabit Ethernet available back to the house.

I'm not really happy with using discontinued parts as there would be a problem of replacement in case of failure.  Also, although the circuitry is built and was working, I have only tried it at room temperature and cannot say it will work when it's very cold though according to the chip specs, it should do.  Also, I would prefer circuitry I can publish as a working system for anyone else to copy if they want to.  As such, I'm reviewing the whole thing.

As far as the wind instruments are concerned probably the worst cast of discontinued devices is the 1-wire counter - a great shame as this is a 32bit binary counter meaning it could count pulses from the anemometer and not overflow for 4,000 years even if we had constant winds of 100mph!  I'm going to see if the pulses can be counted in software.

Edited by Gina
Link to comment
Share on other sites

Checked up on the approximate pulses per second versus mph and I get about 1p/s for 1mph so 100mph would produce 100 pulses per second or 10ms minimum time between pulses.  I reckon even the Arduino should be able to handle this from its interrupt system.

Link to comment
Share on other sites

13 minutes ago, Gina said:

Checked up on the approximate pulses per second versus mph and I get about 1p/s for 1mph so 100mph would produce 100 pulses per second or 10ms minimum time between pulses.  I reckon even the Arduino should be able to handle this from its interrupt system.

pulseIn() or pulseInLong()  :)

  • Like 1
Link to comment
Share on other sites

The other thing I'm not happy with is the wind direction encoder - a lot of variation in the photo-transistor current, at least so far.  Maybe photo-reflective sensors are not the best way to go after all.  To use the Gray encoder means I can't use slot type photo-detectors - the sender and receiver parts need to be separated.  This was the way I did it at first.

I'm considering another idea.  A slotted disc and software counter with two photo-detectors to allow up/down counting (bi-phase).  Much simpler mechanically but would it be reliable enough or might it lose counts and get "out of sync"?  I wonder.

Link to comment
Share on other sites

A problem with opto-sensors is that the output current varies quite a bit and also is sensitive to noise.  Maybe that's why most commercial weather stations seem to use magnets and reed switches.  An alternative would be Hall switches, which I'm rather fond of I have to say :D  I think they are more consistent than reed switches as to the distance at which they operate.  Maybe I could get away with just 8 and make use of overlap.  I think some experimenting is indicated :D  They're cheap anyway :)

Link to comment
Share on other sites

I have one of These which I bought when I had some money :D

It has continuous analogue output accurate to a degree but I don't know how it works internally. I'm certainly not taking it apart as I could never afford to replace it now. I also have an Inspeed anemometer. I bought them from Hobby Boards a few years ago (now no longer trading) and they came with a 1-wire controller board.

Link to comment
Share on other sites

Been doing some research.  The photo-reflective sensors I'm using for the wind direction encoder are infra-red and it seems that black ABS reflects IR - doh :D  I think the ideal way to make an encoder disc that works with reflective IR sensors would be to carefully cut black velour flocking material to the shape of a Gray encoder and stick it onto aluminium foil or a thin aluminium disc.  OR cut suitable holes in aluminium sheet and put black velour behind it.

Actually, I guess I could print a fairly thin Gray encoder disc, glue kitchen foil to it and cut out the holes.  Put black velour behind it and there you are :D  Maybe a light coloured ABS would reflect enough light on its own.

Think I'll make up a test rig with one of the IR reflective sensors and measure the collector current with various colours of filament.  I can also test the reflectivity of FLO flocking material :D

Link to comment
Share on other sites

I've moved my Pilot 3D printer off the table and onto a cabinet in the corner where the UP Plus 2 printer stood.  Also removed the fume cabinet ready for a new bigger one for the Pilot.  That leaves the table free for experiments.

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.