![]() | ![]() | ![]() |
| | |||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) | |
| Quote:
Attached is an image of what I have for the LEDs on this right now. I'm only including one side here. In this version I have an incandescent lamp on the front flasher and an LED on the rear. It works just the same without the front flasher present, or with an LED in front instead of the lamp. The sim seems to be doing exactly what I would want, and from what I (think I) know, what I would expect. I'm confused about why the transistors wouldn't be getting current. Aren't the base resistors doing that? Anyway, the brake (red line) is pressed 3 times slowly and the left flasher is on until 2/3 of the way through the simulation. Time is greatly compressed here. The rear flasher inverts when the brake changes state but flashes just fine. Torben [Edit: The lamp wattage and supply voltages in the image don't match my above explanation but I just changed them back to 12V and 6W and got my expected results. The lamp current line now evens out at 0.5A.] Last edited by Torben; 25th October 2007 at 09:56 AM. | ||
| |
| | (permalink) |
| Torben, I was a bit confused when I wrote the previous post. I was confusing the transistor on and off criteria. If all the lamps are LEDs, then there may not be a problem. If you look at the voltage on the brake line, you will see that it rises to about the LED voltage (if it's a red LED, it will be probably about 1.7 Volt) when Q1 is on. So the base current is going through the brake LED. There won't be a problem provided that the current is low enough so that LED does not glow AND the transistor has enough base current to saturate it. But I'm not sure if both of these criteria can be met. It is usual to make the base current about one tenth of the collector current in order to ensure that the transistor is saturated. Can we meet this criterion and not cause the LED to glow? EDIT There will be more than one LED in the lamp. So it will also depend upon how many LEDs there are in series. With a 6 Volt system, you could probably have 3 LEDs in series. If there are 3 in series, this will significantly reduce the base current. So a resistor in parallel may be necessary.
__________________ Len Last edited by ljcox; 25th October 2007 at 11:03 AM. | |
| |
| | (permalink) |
| Hi Len, OK, I built the thing. I didn't really get what you were on about above until I did--not your fault; I just needed to see it in action. The sim is nice but doesn't really help explain it. Getting the build wrong a few times, thinking about it, etc., helped. I couldn't get the base current to shut off the flasher LED when the brake and flasher were both HIGH until I added a resistor to ground from the Left brake line input. If I'm doing this right, that means this resistor is dissipating 120nA when the left flasher is on. Seems acceptable. I haven't tried driving a front flasher from it yet though, and this circuit on the board is just a very simple exploration: 2 PNPs, 5 resistors, and some wire. Anyway, thanks very much for the patient explanation. I think I'm getting what's going on in the circuit now. Perhaps I'll build one for a high brake/flasher on my truck canopy. Someday. I won't be using 3906s though. Torben [Edit: nb: This was an all-LED build, one LED per side. Just to check the basic idea before proceeding.] [Edit 2: I added 2 more LEDs per side. These are all normal 20mA garden-variety red LEDs. It works fine as long as the voltage doesn't sag. At all. Last edited by Torben; 28th October 2007 at 10:18 AM. | |
| |
| | (permalink) | |
| Quote:
It would help if you could post a diagram.
__________________ Len | ||
| |
| | (permalink) | |
| Quote:
I meant "left flasher line", not "left brake line". And I meant that the new resistor to ground would pass 120uA (see below for why 120 is wrong too), not dissipate it. The nA thing was just me counting zeroes wrong, I guess. The resistor to ground is 100k. I got a bit confused because I did the calculation on paper first for 6V, got 60uA, and then simmed it and got 120uA, which confused me until I remembered that the sim was running 12V, not 6V like my breadboard. Then when I posted I just read the value off the sim instead of my paper. Argh. So that value should really be 60uA for a 6V supply, not 120nA. I must try to remember to post *before* falling asleep. Apologies. The schematic is the same as the one I posted earlier (the LTSpice image with the graph) except the front incandescent lamp model has been replaced with a 100k resistor. Torben | ||
| |
| | (permalink) | |
| I've revised your previous post (partially quoted below) in the light of your latest. Quote:
__________________ Len | ||
| |
| | (permalink) | |||
| Quote:
Quote:
Quote:
Torben | ||||
| |
| | (permalink) | |
| Quote:
However, I still can't explain what you're observing. I'll need to think some more about it.
__________________ Len | ||
| |
| | (permalink) |
| I still can't make any sense of it. So I've drawn the attachement. Please measure the voltages (without the 100 k resistor) at the C, B & E of both transistors for each case. A point that just occurred to me is the that EB junctions will go into Zener breakdown if the supply is 12 Volt. And it may occur at 6 Volt.
__________________ Len | |
| |
| | (permalink) | ||
| Quote:
Quote:
Torben | |||
| |
| | (permalink) | |
| Quote:
From the fact that I need 2K2 base resistors instead of 2.2K, which I also get from basic calculations, I think my Radio Shack "similar to 3906" transistors are not that similar to 3906s after all. The 2k2s work in the sim but not on the breadboard. As an aside, I tried simplifying and going back to my books, and found that in the sim, the 100k resistor to ground was not needed if I put 22K pulldowns on the bases of both transistors. I don't think the pulldown is needed on the base of the PNP which has its emitter to the brake line. This bombed on the breadboard. But the version with 2K2 base resistors and the 100k resistor to ground from the left flasher input line works great. I'm stumped for tonight. I'll have another look tomorrow. Torben [Edit: Oops. Uploaded smaller image. Also, I just tried this with 2K2 base resistors, a 220K pulldown on the base of Q2 (the transistor bridging the brake and flasher lines; I call the one interrupting the flasher line Q1), and no 100k resistor--and voila: it works fine. i.e. it follows the truth table you posted.] Last edited by Torben; 29th October 2007 at 09:17 AM. | ||
| |
| | (permalink) |
| Torben, What do you mean by "pulldowns on the bases of both transistors"? Are the resistors connected from base to emitter? I'll look at your measurements later.
__________________ Len | |
| |
| | (permalink) |
| Torben, I think I know what you mean by "pull down resistors". I assume you mean resistors from the bases to gnd. This is not necessary or sensible. I've looked at your measurements. They show that, without the 100k resistor, there is insufficient base current to turn Q2 on. (4.63 - 4.62)/2.2 = 5 uA approx. This is not a surprise to me. As I stated originally, you need either incadescent lamps for the front flashers and the centre lamp in order to provide a low resistance path for the base currents. If you use LEDs, then you need a resistor of 470 Ohm in parallel with the LED lamps. Your figures show that 100k is not low enough to saturate the transistors. For example, if Q2 was saturated, then the collector voltage would be about 5.0 Volt (given that you measured 5.21V on its emitter), not 4.07 Volt. So I suggest that you install 470 resistors across the LED lamps and use 2.2k resistors for the bases as in my diagram.
__________________ Len Last edited by ljcox; 30th October 2007 at 02:24 AM. | |
| |
| | (permalink) |
| Hi Len, OK. I wasn't prepared to trust the thing, since neither intuition nor my calculator liked the 22K base resistors with 220k pulldowns (you're right about what I meant by pulldown, by the way: base resistors directly to ground). I was using the pulldowns to try to ensure that the bases weren't floating when not connected to anything (i.e. when the switch/relay was open). I'm going to go back to the 2k2s and try the 470 resistors in parallel with the LEDs later tonight. My solution did work for me, but without understanding why, I wouldn't trust it. So I'll also run the numbers for both ideas (mine which "worked" but probably for the wrong reasons, and yours, which is far more likely to be the "right" solution) and see if I can't figure that much out. So basically this whole thing came down to me not getting the point that the LEDs are not providing the base current path to ground? Seems that way to me. Torben | |
| |
| | (permalink) |
| Len, OK, I tried it without the 100k resistor and pulldowns, but with the 470 ohm resistors parallel to the LEDs. With that configuration, connecting only the brake input to 6V would light the brake LEDs but not the flasher LEDs. However, replacing the 100k resistor did the trick. I changed the 100k resistor to 22k and it worked perfectly. I think I'm going to cram for a while with my books and calculator to try to figure out exactly what's going on here, what the current paths are, and maybe order some real 3906s to work with instead of these so-called "similar" PNPs I've got here. Thanks again, Torben | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| solar blinking LED HELP | team_nightstalker | Electronic Projects Design/Ideas/Reviews | 33 | 26th October 2007 06:05 PM |
| asm attachments | eng1 | Feedback/Comments | 6 | 14th September 2007 04:01 PM |
| P channel FETs vs N channel FETs for LED Matrix applications ?? | tdg8934 | General Electronics Chat | 3 | 9th September 2007 06:17 PM |
| Senior Project Design ideas (Audio/Video) | FusionITR | Electronic Projects Design/Ideas/Reviews | 12 | 3rd October 2006 06:21 PM |
| Drill speed brake - How does it work? | moody07747 | General Electronics Chat | 4 | 23rd June 2005 03:01 AM |