He asked for one LED to be on with a 5-volt supply and the other to be on with a
12-volt supply. The circuit needs to work for a reasonable tolerence on both supplies. Both on in some small presumably-never-happens transition region is as good a scheme as any.
What Jim did with his second circuit *was* wrong. His "5V" LED was still on at
11.9 volts, and both were off at 4.9.
--
John Larkin Highland Technology Inc
www.highlandtechnology.com jlarkin at highlandtechnology dot com
Precision electronic instrumentation
Picosecond-resolution Digital Delay and Pulse generators
Custom timing and laser controllers
Photonics and fiberoptic TTL data links
VME analog, thermocouple, LVDT, synchro, tachometer
Multichannel arbitrary waveform generators
turns on and if you power it up with 12V the 5V LED goes off and the 12V indicator goes on.
until I provide it a voltage drop of 5.6V, and since it's in series with some other stuff (resistors and an LED) I thought it would definitely be off at 5V, but it's on just enough to turn on my FET M1 and not let my D4 LED light up... I'm basically measuring a little over 1V at the gate.
maybe, but why is D1 turning on at all? Is it leakage current that's causing this circuit not to work at 5V? D3 the 12V LED is definitely off at a 5V supply (as it should be) and the circuit works at 12V... but not at 5V...
One final pass...
formatting link
then back to real work >:-} ...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
turns on and if you power it up with 12V the 5V LED goes off and the 12V indicator goes on.
until I provide it a voltage drop of 5.6V, and since it's in series with some other stuff (resistors and an LED) I thought it would definitely be off at 5V, but it's on just enough to turn on my FET M1 and not let my D4 LED light up... I'm basically measuring a little over 1V at the gate.
maybe, but why is D1 turning on at all? Is it leakage current that's causing this circuit not to work at 5V? D3 the 12V LED is definitely off at a 5V supply (as it should be) and the circuit works at 12V... but not at 5V...
I'd never design anything that clumsy. And you obviously Spice-fiddled it until you got it to work. At least you got the transition voltage
*between* 5 and 12 this time.
--
John Larkin Highland Technology, Inc
jlarkin at highlandtechnology dot com
http://www.highlandtechnology.com
Precision electronic instrumentation
Picosecond-resolution Digital Delay and Pulse generators
Custom laser drivers and controllers
Photonics and fiberoptic TTL data links
VME thermocouple, LVDT, synchro acquisition and simulation
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
Too much wine already, John? I snipped the bulk of your .ASC listing to keep the posting short, but marked it for anyone entering the discussion late to the game.
Damn! Maybe _you_ are go "Just advisory. I wasn't criticizing. The libraries in LTspice can mislead."
Cranky old fart >:-} ...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
--
Nope, there's never too much wine.
----
>I snipped the bulk of your .ASC listing to keep the posting short, but marked
it for anyone entering the discussion late to the game.
it for anyone entering the discussion late to the game.
I was replying to your post that included the full .ASC listing, which made the post rather long.
So I trimmed the .ASC listing to shorten the overall message but added a link to the full message if anyone missed it.
Capish ?:-)
Next time I'll leave an explanatory note for any of you who are mentally slowing down >:-}
Note to Larkin and his butt buddies:
See!! Fields and I will cut each other's throat, if necessary to make a point ;-) ...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
The point being that you are both crabby old hens.
Hey, we all knew that already.
--
John Larkin Highland Technology, Inc
jlarkin at highlandtechnology dot com
formatting link
Precision electronic instrumentation Picosecond-resolution Digital Delay and Pulse generators Custom laser drivers and controllers Photonics and fiberoptic TTL data links VME thermocouple, LVDT, synchro acquisition and simulation
Yup. A lame flame from a lame brain >:-} ...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
I'm working my way thru "talking" to LTspice from other simulators. Some peculiarities... LTspice doesn't treat ".LIB" like other simulators, more like it behaves as ".INC", which barfs on components you haven't even called out to use in your schematic :-( ...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
Clueless white trash is the BEST descriptor I can find for Larkin. ...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
And I've just figured out why. PSpice "indexes" a library, so there's both a .LIB file and a matching .IND file. PSpice uses the .IND file to quickly grab, and put into memory, only those parts in the schematic. LTspice loads the whole library and checks it for LTspice compatibility :-( ...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.