Electronic weather vane
Binary bcd slot disk
3 Bits 8 direction | 4 Bits 16 direction |
5 Bits 32 direction | 6 Bits 64 direction |
7 Bits 128 direction | 7 Mask Bits |
Correlation table
3 Bits 8 direction q =45°
North |
0° |
101 |
NE |
45° |
100 |
East |
90° |
000 |
SE |
135° |
001 |
South |
180° |
011 |
SW |
225° |
010 |
West |
270° |
110 |
NW |
315° |
111 |
4 Bits 16 direction q = 22,5°
North |
0° |
1010 |
NE |
45° |
1001 |
NNE |
22,5° |
1011 |
SSW |
202,5° |
0111 |
East |
90° |
0000 |
SE |
135° |
0011 |
ENE |
67,5° |
1001 |
WSW |
247,5° |
0100 |
South |
180° |
0110 |
SW |
225° |
0101 |
ESE |
112,5° |
0001 |
WNW |
292,5° |
1101 |
West |
270° |
1100 |
NW |
315° |
1111 |
SSE |
157,5° |
0010 |
NNW |
337,5° |
1110 |
5 Bits 32 direction q = 11,25° (à partir de 5 bits il y a deux codes pour la position)
North |
0° |
11100 10100 |
NE |
45° |
10110 10010 |
NNE |
22,5° |
10101 10111 |
SSW |
202,5° |
01101 01111 |
East |
90° |
10000 00000 |
SE |
135° |
00010 00110 |
ENE |
67,5° |
10011 10011 |
WSW |
247,5° |
01011 01001 |
South |
180° |
00100 01100 |
SW |
225° |
01110 01010 |
ESE |
112,5° |
00001 00011 |
WNW |
292,5° |
11001 11011 |
West |
270° |
01000 11000 |
NW |
315° |
11010 11110 |
SSE |
157,5° |
00111 00101 |
NNW |
337,5° |
11111 11101 |
North |
0° |
111000 101000 |
NE |
45° |
101100 100100 |
NNE |
22,5° |
101010 101110 |
SSW |
202,5° |
011010 011110 |
East |
90° |
100000 000000 |
SE |
135° |
000100 001100 |
ENE |
67,5° |
100110 100110 |
WSW |
247,5° |
010110 010010 |
South |
180° |
001000 011000 |
SW |
225° |
011100 010100 |
ESE |
112,5° |
000010 000110 |
WNW |
292,5° |
110010 110110 |
West |
270° |
010000 110000 |
NW |
315° |
110100 111100 |
SSE |
157,5° |
001110 001010 |
NNW |
337,5° |
111110 111010 |
7 Bits 128 direction q = 2,8125°
North |
0° |
1110000 1010000 |
NE |
45° |
1011000 1001000 |
NNE |
22,5° |
1010100 1011100 |
SSW |
202,5° |
0110100 0111100 |
East |
90° |
1000000 0000000 |
SE |
135° |
0001000 0011000 |
ENE |
67,5° |
1001110 1001100 |
WSW |
247,5° |
0101100 0100100 |
South |
180° |
0010000 0110000 |
SW |
225° |
0111000 0101000 |
ESE |
112,5° |
0000100 0001100 |
WNW |
292,5° |
1100100 1101100 |
West |
270° |
0100000 1100000 |
NW |
315° |
1101000 1111000 |
SSE |
157,5° |
0011100 0010100 |
NNW |
337,5° |
1111100 1110100 |
16 Dels
Binary bcd slot disk
74LS155 or equivalent
Gas cartridge whose bottom is cut or another system
Power 5V 1A
The electronic device is based on optoelectronic coupling. The position indication is made with 16 LEDs distributed over 360 ° of the compass rose, which gives a resolution of 22.5 °.
The sensor consists of 4 infrared LEDs and 4 phototransistors and output transistor.
For the wired connection it is advisable not to exceed 50 Meter.
A Slot disc, BCD-coded disk is used in conjunction with a 74LS154 or equivalent.
The "sensor" part of the wind vane is sheltered under a hood which is a gas cartridge whose bottom has been cut.
The indicator part consists of a 5V 1A power supply of a circuit including the 74LS154 decoder and 16 LEDs arranged in a circle.
There is no adjustment the operation must be immediate.
To build disk,
First row: start by coloring two blocks, leave two spaces, coloring two blocks ….
Second row: Color 4 blocks so the beginning is under a block of the first row and the end is also under a block of the first row.
Third row: Color 8 blocks so the beginning is under 2 blocks of the second row and the end is also under 2 blocks of the second row.
Fourth row: Color 16 blocks so the beginning is under 4 blocks of the third row and the end is also under 4 blocks of the third row.
Etc. for more bits.
4 Bits 16 direction q = 22,5°
North |
0° |
1010 |
NE |
45° |
1001 |
NNE |
22,5° |
1011 |
SSW |
202,5° |
0111 |
East |
90° |
0000 |
SE |
135° |
0011 |
ENE |
67,5° |
1001 |
WSW |
247,5° |
0100 |
South |
180° |
0110 |
SW |
225° |
0101 |
ESE |
112,5° |
0001 |
WNW |
292,5° |
1101 |
West |
270° |
1100 |
NW |
315° |
1111 |
SSE |
157,5° |
0010 |
NNW |
337,5° |
1110 |