Skip to content

bbogush/hall_speed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published