Page 1 of 1

starter pulse

Posted: Tue Feb 12, 2019 5:28 am
by FIS
I am working on ignition and starter, I want to make k.ignition to have 3 states: 0, 1 and 2.
K.starter button active for 3 seconds once it pressed only when k.ignition at state 2 .
I did
- lookup3 operation in 'n' to state the k.ignition
- pulse operation in function to pulse the k.starter 3s
The result
It works fine when I press in right sequence: press k.ignition until state 2 then press k.starter,
but when k.starter pressed first I notice pulse will active (the o.starter not active due to ignition not in state 2), so if k.ignition pressed before pulse time ending, the o.starter will on
Is there other way to do it?

Appreciate your help

Re: starter pulse

Posted: Tue Feb 12, 2019 10:14 am
by jgm
Hi,

You've wrote something like this:
o_starter.active = (k_ignition == 2) and pulse(k_starter, rising, 3s)

Please change it to something like this:
f_go = (k_ignition == 2) and k_starter
o_starter.active = pulse(f_go, rising, 3s)

It will activate the Pulse operation only if the k_ignition is on and the k_starter is rising.

Re: starter pulse

Posted: Tue Feb 12, 2019 5:13 pm
by FIS
JGM,
Thanks again for your support!

Re: starter pulse

Posted: Mon Feb 18, 2019 9:36 pm
by thokes82
Here is the example of my starter. It features Start/Stop button like in OEM installations. After turning on power you can press start. This will turn the starter until motor runs (via CAN rpm threshold). Pressed again and ignition goes off.

Re: starter pulse

Posted: Thu Feb 28, 2019 5:41 am
by FIS
Thanks for giving other setting choice