Fitting an on/off switch to an input

tristancliffe
Posts: 220
Joined: Thu Mar 15, 2007 3:41 pm
Location: Norwich, UK
Contact:

Fitting an on/off switch to an input

Postby tristancliffe » Wed Jan 23, 2008 6:07 pm

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
Monoposto 2000 - Reynard 883 Toyota

RTUSA
Site Admin
Posts: 457
Joined: Fri Feb 24, 2006 7:34 pm
Location: Richmond, VA, USA

Postby RTUSA » Thu Jan 24, 2008 2:56 pm

All you need is a swith between reference V and the analog input. No resistor is required, there is an internal pulldown.
Al Seim
Race Technology USA

tristancliffe
Posts: 220
Joined: Thu Mar 15, 2007 3:41 pm
Location: Norwich, UK
Contact:

Postby tristancliffe » Thu Jan 24, 2008 3:08 pm

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 ;)
Monoposto 2000 - Reynard 883 Toyota

tristancliffe
Posts: 220
Joined: Thu Mar 15, 2007 3:41 pm
Location: Norwich, UK
Contact:

Postby tristancliffe » Wed Jan 30, 2008 5:41 pm

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?
Monoposto 2000 - Reynard 883 Toyota


Return to “Sensor-related questions”

Who is online

Users browsing this forum: No registered users and 23 guests