Page 1 of 2

Using Digital Input to switch an output

PostPosted: Sun Aug 02, 2020 11:21 pm
by mick41zxr
Hi,
I am trying to use a motorcycle starter switch to control an output in a M400 to switch a starter relay.
The switch is connected to Digital Input 4, & the solenoid to Aux5.
While I can see the input switching I am having trouble configuring an AUX table to read the digital input.
dig1b.JPG
dig1b.JPG (113.77 KiB) Viewed 11672 times

dig2.JPG
dig2.JPG (99.26 KiB) Viewed 11672 times

Thanks,
Michael

Re: Using Digital Input to switch an output

PostPosted: Mon Aug 03, 2020 4:24 am
by David Ferguson
Did you try just setting the X-axis of the Aux5 table to "Dig 4 Position (Din4Pos)"?

Otherwise, what does your custom calibration table for "Starter Swtich" look like? Does the "Starter Switch" channel indicate the input is switching?

Re: Using Digital Input to switch an output

PostPosted: Mon Aug 03, 2020 8:56 pm
by mick41zxr
Thanks Dave,
I think that is where I am struggling. While I can see the digital input turning on, I am unsure how define it as an input for the table to read as a sensor.
Regards,
Michael
switch1.JPG
switch1.JPG (100.82 KiB) Viewed 11633 times

switch2.JPG
switch2.JPG (88.12 KiB) Viewed 11633 times

Re: Using Digital Input to switch an output

PostPosted: Wed Aug 05, 2020 12:09 pm
by Sean
Can you attach your ecu config so we can have a proper look please? Also, what part of the world are you in? Cheers.

Re: Using Digital Input to switch an output

PostPosted: Wed Aug 05, 2020 6:17 pm
by mick41zxr
Sean,
I am in Sydney.
Application is for early 90's Ducati.
Start switch is wired to Dig4, start solenoid is wired to Aux5.
While I can see the switch activating in the sensors page & can control the solenoid by testing outputs I am still having trouble linking the two. I could bypass Motec & connect start switch direct to solenoid I would like to incorporate a clutch and/or sidestand lockout down the track.
Regards,
Michael
Ducati 916sp - 3.e35
(72 KiB) Downloaded 677 times

Re: Using Digital Input to switch an output

PostPosted: Thu Aug 06, 2020 11:37 am
by Sean
I've had a bit of a dabble. Dig 4 is configured under Adjust> Sensor setup> Input setup> User
I can't guarantee it will work as I don't have an ecu at hand to try it on, but it should be close (I hope)
I'll send you a PM as well

Ducati output config 1.0.e35
(72 KiB) Downloaded 667 times

Re: Using Digital Input to switch an output

PostPosted: Thu Aug 06, 2020 1:27 pm
by SprinterTRD
Set the AUX output mode to 115

Then select the status number to the one you set the digital input for.

So if you used dig input to be clutch - use that status in the AUX setup

Re: Using Digital Input to switch an output

PostPosted: Thu Aug 06, 2020 8:54 pm
by mick41zxr
Thanks Sean,
I tried the setup, however the input is still not registering as a sensor, thus not active on the AUX table.
Sprinter,
I have tried what you recommended before while it does work direct as a starter button I have two issues.
It will not allow interaction with another sensor (i.e. clutch lockout or sidestand switch) like the AUX table does. It also pulses the output (AUX5) when M400 pwers up.
I think the issue is in the definition of Digit Input 4 as a Sensor & the calibration required for it.
Regards,
Michael

Re: Using Digital Input to switch an output

PostPosted: Thu Aug 06, 2020 9:08 pm
by Sean
What's the start button status with the start button pushed and not pushed. Does it change? I can't recall what's the default for a digi input.

stbttn.png
stbttn.png (41.12 KiB) Viewed 11527 times

Re: Using Digital Input to switch an output

PostPosted: Thu Aug 06, 2020 9:53 pm
by mick41zxr
The start button does not change in the status screen.
This is what leads me to think that its in the input definition.