Low battery starting issues with missing tooth.

Official FreeEMS vanilla firmware development, the heart and soul of the system!
User avatar
Spudmn
LQFP112 - Up with the play
Posts: 232
Joined: Thu Feb 10, 2011 12:27 am
Location: Auckland, NZ

Re: Low battery starting issues with missing tooth.

Post by Spudmn »

I changed my tolerance to

Code: Select all

unsigned long tolerance = (smaller * TOLERANCE_LEVEL) / 1800; // TODO un hard code this. currently 25% tolerance
The car started up straight off :D

Divide by 1800 is 56% tolerance which is not great, but it works for my set up as it is now.

em_knaps you might want to try

Code: Select all

unsigned long tolerance = (smaller * TOLERANCE_LEVEL) / 2048;
and see how you get on.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Low battery starting issues with missing tooth.

Post by Fred »

Issue tracker, good enough, I clarified. Thanks for registering :-)

Tolerance change, you're supposed to do it in the define, but that works too :-) Glad it helped. Did you need to go that far?

I'll hit him up now if he's still awake.

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Spudmn
LQFP112 - Up with the play
Posts: 232
Joined: Thu Feb 10, 2011 12:27 am
Location: Auckland, NZ

Re: Low battery starting issues with missing tooth.

Post by Spudmn »

Fred wrote:
Did you need to go that far?
yes. I didn't want to. according to what I saw in the LA logs and my unit testing my teeth spacing is all over the show.

This setup works well if the crank speed is constant or you have more teeth than I do.

I will do some more testing after this weekend. I want to find out if it is my trigger wheel or just my old starter motor.

em_knaps. If it doesn't work after changing the tolerance, post a log of you cranking. I know what to look for now.

Re your RSI. Get well soon. If I can help in any way let me know.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Low battery starting issues with missing tooth.

Post by Fred »

How does the LA trace look at steady 2k or so? Whats needed is var tolerance with rpm, an issue already exists :-)

Push your test setup please? SUPER curious about that. Messy is fine, new branch, done deal, etc. I have some ideas about unit testing the decoders, but didn't start on it, wonder if you went the same way :-)

Fred

PS typed with 1 hand, hence brief
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Spudmn
LQFP112 - Up with the play
Posts: 232
Joined: Thu Feb 10, 2011 12:27 am
Location: Auckland, NZ

Re: Low battery starting issues with missing tooth.

Post by Spudmn »

Fred wrote:How does the LA trace look at steady 2k or so?

2k was going to be my next test to see if it is my trigger wheel that is the problem.
Whats needed is var tolerance with rpm, an issue already exists :-)
Agreed. Or if it knows that it is cranking, then a wide tolerance and when it is running a much smaller tolerance.

I will keep you posted.
User avatar
Spudmn
LQFP112 - Up with the play
Posts: 232
Joined: Thu Feb 10, 2011 12:27 am
Location: Auckland, NZ

Re: Low battery starting issues with missing tooth.

Post by Spudmn »

Fred wrote:I have some ideas about unit testing the decoders, but didn't start on it, wonder if you went the same way :-)
I just ripped out the ISR and all it's vars that it needed. Stuck it in one C file and complied it with GCC and ran it on the PC. I had an endian problem but it worked for the most part. I looks like a mess but it worked. I then mocked up the timer tick values and called the ISR.

I think your idea was to run unit tests remotely on the hardware which is a good idea.

I only got into Unit testing last year but it is a great way to build embedded code fast on a PC and have some confidence that it will work well when ported to the target platform.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Low battery starting issues with missing tooth.

Post by Fred »

yep, two steps of tolerance is still variable, exact method not decided yet. If it starts and runs with an even 50% tolerance, that's ok. More = overlap = not ideal.

OK, cool, more or less what i was thinking, then :-)

I have some other ideas for on the device too. Can you email me it? still keen to see your work :-) I love unit testing <3
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
em_knaps
QFP80 - Contributor
Posts: 99
Joined: Wed Jan 16, 2008 11:09 am
Location: New Zealand

Re: Low battery starting issues with missing tooth.

Post by em_knaps »

hey Spudmn,

the slater syncs instantly with the value at the "2048" you suggested.....

although it is only running on two, but that could be an unrelated issue as the car has been sitting for a while.
will investigate further tomorrow.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Low battery starting issues with missing tooth.

Post by Fred »

Context:

em_knaps: and it runs on two cyl that use separate ign channels
em_knaps: but not the other two cyl that use those same channels

stuck injectors? shorted to ground inside plugs? something odd.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Spudmn
LQFP112 - Up with the play
Posts: 232
Joined: Thu Feb 10, 2011 12:27 am
Location: Auckland, NZ

Re: Low battery starting issues with missing tooth.

Post by Spudmn »

em_knaps wrote:hey Spudmn,

the slater syncs instantly with the value at the "2048" you suggested.....

although it is only running on two, but that could be an unrelated issue as the car has been sitting for a while.
will investigate further tomorrow.

Good to hear. Looks like a nice day to work on it.
Post Reply