Hall speed sensor driver for Linux
This is Linux driver for speed sensor that is based on Hall effect.
Speed is calculated using time difference between two consecutive signals and wheel diameter. Signal sourse is falling edge of voltage level on the comparator. Low voltage is detected every time when magnet goes past sensor. Magnets can be taken from small headphones.
Speed value is available through sysfs: /sys/class/halls/value.
Module parameters:
- wheel_diameter - diameter of wheel.
- magnet_number - number of magnets on wheel.
- min_speed - minimum speed measured by driver. It is required for stop detection. The higher minimal speed, the lower stop detection time.
- make
- Edit compile.sh file and set architecture, path to Linux directory and path to cross compiler.
- Execute ./compile.sh.