how crank decoding exactly works ??

Tuning, troubleshooting and the nitty gritty of using rusEFI to make your engine run nicely!
Post Reply
motodiy
Posts: 2
Joined: Thu Oct 25, 2018 5:37 pm

how crank decoding exactly works ??

Post by motodiy »

hello guys im trying to understand exactly how the decode of the crank is working.This is what i have understand so far

so by using a RISING interrupt we get the teeth number that pass the sensor plus the time the interrupt happened plus the interrupt duration
and the previus tooth interrupt time and duration.(lets use 12-1 wheel) then buy doing 360 / 12 = 30 we know eatch tooth is 30 degres
so if we are at tooth 10 we are at 300degres. now if we want to add a spark at 30deg before tdc we do 360 - 28 so the spark should happen @332 deegres.
now we know that each toth is 30deg so 332 is 11 teeth plus some time. now what i dont know is how to get exactly the 332 deg from crankshaft reading also how to handle the full engine cycle aka 720 degress rotation and how to add the TDC angle offset becouse tdc could be tooth 4 for example
User avatar
AndreyB
Site Admin
Posts: 14323
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: how crank decoding exactly works ??

Post by AndreyB »

Hey there, have you seen https://rusefi.com/docs/html/?

There was also a relevant discussion at https://rusefi.com/forum/viewtopic.php?f=3&t=936&p=30349#p30285 recently
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
motodiy
Posts: 2
Joined: Thu Oct 25, 2018 5:37 pm

Re: how crank decoding exactly works ??

Post by motodiy »

thanks a lot bro i will study right now!!
Post Reply