_______ ( ____ \ | ( \/ | (_____ (_____ ) ) | /\____) | \_______)
## ### ## ## ## ## ## ###
### ## ### ## ## ## ## ## ### ## ## ## ###
## ## ## ## ###### ###### ## ##
## ## ## ## ## ## ## ## #####
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: 2006.05.01 I don't get any reaction on the knock-indicaton. It shows max all the time unless you disables it, then it shows "1" and it may vary between 0 and 2. '''Q:''' Is a certain firmware recommended when useing knock-sensor? ** no change in knock code for looong '''Q:''' Does any one got knock-sensor/indicator working? ** yes * Are you certain about the chosen knock input ? ** See knock_conf below ** photo/partslist of your onboard knock setup Publish the wav file of the knock sensor recorded with your notebook when you cling the block with a wrench. (so we can find out freq) ------------ I'm setting op the knock-sensor but I only got a 16MHz crystal with the board, and I see '''4MHz is the normal setup'''. * I'll be ordering some boards in a few days anyway.. I'll just ad a note about a extra 4MHz crystal. ** have you mounted the 4 MHz crystal ? '''Q''' The "knock-chip" has a programmable-divider so it can also use a 16MHz crystal if it is set up, but where to set up/program this divider? '''A''': You need to recompile firmware with the following line added to my_make: "MY_CONF += -D KNOCK_OSC=16", then the knock chip is initalized with the correct divider for the 16MHz crystal. Thanks.. ------------ Knock-frequency around 7KHz.. from about 6,2-7,8KHz. http://www.vems.hu/files/HansK/Knock_d1.jpg Engine: VW 1800 8v. 81mm bore, 86,4mm stroke. ---------- http://www.vems.hu/files/HansK/Sensor-con.JPG http://www.vems.hu/files/HansK/KnockChip.jpg I have connected the shield to GND outside the box, and connected the two wires to "knock 1 and -" ("ch. 0" in MegaTune). ---------- '''knock-config''' knock_conf=FD #0xFF=Enable knock detection and ignition retard. # MegaTune changes it to: FC (disable) * from global.h: uint8_t knock_conf; // knock, config. bit0 1:enable bit1: 0:channel0 so => ** FF means knock2... ** '''FD means knock1...''' (DEFAULT!) knock_sampling_window=e2 '''knock1_frequency=29''' # decimal 41 6.94kHz knock1_gain=14 knock1_integrator=11 knock2_frequency=29 # knock_conf bit1=0 selects knock1 so this takes no effect knock2_gain=14 # How much gain is estimated to bee needed'''?''' knock2_integrator=11 knock_threshold=50 #Threshold fore what? knock_noise_scale=10 knock_max_retard=18 #6 degrees knock_default_retard=08 #2 degress knock_retard_step=04 #1 degree knock_retard_delay=10 #240ms knock_advance_step=02 #0,5degree knock_advance_delay=10 #240ms knock_minrpm=0F #1500rpm knock_maxrpm=32 #5000rpm ---------- MembersPage/HansK 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.