Hello friends, I hope you all are doing great. Today, I am going to share the new A3144 Hall Sensor Library for Proteus Simulation. The A3144 is the little black three-legged chip behind countless speedometers, RPM meters and end stops: a Hall-effect switch that turns on when a magnet comes close and off when it goes. On the KY-003 style module it sits with a pull-up and an LED, ready for an Arduino pin. With this library you can run a full Proteus simulation of the module - its operate and release points, its south-pole-only switching, its clean edges - so that your counting code is right before you glue a magnet to a wheel.
A3144 Hall Sensor Library for Proteus
Latest version: V1.0 (November 2026, this tutorial)
Other magnetic sensors: Hall Effect Sensor KY-024 · Magnetic Reed Switch · GY-271 Compass · BNO055
Helping Tools
- Serial Monitor Advance: a serial terminal window for the UART of your board
- Serial Monitor Expert: the serial monitor with extra debugging tools
- LCD Library for Proteus V3.0: 16x2, 20x4 and I2C LCDs to show your readings
The module comes alive at run time: its PWR LED lights with the supply, and the signal LED flashes every time the magnet passes. The demo is a tachometer: a magnet is held in front of the sensor, then its north pole, then a wheel carrying a magnet spins at 120, 360 and 600 RPM and stops - and an Arduino shows the RPM, the turns and a trend on an OLED, with a MAGNET and a FAST LED.
NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the compass board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the A3144 Hall Sensor Library for Proteus Simulation:
What is a Hall-Effect Switch?
When a current flows through a thin slab of semiconductor and a magnetic field crosses it, the charges are pushed to one side, and a small voltage appears across the slab - the Hall effect, found by Edwin Hall in 1879. The voltage is tiny, so the A3144 packs the Hall element together with an amplifier, a Schmitt trigger and an output transistor in one TO-92 package. The result behaves like a switch worked by a magnet: no moving parts, no contacts to wear or bounce, switching in microseconds, millions of times.
| A3144 Hall-effect switch on a KY-003 style module | |
|---|---|
| Type | unipolar switch - a south pole turns it on, a north pole does nothing |
| Operate / release | on past Bop, off under Brp (here 25 and 18 mT; the A3144 allows up to 35 mT and at least 5 mT) |
| Output | open collector: LOW while the magnet is there, HIGH through a pull-up when it is gone |
| Supply | 4.5 - 24 V (the module on 5 V) |
| Speed | microseconds; no bounce |
| Module | 15 x 18.5 mm: the A3144, a 10 k pull-up, an LED; header S, +, - |
South Pole Only
The A3144 is unipolar: only a south pole facing its marked side switches it on. Hold a magnet the wrong way round and nothing happens - the most common "it doesn't work" with a new Hall sensor. Our model follows this: the demo holds a north pole in front of the sensor, and S stays HIGH.
Hysteresis
The switch turns on at one field strength and off at a lower one - the operate and release points, 25 and 18 mT in our model. Between the two it keeps its last state. That gap, the hysteresis, means a magnet hovering at the edge cannot make the output chatter, and every pass of a magnet gives exactly one clean falling edge and one rising edge. Unlike a reed switch, a Hall switch needs no debounce at all.
Features of the A3144 Hall Sensor Library for Proteus Simulation
- A real-looking module: the black board at its real size, 15 x 18.5 mm, with the A3144 standing in its TO-92 package, the pull-up, the LEDs, the header and our small TEP mark.
- Animated: a PWR LED and the signal LED that lights while S is low - a flash with every pass of the magnet.
- Real switching: unipolar, with the operate and release points as properties (BOP, BRP) and a north pole that does nothing.
- A real output: open collector with the board's 10 k pull-up - LOW through the transistor, HIGH through the resistor.
- A scene: a south pole held near, a north pole, and a wheel with a magnet at 120, 360 and 600 RPM, slowing to a stop; plus chips for a held magnet either way round and a wheel at 300 or 900 RPM.
- A pop-up: the wheel and its magnet turning past the sensor, the field with the operate and release points and S over the run, eight live tiles, graphs, an event log and a check page.
- A complete package: about 2.3 MB with the library, our OLED, 5 mm LED and resistor libraries, our Arduino UNO V4.0 and the demo, without the source code of the model.
The A3144 in Proteus
The device is HALLA3144TEP in TEPA3144.LIB, under Sensors > Magnetic, with the prefix U and the model TEPA3144.DLL. Search A3144 or Hall in Pick Devices. Three pins along the bottom: S (the output), VCC (+) and GND (-). Its properties: PROFILE (DEMO or STEADY), FIELD (mT, south positive, for STEADY), BOP and BRP. The site's older Hall Effect Sensor KY-024 Library for Proteus (2021) covers the analog KY-024 board; this one is the A3144 switch itself.
Download A3144 Hall Sensor Library for Proteus Simulation
Click the button below to download A3144-Hall-Sensor-Library-for-Proteus-v1.0.zip (about 2.3 MB, without the source code of the models):
A3144 Hall Sensor Library for Proteus V1.0- README.txt: installation, the demo, the wiring, troubleshooting and the limits of the simulation.
- Proteus Library Files:
TEPA3144.LIB,TEPOLED12864.LIB,TEPLED5MM.LIB,TEPRESISTOR.LIBandArduinoV4TEP.LIB. - Proteus Model Files:
TEPA3144.DLL,TEPOLED.DLL,TEPLED5MM.DLL,TEPRESISTOR.DLLandTEPARDUINO.DLL. - Arduino Code: the demo sketch (no extra library).
- Proteus Simulation: the demo project, its HEX file and copies of the DLLs.
No Proteus yet? Read How to Download and Install Proteus 7 and 8. New to libraries? Follow How to Install a New Library in Proteus.
How to Install A3144 Hall Sensor Library for Proteus Simulation
- Close Proteus and extract the whole zip file, for example to your Desktop.
- Copy the files from Proteus Library Files into the LIBRARY folder of Proteus.
- Copy the files from Proteus Model Files into the MODELS folder.
- Delete
TEPA3144.IDXfrom the LIBRARY folder if it is there. - Start Proteus, press P and search for A3144.
Proteus Simulation of a Tachometer
Our demo is a tachometer. U1 is the A3144 module with PROFILE DEMO: no magnet at first, a south pole held in front of the sensor at 2 seconds, removed at 4, a north pole at 5, then from 7 seconds a wheel with a magnet on its rim sweeps past the sensor once a turn - at 120 RPM, then 360 RPM from 10 seconds, 600 RPM from 13 seconds, and slowing to a stop from 16 seconds. S goes to D2 of our Arduino UNO Library for Proteus V4.0, + to 5 V and - to ground. Our OLED SSD1306 Library for Proteus shows the readings, and two LEDs from our 5mm LED Library for Proteus sit beside it: MAGNET (green, D5) and FAST (red, D6), each through 220 ohm. The Arduino's built-in monitor is the same window as our TEP Serial Monitor Advance for Proteus. Open A3144-Hall-Tachometer-ArduinoUnoV4.pdsprj.
The Sketch
The sketch needs no library. An interrupt on the falling edge of S - the moment the magnet's south pole arrives - counts every pass:
attachInterrupt(digitalPinToInterrupt(PIN_S), onPass, FALLING);
The interrupt routine also times each turn with micros(), the time since the last pass:
if (turns) periodUs = now - lastPassUs;
One pass per turn means the RPM is sixty million microseconds divided by the time of a turn:
rpm = stopped ? 0 : 60000000.0 / per;
If no pass comes for two seconds, the wheel counts as stopped - otherwise a stopped wheel would show its last speed forever:
stopped = t < 2 || micros() - last > 2000000UL; // no pass for two seconds: stopped
S itself also tells whether a magnet is at the sensor right now, which lights the MAGNET LED and the bottom line of the OLED:
const bool magnet = digitalRead(PIN_S) == LOW;
The OLED shows the RPM in big digits, the turns, the time of a turn, a 0 - 800 RPM trend and the magnet line; FAST lights above 500 RPM.
A3144 Simulation Results
Open the project and press Run. The demo runs 21 simulated seconds and took about 4.7 minutes on our PC with the pop-up open and the pictures being taken. Click the module for its pop-up. Every number below comes from one simulation run, the demo exactly as it ships.
A Magnet Held Near
The demo starts with no magnet: S sits HIGH at 5.00 V through the module's 10 k pull-up and the OLED's bottom line says NO MAGNET. At 2 seconds a south pole is held in front of the sensor. The field jumps to 45.0 mT, well past the 25 mT operate point, and S drops LOW at once - 0.002 V in our run at 3 seconds - and the green MAGNET LED lights. The interrupt counts that one falling edge, so the monitor shows turns 1, but the RPM stays at 0.0: a single pass is not a speed. At 4 seconds the magnet goes away, the field falls through the 18 mT release point and S goes back HIGH without a single glitch - the hysteresis at work in the simulation.
The Wrong Pole
At 5 seconds the magnet comes back the other way round: a north pole, -45 mT. Nothing happens. S stays HIGH at 5.00 V, the count stays at 1 and the LED stays dark. The A3144 is a unipolar switch - only a south pole facing its marked side switches it on - and the model follows that exactly. If a real sensor ignores your magnet, turn the magnet over before you suspect the wiring.
The Wheel
From 7 seconds a wheel with one magnet turns past the sensor at 120 RPM, from 10 seconds at 360 RPM and from 13 seconds at 600 RPM. Each pass is a short field pulse to about 60 mT and one LOW pulse on S, and the sketch keeps up with every one of them: the monitor shows 115.7 and 119.6 RPM at 120, 358.2 and 359.2 at 360, then 599.3 and 597.0 at 600 RPM. When the run paused at 15 seconds, the pop-up showed 598 RPM, 41 pulses (the held south pole's one included) and 0.100 s between pulses - exactly a tenth of a second for 600 turns a minute. The OLED, drawn a moment earlier, read 598 RPM, 39 turns and a turn in 0.100 s, its trend line climbing in three steps, with the red FAST LED on.
Slowing to a Stop
From 16 seconds the wheel slows down: 399.1, 208.5 and then 107.1 RPM on the monitor. It stops with its magnet right in front of the sensor, so the field stays at 59.9 mT and S stays LOW - the sketch prints "magnet at the sensor" with every line. Two seconds after the last pass it reports "The wheel has stopped" and the RPM drops to 0, as the two-second rule in the sketch says. The pop-up counted 64 pulses in all; the last two were 0.560 s apart, the wheel's last slow turn.
The Graphs, the Event Log and the Check Page
The Graphs page plots the field, S, the wheel's speed and the pulses. The Event log keeps the scene and the switching of the held magnets. The Check page sums up the run: the supply at 5.00 V (the A3144 wants 4.5 - 24 V), the field at +59.9 mT with the switch on at 25 mT and off at 18 mT, S LOW at 0.00 V (an open collector with the board's 10 k pull-up), and 64 falling edges with the last two 0.560 s apart - every row green.
The monitor shows the sketch's side: a line every second, and when the wheel starts and stops.
Hall Switch, Reed Switch or Magnetometer?
Three ways to sense a magnet. A reed switch - our Magnetic Reed Switch Library for Proteus - is two metal reeds in a glass tube: it needs no power, but it bounces, wears and is slow. A Hall switch like the A3144 needs a supply, but it never bounces or wears out and switches in microseconds - the choice for counting turns. A magnetometer like the one in our HMC5883L / QMC5883L Compass Library for Proteus measures the field's strength and direction on three axes - a compass, not a switch. For a speedometer, an RPM meter or an end stop, the Hall switch is the one.
Try It Yourself
- Click North pole: the field reads -45 mT and S stays HIGH - the A3144 ignores it.
- Click Wheel 900 RPM: a pass every 67 ms, FAST lights, the trend climbs to the top.
- Raise BOP to 65 mT: the wheel's 60 mT magnet no longer switches it - a magnet too weak or too far away.
- Set BRP to 24.5 mT, just under BOP: the hysteresis almost gone - still one clean edge per pass in the simulation, but a real magnet wobbling at the edge would chatter.
- Put two magnets on the wheel in your mind: the sketch would read double - divide by the magnets per turn.
Ideas to Extend the Demo
- A bicycle speedometer: the speed in km/h from the wheel's circumference, and the distance from the turns.
- A water flow meter: many flow sensors are a turbine with a magnet and a Hall switch.
- A fan RPM monitor that raises an alarm when a fan slows down.
Your Own Sketches
The demo sketch is in the zip file, and you can change it in the Arduino IDE. New to Arduino? Start with our Arduino Tutorial for Beginners. Export the compiled binary, and set the UNO's PROGRAM property to the new file. Our guide on How to get the HEX file from Arduino shows you where the file ends up.
Things to Know Before Using a Real A3144
- The pole: only a south pole facing the marked side switches it - turn the magnet over if nothing happens.
- The gap: the field falls fast with distance; keep the magnet a few millimetres from the sensor as it passes, and use a neodymium magnet for more room.
- The supply: the A3144 needs 4.5 V or more; it does not work from 3.3 V.
- No debounce: the Schmitt trigger gives clean edges - count them with an interrupt.
- Speed: it switches in microseconds, so even thousands of RPM are easy - the sketch's timing sets the limit.
Troubleshooting
- S never goes low: the north pole faces the sensor, or the magnet is too far (the field under BOP).
- S stays low: the magnet stopped in front of the sensor - that is right, and the RPM reads 0 after two seconds.
- The RPM reads double: two magnets on the wheel, or one magnet passing twice.
- Nothing at all: the supply is under 4.5 V.
- The part is not simulated:
TEPA3144.DLLis missing from MODELS and from the project folder.
Limitations of the Simulation
- The unipolar switching with its operate and release points, the north pole doing nothing and the open-collector output follow the A3144's behaviour; the board is our own drawing of a KY-003 style module.
- Our own choices: Bop 25 mT, Brp 18 mT, the 50 ohm on-resistance, the wheel's 60 mT magnet, the scene and the PWR LED.
- Not modelled: the switching time, the temperature drift of the switch points and the output's current limit.
- Arduino is a name of Arduino; this library is not made or endorsed by Arduino, Labcenter or any chip maker.
- Tested in Proteus 8.5 in November 2026 (the demo as shipped). Proteus 7 is not supported.
So, that was all about the A3144 Hall Sensor Library for Proteus Simulation. I hope it helps you build your speedometer, your RPM meter or your end stop before the magnet is glued to anything - and shows that a magnet, a Hall switch and an interrupt are all it takes to count turns. If you have any questions, ask in the comments and I will help you out. Till the next tutorial, take care and have fun!