Magnetic Hall Effect Sensor(KY-024) Library for Proteus

What is Magnetic Hall Effect Sensor?
- Magnetic Hall Effect Sensor is used to measure the density of magnetic field in the surroundings using Hall Effect Principle.
- KY-024 is the sensor's model used for measuring magnetic density.
- There are many different breakout boards available but they all are using the same sensor i.e. KY-024.
Magnetic Hall Effect Sensor Library(Ky-024) for Proteus
- First of all, download the Proteus Library zip file for Magnetic Hall Effect Sensor, by clicking the below button:
- In this zip file, we need to open the folder titled Proteus Library Files.
- In this folder, you will find three Proteus Library files, named:
- MagneticHallEffectSensorTEP.IDX
- MagneticHallEffectSensorTEP.LIB
- MagneticHallEffectSensorTEP.HEX
- We need to place these files in the Library folder of our Proteus software.
- If you are facing problems with adding a library in Proteus 7 or 8 Professional, then have a look at How to add a new Library in Proteus 8 Professional.
- Now, open Proteus ISIS and if you are already working on it, restart it.
- In the components search box, make a search for "Magnetic Hall" and you will get four results, as shown in the below figure:
- Let's place these four Hall Effect sensors' models in our Proteus workspace.
KY-024 Proteus Simulation
- As we have seen this simulated model of KY-024 has five pins in total:
- A0: Analog output.
- G: Ground.
- V: Vcc (Power).
- D0: Digital output.
- Test: For testing purposes.
Why Test Pin is used?
- As it's stimulation, so we can't actually create a magnetic field around the sensor, that's why we have placed this Test Pin.
- As the voltage at Test Pin will increase, the sensor will consider it as magnetic density is increasing around.
- If Test Pin is at 0V, the sensor will feel no magnetic field.
- If Test Pin is 5V, the sensor will feel a maximum magnetic field.
- We will attach a potentiometer to the Test Pin, for variable voltage levels.
Adding Hex File to the sensor
- In order to operate the magnetic Hall Effect sensor, we need to add a hex file in its properties panel.(We have placed the hex file in the Library folder)
- So, double click on your sensor to open its properties panel.
- In the Upload Hex File section, browse to your sensor's hex file, as shown in below figure:
- After adding the hex file to the sensor, click on the Ok button to close the properties panel.
Proteus Simulation of Magnetic Hall Effect Sensor
- Now, let's design a simulation in Proteus software, as shown in the below figure:
- I have attached an LED with the digital output of the sensor and a voltmeter with analog output.
- I have also placed a simple LC filter at the analog output. This filter is not required in real hardware implementation.
- We are using it in Proteus simulation, as Proteus gives the peak to peak value and we have to convert that PP value into Vrms.
- If you are working on a real sensor then you don’t need to add this LC circuit.
- Now, let's run our simulation and if everything's configured correctly, you will get results as shown in the below figure:
- As you can see in the above figure, our sensors are working perfectly, now if you change the value of the potentiometer, their output will change accordingly.
×
![]()















































































