RGB leds, this one to challenge the Electronics gurus.
Submitted: Friday, Jul 27, 2007 at 12:18
ThreadID:
48141
Views:
2645
Replies:
7
FollowUps:
6
This Thread has been Archived
Mr Fawlty
This is a big ask and I will reward whoever can solve the problem with a 2 chord steam whistle kit, ideally suited to replace your boring vehicle horn.....
Ok the problem: I would like to put a muti colour led in the circuit to indicate the power status to my
driving lights, "Why?" I all hear you chorus... Because it will look really cool and impress the knickers of the PFT's who see it...
It's a Z3860 from DS. The reason I can't suss it out is because the anode + is common the other colours being seperate cathodes -. I would like to be able to wire this thing up so that when power is available it glows green and when the lights are on it glows blue. I guess this will require transistors &c and if so
well I'll abandon this excercise and declare it "childish", though as an added incentive it will give Sybil the irrates in a serious manner.... She fell out of the car the other day and I did not realise it untill informed by the police..... & I thought I'd gone deaf.
Reply By: AdrianLR (VIC) - Friday, Jul 27, 2007 at 13:07
Friday, Jul 27, 2007 at 13:07
It would be easier if you got a common cathode version:
www.superbrightleds.com/TriColor%20LED.htm
If you had this then simply a resistor in series with each anode leg to driving light +, dash lighting +
Hope that sort of helps.
Adrian
AnswerID:
254695
Follow Up By: Mr Fawlty - Friday, Jul 27, 2007 at 13:12
Friday, Jul 27, 2007 at 13:12
I had kind of figured that.... I'l hunt around and see if I can get one.
FollowupID:
515791
Follow Up By: AdrianLR (VIC) - Friday, Jul 27, 2007 at 13:35
Friday, Jul 27, 2007 at 13:35
Here's an Australian place that's got the common cathode ones:
Site Link
FollowupID:
515800
Reply By: Ingtar - Friday, Jul 27, 2007 at 13:11
Friday, Jul 27, 2007 at 13:11
Shouldn't be too hard as long as you have a discrete earth to your
driving lights (ie not earthed via the case). I'm not sure how
well I can describe it here but I'll give it a go.
B represents the blue cathode, G represents the green cathode.
------------------------------------ Power source (Live when power available)
| |
Z Resistor |
| O
Driving lights relay
O LED |
G/ \ B
/ Z Resistor
/ |_________________|
/ / Switch for lights
Z Resistor |
__/______________________| Ground
So when there is no power available, nothing will be on.
When power becomes available, it will run through the Green LED to ground.
When the switch is activated, the relay will switch on, turning the lights on.
Also, there will be a ground path provided for the Blue LED to turn on.
The resistors need to be appropriately sized so the LED only gets 20mA (from spec sheet). Apparently forward voltage is 3.5V, so I *THINK* you need around a 470 Ohm (12V) or 680 Ohm (15V - remember voltage is higher when engine running) resistor, but my calculations could be wrong there. I would go with the 680 ohm.
Also, the circuit as above will have both Green and Blue on when the lights are on. If you only want one or the other, you need a double throw switch that, when off, completes the path from G to ground.
Hopefully that is slightly clearer than mud.
AnswerID:
254696
Follow Up By: Ingtar - Friday, Jul 27, 2007 at 13:15
Friday, Jul 27, 2007 at 13:15
Bugger. All that effort then my spaces got cut out. Definitely mud.
Try again... consider .... as white space.
------------------------------------ Power source (Live when power available)
.........|.................................|
.........|.................................|
.........|.................................O
Driving lights relay
.........O.LED..........................|
......G/ \ B.............................|
......./....Z Resistor.................|
....../.....|_________________|
...../....................................../ Switch for lights
....Z Resistor.........................|
__/______________________| Ground
FollowupID:
515793
Reply By: Ben W - Friday, Jul 27, 2007 at 13:27
Friday, Jul 27, 2007 at 13:27
There are probably nicer ways to do this, but the first one that popped in to my mind involves a simple SPDT relay (ie; any standard automotive relay).
Connect the blue cathode to 87, the green to 87a, 86 & 30 to ground and 85 to the +'ve side of your
driving lights. The anode on the LED goes to a +'ve voltage supply - whatever you want to reference as power available (battery, ignition etc).
When the relay is in the NC position, the LED will illuminate green, when the relay is switched on (with power from the
driving lights), it the NO pole of the relay will be energised - causing the LED to switch blue.
Or something like that :)
AnswerID:
254698
Follow Up By: Ben W - Friday, Jul 27, 2007 at 13:31
Friday, Jul 27, 2007 at 13:31
Sorry, I shouldn't say it will be energised, as it won't be - instead it will provide a path to ground.
FollowupID:
515799
Reply By: Robin Miller - Friday, Jul 27, 2007 at 13:52
Friday, Jul 27, 2007 at 13:52
Hi Fawlty
You have some good answers already - but I don't think the light output of that led is very good via its diffused housing. The seperate 3mm leds from say jaycar look more impressive.
I have used one of those leds and the 8 possible colour combinations to show the different voltage levels from a battery. But this is a little more complex.
Robin Miller
AnswerID:
254705
Reply By: Mr Fawlty - Friday, Jul 27, 2007 at 15:09
Friday, Jul 27, 2007 at 15:09
Ok, thanks chaps..... Adrian's solution is now to hand a common cathode LED from Jaycar. His solution requires the least skill and I am therefore awarding the prize to him. Adrian email me with your snail mail addy & I'll post the kit to you.
sydney-riley@hotmail.com
Once again gentlemen I thank you all for your efforts...
AnswerID:
254716
Follow Up By: Ingtar - Friday, Jul 27, 2007 at 17:39
Friday, Jul 27, 2007 at 17:39
That's cheating! He didn't give a solution to the question, he changed the question completely!
Guess he's a better engineer than me.
FollowupID:
515824
Reply By: stocky - Friday, Jul 27, 2007 at 20:18
Friday, Jul 27, 2007 at 20:18
Bugga - i was gonna suggest a microprocessor and PWM fade between colours :-(
:-)
AnswerID:
254759
Reply By: Mr Fawlty - Saturday, Jul 28, 2007 at 15:55
Saturday, Jul 28, 2007 at 15:55
Well there is no such thing as a free lunch.... Now seriously guys Adrian read the question, I wanted to use the green & blue and if they are on together I'll still get blue. However Adrian is now stuck with a DS steam whistle kit based on the AE circuit which to any afficiando will assure you that there is now way this kit when assembled makes a noise that in any way resembles that of a steam whistle. So here is an even better challenge Design a circuit that does produce a steam whistle sound. Your answers suggest that there is any number of you who are skilled enough to do it....I now use a real steam whistle concealed behind the bumper of the Jack and powered by an Air Horn compressor with a small reservoir to give an appropriate ascent & decent of the note rather than sounding like a tug boat. So I do have some spare real brass steam whistles, I did have them on a manifold so that they could be played calioppe fashion but the neighbours had differing thoughts...
I tell ya it gets the message thru to PFT,s and other morons who do not slow down at railway xings.
AnswerID:
254837
Follow Up By: AdrianLR (VIC) - Monday, Jul 30, 2007 at 08:39
Monday, Jul 30, 2007 at 08:39
With some trepidation (as this may again be seen as a change of question!!), and having tried various sound generator circuits based around the SN-series of chips for my son's (my??) model train set, can I suggest that a voice recorder-based approach may work better.
There is a voice recorder chip that can record up to a minute digitally. Silicon Chip designed a circuit around it and Jaycar sell it as a kit:
Site Link
The PCB has an onboard microphone so you could take it to your closest steam train and record a whistle blast.
Hook the output up to an amplifier eg:
Site Link
then to a horn speaker.
I haven't tried it and it would depend on the dynamic range and sampling rate of the chip as to how
well it all works. You of course could record other sounds that may be even more "appropriate".
All the best
Adrian
FollowupID:
516170