I am looking at detecting the position of a steel hand lever which can be moved forward/backward in a slot with seven side notches where the lever can be parked by moving it into the slot.
I am considering the use of seven hall sensors to detect the position of a magnet placed along the lever rod.
Due to space limitations, the sensors must go on the side opposite to the notches, which means the
distance sensor to magnet in parked position will be 15mm to 20mm.
This is the magnet I am considering in using:
https://supermagnetman.com/search?q=Rect1020And these are the two sensors I am considering
- DRV5033-Q1 Omnipolar digital switch sensor
http://www.ti.com/lit/ds/symlink/drv5033-q1.pdf- DRV5055-Q1 Ratiometric Linear sensor
http://www.ti.com/lit/ds/symlink/drv5055-q1.pdfI believe, using the digital switch will result in a simpler GPIO design, but my concern is that the sensor may not get turned on at 20mm distance. That is the reason I am considering the linear option, which will require the use of seven analog ADC readings to evaluate where the lever is.
I will appreciate any thoughts...
Note: The lever controls the chute deflector in my snowblower via a steel cable. I want to read the position to motorize the deflector.