Hi guys, I feel a little ashamed about diving in on my first post and asking for advice but you never know, I may have something to offer back one day.
What I'm trying to do is a multi stage shifting light for a car, exactly like you see in modern f1 cars, about 10-12 led's in a row in colours ranging from green to red and lighting up sequentially (with rpm) in about 4-5 segments.
The device will be controlled by the ecu which has a number of simple on/off outputs, so for a 4 stage shift light I'll need 4 Outputs, the outputs are at a bit of a premium so l don't really want to go down this route.
The ecu also has pulse width modulated outputs which can go from 0-100 Duty cycle and 0-400 Hertz.
My problem is how to switch on the led's on in 4-5 stages by varying only the duty cycle. ie 20% duty = 3 led, 40% duty = 6 led, 60% duty 9 led's and so on. I understand the duty will affect the brightness of an led but could I some how use 4 or 5 transistors each with a different base resistor? Probably not as the transistor would probably mirror the duty over to the led.
Anyway, see what i mean, I've been scratching my head for a while.
Many thanks.
What I'm trying to do is a multi stage shifting light for a car, exactly like you see in modern f1 cars, about 10-12 led's in a row in colours ranging from green to red and lighting up sequentially (with rpm) in about 4-5 segments.
The device will be controlled by the ecu which has a number of simple on/off outputs, so for a 4 stage shift light I'll need 4 Outputs, the outputs are at a bit of a premium so l don't really want to go down this route.
The ecu also has pulse width modulated outputs which can go from 0-100 Duty cycle and 0-400 Hertz.
My problem is how to switch on the led's on in 4-5 stages by varying only the duty cycle. ie 20% duty = 3 led, 40% duty = 6 led, 60% duty 9 led's and so on. I understand the duty will affect the brightness of an led but could I some how use 4 or 5 transistors each with a different base resistor? Probably not as the transistor would probably mirror the duty over to the led.
Anyway, see what i mean, I've been scratching my head for a while.
Many thanks.