MembersPage/Andrey/SpeedSensor (2008-07-27 13:08:31)

I found that speed sensor option more useful for me than PS2 keyboard.

I have made same RC filter as for hall sensor on triggers (R48 R91 D27 C33), but for INT6 MCU pin. It is possible to use stock hall sensor.

There is one config variable - signal frequency (Hz) for 100kph.

Interrupt disabled every time after sample captured for save cpu time (calc freq 10Hz but sensor freq may be 200Hz)

Speed calc routine is calls from main loop every 100ms and contains division 32/16.

Also gear detection possible, but with some notes: sensor should measure driven wheel and gear incorrect while clutch pressed or neutral. Plan to use for boostcontroller and/or antirev.

There are 6 config vars for 6gears, speed for each gear at 5000rpm (it can be easy scaled fron any rpm). For unused gears select 255.

SpeedConfig.JPG

SpeedGears.JPG

hello, this is a very interesting feature. Would you like some help testing it? KevinBlack