This time we want to measure rotation using our Raspberry Pico and a hall switch, in this case the Infinion TLE4905L.
To get a precise measurement we use the TIMER class from our machine library to initiate a periodic interrupt after a specific interval and we also use an interrupt on our GPIO input pin connected to the hall switch.,
We count for a specific time and we calculate the RPM.
This basic principle is used in ABS sensors as well - either hall or MR based. However, we simply it by using just one magnet and a simple hall switch.
For the sake of fun I used a the second core for a graphical visualization but this will be covered in another video.
You can find the source code, including the graphical fun part, on my GitHub respository:
github.com/SirReal-surreal/Si... (2023_01_08_RPM_sir_real.py)
#filmoracertifiedcreative #madewithfilmora #wondersharefilmora
7 янв 2023