Wiring a digital input switch

Discussion and support for MoTeC's previous generation ECUs.

Wiring a digital input switch

Postby Raheel Farouk on Thu Feb 27, 2014 4:47 pm

Hi,
Can someone explain how to wire a digital input switch. To what pin should it go and should i ground it to 12V. I am trying to wire a switch to turn anti-lag on and off
Raheel Farouk
 
Posts: 10
Joined: Thu Feb 27, 2014 3:49 pm

Re: Wiring a digital input switch

Postby Merlin on Thu Feb 27, 2014 9:30 pm

Just connect the digi input to the 0v line through your switch
And program the input overrun boost


John P
Merlin
 
Posts: 52
Joined: Thu Jul 10, 2008 12:47 pm

Re: Wiring a digital input switch

Postby Holmz on Fri Feb 28, 2014 9:48 pm

Raheel Farouk wrote:...And should i ground it to 12V.
...


You either run 12V to the switch and back to the ECU.
Or
You run the 12V to the switch with an ~5K-ohm resistor before the switch and ECU and have the switch ground the 12V (2-mA).
User avatar
Holmz
 
Posts: 521
Joined: Fri Dec 19, 2008 6:19 pm
Location: Australia and the USoA

Re: Wiring a digital input switch

Postby Scott@FP on Sat Mar 01, 2014 8:43 am

On a digital input you don't need a voltage source they already have a 4.7K 5v pullup on them. Just ground it to go below the switch threshold voltage, its like 3.5v going up and 1.0v going down.
Scott@FP
 
Posts: 421
Joined: Thu Jul 10, 2008 7:57 pm

Re: Wiring a digital input switch

Postby Raheel Farouk on Sun Mar 02, 2014 1:19 pm

Scott@FP wrote:…Just ground it to go below the switch threshold voltage, its like 3.5v going up and 1.0v going down.

So if I ground it to the 0V aux that would be fine right?
Raheel Farouk
 
Posts: 10
Joined: Thu Feb 27, 2014 3:49 pm

Re: Wiring a digital input switch

Postby Scott@FP on Mon Mar 03, 2014 8:58 am

Raheel Farouk wrote:
Scott@FP wrote:…Just ground it to go below the switch threshold voltage, its like 3.5v going up and 1.0v going down.

So if I ground it to the 0V aux that would be fine right?


Yes both the digital inputs 1-4 and the AT 1-6 already have a 5v pullup so just ground to 0v engine or aux with the switch and set up the parameters.
Scott@FP
 
Posts: 421
Joined: Thu Jul 10, 2008 7:57 pm

Re: Wiring a digital input switch

Postby Holmz on Mon Mar 03, 2014 12:31 pm

Scott@FP wrote:
Raheel Farouk wrote:
Scott@FP wrote:…Just ground it to go below the switch threshold voltage, its like 3.5v going up and 1.0v going down.

So if I ground it to the 0V aux that would be fine right?


Yes both the digital inputs 1-4 and the AT 1-6 already have a 5v pullup so just ground to 0v engine or aux with the switch and set up the parameters.


Are you saying ground it anywhere?
Or running a wire back to the ECU to ground it there?

I thought the advantage of the pull-up was one small wire to the switch, and not 2 ??
User avatar
Holmz
 
Posts: 521
Joined: Fri Dec 19, 2008 6:19 pm
Location: Australia and the USoA

Re: Wiring a digital input switch

Postby Scott@FP on Wed Mar 05, 2014 6:52 am

In theory chassis ground would work fine, but reading the fine print on the digital inputs the negative swing switching threshold is 1v, to insure it functions always might be better to ground to aux or engine 0v. In the case of an AT you can set the switching voltage in software to insure a chassis ground issue won't happen, like 3v with a 1v hysteresis. My personal preference is to keep digitals away from any high current ground path, but there are 34 ways to skin a cat as they say.
Scott@FP
 
Posts: 421
Joined: Thu Jul 10, 2008 7:57 pm

Re: Wiring a digital input switch

Postby Holmz on Thu Mar 06, 2014 12:08 am

I agree with the idea of a twisted pair.
But the input should be low pass filtered?
And then again adding noise into the system can be mitigated with a twisted pair.

It probably helps to have a scope!
User avatar
Holmz
 
Posts: 521
Joined: Fri Dec 19, 2008 6:19 pm
Location: Australia and the USoA

Re: Wiring a digital input switch

Postby Raheel Farouk on Tue Mar 11, 2014 12:08 am

Hi

I am trying to wire a switch to turn launch control on/off. But when I go into the digital input function selection there is no option for launch control. But there is an option for traction control. I don't have traction control setup. I only want launch control. Will selecting the traction control function turn on lauch control on/off? Any help will be appreciated.

Thanks,
Raheel Farouk
 
Posts: 10
Joined: Thu Feb 27, 2014 3:49 pm


Return to M400, M600, M800 and M880 ECUs

Who is online

Users browsing this forum: No registered users and 37 guests