Since I felt left behind by Stan et al, I decided it was time (litterally) to look at checking wind direction, wind speed was already mentioned..
I have tried my hand at this device, totally home brewed with the help of a friend who can do turning and milling (am i lucky ?).
Basic idea:
1. Use 4 digital input pins on the 40x1, pins kept low by usual 10K's to 0V
2. Have "high" +- 4.5V signals come in via micro switches.
3. Micro switches operated by a 5/8th round cam (3/8th's = straight face)
4. Have 4 switches but be able to indicate 8 wind directions (good enough resolution for this application).
5. Read the binary value on the 4 pins to know wind direction.
With this device, either 3 switches at a time, or 2 switches at a time will be "closed" to put a high signal on the corresponding pin. With 3 switches closed, the Picaxe can assume wind is comming from a compass direction corresponding to the "open" or "low" switch, either N/E/S/W. With 2 switches closed, the wind is comming from somewhere between the two "low" or "open" switches.
Attached are two pics to demonstrate. The first pic is of the top side with the bearing which will carry the vane on a 10mm threaded rod. The bearing centre (shaft diameter) is 30mm. The bearing is +- 60mm diam.
The second pic is the business end with the cam and 4 micro switches. The position of the "flat" on the cam in the pic will indicate the wind is comming FROM between those compass direction switches.
As always, comments/suggestions/improvements are by now almost mandatory ? Thanks for input.
Manie
I have tried my hand at this device, totally home brewed with the help of a friend who can do turning and milling (am i lucky ?).
Basic idea:
1. Use 4 digital input pins on the 40x1, pins kept low by usual 10K's to 0V
2. Have "high" +- 4.5V signals come in via micro switches.
3. Micro switches operated by a 5/8th round cam (3/8th's = straight face)
4. Have 4 switches but be able to indicate 8 wind directions (good enough resolution for this application).
5. Read the binary value on the 4 pins to know wind direction.
With this device, either 3 switches at a time, or 2 switches at a time will be "closed" to put a high signal on the corresponding pin. With 3 switches closed, the Picaxe can assume wind is comming from a compass direction corresponding to the "open" or "low" switch, either N/E/S/W. With 2 switches closed, the wind is comming from somewhere between the two "low" or "open" switches.
Attached are two pics to demonstrate. The first pic is of the top side with the bearing which will carry the vane on a 10mm threaded rod. The bearing centre (shaft diameter) is 30mm. The bearing is +- 60mm diam.
The second pic is the business end with the cam and 4 micro switches. The position of the "flat" on the cam in the pic will indicate the wind is comming FROM between those compass direction switches.
As always, comments/suggestions/improvements are by now almost mandatory ? Thanks for input.
Manie