_______ (_____ ) /'/' /'/' /'/'___ (_______)
# # # ### ## # # # # # # #
## ## ## ## ###### ###### ## ##
## ## ## ## ## ## ## ## #####
_ __ | |/ / | ' / | . \ |_|\_\
IMPORTANT: enter the case-INsensitive alphabetic (no numbers) code AND WRITE SOME SHORT summary of changes (below) if you are saving changes. (not required for previewing changes). Wiki-spamming is not tolerated, will be removed, so it does NOT even show up in history. Spammers go away now. Visit Preferences to set your user name Summary of change: ** the speed-sensing input is same as PS2 DATA signal (easy to access with removing only endplate). ** '''If you want the speed input available on your assembled controller: Ask in order note: choose PS2 option and ask for a FREE cable with overmolded PS2-connector, or instruct PS2/DATA available eg, on EC18/pin2 (or your choice), . This pin is a '''direct processor pin. It is very sensitive''' (like the mcp3208 inputs). Anything above 5V (eg +12V) or below 0V applied will damage the controller. 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. Some notes about my gear boost (it is different from default). Each row in boostdc(rpm,kpa) table is reused for gears, bottom row is first gear. Pid use the same rows as reference value. Five gear mults used for pid target downscale. So first tune DC rows in openloop simple mode (disable adc input too) for each gear, after set targetVSrpm table (for last gear - max boost) and target downscale for gears and tune pid coeff. targetVStps could not work, because it is not affect to DC, only to target, and we have small pid coeff. *ValveDC = RefDC + PidResult *PidTarget=Target(rpm)[kPa]*downscale(tps)[%]*downscale(gear)[%] *RefDC=RefDCTable(gear,rpm)[%]*(100%-(100%-downscale(tps)[%])*weight[%]) http://www.vems.hu/files/MembersPage/Andrey/SpeedConfig.JPG http://www.vems.hu/files/MembersPage/Andrey/SpeedGears.JPG Optional: Add document to category: Wiki formatting: * is Bullet list ** Bullet list subentry ... '''Bold''', ---- is horizontal ruler, <code> preformatted text... </code> See wiki editing HELP for tables and other formatting tips and tricks.