Hello friends, I hope you all are doing fine. Today, I am going to share a new Magnetic Hall Effect Sensor Library for Proteus. We are sharing this library for the first time and we hope it will help students in their final year & semester projects.
In this library, you will find 4 models of the KY-024 Magnetic Hall Effect Sensor. First, we will have a look at the brief overview of Magnetic Hall Effect Sensor, then will add its Library in proteus and will simulate it. So, let's get started:
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.
So, we have successfully added these sensors to our Proteus software. Let's design a simple simulation to have a look at its working:
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.
Now our sensor is fully operational, so let's design its simulation:
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.
So, that was all for today. I hope this sensor will help you guys in your final year and semester projects. If you have any questions, please ask in the comments. Thanks for reading. Take care !!! :)
syedzainnasir
I am Syed Zain Nasir, the founder of The Engineering Projects (TEP). I am a
programmer since 2009 before that I just search things, make small projects and now I am sharing my
knowledge through this platform. I also work as a freelancer and did many projects related to
programming and electrical circuitry. My Google Profile+Follow
Get Connected
Comments on ‘’ Magnetic Hall Effect Sensor(KY-024) Library for Proteus ‘’ ( 3 )
0
nathan
Says:
Hi. I've loaded the HEX file onto the sensor, but when I try to run the simulation I get the error "Unable to open HEX file".
Reply
100
1
silvesto
Says:
Download link is not active
Reply
100
2
syedzainnasir1
Says:
It's active, you need to click on the Download Button and it will take you to the download page.
Reply