First: Kudos for diving in and going for it.
Quote:
basically what i want to do is place the two leds (wich are part of the switches but have separate connections) in series with a resistor to keep them from burning up.
|
Unless you drive them with a current-limited or constant current source, there has to be a resistor somewhere. You're on the right track.
Quote:
the only info i have on the leds is that they need 1.7V
|
Well, technically that's the voltage drop across the LED; you also need to know at what current they should run. Otherwise, you can take a safe guess and go from there.
Quote:
i'm assuming 0.02A is ok, but this is my first question, is it?
|
20mA should be safe, but the result may not be bright enough. I wouldn't count on being able to see them light up during the day, for example. It might work, but you're fighting a very high ambient light level. Ideally you want to look at the LED curves or at least have the typical and absolute maximum ratings for current to work from.
Also, be aware that the forward voltage drop as well as efficiency varies from LED to LED, especially between different colors. You may have to give each LED its own resistor to get them balanced the way you want. But it won't hurt to breadboard it the way you have it drawn and see how it works -- could be perfectly fine as is.
Quote:
secondly since most resistors have a 10% tolerance i'm likely to get e slightly different resistor especially if i get one from the E12 range. also battery voltage may varry so i'm wondering how much deviation from my 0.02A is acceptable?
|
The closest 10% values will be 470 on the high side and 390 on the low. You can stab in the middle of those two values if you get a 5% resistor (which I think are more readily available than 10% these days).
Battery voltage
will vary; count on it.
As long as you're aware that less current equals less brightness and you don't exceed the absolute maximum rating, varying the current some isn't going to hurt anything. I'd suggest derating the max a bit given how hot it can get in a car. There may be derating info on the spec sheet; if not just stay reasonably far away from the max and you'll probably be okay.
Quote:
finally does the scematic i drew up look acceptable, or is it plain wrong?
|
I'm not quite clear on what you're doing on the shutoff (is that the fuel injector you're killing?) but in general it looks okay. The one thing I'm not sure about is, you appear to be using switched power ("after contact") to energize a relay to turn off the switched power ("contact")... that will likely make a better buzzer than it will an engine shutoff.
But as I said, I'm not quite clear on what you're doing there, so it may be golden.
Do you have part numbers on the LEDed switches? Maybe we can dig up the spec sheets.
Rick
__________________