Closed apollard closed 7 years ago
Started trying to figure out where in the code it is causing the FP to cycle on/off (ie, relay clicking) and more definition of exact conditions causing it. Put in serial prints to find area that is cycling pump. Learning a lot about the great programming done in the project.
OK, so did some more testing, and I've narrowed this issue down to just the "basic Distributor" trigger.
Speedy works fine with other triggers (tried 36-1, 60-2, and GM 24X). You can delay the trigger signal as long as you like and it syncs fine with other wheels. You can also remove the trigger signal, then reapply it and Speedy will sync again.
With the basic distributor setting, the trigger must be there when Speedy boots up or it won't sync and it goes into a situation where it pulses the Fuel Pump approximately every second. If the trigger is removed, it won't re-sync when it is reapplied and FP starts the pulsing.
Now to figure out what is different about the Basic Distributor code that causes this.
Thanks for the report and the investigation you've done into this!
I'm not immediately seeing this on a test setup, but will keep looking into it.
Can you please post a tune file (msq) for your setup?
That certainly sounds like a restart of the CPU to me. Is your fuel pump pulling too much current, which drops the supply voltage too low, which then restarts the whole shebang ad infinitum?
On 4/05/2017 13:59, "Josh Stewart" notifications@github.com wrote:
Can you please post a tune file (msq) for your setup?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/noisymime/speeduino/issues/81#issuecomment-299081510, or mute the thread https://github.com/notifications/unsubscribe-auth/ACI951L3Y2u0F_yJWJHXSRoukxtLwA3Aks5r2TEAgaJpZM4NMrYg .
@apollard Does TS reconnect / disconnect when the problem occurs? If it is then the resetting mentioned by @DarrenInwood may be a consideration. If TS stays connected, then that can be rules out.
I pushed up a few small fixes just now. Would be worth trying them to see if they make any difference, but I'm still unable to reproduce the issue the way you're seeing it, so I wouldn't be confident they have fixed it.
"fix Cranking Timing With Trigger" made no Difference.
However, with the Ardustim attached, I decided to change the filter I had (Weak) to none. That DOES show teeth in the logger. Below is the pattern I'm seeing (second image).
Since the Ardustim pattern is a 50% duty cycle square wave, the timing on each tooth should be very close, as shown by the image with sync (Tooth logger with sync - 8 cyl dizzy). The only change between these two images is that I power cycled the Speedy. Ardustim running with no change, so trigger was there on Speedy boot.
So something in code is throwing the timing of the trigger interrupt off ?
TS is not dropping connection, and the arduino stays operating (ie, not rebooting). Right now, I only have the FP relay hooked up in the boat, but not the FP. It isn't loosing power, since the ECU and FP relay are fed from different home runs to the main power point for the boat.
I am now simulating this on the bench with just an Mega 2560, a LED/resistor to show FP state and an Ardustim for trigger. So, no load at all really.
Current tune below - this is the one generating tooth logs above.
I'll download the commit and try it.
WOOHOO!
No idea what you changed Josh, but the issue is gone with the latest commit. I can't replicate it on the bench. I'll try in the boat, but I could replicate it reliably on the bench, so I'm sure it's solved. :)
Just for info, here's how I replicated the issue - I used the Mar release and the Apr 17 download, either did the same:
Other condition:
I may futz around to find what was happening, my curiosity is up. Or maybe I should just finish the install and run it...
Hmmmm interesting. Almost certainly something to do with the filtering then based on your last 2 comments (and what I changed today). Anyway, glad to hear it's progress.
Happy to close this one or do you want to do more testing?
I think you can close it. I was able to replicate on the bench so reliably that I'm 100% sure it will work on the boat.
Fixed by bae708a4d638aae40ccf0978b7a741d994717f82
I've been having trouble getting Speedy to recognize the basic distributor trigger.
If I turn the key and immediately crank the engine, it always detects the trigger.
If I turn the key on and wait a few seconds, it never detects the trigger.
Never fails, I tried it probably 40 times back and forth. Then cranked it immediately upon key turn 10 more times and everytime it synced. Video below shows this clearly. For this video, recall that I am only trying to get the trigger to work reliably, the distributor and carb are running the engine.
First I turn the key and crank it. You can see the injector lights flashing, showing trigger sync. Second, I turn the key, wait a few seconds and crank it. You can hear the FP relay cycle for the priming pulse and then when I start the engine you can hear the FP relay clicking. No injector lights, and TS reports no teeth in the logger and no RPM.
I do this a couple more times in the video to show the pattern.
https://youtu.be/owCFiOiRrDU
Pretty sure this isn't expected behavior, hence the report.
Original thread here: http://speeduino.com/forum/viewtopic.php?f=19&t=1140&p=18277#p18277
Edit to add: Replicated the same on two 0.3.3 shields and one 0.4.2.