Project Files of JSN-SR04T Waterproof Ultrasonic Sensor Library for Proteus V1.0
jsn-sr04t-tep-v1-0-720d80b032ea4de9b1f3d96635d782c5.zip

JSN-SR04T Waterproof Ultrasonic Sensor Library for Proteus V1.0
JSN-SR04T Waterproof Ultrasonic Sensor Library for Proteus V1.0 comes as a ZIP archive of 10 files (1.2 MB, 2.7 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
This is the download page of JSN-SR04T Waterproof Ultrasonic Sensor Library for Proteus V1.0, the file package of the tutorial JSN-SR04T Waterproof Ultrasonic Sensor Library for Proteus V1.0, published on The Engineering Projects in October 2026. Here you get the ZIP file (1.2 MB) with the Proteus library files (LIB and IDX), the simulation model (DLL), a ready Proteus simulation, an Arduino sketch and the compiled HEX firmware, the list of files it contains, the README when there is one, and the installation steps in order.
What this library is
JSN-SR04T-Waterproof-Ultrasonic-Library-for-Proteus-v1.0.zip with the JSN-SR04T waterproof ultrasonic module (20 to 600 cm, modes 1, 2 and 3), Simple and Advance (TEPJSNSR04T.LIB and TEPJSNSR04T.DLL), our Arduino UNO V4.0 library with its built-in serial monitor (ArduinoV4TEP.LIB and TEPARDUINO.DLL), the two-UNO 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
- ArduinoV4TEP.LIB – Proteus library, 201.9 KB
- TEPJSNSR04T.LIB – Proteus library, 61.7 KB
- TEPARDUINO.DLL – Simulation model, 883.5 KB
- TEPJSNSR04T.DLL – Simulation model, 301.5 KB
- JSN-SR04T-Ultrasonic-ArduinoUnoV4.pdsprj – Proteus simulation, 24.1 KB
- JSNSR04T_Distance_Demo.ino – Arduino sketch, 7.5 KB
- and 4 more, all listed in the File Structure tab
The archive unpacks to 2.7 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 ArduinoV4TEP.LIB and TEPJSNSR04T.LIB into its LIBRARY folder (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY).
- Step 3: Copy TEPARDUINO.DLL and TEPJSNSR04T.DLL into the MODELS folder next to it, so the part simulates.
- Step 4: Start Proteus, press P and search for "ArduinoV4TEP"; place and wire it as in the tutorial.
- Step 5: Open JSNSR04T_Distance_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 JSNSR04T_Distance_Demo.hex; on hardware, flash the same file.
- Step 7: Open JSN-SR04T-Ultrasonic-ArduinoUnoV4.pdsprj in Proteus and press Play.
Read the detailed guide
This page is for the files. The tutorial above 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
7.5 KB201.9 KB61.7 KB883.5 KB301.5 KB24.1 KB29 KB883.5 KB301.5 KB23.3 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in JSN-SR04T Waterproof Ultrasonic Sensor Library for Proteus V1.0. Open an image for its full size.












README
JSN-SR04T WATERPROOF ULTRASONIC SENSOR LIBRARY FOR PROTEUS - V1.0 (20 to 600 cm, modes 1, 2 and 3)
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/jsn-sr04t-waterproof-ultrasonic-sensor-library-for-proteus-v1-0.html
Report a bug or suggest a feature (our forum):
https://www.theengineeringprojects.com/forum/category/jsn-sr04t-ultrasonic-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
The built-in monitor is our TEP Serial Monitor Advance - 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
JSN-SR04T-TEP-v1.0/
|-- Proteus Library Files/
| |-- ArduinoV4TEP.LIB 201.9 KB TEP Arduino boards V4.0 (UNO), to LIBRARY
| |-- TEPJSNSR04T.LIB 61.7 KB the JSN-SR04T, to LIBRARY
|-- Proteus Model Files/
| |-- TEPARDUINO.DLL 883.5 KB the Arduino board model, to MODELS
| |-- TEPJSNSR04T.DLL 301.5 KB the JSN-SR04T model, to MODELS
|-- Proteus Simulation/
| |-- JSNSR04T_Distance_Demo.hex 29.0 KB both UNOs (demo sketch V1.0)
| |-- JSN-SR04T-Ultrasonic-ArduinoUnoV4.pdsprj 24.1 KB demo: 2 UNOs, 2 modules
| |-- TEPARDUINO.DLL 883.5 KB copy of the board model
| |-- TEPJSNSR04T.DLL 301.5 KB copy of the model
|-- Arduino Code/
| |-- JSNSR04T_Distance_Demo/JSNSR04T_Distance_Demo.ino 7.5 KB the demo sketch (source of the .hex)
|-- README.txt ~24.3 KB this file
Total: 2.65 MB (unzipped). The C++ source code of the model is not included.
WHAT IS IT?
A simulation model of the JSN-SR04T waterproof ultrasonic distance module: a
sealed probe on a cable (one transducer sends the burst and hears the echo)
and a driver board with the TRIG (RX) and ECHO (TX) pins. It is the
waterproof cousin of the HC-SR04, used for water tanks, parking sensors and
outdoor robots. Our own model, not a part that shows a number:
* The three modes of the board, set by the R27 pad (property MODE):
mode 1 (R27 open) a 10 us HIGH pulse on TRIG starts a ping; ECHO is
HIGH for the sound's round trip - like the HC-SR04
mode 2 (R27 47k) the module sends a frame on TX (ECHO) every 100 ms
mode 3 (R27 120k) the module sends a frame each time it receives 0x55
on RX (TRIG)
The frames: 9600 baud, 8N1, four bytes - 0xFF, the distance's high
byte, its low byte (in mm), and the sum of the first three (its low 8
bits). The board draws R27's value and the mode next to the pad.
* The sound: the round trip at the speed of sound for the air temperature
(property TEMP, 331.3 + 0.606 x TEMP m/s - 343.4 m/s at 20 C). In mode 1
the sketch converts ECHO's width, so it can correct for the
temperature; in modes 2 and 3 the module converts with its own fixed
343.4 m/s (the model's choice: the board's firmware is not published).
* The blind zone: the probe still rings after the burst, so it hears
nothing for the first 1.2 ms - an object closer than about 20 cm reads
about 21 cm (the datasheet's minimum is 20 to 25 cm).
* No echo (nothing in front, or beyond 600 cm): ECHO stays HIGH 36 ms in
mode 1; the frames carry 0 mm in modes 2 and 3.
* The timing: ECHO rises 0.5 ms after TRIG falls (the burst), one ping per
50 ms at most; in mode 3 the frame follows the measurement 1 ms after
the echo. The noise of each reading (property NOISE, 3 mm RMS).
* The object in front: its distance (property DISTANCE; 0 = nothing), the
panel's - / + (5 cm a click) and presets (15, 25, 50, 100, 200, 400 cm
and NONE), and three motions: SWEEP 25-400 (25 to 400 cm and back in
12 s), APPROACH (from 100 cm to 5 cm in 10 s, slower as it comes close)
and WAVES (a water surface, +- 4 cm at 0.8 Hz - press it again to stop).
* The mistakes caught and explained in the log: a TRIG pulse shorter than
10 us, pings faster than one per 50 ms, TRIG held HIGH (a serial TX line
on a mode 1 board), pings sent to a board in mode 2 or 3, a byte other
than 0x55 in mode 3, a 0x55 during a measurement, framing errors on RX.
The module is drawn at about two and a half times its real size: the black
driver board with its header (5V, TRIG/RX, ECHO/TX, GND), the MCU, the drive
transformer, the crystal, the R27 pad and the probe's socket, and the round
waterproof probe on its cable. ON the board, as TEP additions: the SIMPLE / ADVANCE badge,
the PWR, TRIG and ECHO LEDs and the panel button. The LEDs, the badge, the
button and the panels are TEP additions; the real board has none of them.
TWO DEVICES IN ONE LIBRARY (search "JSN" or "SR04T" in Pick Devices):
Simple JSNSR04TTEP "JSN-SR04T Waterproof Ultrasonic Sensor V1.0 -
Simple"
Advance JSNSR04TADVTEP (the same, "- Advance")
(pins 5V (VCC), TRIG, ECHO and GND on the header, on the left;
category Sensors > Distance)
Simple On-Sheet Panel: the STATUS panel under the module - the banner
(READS ... cm - THE OBJECT AT ... cm (IN RANGE) - the mode; the
blind zone in red, a motion or no echo in amber), DISTANCE - / +
with a ruler
(the object on 0 to 600 cm, the blind zone shaded), seven presets,
three motions, ten readouts (STATE, MODE (R27), THE OBJECT, LAST
READING, ECHO, PINGS / FRAMES, TRIG, RATE, SOUND, RANGE) and the
last 4 events. The red X closes the panel, PANEL: ON / OFF on the
board opens it.
Advance Pop-Up Panel: only the module on the schematic; at Run a TEP
pop-up window opens - the look of the TEP Serial Monitor. Tabs
Sensor, Event log and Tests; gear and ? icons for Settings and
Help; the palette icon switches the theme:
Sensor the presets on the toolbar; THE OBJECT IN FRONT
(-10 / -1 / +1 / +10 cm, SWEEP 25-400, APPROACH,
WAVES, a side view with the range and the blind
zone); WHAT THE MODULE REPORTS (the reading, the
last ECHO pulse or frame, the mode, the count); the
last ping's timing (mode 1) or the last frame byte
by byte with the bytes received on RX (modes 2, 3);
the last pings or frames, newest first
Event log power, the pings and frames, the object, notes,
warnings; filters All / Pings & frames / The object
/ Warnings, Pause, Clear
Tests Ping timing, Serial frames, Range & blind zone (THE
TEST TOOLS)
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
The OPEN PANEL button on the board opens the window again.
Both devices use one model, TEPJSNSR04T.DLL.
TEST STATUS
V1.0: verified in Proteus 8.5 on 17 Oct 2026 (the demo project as shipped:
two Arduino UNO V4.0 boards with their built-in monitors; node 1 with the
Simple module in MODE 1 and the object at 100 cm, node 2 with the Advance
module in MODE 3 and the object at 250 cm, D2 to GND). What the runs showed:
* Node 1 pings twice a second: "#1 echo 5785 us 99.3 cm" (the log says
ECHO HIGH 5.822 ms - pulseIn() reads about half a percent short). Node 2
asks with 0x55 and prints each frame: "#1 FF 09 C2 CA 2498 mm 249.8
cm".
* U2's pop-up and monitor: 100 cm - "FF 03 E8 EA 1000 mm 100.0 cm"; RAW -
"RAW: FF 03 E9 EB sum (FF + 03 + E9) & FF = EB OK - 46 frames, 0 sum
errors, 0x55 sent 46 times"; 15 cm - "FF 00 CF CE 207 mm 20.7 cm" (the
blind zone); NONE - "FF 00 00 FF 0 mm: no echo"; SWEEP 25-400 - from 71.0
to 389.9 cm and back to 25.1 cm; WAVES - 95.6 to 104.2 cm; the three tools
and the Event log.
* Node 1 with the real mouse (3 wheel steps on U1): + twice - "echo 6371 us
109.4 cm"; 15 cm - "echo 1199 us 20.6 cm" (the blind zone); 400 cm -
"echo 23173 us 397.9 cm"; NONE - "echo 35784 us no echo"; APPROACH -
down to 24.3 cm, then about 20.7 cm while the object goes on to 5 cm;
TEMP 35 - about 102 cm (2.6 % more); RAW - five ECHO widths; U1's red X
and PANEL.
* 77.5 s of simulation took 284 s - about 0.3 x real time with the pop-up
and both monitors open.
Plus automatic checks on a PC, 0 failed: 44 on the model (the three modes,
the echo timing, the frames and their sums, the blind zone, no echo, the
temperature) and 8 on the pop-up; the demo project read back from disk (72
checks: devices, pins, wires, labels; no wire through a part, no wire
crossing).
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" (TEPJSNSR04T.LIB with the two
parts, 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
(on some PCs: C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\
LIBRARY - use the folder that already holds Proteus's own .LIB files).
3. Copy TEPJSNSR04T.DLL and TEPARDUINO.DLL from "Proteus Model Files" to the
MODELS folder (...\Proteus 8 Professional\MODELS).
ArduinoV4TEP.LIB and TEPARDUINO.DLL are the files of our Arduino Library
V4.0 - if you have it, they are the same.
4. Delete TEPJSNSR04T.IDX from the LIBRARY folder if it is there (Proteus
makes a new index).
5. Start Proteus. In Pick Devices (P) search "JSN" (or "SR04T").
RUN THE DEMO
"Proteus Simulation\JSN-SR04T-Ultrasonic-ArduinoUnoV4.pdsprj" - keep the
.hex file and the two DLLs beside the project.
ARD1: Arduino UNO V4.0 + U1 = a JSN-SR04T (Simple) in MODE 1 (R27 open),
the object at 100 cm; D2 open.
ARD2: Arduino UNO V4.0 + U2 = a JSN-SR04T (Advance) in MODE 3 (R27 120k),
the object at 250 cm; D2 to GND.
Both UNOs run JSNSR04T_Distance_Demo.hex and each has its serial monitor
built in ("TEP Arduino UNO - ARD1" / "- ARD2").
1. Press Run. Both UNOs' monitor windows open (9600 baud) and so does the
pop-up of U2 (move it aside - it opens over the schematic).
2. Twice a second ARD1 pings and prints ECHO's width and the distance;
ARD2 sends 0x55 and prints the frame's four bytes and the distance.
3. Move the object on U1's STATUS panel or in U2's pop-up (DISTANCE - / +,
the presets): the next reading follows. SWEEP 25-400 and APPROACH move
it; WAVES makes it a water surface.
4. Try 15 cm: the module reads about 21 cm - the blind zone. NONE: no
echo.
5. ARD1: TEMP 35 tells the sketch the air is at 35 C (the module's air
stays at its TEMP property, 20 C) - the reading moves by 2.6 %. RAW
prints five ECHO widths. ARD2: RAW prints the next frame with its sum.
6. U1: close its panel with the red X, open it with PANEL on the board.
U2 (Advance): Sensor, Event log, and Tests - Ping timing, Serial
frames, Range & blind zone.
Closed a monitor window? Click the UNO's USB port.
WIRING (the same in Proteus and on a real board)
Module Arduino UNO
5V (VCC) 5V
TRIG / RX D9 (mode 1: TRIG; modes 2 / 3: AltSoftSerial's TX)
ECHO / TX D8 (mode 1: ECHO; modes 2 / 3: AltSoftSerial's RX)
GND GND
- D2 open = mode 1 in the demo, to GND = the serial modes
In mode 1 any two pins work (pulseIn); AltSoftSerial needs D8 (RX) and D9
(TX) on the UNO, so the demo uses them for both.
In the sketch, mode 1 (no library):
digitalWrite(9, HIGH); delayMicroseconds(20); digitalWrite(9, LOW);
unsigned long us = pulseIn(8, HIGH, 60000UL); // the round trip
float cm = us * (331.3 + 0.606 * airC) / 20000.0;
Modes 2 / 3: read four bytes at 9600 baud, accept 0xFF H L SUM when
(0xFF + H + L) & 0xFF == SUM; the distance is H x 256 + L in mm. In mode 3
send 0x55 for each reading.
The serial monitor needs no wires: it is built into the Arduino UNO V4.0.
TRIG and ECHO reach their UNO through net labels - TRIG_1 / ECHO_1 (node 1),
TRIG_2 / ECHO_2 (node 2): the same name = connected. 5V and GND are Proteus
power terminals; ARD2's D2 goes to a GND terminal.
REAL HARDWARE:
* The mode is a resistor on the R27 pad (empty = mode 1); check your board's
version - other boards (AJ-SR04M and others) use other pads and values.
* Mount the probe flat and square to the surface it measures, away from the
tank's walls; condensation on the probe changes the readings.
* Keep the object 25 cm or more away (the blind zone), and ping no faster
than every 60 ms or so: the last echoes must die away.
* The board needs 3.0 to 5.5 V; ECHO / TX is at the supply's level - at
5 V use a divider into a 3.3 V board's input.
THE TEST TOOLS (Advance, Tests tab) - what they really measure
Every tool reads the model during the running simulation; each shows one
"Good for:" line and, where it judges, a verdict per row (green = fine, amber
= check, red = wrong).
Ping timing Good for: readings of 0, readings that never change, a
sketch that pings too fast, the wrong mode. Mode 1: the
pings and their rate, the last TRIG pulse (10 us or more),
pulses too short, pulses within 50 ms of the last ping, TRIG
held HIGH (a serial TX line?), the last echo in ms and cm.
Modes 2 and 3: why there are no ECHO pulses, and how many
ping-like pulses arrived on RX.
Serial frames Good for: no frames, bad checksums, a module that does not
answer 0x55, the wrong R27. The mode, the frames sent, the
bytes on RX (0x55, other, framing errors), 0x55 while busy
(mode 3), ping-like pulses; the last frames with their
bytes, the distance and the object. Mode 1: why there are
no frames.
Range & blind zone
Good for: a reading stuck near 21 cm, no echo far away,
readings a few percent off. The object and its zone, the
temperature (the speed of sound against the module's
343.4 m/s, and how far off that makes the readings), the
blind zone; a table of distances from 10 to 700 cm with the
echo time and what the module reads.
THE DEMO SKETCH ON THE SERIAL MONITOR (JSNSR04T_Distance_Demo V1.0)
RUN the readings go on (twice a second)
STOP no more readings
RAW mode 1: five ECHO widths 60 ms apart; serial: the next frame,
its sum, and the frames / sum errors / 0x55 counts
TEMP <C> the air temperature for the speed of sound (mode 1), e.g.
TEMP 35; TEMP alone prints it
HELP the command list
Commands are not case-sensitive; type them in the UNO's built-in monitor and
press Enter.
EXPECTED MONITOR OUTPUT (the start)
TEP JSN-SR04T waterproof ultrasonic sensor - demo
MODE 1 (D2 open): TRIG D9, ECHO D8 - distance = echo x sound / 2
air 20.0 C: sound at 343.4 m/s
Commands: RUN | STOP | RAW | TEMP <C> | HELP
#1 echo 5785 us 99.3 cm
#2 echo 5807 us 99.7 cm
#3 echo 5782 us 99.3 cm
(That is node 1: mode 1, the object at 100 cm. Node 2 - D2 to GND, mode 3 -
prints instead:
SERIAL (D2 to GND): RX D8 from ECHO / TX, TX D9 to TRIG / RX, 9600 baud
frames FF, high, low, sum (mm); 0x55 when no frame comes for 150 ms
Commands: RUN | STOP | RAW | TEMP <C> | HELP
#1 FF 09 C2 CA 2498 mm 249.8 cm
The last digits move a little: the noise of each reading - property NOISE.)
PROPERTIES (double-click the part > Edit Properties)
DISTANCE the object's distance at the start in cm (default 100; 0 =
nothing in front)
MODE 1 = trigger / echo (R27 open), 2 = a frame every 100 ms (R27
47k), 3 = a frame on each 0x55 (R27 120k); default 1
TEMP the air temperature in C (default 20) - the speed of sound
NOISE the reading noise in mm RMS (default 3; 0 = none)
PANEL Simple only: the STATUS panel at the start, OPEN or CLOSED
Every run starts again from the properties, and the module from power-on.
The demo's UNOs (ARDUINO UNO V4.0): PROGRAM JSNSR04T_Distance_Demo.hex,
MONITOR YES (the built-in monitor), BAUD 9600, AUTOOPEN YES, BOOTLOADER YES.
LINKS.INI (OPTIONAL)
The Help page cards of the Advance device open web pages. To point them
somewhere else without a new DLL, put a text file named links.ini next to
TEPJSNSR04T.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
* Mode 1 prints "no ECHO pulse": no power on 5V / GND (the PWR LED is off),
TRIG / ECHO swapped, or the module is in mode 2 or 3 (look at R27 on the
board or MODE; the log warns about pings sent to a serial board).
* The serial modes print "no frame yet": TX / RX swapped, D2 not at GND (the
sketch is in mode 1), or the module is in mode 1 (R27 open).
* The reading stays at about 21 cm: the object is in the blind zone.
* "no echo" / 0 mm: nothing in front, or farther than 600 cm.
* The reading is a few % off: the air temperature (TEMP in the sketch for
mode 1; the module's own conversion in modes 2 / 3).
* Readings that repeat or are missing: pings faster than one per 50 ms are
ignored (the log and Tests > Ping timing show them).
* The parts are not simulated: TEPJSNSR04T.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.
* Advance: the pop-up does not appear - click OPEN PANEL on the board, or
turn "Open the panel at Run" on its Settings page back on.
BUG REPORTS AND FEATURE REQUESTS
Please post them in our forum with a screenshot, the Serial Monitor text, the
simulation log and (Advance) the Copy diagnostics text:
https://www.theengineeringprojects.com/forum/category/jsn-sr04t-ultrasonic-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 JSN-SR04T model (TEPJSNSR04T.DLL), the symbols and artwork 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 model
is an independent implementation written from the module's published
descriptions (the modes, the frame format, the range).
The model uses 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 demo sketch uses AltSoftSerial 1.4 by Paul Stoffregen (PJRC),
MIT License - not included: install it from the Arduino Library Manager
("AltSoftSerial") or https://github.com/PaulStoffregen/AltSoftSerial
The .hex file contains it; its licence:
Copyright (c) 2014 PJRC.COM, LLC, Paul Stoffregen, [email protected]
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* The .hex file is built from the demo sketch, AltSoftSerial 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
The demo sketch's source is in "Arduino Code", so the .hex can be rebuilt
with other versions of the core (REBUILDING THE FIRMWARE).
* 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 the
makers of the JSN-SR04T or by Labcenter.
REBUILDING THE FIRMWARE (OPTIONAL)
The HEX file is supplied; Arduino IDE is not needed to run the demo. To edit the
sketch, install AltSoftSerial (Library Manager), open
Arduino Code\JSNSR04T_Distance_Demo\JSNSR04T_Distance_Demo.ino in the Arduino
IDE, select Arduino Uno and use Sketch > Export Compiled Binary. Replace the
simulation's .hex with the exported HEX.
The sketch needs 10,542 bytes of flash and 494 bytes of RAM.
MODEL SCOPE AND LIMITS
Modelled: the three modes (R27), the trigger / echo timing, the 9600-baud
frames and their sum, the 0x55 requests, the speed of sound and the air
temperature, the blind zone, no echo and the range, the noise of each
reading, power on / off, the object's distance and its motions, the
mistakes listed above.
How the part works with the circuit: 5V and GND power the module (on or
off); TRIG / RX is a digital input, ECHO / TX a digital output; the model
puts each ECHO edge and each serial bit at its exact time.
Not modelled: the supply voltage and current, the beam's width and the
object's size, angle and material, several echoes and the tank's walls,
condensation, wind and humidity, the time the board needs to start up, the
burst's 40 kHz itself. The blind zone's 1.2 ms, ECHO's 0.5 ms delay, the
36 ms with no echo and the module's 343.4 m/s are the model's values (the
datasheets differ between board versions).
VERSION
TEP JSN-SR04T library V1.0 (Oct 2026). Devices JSNSR04TTEP / JSNSR04TADVTEP
(TEPJSNSR04T.LIB / TEPJSNSR04T.DLL). Demo sketch JSNSR04T_Distance_Demo V1.0
(AltSoftSerial for the serial modes). Demo board: ARDUINO UNO V4.0 (TEP
Arduino Library V4.0) with its built-in serial monitor.Development1 release
-
V1.0JSN-SR04T Waterproof Ultrasonic 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 jsn-sr04t-tep-v1-0-720d80b032ea4de9b1f3d96635d782c5.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (JSN-SR04T-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move ArduinoV4TEP.LIB and TEPJSNSR04T.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 TEPJSNSR04T.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 JSNSR04T_Distance_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 JSNSR04T_Distance_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open JSN-SR04T-Ultrasonic-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
JSN-SR04T Waterproof Ultrasonic Sensor Library for Proteus V1.0 explains every connection and setting in order; keep it open beside the files while you build.
FAQs9 questionsContact TEP
How do I download JSN-SR04T Waterproof Ultrasonic 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?
JSN-SR04T Waterproof Ultrasonic Sensor Library for Proteus V1.0 comes as a ZIP archive of 10 files (1.2 MB, 2.7 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, d789c43f5a88ddfbeeb8720e9ccc99be447530d7971ee1d83f84ad1f851cab96. In PowerShell run Get-FileHash "jsn-sr04t-tep-v1-0-720d80b032ea4de9b1f3d96635d782c5.zip"; on macOS or Linux run shasum -a 256 "jsn-sr04t-tep-v1-0-720d80b032ea4de9b1f3d96635d782c5.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.
- 26Total downloads
- 4%Popularity
- ProteusCategory
- 0Comments
- ssyedzainnasirUploaded by
- 16 Oct 2026Uploaded at
d789c43f5a88ddfbeeb8720e9ccc99be447530d7971ee1d83f84ad1f851cab96




















Comments
0