TEP DOWNLOAD CENTER

Project Files of ADXL345 Accelerometer Library for Proteus V1.0: GY-291, Tap, Free Fall

Libraries Code Projects Simulation
tep://download-terminal adxl345-accelerometer-tep-v1-0-c256900fa9324aaeb4594c729015b3fb.zip ZIP archiveV1.0Verified23 downloadsFree
ADXL345 Accelerometer Library for Proteus V1.0: the GY-291 module with its STATUS panel and the Advance pop-up
Proteus library · File 1 of 1

ADXL345 Accelerometer Library for Proteus V1.0: GY-291, Tap, Free Fall

ADXL345 Accelerometer Library for Proteus V1.0: GY-291, Tap, Free Fall comes as a ZIP archive of 10 files (1.3 MB, 2.8 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

ADXL345 Accelerometer Library for Proteus V1.0: GY-291, Tap, Free Fall is the download package that goes with our tutorial ADXL345 Accelerometer Library for Proteus V1.0: GY-291, Tap, Free Fall. On this page you can download the ZIP file (1.3 MB) and see what is inside before you save it: 10 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

ADXL345-Accelerometer-Library-for-Proteus-v1.0.zip with the ADXL345 GY-291 accelerometer module, Simple and Advance (TEPADXL345.LIB and TEPADXL345.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
  • TEPADXL345.LIB – Proteus library, 64.7 KB
  • TEPADXL345.DLL – Simulation model, 348 KB
  • TEPARDUINO.DLL – Simulation model, 883.5 KB
  • ADXL345-Accelerometer-ArduinoUnoV4.pdsprj – Proteus simulation, 24 KB
  • ADXL345_Demo.ino – Arduino sketch, 7.6 KB
  • and 4 more, all listed in the File Structure tab

The archive unpacks to 2.8 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 TEPADXL345.LIB into its LIBRARY folder (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY).
  • Step 3: Copy TEPADXL345.DLL and TEPARDUINO.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 ADXL345_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 ADXL345_Demo.hex; on hardware, flash the same file.
  • Step 7: Open ADXL345-Accelerometer-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.

Read ADXL345 Accelerometer Library for Proteus V1.0: GY-291, Tap, Free Fall

File Structure

adxl345-accelerometer-tep-v1-0-c256900fa9324aaeb4594c729015b3fb.zip10 files · 5 folders · 2.8 MB unpacked
ADXL345-Accelerometer-TEP-v1.0/10 files · 2.8 MB
Arduino Code/1 file · 7.6 KB
ADXL345_Demo/1 file · 7.6 KB
INO ADXL345_Demo.inoArduino sketch 7.6 KB
Proteus Library Files/2 files · 266.6 KB
LIB ArduinoV4TEP.LIBProteus library 201.9 KB
LIB TEPADXL345.LIBProteus library 64.7 KB
Proteus Model Files/2 files · 1.2 MB
DLL TEPADXL345.DLLSimulation model 348 KB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
Proteus Simulation/4 files · 1.3 MB
DSN ADXL345-Accelerometer-ArduinoUnoV4.pdsprjProteus simulation 24 KB
HEX ADXL345_Demo.hexCompiled HEX file 40.2 KB
DLL TEPADXL345.DLLSimulation model 348 KB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
TXT README.txtText file 37.3 KB

README

README.txt 402 lines
ADXL345 ACCELEROMETER LIBRARY FOR PROTEUS - V1.0 (the ADXL345 3-axis accelerometer on its GY-291 module)
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/adxl345-accelerometer-library-for-proteus-v1-0.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum/category/adxl345-accelerometer-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
ADXL345-Accelerometer-TEP-v1.0/
|-- Proteus Library Files/
|   |-- ArduinoV4TEP.LIB                              201.9 KB   TEP Arduino boards V4.0 (UNO), to LIBRARY
|   |-- TEPADXL345.LIB                                 64.7 KB   the ADXL345 GY-291 module, to LIBRARY
|-- Proteus Model Files/
|   |-- TEPADXL345.DLL                                348.0 KB   the ADXL345 model, to MODELS
|   |-- TEPARDUINO.DLL                                883.5 KB   the Arduino board model, to MODELS
|-- Proteus Simulation/
|   |-- ADXL345_Demo.hex                               40.2 KB   both UNOs (demo sketch V1.0)
|   |-- ADXL345-Accelerometer-ArduinoUnoV4.pdsprj      24.0 KB   demo: 2 UNOs, 2 ADXL345 modules
|   |-- TEPADXL345.DLL                                348.0 KB   copy of the model
|   |-- TEPARDUINO.DLL                                883.5 KB   copy of the board model
|-- Arduino Code/
|   |-- ADXL345_Demo/ADXL345_Demo.ino                   7.6 KB   the demo sketch (source of the .hex)
|-- README.txt                                        ~38.6 KB   this file
Total: 2.77 MB (unzipped). The C++ source code of the model is not included.

WHAT IS IT?
A simulation model of the popular GY-291 module with the ADXL345 3-axis
accelerometer (Analog Devices), on I2C - with the board's orientation and its
motions. Our own model, not a part that shows a number:
  * The ADXL345 as its datasheet describes it: I2C at 0x53 (SDO low) or 0x1D
    (SDO high), CS high for I2C (CS low = SPI mode, a warning), the register
    pointer with auto-increment, DEVID 0xE5, 1.4 ms after power-on before it
    answers, standby until POWER_CTL's Measure bit (0x08) is set.
  * The data: samples at the data rate of BW_RATE (0.10 to 3200 Hz, 100 Hz
    after power-on); DATA_FORMAT - the range +-2 / 4 / 8 / 16 g, full
    resolution (3.9 mg a count, 256 counts a g, at every range) or 10 bits,
    right or left justified; the offsets OFSX / OFSY / OFSZ (15.6 mg a count);
    a multi-byte read takes X, Y and Z from one sample (three separate reads
    may not - a note says so); about one count of noise (property NOISE).
  * The functions, the way the datasheet runs them: single tap and double tap
    (THRESH_TAP, DUR, Latent, Window, TAP_AXES), activity and inactivity
    (THRESH_ACT, THRESH_INACT, TIME_INACT, dc or ac coupled, the link bit of
    POWER_CTL), free fall (THRESH_FF, TIME_FF); INT_SOURCE (reading it clears
    the events; DATA_READY and OVERRUN clear with a data read), ACT_TAP_STATUS,
    INT_ENABLE and INT_MAP to the INT1 / INT2 pins, active high or low
    (INT_INVERT) - the pins change at the exact simulation time.
  * The world: the board's PITCH and ROLL (gravity spread over X, Y and Z:
    flat = +1 g on Z) and four motions - TAP (a 4 g knock on Z for 12 ms),
    DOUBLE TAP (two knocks 200 ms apart), SHAKE (5 Hz along X, up to 2.4 g,
    for 1.5 s) and FREE FALL (0 g for 350 ms, then a 4 g landing).
  * The classic mistakes, each with a clear note: data read in standby (all
    zero), CS low (SPI mode), X and Z from two different samples, a reading
    beyond the range (it stops at the limit; the tap function still sees it),
    a write to a read-only register, FIFO modes (not modelled).
The module is drawn at about three times its real size: the purple GY-291
board with the ADXL345, its regulator, the two pull-ups and the X / Y / Z
axis marks; the header GND VCC CS INT1 INT2 SDO SDA SCL on the left. ON the
board, as TEP additions: the SIMPLE / ADVANCE badge, the PWR, I2C (a
transaction) and INT (an interrupt) LEDs and the panel button. The LEDs, the
badge, the button and the panels are TEP additions; the real module has none
of them.

TWO DEVICES IN ONE LIBRARY (search "ADXL345" in Pick Devices):
  Simple    ADXL345TEP     "ADXL345 Accelerometer (GY-291) V1.0 - Simple"
  Advance   ADXL345ADVTEP  (the same, "- Advance")
            (pins GND VCC CS INT1 INT2 SDO SDA SCL on the left; category
            Sensors > Accelerometer)
  Simple    On-Sheet Panel: the STATUS panel under the module - the banner
            (READ X +0.00 g Y +0.00 g Z +1.00 g - PITCH, ROLL / a tap, a
            fall and the other events in amber / the latest warning in red),
            PITCH and ROLL (- / + in 5 degree steps), six orientations (FLAT,
            TILT FWD, TILT SIDE, NOSE UP, ON SIDE, UPSIDE DOWN), four motions
            (TAP, DOUBLE TAP, SHAKE, FREE FALL), ten readouts 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 six orientations on the toolbar; THE BOARD (pitch
                         and roll -15 / -5 / +5 / +15 degrees, gravity at rest,
                         the four motions); THE ADXL345 (what the sketch read on
                         each axis, the settings); THE THREE AXES (the newest
                         sample against the range); INTERRUPTS (INT_SOURCE bit
                         by bit, INT_ENABLE, INT_MAP, the INT1 / INT2 pins);
                         THE LAST I2C TRANSACTION and the ones before it
              Event log  power, the reads and writes, the motions, the
                         interrupts, notes, warnings; filters All / I2C /
                         Interrupts / Warnings, Pause, Clear
              Tests      I2C, Readings, Interrupts & taps, Range & resolution
                         (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, TEPADXL345.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, node 2 with the Advance module, both flat).
What the runs showed:
  * Both UNOs read from the start, flat - "#3  X 0.00  Y 0.00  Z 9.96 m/s^2
    pitch 0.0  roll 0.0" - and after 3 seconds at rest ">> INACTIVITY -
    still for 3 s".
  * U2's pop-up and monitor: NOSE UP - ">> ACTIVITY - moving", then "X 10.04
    Y 0.00  Z 0.00 m/s^2  pitch 90.0" (the roll jumps about: at 90 degrees
    of pitch it has no meaning); TAP - ">> TAP on Z"; DOUBLE TAP - ">> TAP
    on Z", then ">> DOUBLE TAP"; 3 seconds still - INACTIVITY; SHAKE -
    ACTIVITY and X up to 21.06 m/s^2; FREE FALL - ">> FREE FALL" and the
    landing ">> TAP on Z"; RANGE 2, RATE 25 - "RATE: 25 Hz"; RAW - "RAW: 00
    01 00 00 00 00  X 256  Y 0  Z 0 counts = 1.000 0.000 0.000 g"; the Event
    log and the four tools.
  * Node 1 with the real mouse (3 wheel steps on U1): ON SIDE - ACTIVITY and
    "Y 10.00 m/s^2 ... roll 90.0"; three clicks on the pitch's + - "pitch
    15.0" (X 2.59, Y 9.69 m/s^2); TAP - ">> ACTIVITY - moving" and ">> TAP on
    Z"; FREE FALL - ">> FREE FALL" and ">> TAP on Z", the INT LED lit; RAW -
    "RAW: 44 00 F7 00 03 00  X 68  Y 247  Z 3 counts = 0.266 0.965 0.012 g";
    FLAT; U1's red X and PANEL.
  * 67.7 s of simulation took 128 s - about 0.5 x real time with the pop-up
    and both monitors open.
  Plus automatic checks on a PC, 0 failed: 62 on the model (a bit-level I2C
  master doing what Adafruit ADXL345 1.3.4 does over Wire: the 1.4 ms after
  power-on, begin(), setRange(), the four ranges in full resolution and in
  10 bits, left justify, the orientation, the offsets, DATA_READY, WATERMARK
  and OVERRUN, getEvent()'s three reads against one read of six bytes, the
  tap, the double tap, a second tap inside Latent, a push longer than DUR,
  activity, inactivity, the link bit, free fall, INT_MAP, INT_INVERT,
  DATA_READY on INT1, the address pin, SPI mode on CS, read-only and reserved
  registers, the FIFO warning, the noise) and 5 on the pop-up; the demo
  project read back from disk (93 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" (TEPADXL345.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 TEPADXL345.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 TEPADXL345.IDX from the LIBRARY folder if it is there (Proteus
   makes a new index).
5. Start Proteus. In Pick Devices (P) search "ADXL345".

RUN THE DEMO
"Proteus Simulation\ADXL345-Accelerometer-ArduinoUnoV4.pdsprj" - keep the .hex
file and the two DLLs beside the project.
  ARD1: Arduino UNO V4.0 + U1 = an ADXL345 module (Simple), flat.
  ARD2: Arduino UNO V4.0 + U2 = an ADXL345 module (Advance), flat.
  Both UNOs run ADXL345_Demo.hex (the Adafruit ADXL345 library) 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 each UNO prints X, Y and Z in m/s^2 with the pitch and
     the roll; after 3 seconds at rest ">> INACTIVITY - still for 3 s".
  3. Tilt the board on U1's STATUS panel or in U2's pop-up (NOSE UP, ON SIDE
     ...): the next line follows, and ">> ACTIVITY - moving" comes on INT1.
  4. Press TAP, DOUBLE TAP or FREE FALL: the chip's own functions catch them
     and INT1 (D2) tells the sketch - ">> TAP on Z", ">> DOUBLE TAP",
     ">> FREE FALL". SHAKE shakes the board for 1.5 s.
  5. Type RAW: the six data bytes in one read; RANGE 2 / 4 / 8 / 16 and RATE
     25 ... 800 change the settings. See THE DEMO SKETCH.
  6. U1: close its panel with the red X, open it with PANEL on the board.
     U2 (Advance): Sensor, Event log, and Tests - I2C, Readings, Interrupts &
     taps, Range & resolution.
Closed a monitor window? Click the UNO's USB port.

WIRING (the same in Proteus and on a real board)
  Module   Arduino UNO
  VCC      5V (the GY-291's regulator gives the chip 3.3 V)
  GND      GND
  CS       VCC (high = I2C)
  SDO      GND (address 0x53; VCC = 0x1D)
  INT1     D2 (the interrupts; INT0 of the UNO)
  INT2     open (or D3)
  SCL      A5 (= the SCL pin)
  SDA      A4 (= the SDA pin)
In the sketch (Adafruit ADXL345 library):
  Adafruit_ADXL345_Unified accel(12345);
  accel.begin(0x53);                             // DEVID 0xE5, Measure
  accel.setRange(ADXL345_RANGE_16_G);            // full resolution
  sensors_event_t e;
  accel.getEvent(&e);                            // e.acceleration.x / y / z in m/s^2
  accel.writeRegister(0x2E, 0x7C);               // INT_ENABLE - the functions
  accel.readRegister(0x30);                      // INT_SOURCE - what happened
The serial monitor needs no wires: it is built into the Arduino UNO V4.0.
SDA, SCL and INT1 reach their UNO through net labels - SDA_1 / SCL_1 / INT1_1
(node 1), SDA_2 / SCL_2 / INT1_2 (node 2): the same name = connected. VCC and
GND are Proteus power terminals; the UNO's internal pull-ups hold the I2C bus.
REAL HARDWARE:
 * Tie CS to VCC on the GY-291: a CS left low puts the ADXL345 in SPI mode and
   it never answers on I2C.
 * Two ADXL345 on one bus: one with SDO to GND (0x53), the other with SDO to
   VCC (0x1D).
 * Read the six data bytes in one go (RAW in the demo) when X, Y and Z must
   come from the same moment.
 * Fix the module firmly to what it measures: a loose board rattles and reads
   taps that never happened.

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).
  I2C           Good for: a sensor that is not found, readings that stay at
                zero, X, Y and Z that do not belong together. The address
                (SDO), I2C or SPI (CS), DEVID, the accesses without ACK,
                Measure, the data reads (in standby, all six bytes or one
                axis at a time); begin(), getEvent() and setRange() step by
                step; the settings registers as the sketch left them.
  Readings      Good for: what the sketch writes and reads, and in which
                order. The last 24 transactions with their bytes and meaning.
  Interrupts & taps
                Good for: a tap that is not seen, a double tap that comes as
                two taps, an INT pin that never changes. INT_ENABLE, INT_MAP
                and the polarity; each function's settings and what it caught;
                a tap step by step; the motions, the interrupts and the
                INT_SOURCE reads.
  Range & resolution
                Good for: readings that stop at a limit, a value 4 times too
                big or too small, noisy readings. DATA_FORMAT, the scale, the
                data rate, the offsets, the Adafruit scale check; the four
                ranges in full resolution and in 10 bits; the last data reads
                decoded.

THE DEMO SKETCH ON THE SERIAL MONITOR (ADXL345_Demo V1.0)
  RUN        the readings go on (twice a second)
  STOP       no more readings (the events still come)
  RAW        the six data bytes from 0x32 in one read: the bytes, the counts
             and the g of one sample
  RANGE 16   +-2, 4, 8 or 16 g (full resolution)
  RATE 100   the data rate: 25, 50, 100, 200, 400 or 800 Hz
  HELP       the command list
Commands are not case-sensitive; type them in the UNO's built-in monitor and
press Enter. The sketch sets up the functions with the datasheet's starting
values: THRESH_TAP 3 g, DUR 20 ms, Latent 100 ms, Window 250 ms, all three
axes; activity 0.75 g, inactivity 0.19 g for 3 s, ac coupled and linked;
free fall below 0.56 g for 100 ms; everything on INT1, active high.

EXPECTED MONITOR OUTPUT (node 1, flat)
  TEP ADXL345 - demo (Adafruit ADXL345 library)
  SDA on A4, SCL on A5, INT1 on D2
  ADXL345 found at 0x53 (DEVID 0xE5)
  +-16 g, 100 Hz; tap, double tap, activity, inactivity and free fall on INT1
  Commands: RUN | STOP | RAW | RANGE 2|4|8|16 | RATE 25|50|100|200|400|800 | HELP
  #1  X -0.04  Y -0.04  Z 10.08 m/s^2  pitch -0.2  roll -0.2
  #2  X 0.04  Y 0.04  Z 10.00 m/s^2  pitch 0.2  roll 0.2
  #3  X 0.00  Y 0.00  Z 9.96 m/s^2  pitch 0.0  roll 0.0
  ...
  >> INACTIVITY - still for 3 s
(The last digit moves a little: the noise - property NOISE. The Adafruit
library multiplies by 4 mg a count, the chip's typical step is 3.9 mg: 1 g
prints as about 10.04 m/s^2.)

PROPERTIES (double-click the part > Edit Properties)
  PITCH        the board's pitch at the start, in degrees (-90 to 90,
               default 0; 90 = NOSE UP, X points up)
  ROLL         the board's roll at the start, in degrees (-180 to 180,
               default 0; 180 = UPSIDE DOWN)
  NOISE        the ADXL345's noise: 1 = about one count (default), 0 = none
  PANEL        Simple only: the STATUS panel at the start, OPEN or CLOSED
Every run starts again from the properties, and the chip from power-on. The
demo's UNOs (ARDUINO UNO V4.0): PROGRAM ADXL345_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
TEPADXL345.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
* "ADXL345 not found": no power on VCC / GND, SDA / SCL swapped or missing, CS
  low (SPI mode - the banner says so), or the wrong address for SDO (the PWR
  LED is off, or the I2C LED never flashes).
* X, Y and Z stay at 0: the chip is in standby - set POWER_CTL bit 3
  (begin() does).
* Z reads 10.04 m/s^2, not 9.81: the Adafruit library's 4 mg a count against
  the chip's typical 3.9 mg - the pitch and the roll are not affected.
* The values are 8 times too small (or too big): 10 bits at +-16 g with a
  full-resolution scale - setRange() sets FULL_RES, a hand-written
  DATA_FORMAT may not.
* The readings stop at 2 g during a tap: the range - use RANGE 16; the tap
  function sees the whole knock at every range.
* No ">> TAP": INT1 not wired to D2, THRESH_TAP higher than the knock, DUR
  shorter than the knock, or INT_SOURCE never read (INT1 stays high - the
  next tap brings no new rising edge).
* A double tap comes as two taps: the second tap came inside Latent or after
  Window.
* The parts are not simulated: TEPADXL345.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/adxl345-accelerometer-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 ADXL345 model (TEPADXL345.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 ADXL345 datasheet. 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 the Adafruit ADXL345 library 1.3.4 (BSD licence),
  Adafruit Unified Sensor 1.1.15 (Apache licence 2.0) and
  Adafruit BusIO 1.17.4 (MIT licence); they are not shipped here - install
  "Adafruit ADXL345" (by Adafruit) from the Library Manager of the Arduino
  IDE (it installs the other two with it). Their source code:
    https://github.com/adafruit/Adafruit_ADXL345/tree/1.3.4
    https://github.com/adafruit/Adafruit_Sensor/tree/1.1.15
    https://github.com/adafruit/Adafruit_BusIO/tree/1.17.4
  The .hex file contains compiled code of them, so their licences:
  Adafruit ADXL345 library:
    Software License Agreement (BSD License)
    Copyright (c) 2020 Kevin (KTOWN) Townsend for Adafruit Industries
    All rights reserved.
    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions are met:
    1. Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.
    2. Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the
    documentation and/or other materials provided with the distribution.
    3. Neither the name of the copyright holders nor the
    names of its contributors may be used to endorse or promote products
    derived from this software without specific prior written permission.
    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
    EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
    DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
    LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  Adafruit BusIO:
    The MIT License (MIT)
    Copyright (c) 2017 Adafruit Industries
    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.
  Adafruit Unified Sensor: the Apache License 2.0 - its full text is at the
    end of this file (APACHE LICENSE 2.0).
* The .hex file is built from the demo sketch, these libraries and the
  Arduino AVR core 1.8.6 (with its Wire and SPI libraries), 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 these libraries (REBUILDING THE FIRMWARE).
* Proteus is a product of Labcenter Electronics and is not included. Arduino is
  a trademark of Arduino SA. The ADXL345 is a product of Analog Devices. This
  library is not made or endorsed by Analog Devices, Adafruit, the makers of
  the GY-291 module or Labcenter.

REBUILDING THE FIRMWARE (OPTIONAL)
The HEX file is supplied; Arduino IDE is not needed to
…
Advertisement

Development1 release

  1. V1.0ADXL345 Accelerometer Library for Proteus V1.0: GY-291, Tap, Free Fallthis 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. 1

    Extract the archive

    Right-click adxl345-accelerometer-tep-v1-0-c256900fa9324aaeb4594c729015b3fb.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (ADXL345-Accelerometer-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move ArduinoV4TEP.LIB and TEPADXL345.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. 3

    Add the simulation model

    Copy TEPADXL345.DLL and TEPARDUINO.DLL into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.

  4. 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. 5

    Open the sketch in the Arduino IDE

    Open ADXL345_Demo.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.

  6. 6

    Load the HEX file

    In Proteus double-click the microcontroller, set Program File to ADXL345_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.

  7. 7

    Open the example simulation

    Open ADXL345-Accelerometer-ArduinoUnoV4.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.

  8. 8

    Follow the tutorial

    ADXL345 Accelerometer Library for Proteus V1.0: GY-291, Tap, Free Fall explains every connection and setting in order; keep it open beside the files while you build.

How to add a library in Proteus 8

FAQs9 questionsContact TEP

How do I download ADXL345 Accelerometer Library for Proteus V1.0: GY-291, Tap, Free Fall?

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?

ADXL345 Accelerometer Library for Proteus V1.0: GY-291, Tap, Free Fall comes as a ZIP archive of 10 files (1.3 MB, 2.8 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, 246c6fbfa866d0c653ad42a01dbeaef6220429d515fd000066982effb30d4761. In PowerShell run Get-FileHash "adxl345-accelerometer-tep-v1-0-c256900fa9324aaeb4594c729015b3fb.zip"; on macOS or Linux run shasum -a 256 "adxl345-accelerometer-tep-v1-0-c256900fa9324aaeb4594c729015b3fb.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.

preparing · adxl345-accelerometer-tep-v1-0-c256900fa9324aaeb4594c729015b3fb.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

  • 23Total downloads
  • 4%Popularity
  • ProteusCategory
  • 0Comments
  • ssyedzainnasirUploaded by
  • 15 Oct 2026Uploaded at
Last 14 days13 downloads
SHA-256 246c6fbfa866d0c653ad42a01dbeaef6220429d515fd000066982effb30d4761
DocumentationADXL345 Accelerometer Library for Proteus V1.0: GY-291, Tap, Free Fall
Need help with this file? Bug report Ask a question Download problemsGet updates
Advertisement

Comments

0

Join the conversation

Start the conversationAsk a question or share how you used this download.