Using Digital Input to switch an output

Discussion and support for MoTeC's previous generation ECUs.

Re: Using Digital Input to switch an output

Postby Sean on Fri Aug 07, 2020 10:19 am

Start button is wired between b11 (dig 4) and b15 (0v aux)? I'll go borrow an ecu and try it with my dyno harness later today.
Sean
 
Posts: 250
Joined: Sun Dec 21, 2008 12:35 pm
Location: Adelaide or Auckland

Re: Using Digital Input to switch an output

Postby mick41zxr on Fri Aug 07, 2020 3:55 pm

Yes Dig 4 (B11), to 0V Aux (B15).
Regards,
Michael
mick41zxr
 
Posts: 23
Joined: Sun Feb 09, 2020 1:30 pm

Re: Using Digital Input to switch an output

Postby Sean on Sat Aug 08, 2020 1:09 pm

Here is a far from elegant workaround using digital input 4 as brake status triggering a timer channel which acts as a status channel input to the output 5 table. On the bench it appears to trigger the aux 5 correctly.

You could configure another input as clutch and use that to trigger timer 2 to be a second axis on the table if you wanted clutch interlock. I have attached an example of this too.

Ducati output config timer.e35
(72 KiB) Downloaded 626 times


Ducati output config timer 2 axes.e35
(72 KiB) Downloaded 639 times
Sean
 
Posts: 250
Joined: Sun Dec 21, 2008 12:35 pm
Location: Adelaide or Auckland

Re: Using Digital Input to switch an output

Postby mick41zxr on Sat Aug 08, 2020 10:14 pm

Greatly appreciated Sean,
Will give it a go. My other option was thinking of using a AT input with a pull up resistor.
Regards,
Michael
mick41zxr
 
Posts: 23
Joined: Sun Feb 09, 2020 1:30 pm

Re: Using Digital Input to switch an output

Postby Sean on Sun Aug 09, 2020 3:04 pm

mick41zxr wrote: My other option was thinking of using a AT input with a pull up resistor.


That will work and is configurable. That being said I have nfi why using a digital input as a button won't work. It was a good exercise to get the brain going anyway.
Sean
 
Posts: 250
Joined: Sun Dec 21, 2008 12:35 pm
Location: Adelaide or Auckland

Re: Using Digital Input to switch an output

Postby mick41zxr on Tue Aug 11, 2020 9:17 pm

Sean,
Just want to say thanks for your help.
Tested output table this evening & works perfectly, does not pulse the starter power up & will prevent an accidental push of the starter.
Regards,
Michael
mick41zxr
 
Posts: 23
Joined: Sun Feb 09, 2020 1:30 pm

Re: Using Digital Input to switch an output

Postby Sean on Wed Aug 12, 2020 3:34 pm

mick41zxr wrote: will prevent an accidental push of the starter.
How so, using another input for clutch?
Another way would be to use rpm as a second axis in the table, to disable the starter over say 500 rpm. 500 is a figure I plucked out of the air, would need tweaking to suit so it doesn't drop the starter off just as the motor kicks over.

Ducati output config timer w rpm interlock.e35
(72 KiB) Downloaded 612 times
Sean
 
Posts: 250
Joined: Sun Dec 21, 2008 12:35 pm
Location: Adelaide or Auckland

Previous

Return to M400, M600, M800 and M880 ECUs

Who is online

Users browsing this forum: Google [Bot] and 20 guests