Need guide to start working on weather meters


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223

    Default Need guide to start working on weather meters

    Hello everyone!
    I have a weather meters(http://www.sparkfun.com/datasheets/S...0Assembly..pdf) from sparkfun electronics, I read its manual but not all are really clear for me. But here is what I understand so far.
    Sensor:
    RAIN GUAGE - I think it's similar to a switch button, so I just need to count how many times it has been switched...am I right?
    WIND VANE - I also thinking I can use ADC in reading the value from the sensor.
    ANEMOMETER - don't really know how to on this one.
    Name:  weather_station.gif
Views: 757
Size:  19.6 KB

    Planning to use Pic18F4550 at 20Hz.
    I hope anybody can help me out on this one.

    Thanks in advance,
    tacbanon

  2. #2
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default Re: Need guide to start working on weather meters

    Quote Originally Posted by tacbanon View Post
    RAIN GUAGE - I think it's similar to a switch button, so I just need to count how many times it has been switched...am I right?
    Correct, count the number of pulses. Each pulse = .011" (.2794mm) of rain. This could be done with a general IO interrupt, or just poll it frequently if your main loop is quick and the pulse length is long. Hook it up to a scope if you have one to measure it.

    Quote Originally Posted by tacbanon View Post
    WIND VANE - I also thinking I can use ADC in reading the value from the sensor.
    Correct. There are only 16 discrete positions that can be identified, so you will need to set up the logic to identify which position based on the which value is closest to the actual ADC value. Even an 8bit ADC value should be more than enough.


    Quote Originally Posted by tacbanon View Post
    ANEMOMETER - don't really know how to on this one.
    COUNT would work well here. (COUNT PORTB.2, 1000, WindSpeed). Multiply pulses by 1.492 for MPH or 2.4 for KM/H. However, the problem with this is that you may miss the Rain Gauge pulse while the COUNT command is busy for the 1000 milliseconds. Again, it depends on how long the pulse is from the Rain Gauge, and if you are using an interrupt to catch the pulses.

    There are a number of different ways this can be done and you would have to modify the multipliers to integer values. Hope this helps get you started.

  3. #3
    Join Date
    Sep 2009
    Posts
    737


    Did you find this post helpful? Yes | No

    Default Re: Need guide to start working on weather meters

    Just use TMR1 for counting impulses from anemometer....

  4. #4
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223


    Did you find this post helpful? Yes | No

    Default Re: Need guide to start working on weather meters

    Thanks SteveB and pedja089 for your kind response and advice I will try to work on it....

    Regards,
    tacbanon

Similar Threads

  1. Microchip Tips ‘N Tricks Guide
    By Heckler in forum Documentation
    Replies: 1
    Last Post: - 6th January 2015, 06:24
  2. Replies: 3
    Last Post: - 11th June 2012, 16:47
  3. Replies: 1
    Last Post: - 27th June 2009, 00:33
  4. pic to 10/100Base-T network dummy guide
    By ZOOM in forum Off Topic
    Replies: 1
    Last Post: - 21st October 2007, 19:41
  5. Windows XP API guide
    By mister_e in forum Off Topic
    Replies: 2
    Last Post: - 9th July 2006, 20:55

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts