Optocoupler vs. Optoisolator
Hello all,
I am using my SX chip in an automotive environment. Right now it is still in a breadboard and not yet installed in an electrically noisy environment. According to other posts a sort of isolation is highly recommended. I recently bought some LTV-826 Optoisolators, thinking that they are what·I needed to isolate the SX pins from a noisy input. I see there are also Optocouplers. Which do·I need and how are they best used? The datasheets I found don't help me with this. Any help to point me in the right direction would be greatly appreciated.
I've also discovered that the vehicles on-board computer (ECU) has a different ground that the chassis ground. All the sensors seem to run off of 5v and the source of this comes from the ECU itself. I need to power the SX chip and a few basic components. I'll make the assumption that any source from the vehicles·ECU doesn't have enough current to run the SX chip. I don't want to try it either as I don't want to buy another ECU!! Running the SX off of the battery is no problem with the correct voltage regulator, but what about the grounds being different? Is this where an optocoupler/isolator also comes to the rescue?
Thanks for any help,
Alex
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If at first you don't succeed, then skydiving is not for you.
I am using my SX chip in an automotive environment. Right now it is still in a breadboard and not yet installed in an electrically noisy environment. According to other posts a sort of isolation is highly recommended. I recently bought some LTV-826 Optoisolators, thinking that they are what·I needed to isolate the SX pins from a noisy input. I see there are also Optocouplers. Which do·I need and how are they best used? The datasheets I found don't help me with this. Any help to point me in the right direction would be greatly appreciated.
I've also discovered that the vehicles on-board computer (ECU) has a different ground that the chassis ground. All the sensors seem to run off of 5v and the source of this comes from the ECU itself. I need to power the SX chip and a few basic components. I'll make the assumption that any source from the vehicles·ECU doesn't have enough current to run the SX chip. I don't want to try it either as I don't want to buy another ECU!! Running the SX off of the battery is no problem with the correct voltage regulator, but what about the grounds being different? Is this where an optocoupler/isolator also comes to the rescue?
Thanks for any help,
Alex
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If at first you don't succeed, then skydiving is not for you.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My system: 1.6 GHz AMD Turion64 X2, 4GB DDR2, 256MB ATI Radeon Graphics card, 15.4" Widescreen HD Screen
I have a duel boot of Ubuntu Linux and Windows Vista. Vista, because it came with the PC, Ubuntu because I like software that works.
"Failure is not an option -- it comes bundled with Windows."
Use The Best...
Linux for Servers
Mac for Graphics
Palm for Mobility
Windows for Solitaire
Can anyone confirm this?
Alex
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If at first you don't succeed, then skydiving is not for you.
While they both do more or less the same job, there are slight differences, largely based on the original designs.
The early opto-isolators used a light source (including an incandescant bulb) shining on a light-dependant resistor (ie a photo-cell). As the light source got brighter, the LDR responded by changing resistance. The light source and the LDR were mounted in a piece of bakelite tubing.
When LEDs came along, it made sense to replace the light source with the LED; when photo-transistors came along, it made sense to replace the LDR.
To distinguish things, it generally came about that the LED-based units were called opto-couplers.
I've seen the old style opto-isolators at Digikey from time to time. Very expensive compared to modern opto-couplers.
Cheers,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
Both perform the same function of isolation and the newer ones are much better.
In some cases, terms are regional. For instance, those funny glass octal precursors to the transistors: the Brits call them valves, but Americans call them tubes. Go figure. {Their cars have boots and bonnets, while American cars don't wear clothes}
Some terms linger in linguistic hell forever. After 14 years, I have yet to be able to get Chinese learners to understand the differences between electric and electronic. But that is another story.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PLEASE CONSIDER the following:
Do you want a quickly operational black box solution or the knowledge included therein?······
I use PS2505's from digikey, single channel versions are in the 60 cent range.
Thanks again to Beau Schwab for turning me on to em and explaining it originaly, its made my life soooo much easier. Learned the hard way, in noisy environments, they arent just a good idea, they are an absolute necesity to avoid false triggering.
Attached is a sample, Capacitor C is optional for really extra mean nasty noisy environments.
Post Edited (ChrisP) : 2/20/2008 12:18:04 AM GMT
Thanks for the help, I see that theoptcoupler has 2 leds to allow it to work if the current flows in either direction. Is that needed for DC, or just a good idea?
I see one side you have 5v and the other is 12v, with the 12v side powering the optocoupler. I read the max voltage on these things is about 35v, so just about anything with a 12v system should work.
Thanks for the simple schematic, that helps a lot.
Alex
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If at first you don't succeed, then skydiving is not for you.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
The 12v side would be the interface to the outside world in a typical automotive application, and the 5v side is the nice comfy well regulated and filtered microcontroller side of things. The PS2505's that I'm partial to actually have an 80 Volt rating, however thats on the output <microcontroller side> in this case, so its the LED current that your concerned with. With the proper current limiting resistor you can light a 2.5 volt led from a 100V supply.
What I ran into early on learning the SX was random input triggering on a motorcycle application, what I learned here after beating my head against the wall for a few days was even with a zener etc etc, the SX input uses so little current and is so fast that in practical application its almost entirely voltage based. With minimal current, almost anything can induce enough voltage to trip your input.
(My lesson learned)
An optoisolater makes your input current based instead of voltage, the schematic above takes about 5ma or so on the 12V side to trip the the transistor which grounds your IO pin pulling the 1k resistor on the 5V side low.
Yes, that is an AC opto, works just fine on DC as well, and in my case I use a voltage divider on the 12V side so it can be triggered with either a negative or positive signal. For me its just handier because since it works either way it covers many applications for me. As long as you observe polarity for DC a standard one with one led works just fine.
In practice, its a really fantastic noise filter as well as protecting whatever you have it hooked up to and interfacing with various voltage sources for your inputs all in one little chip.
I have been thinking that the optosolators were just to avoid zapping the microprocessor, but it is very interesting that they can also avoid the production of voltage spikes causing false highs. A lot of 120 AC equipment is running with a pilot light that is merely a diode, a current limiting resistor, and an LED. So high voltage is not a problem if it doesn't translate into high wattage.
Beau,
This is a typical situation in modern technology. Different groups begin to differentiated in different ways that are useful among themselves unless some authority standarizes the lexicon. With the fast pace of change and rapid dispersal of technology, you may never get one definition.
Here we have:
1. older device vs newer device
2. light path isolated vs light path can be interrupted
3. AC transmission vs. DC transmission
Similar things happen with pronunciation and I still am not surehow to say Viagra. It is generally not in dictionaries.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PLEASE CONSIDER the following:
Do you want a quickly operational black box solution or the knowledge included therein?······
Post Edited (Kramer) : 2/23/2008 1:31:51 PM GMT
Current based instead of voltage, without X watts of power, no trigger. On a 12 volt system its easy to soak up a few milliamps without getting a false trigger, and survive very short spikes over 100 volts. That may sound ludicrous but an Npowershot solenoid OS does NOT have an internal diode and will generate very short spikes upwards of 70+ volts if left unclamped.
Dual purpose, filter and protection!!
Thanks again Beau, its still one of the most important things that I learned!
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PLEASE CONSIDER the following:
Do you want a quickly operational black box solution or the knowledge included therein?······
One problem I'm facing is that various sensors on a car have a different ground than the chassis ground. but at the same time I need to bring them together, meaning power my SX chip from the vehicles power and use the pins to read some sensors. I know the car's computer will flip out if I ground it to the chassis ground. So what do I do about this? Can an optocoupler work or maybe a high value resistor. I'd rather get some more info before possibly damaging something.
Thanks,
Alex
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If at first you don't succeed, then skydiving is not for you.
Due to the help from this thread, I think I've got the frequency ones figured out. Basically just ON/OFF.
The voltage ones have me puzzled, hence the questions. The grounds are different than the vehicle grounds. The voltage range is from 0 to 5v. I'd like to read them with an ADC. Perhaps an optocoupler on the data stream to/from the SX?
Thanks,
Alex
IN fact, the SXes have one built in comparator that you can use if you only need one.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PLEASE CONSIDER the following:
Do you want a quickly operational black box solution or the knowledge included therein?······
Alex
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If at first you don't succeed, then skydiving is not for you.
This can be done in different ways, one method I have seen is putting a zener diode in between the input and ground.
Like in the diagram attached. Note that the zener is placed in such a manner that voltage cannot usually flow through it.
The zener diode has a certain voltage at which point it allows current to flow through it.
For a·5 volt ADC you would choose a 5.1 volt zener diode, any voltage spikes above 5.1 vots are sent to the ground.
I am not sure how you can handle the independant ground problem, but this should help with limiting the voltage spikes.
NOTE: This can be used on any type of input.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never give up,·Never submit to the seemingly invincible enemy.
thanks for that idea. I'll incorporate that to keep the voltage spikes at bay.
Still puzzled on the ground problem though.
Alex
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If at first you don't succeed, then skydiving is not for you.
Post Edited (Alex41) : 3/1/2008 1:19:45 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PLEASE CONSIDER the following:
Do you want a quickly operational black box solution or the knowledge included therein?······
However, a workable alternative might be to interface the SX chip with the car's ECU diagnostic's port.
I know you can read all sorts of data from these ports, such as fuel consumption, rpm, ect.
It is also possible to read individual sensor data from the diagnostics port.
You can buy attachments for laptops that interface in between the ECU and a USB port on the laptop.
I am pretty sure you could do the same thing with a SX chip.
I don't know how the ECU diagnostics port works however.
You would have to look that up.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never give up,·Never submit to the seemingly invincible enemy.
You should be able to access the ECU's logic ground through the diagnostic port, normally there is a ground wire there thats tied directly to logic ground in the ECU. Be very careful tying electronics into your ECU, they tend to be expensive and without knowing the power supply architecture it may be somewhat dangerous to its health.
On the flip side, something may be wrong with your measurements, schnitz racing manufactures something they call a TPRMS or close to that, its a RPM and throttle position window switch, works on cars, bikes, etc etc. Samples the throttle position sensor through only one wire. So its possible to do but I have no idea how without tying the grounds together........
The ECU has its own electronics and power supplies. The ground of the ECU·has a different potential than the vehicle chassis and battery ground.
I would guess the voltage going to a sensor does not have the amperage to run the SX chip, and I'm not willing to try it - too expensive if I'm wrong. The diagnostic port may be a solution. I'd like to stay with running the SX chip off of battery power and having it read the sensors directly, so I still need a way of combining the grounds without having the vehicles ECU flip out.
Is perhaps an isolation transformer an answer?
I'm kind of stumped right now, I thought perhaps an optocoupler was an answer, but it doesn't seem that way.
Alex
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If at first you don't succeed, then skydiving is not for you.
I think I'm beginning to understand this a bit more. I'll try an op amp and see how that works. Amplifying the sensor's signal isn't a bad idea as the amperage on these are very low, just enough to run the sensor itself.
I do believe the ground potential is stable, but will do some testing to make sure.
Thanks,
Alex
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If at first you don't succeed, then skydiving is not for you.