Project Files of Joystick Module Library for Proteus (KY-023 + Arduino)
joystick-module-tep-v1-0-af6e0b15b5374df68fdbe8f95d8313d6.zip

Joystick Module Library for Proteus V1.0
Joystick Module Library for Proteus V1.0 comes as a ZIP archive of 12 files (1.4 MB, 3.0 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware.
- LIBProteus library
- IDXProteus library index
- DLLProteus model
- DSNProteus simulation
- INOArduino sketch
- HEXHEX firmware
Description
Joystick Module Library for Proteus V1.0 is the download package that goes with our tutorial Joystick Module Library for Proteus (KY-023 + Arduino). On this page you can download the ZIP file (1.4 MB) and see what is inside before you save it: 12 files in 5 folders, the Proteus library files (LIB and IDX), the simulation model (DLL), a ready Proteus simulation, an Arduino sketch and the compiled HEX firmware. The tutorial explains the design; this page gets the files onto your computer and into use.
What this library is
Joystick-Module-Library-for-Proteus-v1.0.zip with Joystick Simple and Advance (TEPJOYSTICK.LIB and TEPJOYSTICK.DLL), the TEP Serial Monitor and Arduino UNO libraries for Proteus, the two-UNO joystick direction simulation with its HEX file, the demo sketch and a README.
This is version 1.0; older or newer releases, when they exist, are listed in the Development tab.
What is inside the ZIP file
- ArduinoV3TEP.LIB – Proteus library, 95.6 KB
- TEPJOYSTICK.LIB – Proteus library, 90.2 KB
- TEPSERIALMON.LIB – Proteus library, 11.1 KB
- ArduinoV3TEP.IDX – Library index, 830 B
- TEPJOYSTICK.DLL – Simulation model, 397 KB
- TEPSERIALMON.DLL – Simulation model, 978 KB
- and 6 more, all listed in the File Structure tab
The archive unpacks to 3.0 MB and carries its own README (README.txt), shown in the README tab above.
How to download
Use the download panel at the top of this page: after the counter (30 seconds for guests, 10 for members) the black button unlocks and the ZIP file comes straight from our content network. If the browser opens it instead of saving, use Save as; extract the whole archive before using anything inside it.
How to install
- Step 1: Extract the ZIP file with Windows (Extract All), 7-Zip or WinRAR, keeping its folders.
- Step 2: Close Proteus and copy ArduinoV3TEP.LIB, TEPJOYSTICK.LIB and TEPSERIALMON.LIB and ArduinoV3TEP.IDX into its LIBRARY folder (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY).
- Step 3: Copy TEPJOYSTICK.DLL and TEPSERIALMON.DLL into the MODELS folder next to it, so the part simulates.
- Step 4: Start Proteus, press P and search for "ArduinoV3TEP"; place and wire it as in the tutorial.
- Step 5: Open Joystick_Direction_Demo.ino in the Arduino IDE, pick board and port and Verify (Export Compiled Binary gives the HEX).
- Step 6: In Proteus set the controller's Program File to Joystick_Direction_Demo.hex; on hardware, flash the same file.
- Step 7: Open Joystick-Module-ArduinoUnoV3.pdsprj in Proteus and press Play.
Read the detailed guide
This page is for the files. The full tutorial, Joystick Module Library for Proteus (KY-023 + Arduino), explains the circuit and the code step by step and shows the working results and the simulation; read it before you build. Questions about the download or the installation go in the comments below; more Proteus downloads are listed further down this page.
File Structure
9.3 KB830 B95.6 KB90.2 KB11.1 KB397 KB978 KB26.5 KB18.7 KB397 KB978 KB31.5 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in Joystick Module Library for Proteus (KY-023 + Arduino). Open an image for its full size.












README
JOYSTICK MODULE LIBRARY FOR PROTEUS - V1.0
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/10/joystick-module-library-for-proteus.html
Report a bug or suggest a feature (our forum):
https://www.theengineeringprojects.com/forum/category/joystick-module-proteus-library
The demo uses our TEP Serial Monitor Advance (included) instead of Proteus's
Virtual Terminal - its own article:
https://www.theengineeringprojects.com/2026/10/serial-monitor-advance-proteus-library.html
Support us (the libraries are free):
https://www.theengineeringprojects.com/donate
FILE STRUCTURE
JOYSTICK-TEP-v1.0/
|-- Proteus Library Files/
| |-- ArduinoV3TEP.IDX 0.8 KB its index -> LIBRARY folder
| |-- ArduinoV3TEP.LIB 95.6 KB TEP Arduino UNO (demo) -> LIBRARY folder
| |-- TEPJOYSTICK.LIB 90.2 KB Joystick Simple + Advance (2 devices) -> LIBRARY folder
| |-- TEPSERIALMON.LIB 11.1 KB TEP Serial Monitor Advance -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPJOYSTICK.DLL 397.0 KB joystick model -> MODELS folder
| |-- TEPSERIALMON.DLL 978.0 KB Serial Monitor model -> MODELS folder
|-- Proteus Simulation/
| |-- Joystick_Direction_Demo.hex 18.7 KB both UNOs (demo sketch V1.0)
| |-- Joystick-Module-ArduinoUnoV3.pdsprj 26.5 KB demo: UNO 1 + Simple, UNO 2 + Advance
| |-- TEPJOYSTICK.DLL 397.0 KB copy of the model so the demo runs as is
| |-- TEPSERIALMON.DLL 978.0 KB copy of the monitor model
|-- Arduino Code/
| |-- Joystick_Direction_Demo/Joystick_Direction_Demo.ino 9.3 KB the demo sketch (source of the .hex)
|-- README.txt ~32.6 KB this file
Total: 2.96 MB (unzipped). The C++ source code of the model is not included.
WHAT IS IT?
A simulation model of the KY-023 joystick module for Proteus 8 - the black
thumb-joystick board (the PS2-style stick) with two 10 k pots and a push switch
under the stick - with its three outputs:
VRx an analog voltage for up / down: about 2.5 V at rest, 5 V pushed UP,
0 V pushed DOWN (with the pins pointing down, as the symbol is drawn);
VRy an analog voltage for left / right: 0 V LEFT, 5 V RIGHT;
SW the push switch: shorted to GND while you press the stick down. The
board has NO pull-up resistor - the sketch switches on the UNO's own
(pinMode(SW, INPUT_PULLUP)); then SW reads HIGH, and LOW while pressed.
The model is a real ANALOG part in Proteus's simulator (SPICE): each pot is a
divider from +5V to GND with VRx / VRy on its wiper, SW is a contact to GND -
your Arduino reads the node voltages exactly as on a real board (analogRead /
digitalRead / attachInterrupt). It behaves like a real cheap stick: the pots
reach 0 and 1023 before the end of the stick's travel (at about 71 %), a
released stick does not come back to 512 but to its own rest values (520 / 506
by default) with a count or two of jitter, the spring brings it back in about
0.15 s, and the tact switch BOUNCES for 0.4 - 2.6 ms at every press (several
falling edges - your sketch has to debounce). You move it: click or drag the
stick (on the board or in the panel's big top view), the 3 x 3 D-pad, PRESS /
HOLD the button, SPRING ON / OFF (the stick stays where you leave it), DRIFT ON
/ OFF (an ideal 512 / 512 stick).
The part looks like the real module: the black board in its real proportions
(about 34 x 26 mm, the header on a short edge), the silver gimbal housing with
the thumb cap - it moves with the stick and sinks with an orange ring while you
press it -, the two pots, the tact switch and the 5-pin header (GND, +5V, VRx,
VRy, SW). TEP additions on the board: a red PWR LED and an orange SW LED (the
KY-023 has no LED), the X-Y SCREEN above the board (VRx / VRy level bars, the
sketch's CENTER zone, a dot with a short trail, the direction word and both
counts), and the PANEL / OPEN PANEL button with a SIMPLE / ADVANCE badge.
TWO DEVICES IN ONE LIBRARY (search "JOYSTICK" in Pick Devices):
Joystick Simple device JOYSTICKTEP
"Joystick Module KY-023 (TEP) - Simple"
On-Sheet Panel: the JOYSTICK SCENE panel on the schematic
next to the board - the big top view of the stick (click
or drag the cap; it shows SW PRESSED), the X-Y plot with
the sketch's CENTER zone, a mini game (steer the ball onto
the coins), the readouts VRx / X ADC / VRy / Y ADC / SW /
DIR, the 3 x 3 D-pad, SW PRESS (while held) / HOLD
(latched), SPRING ON / OFF and DRIFT ON / OFF. The red X
in the panel's header closes it, the PANEL button on the
board (PANEL: SHOWN / CLOSED) opens it again.
Joystick Advance device JOYSTICKADVTEP
"Joystick Module KY-023 (TEP) - Advance"
Pop-Up Panel: only the board on the schematic; at Run a
TEP pop-up window opens - the same look as the TEP Serial
Monitor (move it by its header, resize it, minimise it).
The tabs Stick and Test sit in the header; the gear and ?
icons open Settings and Help; the palette icon switches
the theme:
Stick the top view (click to push), THE MODULE (the
word the demo sketch prints, VRx / VRy with
their ADC counts, SW, the rest values, the
log counts), every control (the D-pad, Thumb
PUSH / HOLD + Let go, SW Press / Hold, Spring,
Drift, Bounce, the rest values -/+, two push
sliders), a live VRx / VRy chart of the last
10 s (min / max per 20 ms, the CENTER band, SW
LOW shaded) and the EVENT LOG (every press
with its bounce edges, every change of the
sketch's word)
Test four tools measured on the running circuit:
Axis sweep, Centre return, SW press timing,
D-pad map (see THE TEST TOOLS below)
Settings theme (TEP Dark / Light), text size, open at
Run, window size - remembered for your
Windows user
Help Help & Support like the TEP Serial Monitor:
report a bug, suggest a feature, article,
user guide, updates, donate, website, forum;
Copy diagnostics (the stick, the log, the
test results) for a bug report
The OPEN PANEL button on the board opens the window again
after you close it.
Both devices use the same model (TEPJOYSTICK.DLL) and the same properties.
WHAT IS IN V1.0
* Two devices: Joystick Simple (the scene panel on the sheet, close / open) and
Joystick Advance (pop-up window with the stick, four test tools, settings and
help) - see above.
* Board: the real module's shape drawn clean and bold, the thumb cap that moves
and sinks, the X-Y screen, PWR / SW LEDs, a PANEL / OPEN PANEL button and a
SIMPLE / ADVANCE badge (the LEDs and the screen are TEP additions).
* The model: two 10 k pots (the pots reach the rails at about 71 % of the
travel, as a real KY-023), a 60 ms move to every new position, the spring's
return in about 0.15 s, the centre drift (rest values 520 / 506, +-1 count of
jitter every 0.2 s), the switch as a contact to GND with its bounce - every
value a pure function of the simulation time, so SPICE always sees the same
circuit. VRx / VRy follow every simulation step (a spring return glides
through all the values in between) and SW switches at the next step after
a click.
* The panels show what your sketch reads: the ADC counts are the UNO's
conversion as Proteus does it (1024 x V / 5 V, rounded to the nearest count)
and the direction word is the demo sketch's rule (CENTER zone 300 - 700) - the
panel and the sketch print the same numbers.
* The spring moves the stick on its own: the push sliders keep the push you
set (their BASE, shown as "(base)" in the pop-up), an amber mark shows where
the spring has taken the stick now ("SPRING now X +0 %, Y +0 %").
* An event log (every press with its bounce edges and every change of the
sketch's word, with the time and the counts) and a 10 s VRx / VRy history.
* Four test tools (Advance, Test page) - every number measured at the VRx, VRy
and SW pins of the running circuit.
* The demo: ONE project with two UNOs - UNO 1 with Joystick Simple, UNO 2 with
Joystick Advance - each with the TEP Serial Monitor Advance (U3 = UNO 1, U4 =
UNO 2, quick buttons) and an LED that lights while the stick is pressed.
* The demo sketch prints the lines it always printed ("X: 520 Y: 506
Button: released Direction: CENTER" four times a second, "Press 1 - the pin
fell 2 times (contact bounce)") and adds the commands HELP, STATUS, READ,
EVERY ms, PRESSES, LIMITS lo hi, CAL / CAL OFF and DEBOUNCE ms.
* The sheet is redrawn only where something changed (the stick, the screen,
the plot, the game, the readouts, the buttons - each on its own) and animates
at 10 frames a second; the Advance window repaints at most 5 times a second
(at once after a click in it). The demo (two UNOs, two monitors, the
Advance window open) ran at about 0.4 x real time in Proteus 8.5.
* The C++ source code is not included (and neither is the Arduino AVR core
archive - its GitHub link is below).
TEST STATUS
V1.0: verified in Proteus 8.5 on 9 Oct 2026 - the demo project as shipped, both
UNOs, the Serial Monitors and the Advance window. What the run showed:
* The project loads and starts cleanly; U3 / U4 printed the start lines, then
"X: 520 Y: 506 Button: released Direction: CENTER" four times a
second (a count up or down: the drift).
* The pop-up: UP-RIGHT gave X 1023 / Y 1013 "UP-RIGHT" and the spring brought
it back to CENTER; DOWN-LEFT gave 14 / 0; PRESS gave "Press 1 - the pin
fell 4 times (contact bounce)"; the event log showed the bounce (7 edges in
2.27 ms, 3 edges in 0.58 ms); the sliders' "(base)" and "SPRING now X +0 %,
Y +0 %" worked; Thumb HOLD kept UP-RIGHT.
* Axis sweep: centre 519 / 506, 7.16 / 7.16 counts per %, linearity 1.0
count, cross-talk 2 (the jitter), CENTER zone -30.9 .. +25.2 % (VRx) /
-28.8 .. +27.2 % (VRy), full scale +70.2 / -72.6 %.
* Centre return (5 releases): back to CENTER after 97 ms on average, settled
within 144 ms, rest 520.1 / 506.1, a dead zone of +-20 is safe.
* SW press timing (100 / 300 / 1000 ms): LOW 0.0000 V, HIGH 4.995 V, worst
bounce 2.08 ms, 11 falling edges against 3 debounced presses.
* D-pad map: 9 of 9; the word left CENTER at UP 25.2 %, DOWN 30.9 %, RIGHT
27.2 %, LEFT 29.0 %, the diagonals 38.5 .. 43.5 %.
* The sheet: "STICK MOVED - VRx / VRy FOLLOW IT FROM 0 V TO 5 V", HOLD showed
"BUTTON PRESSED - SW IS SHORTED TO GND (READS LOW)" with the orange ring on
the cap; no outline left around a button after UP-RIGHT, HOLD or SPRING
OFF; captions readable; the red X and PANEL worked.
* Speed: about 0.4 x real time (21.5 s simulated in 51.2 s) with the Advance
window open on its Test page, U1 animating and both monitors running.
One fix after that run: the SW press timing page's two zoom charts now draw
every edge of press 1 (Proteus takes many timepoints round each bounce and
the zoom kept only its first 48 samples, so it showed one rise); the tool's
numbers and everything else are unchanged (PC-tested).
5752 automatic checks on a PC, 0 failed:
111 on the model (the first build's checks - the pots, the spring, the
drift, the D-pad words, the switch -, changed on purpose where V1.0 differs;
the release: the UNO's rounding ADC, the contact bounce, the tools' moves, the
scene saved and put back, the four tools on an ideal circuit);
333 on the complete Proteus model in a small SPICE (the first build's checks
plus both devices, the board's live parts, the event log and the history,
ASCII-only sheet text, the captions clear of the buttons, no outline of the
start-up selection left around a button, the pop-up's commands, links,
diagnostics and repaint pace, the four tools measured at the nodes; the
outputs following a spring return with no SPICE breakpoint; the sheet drawn
in parts proved equal to whole redraws);
28 with the real demo sketch on TWO UNOs against the complete model (every
line of the first build, the panel showing the sketch's numbers, all nine
D-pad words, a press with its bounce counted by INT0, every command, the
tools while the sketch reads, every line at most 80 characters);
5280 on the rendered boards and pop-up windows (every page fits in TEP Dark
and Light, at Large text and 150 % DPI; no table cell cut; no empty band over
12 % on a Test page; every tool's hint lines fit; every header state fits; no
numbers on a tool page before its first run; the SW zooms draw every edge the
table counts, also with Proteus-like dense timepoints). The library generator also
checks every text of the symbols against the parts around it (4462 checks,
under both ways Proteus may place a text, with its boxes grown by 8 thou), and
the demo project is read back from disk and checked as Proteus loads it (222
checks).
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" (TEPJOYSTICK.LIB with both
devices, TEPSERIALMON.LIB and the TEP Arduino UNO V3 library ArduinoV3TEP.LIB
/ .IDX used by the demo) to the LIBRARY folder of Proteus, for example:
C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
(on some PCs: C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\
LIBRARY - use the folder that already holds Proteus's own .LIB files).
3. Copy TEPJOYSTICK.DLL and TEPSERIALMON.DLL from "Proteus Model Files" to the
MODELS folder (...\Proteus 8 Professional\MODELS).
4. If a TEPJOYSTICK.IDX is in the LIBRARY folder, delete it.
5. Start Proteus. In Pick Devices (P) search "JOYSTICK": you get the Simple and
the Advance device (category Sensors > Joysticks).
RUN THE DEMO
"Proteus Simulation\Joystick-Module-ArduinoUnoV3.pdsprj" - keep the .hex file
and the two DLLs beside the project.
UNO 1 (ARD1): Joystick Simple (U1), Serial Monitor U3.
UNO 2 (ARD2): Joystick Advance (U2), Serial Monitor U4.
Both run Joystick_Direction_Demo.hex. A green LED (D1 / D2) with 220 ohm on
A3 of each UNO lights while the stick is pressed (the UNO's LED on D13 too).
1. Press Run. Both monitor windows open (9600 baud) and so does U2's pop-up.
U3 shows "Joystick Direction Demo - The Engineering Projects", "Move the
stick (click / drag it in the Proteus panel) and press it.", "Joystick
Module Library for Proteus - type HELP for the commands", then "X: 520
Y: 506 Button: released Direction: CENTER" four times a second (a
count up or down: the drift); U4 the same. The PWR LEDs are lit.
2. U1: click the D-pad - UP ("X: 1023 Y: 506 ... Direction: UP" while you
hold the button, then the spring brings it back), UP-RIGHT ("X: 1023 Y:
1013": a round gate - the diagonal does not reach the corner), drag the cap
in the big top view or on the board, PRESS ("Press 1 - the pin fell 2
times (contact bounce)", the LEDs light), HOLD, SPRING OFF (the stick
stays where you leave it - the mini game's ball keeps rolling), DRIFT OFF
(512 / 512). Close the panel with its red X and open it with PANEL on the
board.
3. U3 / U4 quick buttons: U3 STATUS, PRESSES (the debounced presses and every
falling edge INT0 counted), DEBOUNCE 0 (now every bounce is a press - press
the stick), DEBOUNCE 50; U4 STATUS, READ, EVERY 1000, CAL (the centre =
where the stick rests now). Type HELP.
4. U2 (Advance): Stick page - every control, the live chart, the event log.
Test page: run the four tools (see THE TEST TOOLS) while the sketch keeps
reading - U4 shows how your sketch sees the same moves and presses.
5. Close U2's window and open it again with OPEN PANEL on the board.
Closed a monitor window? Click OPEN MONITOR on the monitor part.
WIRING (the demo)
Joystick GND -> GND, +5V -> 5 V supply, VRy -> the UNO's A0, VRx -> the UNO's
A1, SW -> the UNO's D2 (INT0) with the UNO's INPUT_PULLUP.
(In the demo VRx goes to A1 and VRy to A0: the joystick sits left of the UNO,
its pins run GND +5V VRx VRy SW and A0 is above A1 on the UNO's edge - so the
wires do not cross. Many tutorials use VRx -> A0 and VRy -> A1; any analog pins
work, change PIN_X / PIN_Y in the sketch.)
The LED + 220 ohm from A3 to GND on both UNOs (and the UNO's LED on D13).
Serial Monitor RXD <- Arduino D1 (TX), Serial Monitor TXD -> Arduino D0 (RX),
Serial Monitor GND -> ground. RXD2 is not needed: the joystick has no serial
line to watch.
Pin order in Proteus: GND +5V VRx VRy SW (as the KY-023's header).
REAL HARDWARE:
* Supply 3.3 - 5 V; VRx / VRy follow VCC (ratiometric). With 3.3 V on the
module and a 5 V UNO the centre reads about 338, not 512.
* Which way is which depends on how you hold it: with the pins pointing DOWN
(as the symbol), UP = VRx 1023 and RIGHT = VRy 1023. Many tutorials hold it
with the pins to the left - then VRx is left / right.
* A real stick rests a few counts off 512 (often 490 - 530) and jitters: use a
dead zone (the demo's CENTER zone 300 - 700) or calibrate the centre (CAL).
* The pots reach 0 / 1023 well before the end of the travel, and a diagonal
push gives about 0.7 of the full travel on each axis (a round gate).
* The KY-023 has no pull-up on SW (some boards have an empty place for one):
without INPUT_PULLUP (or a 10 k to +5V) SW floats.
* The tact switch bounces: one press can make several edges - debounce (the
demo uses 50 ms) or count a press only after the level stayed.
THE SCENE (Simple panel / Advance Stick page)
THE STICK click / drag the cap (the board's or the big view's): a full
push at the gate; release = the spring takes it back
D-PAD the 8 directions at full push + CENTER; the stick stays
while you hold the button and 0.5 s after it, then the
spring brings it back (SPRING ON; OFF: it stays)
SW PRESS = pressed while you hold the mouse button (the pop-up:
a 0.3 s press); HOLD = latched pressed until HOLD again
SPRING ON: back to the centre on release; OFF: the stick stays
DRIFT ON: the rest values 520 / 506 (properties XCENTRE / YCENTRE;
the pop-up's Rest -/+) with +-1 count of jitter; OFF: an ideal
512 / 512 stick
BOUNCE (pop-up, property BOUNCE) ON: the contact bounces 0.4 - 2.6 ms
at a press like a real tact switch; OFF: clean edges
PUSH X / Y (pop-up) two sliders -100 .. +100 % of the travel; with the
thumb on PUSH the spring takes the stick back after 0.5 s
(the slider keeps your push as its "(base)", an amber mark
shows the stick now), on HOLD it stays until Let go
The pots: VRx = VCC x (rest + 0.7 x v), VRy = VCC x (rest + 0.7 x u), clipped to
0 .. VCC, u / v = the stick's push -1 .. +1 (a round gate: u^2 + v^2 <= 1).
THE TEST TOOLS (Joystick Advance, Test tab) - what they really measure
Every tool runs on the live model: it takes the stick over (and puts the scene
back when it ends) and measures the VRx, VRy and SW node voltages of the
running circuit at every simulation timepoint - so every number is what the
circuit really did, measured with the simulation clock. The only model values a
tool uses are the pushes IT sets. Each tool shows one "Good for:" line and one
line on how it measures.
Axis sweep Good for: checking an axis - its centre, counts per % of
travel, where it saturates and the sketch's CENTER zone.
Waits for a flat reading at -100 %, then 21 pushes -100 ..
+100 % in 10 % steps, each 0.15 s to settle + 0.25 s
measuring: the mean voltage, the ADC count, the word the
sketch prints; VRx, VRy or both. On the PC (DRIFT ON): VRx
centre 520, 7.17 counts per %, linearity within 0.7 counts,
CENTER zone -30.8 .. +25.1 % of the travel, 1023 / 0 from
+70.1 / -72.6 %; VRy centre 505 - 506, zone -28.9 .. +27.2 %.
Centre return Good for: choosing a dead zone - where a released stick
really rests, how much it jitters and how fast it is back.
Pushes (0.6 s) and lets go with the spring on, 3, 5 or 8
times from UP, RIGHT, DOWN, LEFT and the diagonals, keeping
every reading for 1.2 s: the time back to CENTER, the time
to settle within 2 counts, the rest (the mean of the last
0.4 s), the jitter. On the PC (3 releases): back to CENTER
after 98 ms, settled within 145 ms, rest 519.7 / 506.0,
8 counts from 512 at worst, jitter 2 - a dead zone of +-20
around 512 is safe (5 releases: +-21).
SW press timing Good for: debouncing the button - how many edges a press
really makes and what a 50 ms debounce counts. Checks the
pull-up first (stops with "the sketch needs pinMode(SW,
INPUT_PULLUP)" when SW floats), then presses of set lengths
(3: 100 / 300 / 1000 ms; 5: 30 / 60 / 150 / 400 / 1000 ms),
0.45 s apart: the LOW / HIGH levels, every edge at the pin
(two zooms of the first press with every edge, and the
whole run), the bounce, the falling edges a sketch without
debounce counts and what a 50 ms debounce counts. On the PC
(5 presses): LOW 0.0001 V, HIGH 4.998 V, bounce up to 2.1 -
2.5 ms, 17 - 20 falling edges, the 50 ms debounce counts 4
(the 30 ms tap is lost). With the demo sketch running, its
INT0 counts the same falling edges.
D-pad map Good for: checking your direction table - the word the
sketch prints at every D-pad position and where it trips.
The 9 positions at full push (0.2 s to settle + 0.25 s
measuring), then (D-pad + trip points) 2 s ramps from the
centre in the 8 directions: the push at which the word
leaves CENTER, measured. On the PC: 9 of 9 positions read as
their direction (UP-RIGHT 1023 / 1013, DOWN-LEFT 14 / 0); the
word leaves CENTER at UP 25.1 %, RIGHT 27.2 %, DOWN 30.9 %,
LEFT 28.9 % of the travel (the drift moves the zone), the
diagonals at 35.5 - 40.7 %.
The tools refuse to start, with the reason, when the joystick has no power
or another test runs. While a tool runs it owns the stick (the panel's
buttons wait); Stop ends it and puts the scene back.
THE DEMO SKETCH ON THE SERIAL MONITOR (Joystick_Direction_Demo)
HELP the command list
STATUS the reading interval, the CENTER zone, the debounce, CAL, the
last reading, the presses and readi
…Development1 release
-
V1.0Joystick Module 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 joystick-module-tep-v1-0-af6e0b15b5374df68fdbe8f95d8313d6.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (JOYSTICK-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move ArduinoV3TEP.LIB, TEPJOYSTICK.LIB and TEPSERIALMON.LIB and ArduinoV3TEP.IDX 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 TEPJOYSTICK.DLL and TEPSERIALMON.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 Joystick_Direction_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 Joystick_Direction_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open Joystick-Module-ArduinoUnoV3.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
Joystick Module Library for Proteus (KY-023 + Arduino) explains every connection and setting in order; keep it open beside the files while you build.
FAQs9 questionsContact TEP
How do I download Joystick Module 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?
Joystick Module Library for Proteus V1.0 comes as a ZIP archive of 12 files (1.4 MB, 3.0 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 12 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, 10ad051bd92a3f26386425c13525b58dd7ace21b95021aecbc0844d8c717d9a8. In PowerShell run Get-FileHash "joystick-module-tep-v1-0-af6e0b15b5374df68fdbe8f95d8313d6.zip"; on macOS or Linux run shasum -a 256 "joystick-module-tep-v1-0-af6e0b15b5374df68fdbe8f95d8313d6.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.
- 20Total downloads
- 4%Popularity
- ProteusCategory
- 0Comments
- ssyedzainnasirUploaded by
- 10 Oct 2026Uploaded at
10ad051bd92a3f26386425c13525b58dd7ace21b95021aecbc0844d8c717d9a8
















Comments
0