prioryjim
Posts: 108
Joined: Tue Mar 06, 2012 12:23 pm
Location: Preston, UK

wind speed protocol for reed anemometer

Thu Aug 23, 2018 9:12 am

Hello
I was planning to use a simple wind speed anemometer.
I would use a pic chip possibly PIC12F1840
Because
1) I have some
2) It has plenty of memory
3) It has a serial port
4) It has i2c

So, I have some simple code to de-bounce and count the reed pulses.

My question is what sort of protocol ?
I guess I could implement a number of messages where the PIC is queried for data.
But what should the messages contain ?

Plus count over 1 minute
Shortest pulse since last read

Any ideas
Thanks
Jim

hippy
Posts: 7738
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: wind speed protocol for reed anemometer

Thu Aug 23, 2018 9:19 am

Average windspeed since the last time the data was queried would seem the most sensible data to me. Maybe with some trending data so one can tell if windspeed is rising or falling, maybe maximum and minium detected.

You can provide multiple items of data; it would probably depend on what the program using the data does or requires.

prioryjim
Posts: 108
Joined: Tue Mar 06, 2012 12:23 pm
Location: Preston, UK

Re: wind speed protocol for reed anemometer

Thu Aug 23, 2018 9:56 am

Thanks
I wonder if the PIC should calculate this or just provide raw data.
Jim

hippy
Posts: 7738
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: wind speed protocol for reed anemometer

Thu Aug 23, 2018 10:16 am

prioryjim wrote:
Thu Aug 23, 2018 9:56 am
I wonder if the PIC should calculate this or just provide raw data.
I don't think anyone can answer that any better than you can. What would best suit the program which uses the data ?


drgeoff
Posts: 10765
Joined: Wed Jan 25, 2012 6:39 pm

Re: wind speed protocol for reed anemometer

Thu Aug 23, 2018 2:04 pm

What would you be providing the raw data to?

If anything other than a RPi, why are you asking here?

If a RPi why not connect the anemometer reed switch directly to the RPi?

wolf.z
Posts: 135
Joined: Thu Dec 24, 2015 8:34 pm

Re: wind speed protocol for reed anemometer

Thu Aug 23, 2018 2:39 pm

Thinking of reusability of your design, you should consider windspeed in a NMEA or APRS sentence. With the latter being an amateur's quasi standrard format, the former being an industrial standard. See:
$WIMWV http://www.oceandatarat.org/?page_id=723 end of page
http://aprs.org/doc/APRS101.PDF page 27

hippy
Posts: 7738
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: wind speed protocol for reed anemometer

Thu Aug 23, 2018 3:08 pm

wolf.z wrote:
Thu Aug 23, 2018 2:39 pm
Thinking of reusability of your design, you should consider windspeed in a NMEA or APRS sentence.
Good point. And those or some other standard might define what a "windspeed measurement" should be. Although I earlier suggested average would be best; current might be the data one was really after or the most useful. A meteorologist would probably know better than me.

prioryjim
Posts: 108
Joined: Tue Mar 06, 2012 12:23 pm
Location: Preston, UK

Re: wind speed protocol for reed anemometer

Thu Aug 23, 2018 3:29 pm

Well I was thinking of the raw anemometer interface using a PIC and a comms interface i2c or serial to a PI
Jim

wolf.z
Posts: 135
Joined: Thu Dec 24, 2015 8:34 pm

Re: wind speed protocol for reed anemometer

Fri Aug 24, 2018 6:20 am

prioryjim wrote: Well I was thinking of the raw anemometer interface using a PIC and a comms interface i2c or serial to a PI
Jim
OK, but what kind of raw are you thinking of? Is it raw reed puls, is it just two integer for gust (max) and average? In case of the former a simple question comes into my mind: What for would you need the PIC for? In case of the latter, adding some APRS or better NMEA syntax would allow to pipe data to applications without further processing directly in somehow standardized format.

Return to “Automation, sensing and robotics”