项目作者: bbogush

项目描述 :
Hall effect sensor driver for Linux
高级语言: C
项目地址: git://github.com/bbogush/hall_speed.git
创建时间: 2015-05-24T11:10:37Z
项目社区:https://github.com/bbogush/hall_speed

开源协议:GNU General Public License v2.0

下载


hall_speed

Hall speed sensor driver for Linux

Description

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.

Build

Target

  1. make

Crosscompile

  1. Edit compile.sh file and set architecture, path to Linux directory and path
    to cross compiler.
  2. Execute ./compile.sh.