Page 3 of 4
Re: Code to fix offset/delay teeth
Posted: Fri Nov 20, 2009 12:13 pm
by Peter Florance
grippo wrote:The best position is for the reluctor synch edge to be in the center of two flywheel tooth edges. If the rising/ falling edge was selected to achieve this, then all should be good. But if there is doubt you could try changing the rising to falling on the reluctor.
After more testing and coding I am back to thinking there is something wrong with my setup. I won't be able to get back to this until Sunday earliest, but Peter, if you want to test Rob's msq and his code version on the bench with a simulated 130 tooth wheel that would be helpful. What you would be looking for are loss of synch - the rpm gauge will momentarily flick to 0. But the best way is to bring up the spare gauge labeled spare 1 or 2 or maybe reset. You can tell you have the right gauge because it will come up as 1 and if you are synched and cut off the tach signal it will increment. So you can walk away and come back an hour later and if it is still 1 there were no resynchs, if it counts to 5, there were 5 resynchs. But what I am seeing are continuous resynchs, several per sec, then after I have fooled around or made a code change, they go away and it is rock solid for hours. Then I leave it exactly as is with power off and go to bed. When I wake up and turn everything on it resynchs all over the place.
I think I can get in here early sat and test. Depends if I can remember how to down load the wheel into Jimstim.

Re: Code to fix offset/delay teeth
Posted: Fri Nov 20, 2009 12:30 pm
by racingmini_mtl
Peter Florance wrote:Depends if I can remember how to down load the wheel into Jimstim.

Let me know if you need a hand with this.
Jean
Re: Code to fix offset/delay teeth
Posted: Fri Nov 20, 2009 1:08 pm
by Peter Florance
racingmini_mtl wrote:Peter Florance wrote:Depends if I can remember how to down load the wheel into Jimstim.

Let me know if you need a hand with this.
Jean
Thanks Jean
Now I'm thinking the JimStim may not be the way to go as I recall the 2nd trigger signal will either rise or fall in time with the tach out?
BTW, I'm not getting subscription notifications from this forum, so I may be slower getting back to it.
Re: Code to fix offset/delay teeth
Posted: Fri Nov 20, 2009 5:13 pm
by racingmini_mtl
Peter Florance wrote:Now I'm thinking the JimStim may not be the way to go as I recall the 2nd trigger signal will either rise or fall in time with the tach out?
Not necessarily. That depends how you define the wheel pattern. Both outputs can rise and fall independently.
Jean
Re: Code to fix offset/delay teeth
Posted: Fri Nov 20, 2009 6:47 pm
by Peter Florance
racingmini_mtl wrote:Peter Florance wrote:Now I'm thinking the JimStim may not be the way to go as I recall the 2nd trigger signal will either rise or fall in time with the tach out?
Not necessarily. That depends how you define the wheel pattern. Both outputs can rise and fall independently.
Jean
That sounds familiar....
I'll check it out.
Thanks!
Re: Code to fix offset/delay teeth
Posted: Sat Nov 21, 2009 7:53 am
by robh
Brief update update from my side: I changed back to 0 delay teeth and -305 offset (keeping rising edge) and got resync at 3500 RPM.
More importantly, yesterday morning I switched to falling edge with 0 delay teeth and had no resyncs at all. So I pulled over on my way to work and changed back to 26 delay teeth and -9 offset, keeping falling edge and had no resync. So at any delay teeth/offset and falling edge, I haven't gotten any resyncs in 40 minutes of driving time.
Please let me know if you guys want me to try anything else on my end. All the support is awesome.
Re: Code to fix offset/delay teeth
Posted: Sun Nov 22, 2009 2:48 am
by Peter Florance
robh wrote:Brief update update from my side: I changed back to 0 delay teeth and -305 offset (keeping rising edge) and got resync at 3500 RPM.
More importantly, yesterday morning I switched to falling edge with 0 delay teeth and had no resyncs at all. So I pulled over on my way to work and changed back to 26 delay teeth and -9 offset, keeping falling edge and had no resync. So at any delay teeth/offset and falling edge, I haven't gotten any resyncs in 40 minutes of driving time.
Please let me know if you guys want me to try anything else on my end. All the support is awesome.
It sounds like you may have found the proper edge. Have you ever scoped it or can you tell me which wire you are using for positive on each sensor? I may be able to work backwards and determine which edge is correct.
IIRC, MicroSquirt VR inputs do not invert like MegaSquirt does.
Re: Code to fix offset/delay teeth
Posted: Sun Nov 22, 2009 2:49 am
by Peter Florance
I wasn't able to test yesterday but can probably get it done early Monday morning. I have a Bosch reference sensor on my wheel tester; if I know which pin you are using for positive VR, I can tell you which edge is correct.
Re: Code to fix offset/delay teeth
Posted: Sun Nov 22, 2009 11:58 am
by robh
It's been a year since I wired up the microsquirt harness but I do believe I remember this. The 944 wiring has twisted pair and shield. I grounded the shield to Chassis ground, connected the 944 (-) wire of the twisted pair to Microsquirt harness vrin(-) and connected 944 (+) wire to vrin1(+) as labeled on the wires.
Checking the microsquirt website, the wire labeled vrin1(+) goes to pin 32.
Re: Code to fix offset/delay teeth
Posted: Sun Nov 22, 2009 3:48 pm
by Peter Florance
robh wrote:It's been a year since I wired up the microsquirt harness but I do believe I remember this. The 944 wiring has twisted pair and shield. I grounded the shield to Chassis ground, connected the 944 (-) wire of the twisted pair to Microsquirt harness vrin(-) and connected 944 (+) wire to vrin1(+) as labeled on the wires.
Checking the microsquirt website, the wire labeled vrin1(+) goes to pin 32.
Do you recall what DME pin #'s those wires go to?