Project Files of Wind Vane Direction Sensor Library for Proteus Simulation
9c89215a64d347c9bdc53e4b151396a4.zip

Wind Vane Direction Sensor Library for Proteus V1.0
Wind Vane Direction Sensor Library for Proteus V1.0 comes as a ZIP archive of 10 files (1.2 MB, 2.6 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware.
- LIBProteus library
- DLLProteus model
- DSNProteus simulation
- INOArduino sketch
- HEXHEX firmware
Description
Wind-Vane-Direction-Sensor-Library-for-Proteus-v1.0.zip with the wind vane for Proteus simulation (TEPVANE.LIB and TEPVANE.DLL), our Arduino UNO V4.0, the A4 demo with its sketch and a README.
File Structure
3.4 KB201.9 KB20.7 KB883.5 KB313.5 KB883.5 KB313.5 KB18.8 KB16.5 KB14.4 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in Wind Vane Direction Sensor Library for Proteus Simulation. Open an image for its full size.












README
WIND VANE DIRECTION SENSOR LIBRARY FOR PROTEUS SIMULATION - V1.0 (eight reed switches, sixteen positions, a pop-up)
Designed by The Engineering Projects
www.TheEngineeringProjects.com
IMPORTANT LINKS
Article (read it first - pictures, step by step, every feature explained):
https://www.theengineeringprojects.com/2026/11/wind-vane-direction-sensor-library-for-proteus.html
Report a bug or suggest a feature (our forum):
https://www.theengineeringprojects.com/forum/category/motor-driver-proteus-library
The demo runs on our Arduino UNO V4.0 (included) - working LEDs, RESET and a
built-in serial monitor, no Virtual Terminal to wire - its own article:
https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
Support us (the libraries are free):
https://www.theengineeringprojects.com/donate
FILE STRUCTURE
Wind-Vane-Direction-Sensor-TEP-v1.0/
|-- Proteus Library Files/
| |-- ArduinoV4TEP.LIB 201.9 KB TEP Arduino boards V4.0 (UNO) -> LIBRARY
| |-- TEPVANE.LIB 20.7 KB the library -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPARDUINO.DLL 883.5 KB the Arduino board model -> MODELS folder
| |-- TEPVANE.DLL 313.5 KB the model -> MODELS folder
|-- Proteus Simulation/
| |-- TEPARDUINO.DLL 883.5 KB copy of the board model
| |-- TEPVANE.DLL 313.5 KB copy of the model
| |-- WindVane_Demo.hex 16.5 KB the demo firmware
| |-- Wind-Vane-Direction-Sensor-ArduinoUnoV4.pdsprj 18.8 KB the demo project
|-- Arduino Code/
| |-- WindVane_Demo/WindVane_Demo.ino 3.4 KB the demo sketch (source of the .hex)
|-- README.txt ~15.7 KB this file
Total: 2.61 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
The wind vane of the small weather stations, seen from above and drawn small and compact (our own
drawing, no maker's
mark). Under the vane sits a magnet; around it stand eight reed switches, one for every 45 degrees,
each with its own
resistor between the two wires. The magnet closes one switch, or two neighbours at once, so the two
wires show one of
sixteen resistances - one for every 22.5 degrees:
* The eight resistors: 33k N, 8.2k NE, 1k E, 2.2k SE, 3.9k S, 16k SW, 120k W, 64.9k NW. Between
two switches both
close and the two resistors are in parallel (N and NE: 6.57k = NNE).
* Read it with a pull-up resistor: 10k from 5 V to SIG gives sixteen voltages, from 0.32 V (ESE)
to 4.62 V (W).
* The wind: where it comes from (DIRECTION), how strong it is (WIND) and how it changes (PROFILE):
STEADY, VEER (it
turns RATE degrees a second, clockwise), SHIFT (it jumps 90 degrees every 2 s) or GUSTS (it
wanders to and fro).
* The vane swings like a real one: towards the wind, past it, and back - faster in a strong wind.
Under 0.5 m/s it
does not turn at all.
* On the sheet the vane TURNS, the closed reed switches light up and the plate shows the
direction. Click it at Run
for the pop-up: the compass with the wind and the vane, the table of the sixteen positions,
eight live values;
graphs, an event log and a check page.
The body is drawn as on the real part and to true scale against our Arduino.
The TEP signature and the pop-up are TEP additions.
ONE DEVICE (search "VANE" or "WIND" in Pick Devices):
WINDVANETEP "Wind Vane Direction Sensor V1.0" in TEPVANE.LIB (Transducers > Wind Direction),
prefix WV, model
TEPVANE.DLL. Two pins under the plate: GND and SIG - a resistance between them.
THE POP-UP
Click the part at Run. Tabs:
Vane chips: the wind's direction (N, E, S, W), how it changes (Steady, Veer, Shift, Gusts)
and its speed (2, 5,
12 m/s). The dial from above with the wind (blue), the vane and the closed reed
switches (yellow); the
table of the sixteen positions with their resistance and their volts, the present one
marked; eight
live values: the wind, the vane against the wind, the position, the closed switches,
the resistance, the
voltage on SIG, what a 10k pull-up gives as volts and ADC count, the last swing.
Graphs the live values over the last 2, 6 or 15 s. Live / Freeze.
Event log every change and warning; filters All / Changes / Warnings, Pause, Clear
Check what the part is doing and what to look at, each with a verdict (green = fine, amber
= check, red = wrong)
Settings theme, text size, open at Run, window size
Help report a bug, suggest a feature, article, updates, donate, forum; Copy diagnostics
for a bug report
TEST STATUS
V1.0: verified in Proteus 8.5 on 16 Nov 2026 (the demo project as shipped: an A4 sheet, an Arduino UNO V4.0).
What the runs showed (the model's own numbers and the sketch's monitor):
The demo as shipped (WindVane_Demo; WV1 DIRECTION 0, WIND 5, PROFILE VEER, RATE 45: the wind veers
clockwise from
north, 45 degrees a second; R1 10k from the 5 V rail to SIG; SIG on A0), one run (vanefinal1), the
model's pauses:
* The vane starts on N: 33.00 kohm = 3.84 V. It follows the veering wind about 3 degrees behind
it.
* 1.0 s: the wind from 45 deg (NE), the vane at 42.1 deg; position NE, the NE reed switch closed;
8.20 kohm, 2.25 V
on SIG (461 of 1023). On the sheet the vane points north-east, the NE reed switch is lit, the
plate shows NE 45,
and the UNO's LED is lit (a north wind).
* 2.0 s: E, 1.00 kohm, 0.45 V. 3.0 s: SE, 2.20 kohm, 0.90 V. 4.0 s: S, 3.90 kohm, 1.40 V.
* 5.5 s: WSW, between two switches (SW and W closed): 14.12 kohm, 2.93 V. 7.0 s: NW, 64.90 kohm,
4.33 V. 7.75 s: NNW
(NW and N closed), 21.88 kohm, 3.43 V.
* The Event log notes every new position: NNE at 333.0 ms, NE at 821.0 ms, ENE at 1.317 s, then
one every 0.5 s up
to NNW at 7.317 s; 15 changes in all.
* The monitor names all sixteen positions in turn, from N (3.84 V, 786 counts) through E (0.45 V,
93 counts) and W
(4.62 V, 945 counts) to NNW (3.44 V, 703 counts): every one right. 109 s for the 7.75 s of the
run.
A second run with a shifting wind (vaneshift1: PROFILE SHIFT, a jump of 90 degrees every 2 s): at
2.3 s, 0.3 s after
the shift to east, SWINGING: the vane at 117 deg, 27 deg past the wind, on ESE (E and SE closed),
688 ohm, 0.32 V; at
3.8 s it rests on E (1.00 kohm, 0.45 V): it swung 28 deg past the wind and settled in 1.14 s.
A third run in a calm (vanecalm1: WIND 0.3): at 2.0 s the wind has veered to 90 deg but CALM: 0.3
m/s is too weak to
turn the vane, it stays on N (33.0 kohm, 3.84 V).
INSTALLATION (about 2 minutes)
1. Close Proteus. Extract the WHOLE ZIP to a normal folder (e.g. Desktop).
2. Copy everything in "Proteus Library Files" (TEPVANE.LIB and our Arduino library V4.0,
ArduinoV4TEP.LIB, with the ARDUINO UNO V4.0 used by the demo) to the LIBRARY folder of Proteus, for
example:
C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
(use the folder that already holds Proteus's own .LIB files).
3. Copy TEPVANE.DLL and TEPARDUINO.DLL from "Proteus Model Files" to the MODELS folder (...\Proteus
8 Professional\MODELS).
4. Delete TEPVANE.IDX from the LIBRARY folder if it is there (Proteus makes a new index).
5. Start Proteus. In Pick Devices (P) search "VANE".
RUN THE DEMO
"Proteus Simulation\Wind-Vane-Direction-Sensor-ArduinoUnoV4.pdsprj" (an A4 sheet) - keep the .hex
file and the DLLs beside the project.
A wind direction display:
ARD1: Arduino UNO V4.0 running WindVane_Demo.hex, its serial monitor built in (window "TEP
Arduino UNO - ARD1").
WV1: the wind vane: the wind starts in the north and veers clockwise, 45 degrees a second -
once round the compass
in 8 s (PROFILE VEER, RATE 45), at 5 m/s. SIG to A0 (the label DIR), GND on ground.
R1: 10k, the pull-up, from the 5 V rail to SIG.
At the start the sketch works out the ADC count of each of the sixteen positions from the
eight resistors.
Twenty times a second it takes the middle one of five readings and picks the nearest
position; every new
direction is printed with its name, its degrees, the volts and the count. The UNO's LED
lights in a north
wind (NW to NE).
Closed the monitor? Click the UNO's USB port.
WIRING (the same in Proteus and on a real board)
SIG to an analog input and, through a pull-up resistor (10k), to the supply; GND to ground. The
vane has no polarity: it
is a resistance. With a 3.3 V board use 3.3 V for the pull-up; the counts stay the same shares of
full scale.
REAL HARDWARE:
* Three positions lie close together with a 10k pull-up: ESE 0.32 V, ENE 0.41 V and E 0.45 V - 9
ADC counts apart on a
5 V board. Average a few readings and use resistors of 1 %.
* While the magnet passes from one switch to the next, a real vane can show a wrong value for a
moment. Take several
readings and use the middle one, as the demo sketch does.
* Mount the vane with its N mark to true north, or add the offset in the code.
* Never average directions as plain numbers: 350 and 10 degrees give 180. Average their sines and
cosines.
* In a calm the vane points wherever the last wind left it: its reading means nothing without wind.
THE DEMO SKETCH ON THE SERIAL MONITOR (WindVane_Demo V1.0, 9600 baud)
The sketch prints every new direction. Type a command:
now print the direction now table print the sixteen positions help
EXPECTED MONITOR OUTPUT
Wind direction - The Engineering Projects
Commands: now | table | help
N 0.0 deg 3.84 V 786 counts
NNE 22.5 deg 1.98 V 406 counts
NE 45.0 deg 2.25 V 461 counts
ENE 67.5 deg 0.41 V 84 counts
E 90.0 deg 0.45 V 93 counts
...
NW 315.0 deg 4.34 V 887 counts
NNW 337.5 deg 3.44 V 703 counts
PROPERTIES (double-click the part > Edit Properties)
Direction at the start (DIRECTION) 0 - 360 degrees: 0 north, 90 east, 180 south, 270 west (0)
Wind speed (WIND) 0 - 40 m/s; under 0.5 the vane does not turn (5)
How the wind changes (PROFILE) STEADY, VEER, SHIFT or GUSTS (STEADY)
Veering rate (RATE) 1 - 180 degrees a second, clockwise, for VEER (45)
Every run starts again from the properties.
LINKS.INI (OPTIONAL)
The Help page cards of the pop-up open web pages. To point them somewhere else without a new DLL,
put a text file named links.ini next to TEPVANE.DLL with lines KEY=URL, for example:
ARTICLE=https://www.theengineeringprojects.com/...
Keys: WEBSITE, FORUM, BUG_REPORT, FEATURE_REQUEST, ARTICLE, USER_GUIDE,
UPDATE_CHECK, DONATE. Only http:// and https:// links are used; lines starting
with # are comments.
TROUBLESHOOTING
* SIG reads 0 V or floats: the pull-up resistor is missing. The vane is only a resistance.
* The direction is wrong by a fixed angle: the table in the code starts at another switch, or the
vane is not mounted
with N to the north.
* E, ENE and ESE get mixed up: their voltages lie close together. Average, use 1 % resistors, or a
larger pull-up.
* The direction jumps while the wind is steady: a strong wind makes the vane swing (the pop-up says
SWINGING). Take
the middle of several readings.
* The vane does not move: the wind is under 0.5 m/s (the pop-up says CALM).
* The part is not simulated: TEPVANE.DLL is missing from MODELS and from the project folder.
* The part is not simulated: TEPVANE.DLL is missing from MODELS and from the project folder. No UNO
/ no monitor window: TEPARDUINO.DLL is missing, or click the UNO's USB port.
BUG REPORTS AND FEATURE REQUESTS
Please post them in our forum with a screenshot, the Serial Monitor text, the
simulation log and the pop-up's Copy diagnostics text:
https://www.theengineeringprojects.com/forum/category/motor-driver-proteus-library
SUPPORT US
This library is free. If it saves you time, please support our work:
https://www.theengineeringprojects.com/donate
WEBSITE
https://www.theengineeringprojects.com/
LICENCES AND THIRD-PARTY NOTES
* The model (TEPVANE.DLL), the symbols and artwork, the other parts of ours in the demo and the
Arduino Library V4.0 (ArduinoV4TEP.LIB / TEPARDUINO.DLL, with its built-in TEP Serial Monitor
Advance) are made by The Engineering Projects. The models use only standard Windows libraries; no
Visual C++ redistributable is needed.
The C++ source code is not included.
* Arduino UNO V4.0 (ArduinoV4TEP.LIB / TEPARDUINO.DLL, our Arduino Library V4.0 - its
microcontroller is Proteus's own AVR model): The Engineering Projects,
https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
* The .hex file is built from the demo sketch and the Arduino AVR core 1.8.6, which includes
LGPL-licensed code; its source code is available at
https://github.com/arduino/ArduinoCore-avr/tree/1.8.6
* Proteus is a product of Labcenter Electronics and is not included. Arduino is a trademark of Arduino SA.
This library is not made or endorsed by Arduino or Labcenter.
REBUILDING THE FIRMWARE (OPTIONAL)
The HEX file is supplied; Arduino IDE is not needed to run the demo. To edit the sketch, open
Arduino Code\WindVane_Demo\WindVane_Demo.ino, select Arduino Uno and use Sketch > Export Compiled
Binary. Replace the simulation's .hex with the exported HEX. The sketch needs 6,002 bytes of flash
and 378 bytes of RAM.
MODEL SCOPE AND LIMITS
Modelled: the eight reed switches and their resistors, one or two closed at a time (sixteen
positions of 22.5 degrees);
the wind's direction and its change (steady, veering, shifting, gusty); the vane as a damped swing
whose speed follows
the wind, with its starting threshold. Our own figures: one free swing takes 3 m of passing wind,
damping ratio 0.35,
the threshold 0.5 m/s. Not modelled: the wrong values while the magnet is between two switches, the
bearing's friction
beyond the threshold, turbulence behind a mast or a roof.
VERSION
TEP Wind Vane library V1.0 (Nov 2026). Device WINDVANETEP (TEPVANE.LIB / TEPVANE.DLL). Demo sketch
WindVane_Demo V1.0 (no library needed). Demo board: ARDUINO UNO V4.0 (TEP Arduino Library V4.0) with
its built-in serial monitor.Development1 release
-
V1.0Wind Vane Direction Sensor Library for Proteus V1.0this page
V1.0 is the only release in the Download Center so far. When a newer version is published, it appears above with its own download page.
Installation8 steps
From the download to a working project, in order. The steps follow what the package contains.
You will need
- Proteus Design SuiteProteus 8 or newer (Labcenter), on Windows
- Arduino IDE1.8 or 2.x, with the board of the tutorial chosen under Tools → Board
- Any archive toolWindows, macOS and Linux extract ZIP files on their own
Steps
- 1
Extract the archive
Right-click 9c89215a64d347c9bdc53e4b151396a4.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (Wind-Vane-Direction-Sensor-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move ArduinoV4TEP.LIB and TEPVANE.LIB and the files into the LIBRARY folder of your Proteus installation: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY for Proteus 8, or the matching Proteus 7 folder. Older versions keep it under ProgramData\Labcenter Electronics. If Proteus is open, close it first.
- 3
Add the simulation model
Copy TEPARDUINO.DLL and TEPVANE.DLL into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.
- 4
Restart Proteus and place the component
Start Proteus, open a schematic, press P (Pick Devices) and search for the component by the name used in the tutorial. It appears with its pins ready to wire.
- 5
Open the sketch in the Arduino IDE
Open WindVane_Demo.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.
- 6
Load the HEX file
In Proteus double-click the microcontroller, set Program File to WindVane_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open Wind-Vane-Direction-Sensor-ArduinoUnoV4.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.
- 8
Follow the tutorial
Wind Vane Direction Sensor Library for Proteus Simulation explains every connection and setting in order; keep it open beside the files while you build.
FAQs9 questionsContact TEP
How do I download Wind Vane Direction Sensor Library for Proteus V1.0?
Wait for the 30-second guest countdown on this page, then press the download button; the file comes straight from our storage. Members who are logged in skip the wait. If the browser opens the file instead of saving it, use its Save as option. The download link is made for you when the countdown ends and works for 15 minutes; a saved or shared link stops working, so share this page instead.
What is inside the archive?
Wind Vane Direction Sensor Library for Proteus V1.0 comes as a ZIP archive of 10 files (1.2 MB, 2.6 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware. Open the File Structure tab for the full list of 10 files.
What should I do if the download does not start?
Check the browser's download list first; an ad blocker or a company firewall can also hold it back, so try another browser or network. If the file arrives incomplete, download it again. For an installation problem, read the Install tab or tell us in the comments with your software version and the exact error message.
Is this file free?
Yes. Every file in the TEP Download Center is free for learning, personal and student projects. If you share it, link back to this page or the tutorial so others find the latest version.
How do I check that the file arrived complete?
Compare its SHA-256 with the one on this page, 8b3b64e483298ed18337c1ac63f4f4e8e5d07bb437c450d5dba76c21943e7db5. In PowerShell run Get-FileHash "9c89215a64d347c9bdc53e4b151396a4.zip"; on macOS or Linux run shasum -a 256 "9c89215a64d347c9bdc53e4b151396a4.zip". The same value means the file is exactly the one in our storage; a different one means the download broke off, so download it again.
Do I need WinRAR to open the ZIP file?
No. Windows, macOS and Linux open ZIP archives on their own (Extract All, or double-click). WinRAR and 7-Zip work too. Extract the whole archive before using the files.
Where do I put the LIB and IDX files?
Both files go into the LIBRARY folder of your Proteus installation (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY; Proteus 7 has the same folder under its own name). Restart Proteus afterwards and search for the component with P.
Which Proteus version does the library need?
The tutorial names the Proteus version the library was made and tested with. Most TEP libraries work in Proteus 7 and Proteus 8; if the component does not appear after a restart, check that both the LIB and the IDX file were copied and that Proteus was fully closed while copying.
How do I get the HEX file into the simulation?
Compile the sketch in the Arduino IDE (Sketch → Export Compiled Binary gives you the HEX next to the sketch), then in Proteus double-click the board, set Program File to that HEX and run.
Members skip the wait. Log in or join TEP.
- 0Total downloads
- 4%Popularity
- ProteusCategory
- 0Comments
- ssyedzainnasirUploaded by
- 17 Nov 2026Uploaded at
8b3b64e483298ed18337c1ac63f4f4e8e5d07bb437c450d5dba76c21943e7db5
















Comments
0