If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.
Special Thanks To:
Aaron Holmes
Aaron Wheeler
Adam Horden
Alan Scrimgeour
Andre
Andrew Haynes
Anonymous000
asabase
Austin Weil
barney
Barry
Bert Hickman
Bill Kukowski
Blitzorn
Brandon Paradelas
Bruce Bowling
BubeeMike
Byong Park
Cesiumsponge
Chris F.
Chris Hooper
Corey Worthington
Derek Woodroffe
Dalus
Dan Strother
Daniel Davis
Daniel Uhrenholt
datasheetarchive
Dave Billington
Dave Marshall
David F.
Dennis Rogers
drelectrix
Dr. John Gudenas
Dr. Spark
E.TexasTesla
eastvoltresearch
Eirik Taylor
Erik Dyakov
Erlend^SE
Finn Hammer
Firebug24k
GalliumMan
Gary Peterson
George Slade
GhostNull
Gordon Mcknight
Graham Armitage
Grant
GreySoul
Henry H
IamSmooth
In memory of Leo Powning
Jacob Cash
James Howells
James Pawson
Jeff Greenfield
Jeff Thomas
Jesse Frost
Jim Mitchell
jlr134
Joe Mastroianni
John Forcina
John Oberg
John Willcutt
Jon Newcomb
klugesmith
Leslie Wright
Lutz Hoffman
Mads Barnkob
Martin King
Mats Karlsson
Matt Gibson
Matthew Guidry
mbd
Michael D'Angelo
Mikkel
mileswaldron
mister_rf
Neil Foster
Nick de Smith
Nick Soroka
nicklenorp
Nik
Norman Stanley
Patrick Coleman
Paul Brodie
Paul Jordan
Paul Montgomery
Ped
Peter Krogen
Peter Terren
PhilGood
Richard Feldman
Robert Bush
Royce Bailey
Scott Fusare
Scott Newman
smiffy
Stella
Steven Busic
Steve Conner
Steve Jones
Steve Ward
Sulaiman
Thomas Coyle
Thomas A. Wallace
Thomas W
Timo
Torch
Ulf Jonsson
vasil
Vaxian
vladi mazzilli
wastehl
Weston
William Kim
William N.
William Stehl
Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Registered Member #14
Joined: Thu Feb 02 2006, 01:04PM
Location: Prato/italy
Posts: 383
I'm tring to understand how wind dyrection sensor works. Most of commercial ones seems to be relative sensor (must be turned on pointing to north. I was thinking to use hall effect sensors but the wires on the shaft would not allow rotation of the shaft itself. Using magnets of the shaft will give problems because of interaction with earth magnetic field, the only possibility is to use an optical sensor counting the pulses per each rotation but this would not discriminate between clockwise and anticlockwise rotation. Any solutions?
Registered Member #1565
Joined: Wed Jun 25 2008, 09:08PM
Location: Norway
Posts: 159
Maybe you should use 2 sensors like in computer mice (the old kind).
They use 2 sensors 90 degrees out of phase and can detect direction based on the relative time of each sensor changing level, you may even extract some >100 pulses turn sensors from printers or less pulses/turn from computer mice.
Registered Member #162
Joined: Mon Feb 13 2006, 10:25AM
Location: United Kingdom
Posts: 3141
The problem with quadrature/mouse-type encoding is that it's incremental only, you will also need an optical angular reference, not really a problem but if the vane rotates faster than the encoder can maintain accuracy (no missed pulses etc.) then a recal. is required. A 'Gray code' or similar encoder gives absolute position, but due to cost are only 'hobby-friendly' if found surplus or scrap.
Since I doubt that your weather vane is in an 'ideal' location then buildings, trees, hills etc. mean that you don't need a precision sensor, N NNE NE ENE E etc. is 16 positions, 2^4, 4 bits. For Gray coding that would mean 5 sensors and 5 concentric rings Gray coded on the vane, or just one magnet on the vane and 16 Hall switches. I'm sure there are cleverer/simpler methods, Interesting what members may come up wit?
I guess there must be an optimum number of sensors and magnets for cheapness and ease of construction - i.e. less is more! Also the encoding could be 'display-friendly' Assuming that you're going to build a remote display you can go from the 'simplest' - one magnet, one sensor per 'direction' and wire to remote led- basic (multicore cable) - precision sensor/processor each end etc. - minimum cable cost (complex)
Registered Member #14
Joined: Thu Feb 02 2006, 01:04PM
Location: Prato/italy
Posts: 383
i was thinking to use two optical sensors and two 180° out of phase hole patterns (the quadrature one), kinda relative sensor an a small pic12 microcontroller transmitting via usart the bits the problem is resolution, for 20 sectors the resolutions is a measly 16° that may be good for the NW NE SW etc thing, but not for precision things. The two hole patterns out of phase allow determination of the dyrection of the step (for eg if sensor 1 goes high before sensor 2 it is CW else it is CCW). Another way i was thinking is to use 2 hall switches 90° relative one to the other and two magnets on the rotor to form a N-S parallel-lines field, two adcs (microcontroller on board ones) and using a ATAN lookup table with interpolation between points. THis sistem has a problem: the magnets will with earth magnetic field like a compass.
Registered Member #72
Joined: Thu Feb 09 2006, 08:29AM
Location: UK St. Albans
Posts: 1659
A lot depends on the power you have available, must it run from batteries, or have you got a watt or two to burn?
Another "no moving part" way to do it uses a circle of thermistors. Either self-heated, or with a heated resistor in the middle. The temperature change due to wind direction is quite small, but you will always be sensing differentially, which helps. Not for batteries.
If you want to sense the angular poisition of a rotating shaft, then there's all sorts of physics available to help you.
A magnet on the shaft, with crossed Hall sensors for quadrature, but there's a slight torque with the earth's field, and needs ADCs.
You can mount almost anything off-centre on the shaft and detect its position. If it's ferromagnetic, or conducting, then an inductance measurement using several sensors in a circle will do it. You can measure inductance with change of frequency of an oscillator.
With LEDs and a photo detector, you can detect the position of a 45 degree mirror on the bottom of the shaft, or the difference between black and white paint on a cotton-reel.
My favourite, because it can be made to use very low power, has an output that is compatible with a microcontroller or PC sound card for readout, uses a off-centre earthed conductive rotor. Several isolated electrodes surround it, and each is multiplexed in turn by a CMOS 4051 multiplexer to the tuning C of an oscillator, say a simple schmidt relaxation oscillator. The change in capacitance changes the frequency.
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.