Page 1 of 1

Fitting an on/off switch to an input

Posted: Wed Jan 23, 2008 6:07 pm
by tristancliffe
I've read the thread further down about fitting a brake light switch to a DL1 for simple brake point/distance logging.

I run a single seater, so no brake lights.

Therefore I want to have one side of the switch on the DL1 reference voltage, and the other on the input terminal. Is that correct? I also note I should use a pull down resistor (presumably between input and earth) [or would a pull up resistor be better?] - what sort of resistor values should I use?

Mk1 DL1 by the way, if it makes any difference.

Thanks,

Tristan

Posted: Thu Jan 24, 2008 2:56 pm
by RTUSA
All you need is a swith between reference V and the analog input. No resistor is required, there is an internal pulldown.

Posted: Thu Jan 24, 2008 3:08 pm
by tristancliffe
Thank you very much Al! Much appreciated, and it'll be wired in at the weekend.

Put something to this effect on the wiki/knowledgebase for future reference ;)

Posted: Wed Jan 30, 2008 5:41 pm
by tristancliffe
What's the best way of getting into Analysis with 1s and 0s (1 for braking 0 for not).

Can I edit the equation on the variable input:

if(x>2.5,1,0)

Would that work, or should I do stuff like that on a user defined variable?