Testing on analog hall sensor 49E

 

Testing is done with an arduino, connect 5V,GND to hall sensor, hall sensor out put is connected to ADC A0.

stick the hall sensor with face to magnet one side will 0, the other one is 1024.

Set up like pics.




The reading is 0 when you please the magnet is too close, such as in the range of 3mm, when range reaching 20mm, the reading is 498, almost getting lost.



The chart of testing data shows:

1. the slop is not a constant.

2. it shows a curve, so if I want to use hall sensor to sense the distance, there is a range of best resolution.

留言

這個網誌中的熱門文章

Heltec ESP32+OLED+Lora, hardware testing

micro SD card for ESP32, on lolin32 with OLED and heltec 32 lora oled

Install Network Time Protocol(NTP) on BeagleBone with Angstrom linux and set local time zone