Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


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.

Reply
 
LinkBack Thread Tools Display Modes
Old 10th December 2007, 11:30 PM   (permalink)
Default analog to digital circuit assistance

I'm experimenting with the O2 sensor in my vehicle and need a little advice on a circuit.

I need a simple circuit to take a 0-1vdc analog signal and convert it to a digital output. I need to be able to adjust the switching point anywhere in the 0-1vdc range and I may need to be able to set the output voltage to be anywhere in the 0-1vdc range. So basically as my input voltage changes if it goes above .4 volts (for example) I want the output to switch from 0 to say .6v and stay there even if the input voltage goes up to 1 volt. I'm not sure I need to be able to adjust the output voltage or not at this point but I know I just need an on/off output of around .5v and I want to be able to offset the O2 signal a bit so the output turns on at varying input voltages.

I believe this is a simple op amp circuit. I would appreciate it if someone already has a diagram for this and would post it. I know of several circuits that accomplish the O2 sensor offset but I want to go about it a little differently.

Thanks for your help.
qsiguy is offline  
Old 10th December 2007, 11:56 PM   (permalink)
Default

Are you trying to produce a digital signal? Or "clamp" the analog output?

If it's digital...
A comparator with the - terminal connected to a DAC (or potemtiometer as a resistive divider to provide an adjustable voltage reference) should do the trick. This will produce a digital output based on a threshold set by the DAC.

But you also say you want to be able to adjust the voltage level the output? So that you can vary the HI voltage? YOu want the threshold between HI and LO to be 0.5V though? THat's really low...and is well within what is considered a LO for most logic level schemes. You may need to use a resistive divider to step down the digital output voltage of the comparator with a resistive divider (which then might need to be buffered by a voltage follower op-amp).

Is there an actual reason you want to go about things a bit differently? Are the other methods defficient in some way for your application?

Last edited by dknguyen; 11th December 2007 at 12:03 AM.
dknguyen is offline  
Old 11th December 2007, 12:47 AM   (permalink)
Default

The output will be digital so your comparator option looks right. If I don't control the output what will it be? Lets say I set it to switch at .6 volt input, what would the output be? Would the output be the same as the set point?

The reason I'm doing it differently is that the typical circuits offset the voltage a bit so the ECU sees .6 volts or so when the O2 sensor is reading .5 volts so the ECU will lean out the fuel a bit as it thinks the exhaust is richer than it is. When you add fuel supplements like propane, water injection, hydrogen, etc the exhaust normally appears leaner to the ECU so it adds fuel killing your economy. The circuit I'm considering should work as well or better than the others because the ECU is only looking for a digital on/off signal anyway and it should be easier to alter the trigger point for the output with the comparator circuit. The other circuits seem to have stability issues as well and a difference of .1 volt can make a difference.
qsiguy is offline  
Old 11th December 2007, 02:27 AM   (permalink)
Default

It depends on the type of technology and the voltage you are running it at:
http://www.interfacebus.com/voltage_threshold.html

If it's digital, then why do you need the output to be 0.6V? What are you feeding it into? Some more circuitry? Or some device? If it's circuitry it shouldn't matter...just choose a comparator that's the compatible with the technology of the circuit you are feeding it into. Why do you need to vary the output HI voltage?

Last edited by dknguyen; 11th December 2007 at 02:31 AM.
dknguyen is offline  
Old 11th December 2007, 05:57 AM   (permalink)
Default

I'm not sure yet if I need to be able to adjust the output voltage. The signal will go to the vehicles ECU which see's a voltage from 0-1v based on the level of oxygen in the exhaust. It will probably need to be about .5 volts but I need to test it to be sure. The input is primarily what I want to be adjustable. Lets say I want the vehicle to run a little lean. I will want the comparator to switch on the output at around .4-.45v. Normally the ECU want's to see about .5v from the O2 sensor to indicate "stoich" which is about 14.7-1 air fuel ratio and where the ECU tries to keep the mixture at. The richer the mixture the higher the voltage will be on the output of the O2 sensor. If I switch the output at a lower voltage the ECU will be fooled to think it's actually at stoich and won't try to add fuel.

What Op Amp chip would I want to try for this? It's in a car so I have a ~12VDC system but I can build in a voltage regulator and provide any voltage to the circuit I need. The input signal will be 0-1V analog tho.

Last edited by qsiguy; 11th December 2007 at 06:04 AM.
qsiguy is offline  
Old 11th December 2007, 09:45 PM   (permalink)
Default

So do you have a sample circuit diagram you could post?
qsiguy is offline  
Old 12th December 2007, 05:08 AM   (permalink)
Default

From what you have described, this should work.

EDIT: changed schematic 12/12/07.
Attached Images
File Type: png O2 sensor threshold and level shift.PNG (21.5 KB, 43 views)
__________________
Ron (aka Rube)


Last edited by Roff; 13th December 2007 at 12:38 AM.
Roff is offline  
Old 14th December 2007, 12:08 AM   (permalink)
Default

Is this a circuit you put together based on what we've been talking about or one you already had? Looks like you just made this per my spec's. Very good either way. I will give it a try. Thank you very much.
qsiguy is offline  
Old 14th December 2007, 02:32 AM   (permalink)
Default

Quote:
Originally Posted by qsiguy
Is this a circuit you put together based on what we've been talking about or one you already had? Looks like you just made this per my spec's. Very good either way. I will give it a try. Thank you very much.
I just drew it up based on what my understanding is of your needs.
__________________
Ron (aka Rube)

Roff is offline  
Old 15th December 2007, 03:46 PM   (permalink)
Default

What purpose does the 12V sener serve?

Over-voltage protection?

I would increase it to 15V so it doesn't conduct continiously and consider reducing that 220R to 47R.
__________________
I also post at the following sites:
http://www.stop-microsoft.org http://www.heated-debates.com
Screen name: Aloone_Jonez
And http://www.silicontronics.com, same screen name as here.
Hero999 is offline  
Old 15th December 2007, 04:55 PM   (permalink)
Default

Quote:
Originally Posted by Hero999
What purpose does the 12V sener serve?

Over-voltage protection?

I would increase it to 15V so it doesn't conduct continiously and consider reducing that 220R to 47R.
Yeah, the zener is there because automotive supplies are notoriously noisy. You're right - 15V would be better.
The circuit only draws about 6mA max, 4mA typical (unless the ECU input resistance is really low, which I doubt), so the 220 ohms will drop 1.3V or less. Changing to 47 ohms will allow the circuit to work when the battery voltage is a low as ~8V, vs around 9V with 220 ohms. I considered this, but used 220 so the input cap would filter more effectively. It would be simple to use 47 ohms, and a higher value cap if needed.
Battery voltage is generally only low when starting, and I suspect the ECU overrides the O2 sensor during starting anyway, so if the circuit only works when the engne is running, it's probably not a problem.
__________________
Ron (aka Rube)

Roff is offline  
Old 18th December 2007, 09:22 PM   (permalink)
Default

Thank you for the input Hero. I appreciate any input you guys have. I have a little new information to run by you guys. I looks like what I want on the output is a high and low "binary" on/off signal. High around .7 volts and low around .25 volts or less. With this circuit what will the low state of the output be? I know I can adjust the high level but may need to keep the low state over 0 volts.

Regards to the zener...so you guys are in agreement that it should be changed to 15V?
qsiguy is offline  
Old 19th December 2007, 05:59 AM   (permalink)
Default

Quote:
Originally Posted by qsiguy
Thank you for the input Hero. I appreciate any input you guys have. I have a little new information to run by you guys. I looks like what I want on the output is a high and low "binary" on/off signal. High around .7 volts and low around .25 volts or less. With this circuit what will the low state of the output be? I know I can adjust the high level but may need to keep the low state over 0 volts.

Regards to the zener...so you guys are in agreement that it should be changed to 15V?
The output won't be below zero, but it will be damned close. Why do you think that's a problem?
Change the zener to 15V.

If you want the adjustments to be noninteracting, it'll cost you big bucks.
Either that, or one of the other guys will do it for free.
Attached Images
File Type: png O2 sensor threshold and level shift1.PNG (25.9 KB, 10 views)
__________________
Ron (aka Rube)


Last edited by Roff; 19th December 2007 at 06:09 AM.
Roff is offline  
Old 19th December 2007, 06:58 PM   (permalink)
Default

Apparently the ECU recognizes OFF at ~.25v and ON at ~.7v and the voltage level in the middle is irrelevant. Your circuit should allow me to do some experimenting now. It looks like pretty much exactly what I will need. Now I just need to try it and see if the ECU will react as expected. I can read the exhaust with my wideband O2 sensor as I tweak the OEM narrowband O2 sensor/ECU and see how the A/F ratios change. Hopefully it will allow me to lean it out a bit as that the ultimate goal of this. I guess if it works it would also make it possible to enrich the mixture as well.
qsiguy is offline  
Old 19th December 2007, 09:35 PM   (permalink)
Default

Maybe you've seen this, but in any case, you should read the section "How does an O2 sensor work?". Unless your car is different, it appears that the 0.45V midpoint voltage is important until the sensor warms up. I can't imagine this would take long, but it might make for hard starting (or no starting) if you don't have it.
I don't think you need a low voltage set point, but I could be wrong. I was once before.
__________________
Ron (aka Rube)

Roff is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Analog to Digital conversion using PIC16f877 winsthon Micro Controllers 3 27th May 2008 01:09 PM
The Oscilloscope ElectroMaster Electronic Theory 12 3rd February 2008 02:45 PM
Digital to Analog Converter? arrow General Electronics Chat 8 10th December 2006 10:11 AM
Analog and digital sram General Electronics Chat 3 26th May 2006 04:38 PM
wireless circuit for a digital cam blackdrongo Electronic Projects Design/Ideas/Reviews 1 12th December 2002 10:59 AM



All times are GMT. The time now is 01:18 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker