Sandaysoft

Support forum for Cumulus weather station software
It is currently Wed May 22, 2013 3:00 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Re: Fed up with Fine Offset. I want to start from scratch?
PostPosted: Mon Apr 09, 2012 11:53 am 
Offline

Joined: Thu Feb 04, 2010 12:22 pm
Posts: 344
Location: Clayton, Ontario Canada
Weather Station: 1wire-Cumulus & Fine Offset
Operating System: Windows 7
Hi Scott

I've just spent 3 months developing a station that will accept data from a number of sensors, including one wire, and then display that data in Cumulus. This is based on a microcontroller to gather the data, process it into usable form, then present it by the USB interface to Cumulus. It probably has a couple weeks effort yet before it's ready for prime time, mostly because I received a bad one wire device and I'm waiting for a replacement. There is curently no wireless link, although the architecture allows for adding one in future if I ever think it's worth the effort. It does have onboard sensors for the indoor measurements, and a built in data logger the same size as the Fine Offset. It has been happily displaying data in Cumulus for a couple weeks now.

I started the project after my own Fine Offset frustrations, and with discussion and support from "41South". If fast and easy is what you are looking for, then rather than trying to build your own, send me a private message and we can discuss getting a copy of it constructed for you.

I can tell you that I wouldn't want a weather station I can't use with Cumulus, and it's unlikely Steve will ever support home made stations unless they use an existing interface. I can also tell you the project was non-trivial with plenty of surprises.

Final point, re my original comment: one wire only brings transport layer to the table - you still need to code for all the sensors. If you use WIFI for the transport layer, then what does one wire add?


Top
 Profile  
 
 Post subject: Re: Fed up with Fine Offset. I want to start from scratch?
PostPosted: Mon Apr 09, 2012 2:02 pm 
Offline

Joined: Tue Mar 20, 2012 5:42 pm
Posts: 23
Location: Lunenburg, MA
Weather Station: homebrew
Operating System: Win 7
Charlie wrote:
Hi Scott

Final point, re my original comment: one wire only brings transport layer to the table - you still need to code for all the sensors. If you use WIFI for the transport layer, then what does one wire add?


I like one-wire because I can add and drop sensors with minimal wiring, without touching more processor pins. (I'm prone to frying whatever I touch, so I want to touch very little.) It's purely convenience; I want to get two pins working and be done with messing with the processor forever after, except throwing code on it.


Top
 Profile  
 
 Post subject: Re: Fed up with Fine Offset. I want to start from scratch?
PostPosted: Tue Apr 17, 2012 2:36 am 
Offline

Joined: Tue Mar 20, 2012 5:42 pm
Posts: 23
Location: Lunenburg, MA
Weather Station: homebrew
Operating System: Win 7
Alright, so... having priced one wire components for everything, I think I'm giving up and moving away from one-wire for windspeed, rainfall, and wind direction. Windspeed and rainfall are just digital pulses, which the processor I have (netburner 5270) won't have any problem debouncing and counting.

Wind direction looks dicier. It's an array of 8 different resistances, up to around 100k. The cheap way is to use the resistances to charge a cap, and measure the time it takes the cap to get high enough in voltage to look like a logic 1 to the processor. The problem with that approach is that caps drift as the temperature changes... this won't work.

So instead I'm considering using the resistance from the wind wave to control the duty cycle of a 555 timer. Messing with some numbers, I can probably get a measurement in 15ms, worst case. (Wait for the 555 to go high, measure the time high, measure the time low, divide and look up the answer.) Since duty cycle is independent of the capacitor value, it doesn't matter much if the cap value varies with temp.

Has anyone tried this? Is there a better way? The one-wire solution in this case is around $58 - too much.


Top
 Profile  
 
 Post subject: Re: Fed up with Fine Offset. I want to start from scratch?
PostPosted: Tue Apr 17, 2012 12:48 pm 
Offline

Joined: Sat Feb 26, 2011 1:58 pm
Posts: 482
Location: SE London
Weather Station: Fine Offset 1080/1 & 3080
Operating System: Windows XP SP3
ScottM wrote:
Wind direction looks dicier. It's an array of 8 different resistances, up to around 100k. The cheap way is to use the resistances to charge a cap, and measure the time it takes the cap to get high enough in voltage to look like a logic 1 to the processor. The problem with that approach is that caps drift as the temperature changes... this won't work.
Hi,

If you're considering the FO wind vane, that's exactly what they do. But they pre-calibrate the capacitance against a known resistance first.

The issue is that the resistances don't run in sequence (and there are actually 16 values because two reeds can operate at the same time) so some form of "lookup table" is required. A small microcontroller is the obvious solution, it's exactly what I'm planning to do (with a PICaxe) in my current project, maybe soon to be revealed in the Homebuilt section.

Cheers, Alan.


Top
 Profile  
 
 Post subject: Re: Fed up with Fine Offset. I want to start from scratch?
PostPosted: Tue Apr 17, 2012 5:13 pm 
Offline

Joined: Tue Mar 20, 2012 5:42 pm
Posts: 23
Location: Lunenburg, MA
Weather Station: homebrew
Operating System: Win 7
>If you're considering the FO wind vane, that's exactly what they do.

I already have the FO weather vane, so I guess I'm using it. :-)

How do they account for cap drift? reed switch debounce? The vane moving in the middle of the measurement? Or do they just hope for the best? Do they use a 0.1uf cap (Which means the worst case read time is probably around 11ms?)

I suppose I'll just remeasure until I get 3 equal values in a row. I was hoping for something better.


Top
 Profile  
 
 Post subject: Re: Fed up with Fine Offset. I want to start from scratch?
PostPosted: Wed Apr 18, 2012 1:54 pm 
Offline

Joined: Sat Feb 26, 2011 1:58 pm
Posts: 482
Location: SE London
Weather Station: Fine Offset 1080/1 & 3080
Operating System: Windows XP SP3
Hi Scott,

Most of my information came from about page 22 of Gina's mammoth thread on spikes in the external data caused by Electric Fences.

I believe the capacitor is 4.7uF, the micro first charges this through a fixed resistor (10k?) taking about 50ms for calibration, then through the external temperature thermistor (also about 50ms at normal temperature) and finally through the wind vane, which takes from about 3ms up to 500ms. If the vane is disconnected it times out after about 1 second. The vane is so "lively" that reed switch bounce must be irrelevant, but if the micro reads a value that it doesn't recognise, then it (or maybe the console) appears to hold the previous reading for one cycle and then displays "--" subsequently.

But with a PIX(axe), for example, you can just feed the vane from the supply via a resistor of about 3k - 4k ohms and, even with only 8 bits A/D conversion, easily differentiates the values. My application indeed involves "processing" the raw vane data and re-encoding it into FO's A/D converter.

Cheers, Alan.


Top
 Profile  
 
 Post subject: Re: Fed up with Fine Offset. I want to start from scratch?
PostPosted: Sun Nov 18, 2012 6:26 pm 
Offline

Joined: Sun Apr 01, 2012 2:55 pm
Posts: 38
Location: Oregon City, OR
Weather Station: WS-2080
Operating System: Windows 7
It doesn't sound like this idea ever went anywhere, but it sounds like it might be the only way to get around the FO station lockup issues.

Has anyone made any progress on this? I know nothing about electronics, but am interested in this project. I don't even care about the base station, really - I just want the data to be logged by Cumulus.


Top
 Profile  
 
 Post subject: Re: Fed up with Fine Offset. I want to start from scratch?
PostPosted: Sun Nov 18, 2012 10:19 pm 
Offline

Joined: Tue Mar 20, 2012 5:42 pm
Posts: 23
Location: Lunenburg, MA
Weather Station: homebrew
Operating System: Win 7
I've just recently restarted my weather station project. I'm using an Arduino, a wifi shield, and some one wire sensors, plus the rain gauge, wind vane and anemometer from the FO station. Not the cheapest solution, but I have the wifi and temperature working and it's been simple so far. I expect the wind vane to be the fussy part; the Arduino has an analog input and I'm hoping to use a simple voltage divider to measure it. We'll see...


Last edited by ScottM on Tue Nov 20, 2012 11:58 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Fed up with Fine Offset. I want to start from scratch?
PostPosted: Tue Nov 20, 2012 9:44 pm 
Offline

Joined: Sat Feb 21, 2009 12:41 pm
Posts: 1859
Location: Devon UK
Weather Station: FO WH1081PC (Maplin)
Operating System: OS X, Linux Mint, Win7 & XP
I'm building an Arduino plus 1-wire based station. Arduino handles 1-wire with a library - I have another thread on it - though been too busy to progress it much lately.

_________________
Gina

Sorry, no banner - weather station out of action. Hoping to be up and running with a new home-made one soon.


Top
 Profile  
 
 Post subject: Re: Fed up with Fine Offset. I want to start from scratch?
PostPosted: Wed Nov 21, 2012 12:16 am 
Offline

Joined: Tue Mar 20, 2012 5:42 pm
Posts: 23
Location: Lunenburg, MA
Weather Station: homebrew
Operating System: Win 7
I've had success with the one wire library, though very occasionally one of the sensors decides not to report back. (It's possible the poor Arduino can't quite handle everything I'm throwing at it, but it's more likely my prototype's wiring isn't perfect, and things will improve when I use a real circuit board.) The wifi shield works well at the distance I have in mind, and the nice thing about real wifi is real TCP - so both the station and the receiving computer can tell when data isn't flowing, and take steps to restart the connection.

My plan is to put the rain gauge on one interrupt (debounced at 100ms - the rain gauge can't possibly tip faster than that), the anemometer on the other (debounced at 15ms? I guess - experimentation will tell me more), and the wind vane on A0, using the vane as a voltage divider against some fixed resistance. Everything else (light meter, temperature, humidity) is one wire. I don't have a solution for pressure yet, but then there's no reason why the pressure sensor can't be inside and a completely separate solution.

When I get a solution I like, I'll post schematics. There won't be much to them; it's just a few resistors needed to get lines pulled up and down as needed.


Top
 Profile  
 
 Post subject: Re: Fed up with Fine Offset. I want to start from scratch?
PostPosted: Wed Nov 21, 2012 1:58 am 
Offline

Joined: Tue Mar 20, 2012 5:42 pm
Posts: 23
Location: Lunenburg, MA
Weather Station: homebrew
Operating System: Win 7
I have everything "working" in the sense of electrical signals and software to process them; but I'm unhappy with the way I'm doing wind direction. I have a voltage divider with a constant 45k pulling up to +5v, and the wind vane's varying resistance pulling to ground. The Arduino only sees a 2 out of 1023 difference (18/1023, 20/1023) between 2 adjacent directions, in the worst case. That's too close. Is anyone using a value better than 45k?

Also, while I get windspeed numbers from a spinning anenometer, I don't believe the number I get.


Top
 Profile  
 
 Post subject: Re: Fed up with Fine Offset. I want to start from scratch?
PostPosted: Wed Nov 21, 2012 4:34 am 
Offline

Joined: Sat Feb 26, 2011 1:58 pm
Posts: 482
Location: SE London
Weather Station: Fine Offset 1080/1 & 3080
Operating System: Windows XP SP3
Hi Scott,

45k is far too high to use with the FO wind vane. The resistance values (note that they do not run in sequence) vary from about 690 ohms up to 120 kohms. The "optimum" pull-up (or pull-down, as appropriate) resistor is about 4k (because there are three values of 0.69k, 0.89k and 1k at the "low" end, but only 65k and 120k to resolve at the "top" end).

In what way don't you believe/like the windspeed readings? Have you tried any "controlled" tests?

Cheers, Alan.


Top
 Profile  
 
 Post subject: Re: Fed up with Fine Offset. I want to start from scratch?
PostPosted: Wed Nov 21, 2012 7:06 pm 
Offline

Joined: Tue Mar 20, 2012 5:42 pm
Posts: 23
Location: Lunenburg, MA
Weather Station: homebrew
Operating System: Win 7
I don't have any controlled tests available. In my ad hoc test, the peak windspeed and average windspeed seem too different, but I'll experiment more and check my math.

I'm trying a 5k resistor, but ENE and E are still very close together for a ten bit A/D, even with that. Not that big a deal, really; just annoying.


Top
 Profile  
 
 Post subject: Re: Fed up with Fine Offset. I want to start from scratch?
PostPosted: Thu Nov 22, 2012 12:23 pm 
Offline

Joined: Sat Feb 26, 2011 1:58 pm
Posts: 482
Location: SE London
Weather Station: Fine Offset 1080/1 & 3080
Operating System: Windows XP SP3
Hi Scott,

Yes, FO didn't do a very good job in "designing" the Wind Vane resistor values. There are two positions where the nominal difference between adjacent positions is only about 12% (one is where the 8k2 comes in parallel with 1k to make 0.89k, and diametrically opposite 120k comes in parallel with 16k to make 14.1k). If 5% tolerance resistors are used then the differential may be very small. So the "optimum" series resistance could be as low as about 3k.

For amusement, I designed my own set of 8 preferred (E12) values which spans a smaller resistance range but still gives a nominal minimum 20% separation between the 16 adjacent positions, e.g. 1k5, 6.8, 12, 56, 82, 18, 8.2 and 3.3 (but easily scaled up or down as required). However, not much use unless you're building/modifying your own vane (and decoder).

Cheers, Alan.


Top
 Profile  
 
 Post subject: Re: Fed up with Fine Offset. I want to start from scratch?
PostPosted: Thu Nov 22, 2012 12:40 pm 
Offline

Joined: Sat Feb 21, 2009 12:41 pm
Posts: 1859
Location: Devon UK
Weather Station: FO WH1081PC (Maplin)
Operating System: OS X, Linux Mint, Win7 & XP
The F.O. resistors are 1% tolerance and my measurements show them as actually being much closer than that. But my measuring equipment is only accurate to 0.1% so can't say closer than that.

_________________
Gina

Sorry, no banner - weather station out of action. Hoping to be up and running with a new home-made one soon.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group