starter pulse

All information about power management unit
Post Reply
FIS
Posts: 16
Joined: Fri Feb 09, 2018 12:39 pm

starter pulse

Post by FIS » Tue Feb 12, 2019 5:28 am

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

jgm
Posts: 73
Joined: Wed Oct 19, 2016 3:59 pm

Re: starter pulse

Post by jgm » Tue Feb 12, 2019 10:14 am

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.

FIS
Posts: 16
Joined: Fri Feb 09, 2018 12:39 pm

Re: starter pulse

Post by FIS » Tue Feb 12, 2019 5:13 pm

JGM,
Thanks again for your support!

thokes82
Posts: 19
Joined: Sun Apr 17, 2016 10:14 am

Re: starter pulse

Post by thokes82 » Mon Feb 18, 2019 9:36 pm

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.
Attachments
Starter.pmu
(60.79 KiB) Downloaded 1 time

Post Reply
stół kuchenny okrągły

Who is online

Users browsing this forum: No registered users and 2 guests