Yet again my lack of experience with projects of this scale and using eclipse was the issue. I wasn't digging deep enough into the code to figure out how to set I/O in the source code.russian wrote:Technically you can define everything via the source code - see dodge_neon.cpp for example, see http://rusefi.com/wiki/index.php?title=Manual:Engine_TypeSpilly wrote:I'm used to configuring I/O in source code for the microcontroller. The requirement to set the I/O in Tuner Studio took me a while to figure out.
I would be happy to take a look. You can imitate your knock sensor with a function generator. Just set the function generator to output a sine wave at the same frequency as your engine's resonant knock frequency.russian wrote:I also need to shoot a video of how I test this on a bench so that you maybe would clarify what I do wrong, because I do not understand part of what's going on.
If you don't have a function generator, you can use your computer as a function generator with audacity (http://web.audacityteam.org/). Audacity will let you create a tone at a specific frequency. You will need to cut up a headphone cable in order to wire your computer's audio output jack to the TPIC/HIP input.
I made a few changes so that once the knock output level is greater than a user configurable threshold level ignition advance is decreased. Also, the user can configure a maximum amount of ignition advance that can be subtracted while knocking.
My current implementation is a fairly crude way of doing this but it's a start.
advance_map.cpp
engine.h
hardware.cpp
HIP9011.cpp
HIP9011.h
I will update this thread with more information later. My eyeballs are turning to mush from staring at this screen all day.