Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

Constructional Project

Wideband Air-Fuel Mixture


Display By JOHN CLARKE

Monitor your car’s air/fuel ratio as you drive


This Wideband Oxygen Sensor Display can show your car’s air/
fuel ratio as you drive. It’s designed to monitor a wideband oxygen
sensor and its associated wideband controller, but could be used
to monitor a narrowband oxygen sensor instead. Alternatively, it
can be used for monitoring other types of engine sensors.

W HY would you want to monitor


the air/fuel ratio as you drive?
Well, for starters, it will allow you
monitored and controlled by the car’s
engine control unit (ECU) to maintain
a predetermined fuel mixture. This is
so you can ease off on the throttle just
enough to return the ECU to closed-
loop control and run at stoichiometric
to save fuel, since the display clearly usually stoichiometric, but under light mixtures to reduce the amount of fuel
indicates when the engine is running cruise conditions the mixture can go used.
rich. lean to improve fuel economy. In addition, when gear changes are
When used in conjunction with a Conversely, during acceleration, the REQUIRED YOUMAYÚNDTHATCHANGING
wideband oxygen sensor and control- air/fuel mixture in many cars is al- earlier or later than normal will keep
ler, the air/fuel ratios shown on this lowed to go rich to improve perform- the engine running leaner for longer.
unit are more accurate than can be ance and is not under the control of Similarly, when travelling downhill
obtained from the narrowband sen- the ECU. This is called ‘open-loop’ and without throttle, most cars shut off the
sors that are typically used in cars and the richness of the mixture depends on injectors above a certain RPM limit, so
which are really only accurate close to other factors, such as the throttle set- that no fuel is used at all. When this
the ‘stoichiometric’ point (ie, the air/ ting and the injector opening period. happens, the display will show a very
fuel ratio at which there is just enough lean air/fuel ratio.
oxygen in the air to ensure complete Economy drive Note, however, that the injectors
combustion). By monitoring the air/fuel mixture are usually partially open below
Under normal driving, most engine display as you drive, you will quickly this RPM limit, to ensure a smooth
management systems operate under learn how to obtain the best economy. engine response when the throttle is
‘closed-loop’ control. This is where the When climbing a hill, for example, the opened. This means that when trav-
air/fuel ratio from an oxygen sensor is car would normally be running rich, elling downhill, it may be better to

10 Everyday Practical Electronics, October 2011

OxygenSensorDisplay (NOT WITH MP CORRECTIONS)1108.indd 10 23/08/2011 14:11:06


Microcontrollers
Low-Power Microcontrollers for Battery-Friendly Design
Microchip Offers Lowest Currents for Active and Sleep Modes

Controllers
Digital Signal
Analog
Memory
RF & Wireless
Extend the battery life in your application using PIC® microcontrollers with nanoWatt GET STARTED IN 3 EASY STEPS
XLP Technology and get the industry’s lowest currents for Active and Sleep modes.
1. View the Low Power Comparison
Microchip’s peripheral-rich PIC12F182X, PIC16F182X and PIC16F19XX families offer Active currents videos
of less than 50 μA and Sleep currents down to 20 nA. These products enable you to create battery- 2. Download the Low Power
friendly designs that also incorporate capacitive touch sensing, LCD, communications and other
functions which help differentiate your products in the marketplace.
Tips ‘n Tricks
3. Order samples and development
Microchip’s Enhanced Mid-range 8-bit architecture provides up to 50% increased performance tools
and 14 new instructions that result in up to 40% better code execution over previous-generation www.microchip.com/XLP
8-bit PIC16 MCUs.

PIC12F182X and PIC16F182X families PIC16F19XX family includes:


include: t mTouch capacitive touch-sensing
t Packages ranging from 8 to 64 pins t LCD drive
t mTouch™ capacitive touch-sensing t Multiple communications peripherals
t Multiple communications peripherals t More PWM channels, with independent
t Dual I2C™/SPI interfaces timers
t PWM outputs with independent time bases t Up to 28 KB of Flash program memory PIC16F193X ‘F1’ Evaluation Platform - DM164130-1
t Data signal modulator t Enhanced data EEPROM
t 32-level bandgap reference
t Three rail-to-rail input comparators

www.microchip.com/xlp
The Microchip name and logo, the Microchip logo and PIC are registered trademarks and mTouch is a trademark of Microchip Technology Incorporated in the U.S.A. and other countries. © 2010 Energizer. Energizer and other marks are trademarks
owned by Energizer. All other trademarks mentioned herein are property of their respective companies. © 2010-2011, Microchip Technology Incorporated, All Rights Reserved. ME257DEng/07.11

IFC.indd 47 23/08/2011 15:15:17


Constructional Project

drop down a gear to ensure complete


injector shut-off (and thus reduced Main Features and Specifications
fuel usage), rather than stay in a higher
gear with the injectors slightly open. MAIN FEATURES
Diagnosing problems
‡ 3-digit LED display plus 7-segment bargraph
Once you’ve used this unit for a while, ‡ Linear display with 0V to 5V wideband range, or 0V to 1V S-curve range
you will soon learn what sort of read- ‡ Alternative display switching (A or B readings for wideband values);
ings to expect in every-day driving. petrol or LPG readings for narrowband S-curve
Any subsequent variations from ‘nor- ‡ 0V and 5V endpoint value limit adjustments for both A and B displays
mal’ can then be interpreted as indi-
cating a problem. For example, there ‡ Decimal point positioning
could be a fault with the oxygen sensor, ‡ Display leading zero suppression
the wideband controller or the engine ‡ Bargraph can be operated in dot, bar or centred-bar mode for wideband
management unit. A problem with fuel range. S-curve set-up allows for dot or centred-bar styles
delivery is another possibility. ‡ Display dimming with minimum brightness and dimming threshold
Oxygen sensors do wear out even- adjustments
tually, due to an accumulation of
contaminants on the sensor tip. As a ‡ Quieting period used for input measurement to ensure accuracy
result, car manufacturers recommend
THATTHEYBEREPLACEDAFTERASPECIÚED SPECIFICATIONS
number of kilometres (typically around Power supply: 6V to15V @ 240mA (full display brightness)
100,000km for a heated sensor type). Input current loading: less than ±1PA
A worn-out oxygen sensor becomes Digit update period: 250ms
sluggish in its response and causes a
number of problems, including exces- Bargraph update period: 30ms
sive fuel consumption, poor engine Wideband display reading range: 0-999
performance, accelerated catalytic con- Narrowband display reading range: 11.8 to 20.6 for unleaded petrol with
verter damage and increased emissions. the stoichiometric ratio set for 14.7; 12.6 to 21.4 for LPG with stoichiometric
By monitoring your car’s air/fuel ratio at 15.5. The display shows an ‘L’ for ratios below the lowest value and an ‘r’
as you drive, you can quickly discover for ratios above the highest value.
abnormal operating conditions and
have the sensor checked and, if neces-
sary, replaced. burnt in the engine. Basically, the fuel is typically 14.7 for unleaded petrol.
is mixed with air inside each cylinder Putting it another way, 14.7kg of air is
Engine modifications PRIOR TO ÚRING 4HIS AIRFUEL RATIO IS mixed with each 1kg of the unleaded
This unit will also be invaluable if varied under the control of the ECU fuel to achieve the stoichiometric ratio.
YOUAREACARMODIÚCATIONENTHUSIAST in order to obtain the desired engine Note, however, that the stoichiomet-
It will soon show whether or not the (and emissions) performance. ric ratio is different for different fuels
mixture is too lean during acceleration Under light engine-load conditions, because it depends on the chemical
or too rich under cruise conditions, the engine is usually run with exactly composition of the fuel and its com-
and allow you to make adjustments the correct proportion of fuel and air bustion characteristics. For liquid pe-
accordingly. to ensure complete combustion. When troleum gas (LPG), the stoichiometric
This can be particularly handy if you this happens, the air/fuel ratio is said value is typically 15.5 (ie, 0.8 greater
are swapping the ECU chip for an after- to be ‘stoichiometric’ and this ratio than for unleaded petrol).
market type, or if you are experiment-
ing with the fuel injectors. It’s all too
+12V
easy to damage an engine if the mixture
is too lean under certain circumstances.
S-CURVE OUTPUT
Rcal (SIMULATED +12V
Oxygen sensor types Ip NARROW-BAND
SENSOR SIGNAL)
In order to monitor the air/fuel ratio, Vs/Ip
WIDEBAND
THE VEHICLE MUST BE ÚTTED WITH AN

8.8.8.
Vs CONTROLLER
OXYGENSENSOR4HESEAREÚTTEDTOALL WIDEBAND
H–
vehicles that have fuel injection and 0–5V AIR/FUEL DISPLAY
H+
engine management, although most RATIO SIGNAL INPUT
cars use what is known as a ‘narrow- WIDEBAND
band’ oxygen sensor. SENSOR
In practice, the oxygen sensor is lo- Fig.1: here’s how the display unit is used with a wideband sensor and its
cated in the exhaust system to monitor associated controller. The narrowband S-curve output from the controller is
the exhaust gas after the fuel has been fed to the engine management computer (see text).

Everyday Practical Electronics, October 2011 11

OxygenSensorDisplay (NOT WITH MP CORRECTIONS)1108.indd 11 23/08/2011 14:11:22


Constructional Project

NARROWBAND +12V +12V


SENSOR

+12V

INPUT

8.8.8.
8.8.8.
NARROWBAND WIDEBAND
HEATER S-CURVE OUTPUT DISPLAY
SET FOR RESISTIVE
S-CURVE SENSOR

&IGªTHEªORIGINALªNARROWBANDªSENSORªlTTEDªTOªTHEªCARªCANªBEªUSEDª &IGªHERESªHOWªTOªUSEªTHEªDISPLAYªUNITª
TOªDIRECTLYªDRIVEªTHEªDISPLAYªUNITªIFªACCURACYªISNTªIMPORTANTª4HEª WITHªAªRESISTIVEªSENSORªEG ªAªTEMPERATUREª
DISPLAYªMUSTªBEªSETªTOªRUNªINª3 CURVEªMODEª GAUGE 

Basically, the lambda value is simply


LED1
the actual air/fuel ratio divided by
A the stoichiometric ratio. This means
BAR that lean air/fuel ratios have a lambda
greater than 1, while rich air/fuel ratios
LED7
have a lambda that’s less than 1.
In practice, air/fuel ratios are a
NON INVERTED: 0V 2.5V 5V compromise between driveability,
INVERTED: 5V 2.5V 0V
engine power and the production of
air pollutants. Air pollutants are also
LED1 reduced using a catalytic converter.
B This converts nitrous oxides to ni-
trogen and oxygen, carbon monoxide
CENTRED (CO) to carbon dioxide (CO2) and the
BAR LED7 unburnt hydrocarbons into carbon
dioxide and water.
NON INVERTED: 0V 2.5V 5V
INVERTED: 5V 2.5V 0V Oxygen sensor display unit
As shown in the photos, the Oxygen
LED1 Sensor Display unit is housed in a
C small plastic case. It features a 3-digit
DOT LED display to show the air/fuel ratio,
LED7 plus a 7-segment bargraph, which
NON INVERTED: 0V 2.5V 5V indicates the signal trend.
INVERTED: 5V 2.5V 0V Just three leads are used to connect
&IGªTHISªDIAGRAMªSHOWSªTHEªBARGRAPHªDISPLAYªOPTIONSªTHATªAREªAVAILABLEªWHENª the unit to you car: one for 12V power,
THEªDISPLAYªUNITªISªOPERATINGªINªWIDEBANDªMODEªA ªBARªB ªCENTREDªBARªANDª another for the ground (0V) and the
C ª STEPªDOTª)NªEACHªCASE ªTHEªBARGRAPHªCANªALSOªOPERATEªINªINVERTEDªMODE third for the signal. In addition, two
more leads can be wired to switch the
unit from one set of display values to
During acceleration, the engine is Conversely, when the engine is another.
commonly run with a rich mixture, running in cruise conditions, the Inside the box are four pushbutton
meaning that more fuel is added to the fuel supplied to the engine can be switches located along the top edge of
air compared to that used in the stoi- reduced to produce a ‘lean’ mixture, the PC board. These are used to initially
chiometric ratio. As a result, the air/fuel so that there is residual oxygen in set up the way the unit works. However,
ratio becomes lower in value. This rich the exhaust. This is done to improve they are not normally used once the
mixture provides more power under fuel economy and results in an air/ various settings have been made.
load – at the expense of fuel economy. fuel ratio that’s slightly higher than Another feature of the unit is au-
stoichiometric. tomatic display brightness. During
Unburnt hydrocarbons Another way of specifying the air/ daylight, the displays are driven to
When the mixture is rich, there is fuel ratio is to ‘normalise’ the stoich- full brightness so that they can be eas-
INSUFÚCIENTOXYGENINTHEAIRFUELMIX- iometric value, so the ratio is refer- ily seen. By contrast, as the ambient
ture to provide complete combustion. enced to 1. We call this normalisation light dims, the display brightness is
As a result, unburnt hydrocarbons are the ‘lambda’ (Ȝ) value and it has a value reduced so that they don’t become
present in the exhaust gas. of ‘1’ at the stoichiometric point. distracting, particularly at night.

12 Everyday Practical Electronics, October 2011

OxygenSensorDisplay (NOT WITH MP CORRECTIONS)1108.indd 12 23/08/2011 14:11:48


Constructional Project

What type of oxygen sensor to use it could be set to show lambda values
from say 0.51 to 1.50 instead.
Alternatively, you can set it up to
display either the air/fuel ratio or the
LAMBDAVALUEATTHEÛICKOFASWITCH)N
that case, there are two sets of values
labelled ‘A’ and ‘B’, and you select
between them.
Similarly, for cars that run on both
unleaded petrol and LPG, it’s possible
to switch the unit so that it displays the
correct air/fuel ratio for the selected fuel.

Narrowband sensor
How the unit is used with a narrowband
oxygen sensor is shown in Fig.2. In
this case, the display includes a preset
response for the standard Bosch LSM11
narrowband oxygen sensor and shows
the air/fuel ratio for unleaded petrol from
11.8 to 20.6 (stoichiometric at 14.7).
A wideband oxygen sensor also requires the use of a wideband controller
unit, such as this Tech edge WB02 2J1. It provides a 0V to 5V output which For air/fuel ratios below 11.8, the
is fed to the Oxygen Sensor Display unit, plus a simulated narrowband display shows an ‘r’ for rich, while
S-curve output that’s fed to the engine management computer. ratios above 20.6 give an ‘L’ for lean.
Similarly, for LPG, the range is 12.6 to
21.4 (stoichiometric at 15.5), with an
V IRTUALLY all cars come fitted with narrowband oxygen sensors, and
if you want to save money and accuracy isn’t important, you can use
the existing sensor with the Oxygen Sensor Display. That said, it’s best to
‘r’ shown for ratios below 12.6 and an
‘L’ for ratios above 21.4.
substitute the Bosch LSM11 narrowband oxygen sensor, since the display unit One option here is to have a dot or
is calibrated for this sensor in narrowband mode. a centred bargraph display for the
S-curve narrowband mode. For more
Conversely, if you want high accuracy, you must use a wideband
information on this, refer to the panel
oxygen sensor such as the Bosch LSU 4.2. This must be teamed with a
titled ‘Using the unit with a narrow-
wideband controller that gives a 0V to 5V output. Such controllers include
band sensor’.
the Tech Edge WB02 2J1 (http://wbo2.com/home/products.htm) and
If the output from the sensor does not
the Innovate Motosports LC-1 (http://www.innovatemotorsports.com/
cover the full 0V to 5V range, then the
products.php).
values set at the 0V and 5V end points
As far as we are aware, there are only a few vehicles, such as Audi and are obtained by extrapolation. This
VW, that have factory-fitted wideband sensors, so the chances are that you INVOLVESÚRSTDRAWINGAGRAPHSIMILAR
will have to buy a wideband sensor and fit it. In most cases, all you have to Fig.9 or Fig.10 that shows two points
to do is remove the existing narrowband sensor, substitute the wideband that correspond to the output from the
sensor and team it with a wideband controller. The simulated narrowband S- sensor and their corresponding values.
curve output from the wideband controller is then connected to the vehicle’s The graph is then extended until it
engine management computer. This replaces the signal from the original reaches the 0V and 5V points.
narrowband sensor and allows the engine to operate normally – see Fig.1. The values that are obtained at the 0V
The 0V to 5V output from the wideband controller unit is connected to the and 5V points are the endpoint values
display unit, which then provides accurate air/fuel mixture readings. that need to be entered into the display
during the setting up procedure.

Fig.1 shows how the unit is used By using the 0V to 5V signal from Bargraph display
with a wideband sensor and its as- the controller, the display unit can be As indicated previously, the LED bar-
sociated controller. As can be seen, set up to show the air/fuel ratio over graph shows the sensor voltage level
the 0-5V output from the controller a set range. For example, it could be and is useful for indicating the voltage
provides the air/fuel ratio signal for set to show air/fuel ratios between 7.4 trend. Its response to voltage changes
the Oxygen Sensor Display. In addi- and 22.0. These values are set to match ISSIGNIÚCANTLYFASTERTHANTHATOFTHE
tion, a wideband controller usually the 0V to 5V range from the wideband digital display, which is deliberately
has a simulated S-curve output and controller, with the unit responding in slowed down so that the values can
this can be used to replace the sig- a linear fashion. be easily read.
nal from the original narrowband That’s not all it can do though. Basi- Fig.4 shows the three bargraph dis-
sensor for the engine management cally, this unit can be set to display play options that are available in the
computer. whatever values you wish. For example, wideband operating mode. Note that

Everyday Practical Electronics, October 2011 13

OxygenSensorDisplay (NOT WITH MP CORRECTIONS)1108.indd 13 23/08/2011 14:12:06


Constructional Project

REG1 LM2940CT-5
+12V +5V
IN OUT
ALTERNATIVE
GND 220 PFF 10k DISPLAY
470nF +5V
10V 100nF SWITCH
2.2k MODE SELECT DOWN UP
105 C
0V
S1 S2 S3 S4
E E E E
4 14
B B B B
MCLR Vdd Q1 Q2 Q3 Q4
1
AN2 C C C C
INPUT 2.2k 4x 2.2k
3 16
AN4 RA1
15
RA6
10nF 18
RA0
17
RA7
IC1 K A
+5V PIC16F88-I/P 8x 100 : 3 3 3 a
11 7 LED4
RB5 a A a A a A b
6 6 a a a LED1
RB0 b b b
8 4 c
RB2 c c c LED8
22k 7 2 f b f b f b d
K A RB1 d g d g d g LED6
10 1 e
2 RB4 e e e LED5
K A AN3 13 9 e
RB7 f d
c fe d
c fe d
c f
12 10 g LED3
K A RB6 g g g
9 5 dp dp dp LED2
LDR1 RB3 dp dp dp
K A dp
LED7
DISP1 DISP2 DISP3

8
5 K A
K A LTS542R LTS542R LTS542R

10 DISP4
10-LED BAR ARRAY
LM2940CT
GND
Q1–Q4: BC327
76
B
WIDEBAND OXYGEN
SC WIDEBAND SENSOR
OXYGEN SENSORDISPLAY
DISPLAY 12
34
IN
2008
5 GND OUT E C

Fig.5: the circuit is based on a PIC16F88-I/P microcontroller (IC1). This processes the sensor signal at its AN4 (pin 3)
input and drives three 7-segment LED displays and an 8-LED bargraph in multiplex fashion.

although a 10-LED bargraph display varies. As with the previous two Note that all the segments common
is used, only seven LEDs are used in modes, an inverted display option to each display are tied together. For
these displays. is available. example, the ‘a’ segment of DISP1 con-
Fig.4(a) shows the ‘Bar’ display nects to the ‘a’ segments of DISP2 and
mode. Here, the number of LEDs lit Circuit details DISP3. In addition, LED4 within the
increases from one to seven over six Despite its versatility, the circuit for LED bargraph (DISP4) also connects
steps in response to a rising sensor the Wideband Oxygen Sensor Display to the ‘a’ segments of DISP1 to DISP3.
voltage. Alternatively, it can be set up is really very simple. Fig.5 shows the These ‘a’ segments are driven via the
to increase the number of LEDs lit in details. RB5 output of IC1 via a 100: resistor.
response to a falling sensor voltage (ie, As shown, it’s based on a PIC16F88- As a result, when this output is low, the
an inverted display). I/P microcontroller (IC1), with most ‘a’ segment in one display will light,
The ‘Centred Bar’ mode is dis- of the clever stuff hidden inside its depending on which driver transistor
played in Fig.4(b). In this mode, the ÚRMWARE PROGRAM !PART FROM THAT  is turned on.
centre bar is always lit (2.5V sensor there are the three 7-segment LED The PNP transistors Q1 to Q4 are
output), with the bar then extending displays (DISP1 to DISP4), the 10- driven by ports RA0, RA1, RA6 and
either up or down in response to a LED bargraph display, four driver RA7 via 2.2k: resistors. For example,
rising or falling sensor voltage. Once transistors (Q1 to Q4), a 3-terminal transistor Q1 is controlled by RA1,
again, an inverted display option is regulator (REG1) and a few sundry and when this output is high, Q1 is
available. bits and pieces. held off.
This option is the most useful when IC1 monitors the input voltage from Conversely, when RA1 goes low (0V),
showing the air/fuel ratio, with the the sensor, processes the data and Q1’s base (B) is pulled low via its 2.2k:
bars indicating as the mixture moves drives the LED displays to show the resistor and so Q1 turns on. As a result,
into either rich or lean ratios. The calculated air/fuel ratio value. Output any segments within DISP1 that have
centre bar is the stoichiometric ports RB0 to RB7 drive the display seg- their cathodes pulled low via IC1’s RB
point. ment cathodes, while transistors Q1 outputs (and their respective 100:
Finally, Fig.4(c) shows the ‘Dot’ to Q4 switch the common display an- resistors) will now light.
mode option. In this case, there are odes, ie, the displays are multiplexed Transistors Q2, Q3 and Q4 are driven
13 levels, with either one or two so that only one display digit is driven in a similar manner to Q1 to control
LEDs being lit as the sensor voltage at any given time. DISP2, DISP3 and the LED bargraph

14 Everyday Practical Electronics, October 2011

OxygenSensorDisplay (NOT WITH MP CORRECTIONS)1108.indd 14 23/08/2011 14:12:22


Constructional Project

Using it as a general-purpose display Parts List – Oxygen


Sensor Display
B ECAUSE it’s based on a microcontroller, this unit can also be used as a
general-purpose display to monitor other sensors (ie, you don’t have to
use it with an oxygen sensor). 1 double-sided PC board, code
Basically, it can display any number ranging from 0 to 999 in response to 825, available from the EPE
any sensor with a 0V to 5V output signal. You can set it up so that the display PCB Service, size 80mm ×
either increases in value as the sensor output voltage increases, or set it so 50mm
that the display decreases in response to rising sensor voltages. A decimal 1 plastic case measuring 83mm
point can also be included and can be positioned after the first or second digit. × 54mm × 31mm
If no decimal point is selected, then the display features leading zero blank- 1 rectangular piece of red clear
ing. This means that a value of 007, for example, will be displayed as 7, Perspex 48mm × 18mm
while a value of 021 will be displayed as 21. Similarly, if the decimal point is 4 SPDT micro tactile switches,
positioned after the second digit, a value of say 00.2 will be shown as 0.2. with a 6mm actuator (S1 to S4)
This decimal point selection and zero blanking feature also applies when 1 LDR with 48kȍ light resistance
displaying air/fuel ratios from a wideband controller. 1 DIP20 IC socket, 0.3-inch
width
1 DIP18 IC socket
1 DIP16 IC socket
(DISP4). For example, to light DISP2, Select, Down and Up functions. These
1 DIP14 IC socket
we switch off Q1, set the required seg- are connected respectively to the bases
1 M3 x 10mm screw
ment driver outputs required for the of transistors Q1 to Q4, while the other
1M3 nut
DISP2 display and then switch on Q2 ends are commoned and connected to
5 PC stakes
by taking RA6 low. A similar process the +5V rail via a 10kȍ resistor. This
1 2m length of twin shielded
is then used to switch on DISP3 and commoned end is also connected to
wire
DISP4 in turn. IC1’s AN2 input, which monitors the
This on-off switching of the displays switches. Semiconductors
is done at such a fast rate (around If switches S1 to S4 are all open, 1 PIC16F88-I/P programmed
2kHz) that the displays all appear to IC1’s AN2 input will be held at +5V microcontroller (IC1)
be continuously lit. via the 10k: pull-up resistor. How- 3 13mm common anode LED
ever, if a switch is closed, AN2 is con- displays (DISP1-DISP3)
Display dimming nected to the base of its corresponding 1 10-LED DIL bargraph (DISP4)
Light-dependent resistor LDR1 is used transistor. As a result, the voltage 4 BC327 PNP transistors (Q1-Q4)
to sense the ambient light to control the on the AN2 input will drop to about 1 LM2940CT-5, +5V low dropout
display dimming. This is connected 0.6V below the +5V rail (ie, to 4.4V) regulator (REG1)
in series with a 22kȍ resistor to form each time that particular transistor
Capacitors
a voltage divider across the +5V rail, switches on.
1 220ȝF 10V radial electrolytic
and its output is fed to IC1’s AN3 port. In operation, the microcontroller
1 470nF MKT polyester
When the ambient light is high, the periodically checks the voltage at its
1 100nF MKT polyester
LDR has a low resistance and the volt- AN2 input. As a result, it can decide
1 10nF MKT polyester
age at the AN3 input is pulled down if a switch has been closed based on
close to 0V. Conversely, in low ambient the AN2 voltage and then determine Resistors (0.25W, 1%)
light, the LDR has a high resistance which switch it is by checking which 6 2.2kȍ
and IC1’s AN3 input is pulled close transistor is currently switched on. 1 10kȍ
to the +5V rail via the 22k: resistor. The optional external Alternative 1 22kȍ
At intermediate light levels, AN3 will Display Switch is connected in par- 1 5 × 100ȍ individual SIL
sit somewhere between 0V and +5V. allel with switch S4. This switch can resistor array
In operation, IC1 dims the displays be a dashboard toggle switch so that, 1 3 × 100ȍ individual SIL
in response to its AN3 voltage. It does for example, either the air/fuel ratio resistor array
this by limiting the amount of time that or the lambda value can be shown.
the displays are lit. In bright light, each Alternatively, it can be a relay contact
display is lit for almost 25% of the total that automatically opens or closes de- value, which is then processed and the
time, but this reduces as the AN3 voltage pending on the fuel (eg, petrol or LPG). resulting calculation fed to the display.
rises in response to falling light levels. Note that this switch is not required A 2.2kȍ current-limiting resistor and
In fact, at very low levels, each dis- if the display only needs to show one internal clamping diodes inside IC1
play might only be lit for about 2% set of values. protect the AN4 input should the input
of the time. voltage go above the +5V supply or below
Input signal the 0V rail. The associated 10nF capaci-
Pushbutton switches The signal from the sensor is fed to TORÚLTERSANYVOLTAGESPIKESATTHEINPUT
Switches S1 to S4 allow the unit to be the AN4 pin of IC1. IC1 converts this A feature of the unit is that it switches
programmed by providing the Mode, input voltage into a 10-bit digital off all the displays for a short period be-

Everyday Practical Electronics, October 2011 15

OxygenSensorDisplay (NOT WITH MP CORRECTIONS)1108.indd 15 23/08/2011 14:12:28


Constructional Project

S1 S2 S3 S4 ALTERN ATIVE
Q1 Q2 Q3 Q4 DISPLAY
SW ITCH
LDR1 2. 2k 2. 2k 2. 2k 2. 2k DISP4
SIL ARRAY
IC 1 PIC16F 88-I/ P

DISP1 DISP2 DISP3

18011350

10k
d n a b e di w
2. 2k

3 x 100
22k

220 F
5 x 100 SIL ARRAY
100n F 10n F 470n F
REG1
2940- 5
2. 2k

NO TE: DISP
NOTE: 1–DISP4
DISP1-DISP4
ALL
ALLMO UN TED ININ IC
MOUNTED IC Take care to ensure that all the parts are installed on
IN GN D +12V SO CK ETS (SEE
SOCKETS TETEXT)
(SEE XT) the PC board with the correct orientation. The LED
Fig.6: install the parts on the PC board as shown here. bargraph is mounted with its bevelled edge at bottom
The alternative display switch is optional (see text). right (see Fig.6).

Oxygen Sensor Display

DISPLAY CUTOUT

SILICON
CHIP www.siliconchip.com.au
S S S
This view shows the PC board before the 7-segment LED Fig.7: this full-size artwork can be used as a drilling
displays and the bargraph are plugged in. template for the front panel.

fore measuring the input voltage. This designed for automotive applica- rail provides the power-on reset signal
minimises any voltage drops that could tions and are protected against line for IC1.
occur due to supply current in the transients and reverse supply voltage
ground wiring if the displays were lit, (if the supply is reversed, the output Software
and ensures accurate measurements. remains at 0V and no damage occurs). The software program files for the
Timing for IC1 comes from an inter- A 470nF capacitor decouples the Wideband Oxygen Sensor Display will
nal oscillator running at 4MHz. This supply for the regulator input, while be available from the EPE website at:
has an accuracy of about 2%, which a 220ȝ&CAPACITORÚLTERSTHE 6OUT- www.epemag.com.
is close enough for this application, as put. This output capacitor supplies
the timing is not critical. the transient current required for the Construction
displays and also prevents the regula- This unit is easy to assemble, with
Power supply tor from becoming unstable. all parts installed on a double-sided
Power is derived from the vehicle’s In addition, the supply rail to IC1 is PC board. This board is coded 825
fused ignition supply. This +12V rail decoupled using a 100nF capacitor at (80mm × 50mm) and is housed in a
is fed to a low-dropout LM2940CT-5 pin 14. The 2.2kȍ resistor between small plastic case measuring 83mm ×
+5V regulator. These regulators are IC1’s MCLR input (pin 4) and the +5V 54mm × 31mm.

Table 1: Resistor Colour Codes


❏ No. Value 4-Band Code (1%) 5-Band Code (1%)
❏ 6 2.2kȍ red red red brown red red black brown brown
❏ 1 10kȍ brown black orange brown brown black black red brown
❏ 1 22kȍ red red orange brown red red black red brown
❏ 8 100ȍ brown black brown brown brown black black black brown

16 Everyday Practical Electronics, October 2011

OxygenSensorDisplay (NOT WITH MP CORRECTIONS)1108.indd 16 23/08/2011 14:12:41


Constructional Project

100 1/4W RESISTORS MOUNTED END-ON


How the micro calculates the values
5V VALUE 22.0 (EXAMPLE)

PC BOARD WHEN THE 5V VALUE


IS GREATER THAN THE
ALTERNATIVE TO USING RESISTOR ARRAYS SPAN 0V VALUE:

Fig.8: separate 100: resistors can ((22.0 – 7.4)


5V
x 2.5
) + 7.4 = 14.7
be used instead of the two resistor
arrays. Mount them as shown here.
0V VALUE 7.4 (EXAMPLE)

The PC board is available from the 0V 2.5V 5V


EPE PCB Service. Our board does NOT
have plated through holes and will Fig.9: this graph shows how IC1 calculates the display values when the 5V
require ‘vias’ and some components endpoint value is greater than the 0V endpoint value. This example uses 7.4
soldered to both sides. and 22.0 for the 0V and 5V endpoint values respectively, giving a 2.5V sensor
output value of 14.7 (ie, stoichiometric for unleaded petrol).
Begin by checking the board for any
defects and by checking the hole sizes
0V VALUE 22.0 (EXAMPLE)
for the major parts. Check also that the
PC board is cut and shaped to size so WHEN THE 5V VALUE
that it clips into the integral side slots IS LESS THAN THE
in the case. 0V VALUE:
(22.0 – 7.4) x (5V–2.5V)
Fig.6 shows the parts layout. Install SPAN ( 5V
)
+ 7.4 = 14.7

THERESISTORSÚRST TAKINGCARETOPLACE
each in its correct position. Table 1
SHOWSTHECOLOURCODEVALUES BUTYOU
5V VALUE 7.4 (EXAMPLE)
should also use a digital multimeter to
check each resistor before installing
0V 2.5V 5V
it. Note that the 100: resistors are
in single in-line (SIL) resistor arrays. Fig.10: the equation is slightly different when the 0V endpoint value is greater
(OWEVER  YOU CAN ALSO USE STANDARD than the 5V endpoint value. In this example, 22.0 has been used for the low
0.25W resistors here and these can be endpoint value, while 7.4 has been used for the high endpoint value.
INSTALLED BY MOUNTING THEM END ON 
To set the values for the display, you only need to set the endpoint values at
as shown in Fig.8.
0V and at 5V. The internal microcontroller then processes the input signal and
.EXT INSTALLTHE0#STAKES4HESEARE
calculates the correct vales for display.
installed from the underside of the PC
board at the three external wiring posi- For example, if the 0V endpoint value is 7.4 and the 5V endpoint value is 22.0, a
tions (the external wiring connects to 2.5V input will give a display reading of 14.7 for the air/fuel ratio. This is calculated
the rear of the board). by first subtracting the low endpoint value from the high endpoint value to get the
Transistors Q1 to Q4 can go in next span value (in this case, 22 – 7.4 = 14.6). This span value is then multiplied by
and these must be installed so that the input voltage, divided by the 5V range and finally added to the low endpoint
their tops are no higher than 12mm value (7.4 in our example). Fig.9 shows this in graphical form.
above the PC board. Follow them with If the unit is set up so that the 0V endpoint value is higher in value than the 5V
the four switches (S1 to S4). These endpoint value, then the calculation is different (see Fig.10). In this case, the 5V
switches can only go in with the cor- endpoint value is subtracted from the 0V endpoint value to get the span value.
RECTORIENTATION SOIFTHEHOLESDONmT This value is then multiplied by the difference between the input voltage and
LINEUP SIMPLYROTATETHEMBYˆ 5V, after which the result is divided by 5V and added to the 5V endpoint value.
REG1 is next on the list. This device Fig.10 shows the equation for endpoint values of 22 and 7.4.
MOUNTSHORIZONTALLYONTHE0#BOARD  Note that in both cases, the 5V value assumes that the reference voltage used
with its leads cranked down through in the Oxygen Sensor Display is exactly 5V. However, the reference voltage from
ˆSOTHATTHEYPASSTHROUGHTHEIRCOR- the regulator that’s used could be anywhere from 4.85-5.15V, so there is an
responding holes. Secure its metal tab adjustment to compensate for this.
to the board using an M3 × 6mm screw If the reference voltage is below 5V, then the Oxygen Sensor Display will not
and nut before soldering its leads. show readings for input voltages that are higher than this reference. Conversely,
/NCE ITmS IN  INSTALL THE CAPACITORS if the reference is above 5V, then the unit will show readings for input voltages
Note that 220μF electrolytic adjacent only up to the +5V. By compensating for this reference voltage, the correct value
to REG1 is installed with its leads bent will be shown on the display.
THROUGHˆ)TSBODYLIESHORIZONTALLY In practice, the regulator used for the reference is trimmed during manufacture
ACROSSTHEREGULATORmSLEADS ASSHOWN and its output will probably be very close to +5V.
in the photo.

Everyday Practical Electronics, October 2011 17

OxygenSensorDisplay (NOT WITH MP CORRECTIONS)1108.indd 17 23/08/2011 14:13:00


Constructional Project

Changing the wideband display settings


T HE four pushbutton switches inside
the case are for Mode (S1), Select
(S2), Down (S3) and Up (S4).
receive any ambient light, either from
below or above its surface. A black film
canister is ideal for this; the value is ad-
shown if S4 is pressed (or the external
switch is toggled).
Display Format: the Display Format is
Pressing the Mode switch initiates justed using the Up and Down switches
next in the sequence (LED3 lit). In this
the Settings mode. Pressing it again to set the desired minimum brightness.
case, the digital display will show A.AA,
returns the display to the normal Run The absolute minimum brightness is
AA.A or AAA for the ‘A’ selection. You
mode so that it shows the values in reached at 0, but typical settings would
can select the decimal point position us-
response to the input voltage. range from 10 to 30.
ing the Up or Down switches. Similarly,
Once in the Settings mode, you
Dimming Threshold: pressing the Set- if the ‘B’ values have been selected, the
can alter the way the display operates.
tings switch again brings up the Dim- display will show b.bb, bb.b or bbb.
You can set how the dimming works,
ming Threshold setting, with LED6 lit.
set the regulator voltage, alter the ‘A’ 0V Display Value: pressing S1 again to
This is initially set at 200 and determines
or ‘B’ values selection and alter the 0V light LED2 selects the 0V Display Value.
the ambient light level below which
and 5V endpoint values for each selec- This is the value that’s displayed in Run
dimming begins. Increasing the value
tion. In addition, you can change the mode when the input is at 0V. It can be
means that dimming begins at a higher
bargraph display from dot to bar, or to set to any value from 0 to 999. Note that
ambient light level, while decreasing
a centred bar. this value will be for the ‘A’ display if this
the value sets the dimming to begin at
The bargraph is used to indicate was previously selected in the ‘A Or B
a lower light level.
which setting is selected. In this mode, Display’ option. Alternatively, this value
the lower LED (LED8) is always lit – see Regulator Voltage: the next setting is will be for the ‘B’ display if this was pre-
Fig.11 (note: LED8 is never lit in the for the Regulator Voltage (LED5 lit). viously selected in the display option.
normal run mode). This value is initially set at 5.00V, and Note that where the ‘A’ and ‘B’
The remaining LEDs on the bargraph is normally adjusted (using the Up and displays both need to be set, it will be
show which setting has been selected Down switches) to agree with the actual necessary to temporarily change the
(see Fig.11). Note that there are 10- regulator output voltage, as measured display option from ‘A’ to ‘B’ or from ‘B’
LEDs on the bargraph, but only the between its OUT and GND terminals. to ‘A’ and also set the required Display
middle eight (designated LEDs1-8) are Format before adjusting the endpoint
A Or B Display: LED4 indicates the A or B
used. You cycle through the settings value to suit the alternate display.
Display selection. Here, you can select
by pressing the Select switch (S2).
between the ‘A’ and ‘B’ display values. 5V Display Value: The 5V Display Value
Minimum Display Brightness: when LED7 If ‘A’ is selected, then the normal Run setting is indicated when LED1 is lit.
is lit, the setting is for the Minimum mode will show the ‘A values and the Again, you can set this to any value
Display Brightness that occurs when ‘B’ value can be shown by pressing S4 from 0 to 999 and the same comments
the LDR is in complete darkness. This (Up) or by using the external alternative as above apply to setting values for both
value is initially set at ‘14’, as shown on display switch. ‘A’ and ‘B’ displays.
the display. Alternatively, if the ‘B’ values are It’s important to note here that the
When adjusting this value, it’s neces- selected, the display will show these 0V and 5V values must match the
sary to cover the LDR so that it does not in Run mode and the ‘A’ values will be output from the wideband controller.

Mounting the displays Once these SIL strips are in, install a Next, with IC1 out of its socket, apply
The 7-segment LED displays and the 20-pin DIP socket for the LED bargraph power to the +12V and GND terminals
10-LED bargraph are raised up off the and an 18-pin DIP socket for IC1. Be and check that 5V is present between
PC board using IC sockets. sure to orientate the socket for IC1 pins 14 and 5 of IC1’s socket. If this
The sockets for the 7-segment dis- with its notched end towards the top is correct, switch off and install IC1
plays are made using a 16-pin DIP (ie, towards the 2.2k: resistor). Don’t and the displays. DISP1, DISP2 and
socket and a 14-pin DIP socket. These plug the displays or IC1 in yet, though. DISP3 mount with the decimal points
5378 2011-09-13 2:43:20

are cut into strips of two 8-pin and Finally, install the LDR (either way to bottom right, while DISP4 (the LED
two 7-pin SIL sockets using a small around) so that its top surface is 15mm bargraph) mounts with its chamfered
hacksaw. One 8-pin and one 7-pin above the top of the PC board. edge at bottom right (note: the chamfer
strip is then installed along the top is quite subtle). IC1 goes in with its
edge of the display positions, while Testing notched end towards the top.
the remaining 8-pin and 7-pin strips .OW FOR THE SMOKE TEST  BUT ÚRST GO When power is now reapplied you
are installed along the bottom edge over the board carefully and check for should be greeted with a display on
(ie, the sockets form two 15-pin incorrect component placement and the 7-segment digits and the bargraph.
strips). for missed or shorted solder joints. If not, check the orientation of IC1. If

18 Everyday Practical Electronics, October 2011

OxygenSensorDisplay (NOT WITH MP CORRECTIONS)1108.indd 18 23/08/2011 14:13:07


Constructional Project

the back of the board. Alternatively,


(ALL LIT)
are lit. Again, the options are selected you can drill the hole to 9.5mm and
LED1
using the Up and Down switches and ÚT IT WITH A MM  INSIDE DIAMETER 
DOT, BAR OR are as follows: (1) dot (shown as doT rubber grommet.
CENTRED BAR
on the display); (2) bar (shown as bAr
on the display); and (3) centred bar Making the connections
LED8 SETTINGS INDICATOR (shown as bCn). Note that the ‘T’ in We used twin-shielded wire for the
the doT lettering has the left-hand side power and input connections, but
(LEDS1–7 INDIVIDUALLY LIT of its cross piece located over the ‘o’. automotive wire could also be used.
ACCORDING TO SELECTION) The default setting for the bargraph Connect the +12V lead to the fusebox
LED1 5V DISPLAY VALUE
0V DISPLAY VALUE display is to have the LEDs progressing in the car so that the Oxygen Sensor
DISPLAY FORMAT upwards with increasing sensor output Display is powered only when the
A OR B DISPLAY
REGULATOR VOLTAGE voltage. Conversely, if you want them to ignition is on (ie, be sure to connect
DIMMING THRESHOLD progress upwards with a falling sensor to the fused side). The ground con-
MIN DISPLAY BRIGHTNESS
LED8 SETTINGS INDICATOR voltage, then it’s just a matter of select- nection should preferably connect
ing the inverse, as follows. to the same ground as the wideband
Fig.11: this diagram shows the bargraph To invert the ‘A’ curve selection, controller.
setting indications for the default press S2 at power up and the dis- For narrowband use, connect the
wideband operating mode. play will show the current selection. ground to the same ground as the
Initially, this will show ‘A.ni’(A not sensor. The input lead for the Oxygen
inverted) and this indicates that the A Sensor Display is connected either to
This means that if you set the wideband
bargraph is not inverted. If S2 is now the 0V to 5V output from the wideband
controller to deliver air/fuel ratios over
held pressed for four seconds, the controller or (if you are saving money)
a range of 7.4 to 22.0, then the display
display will change to show ‘A. i’ (A to a narrowband sensor signal.
should also be set to these values.
inverted) to indicate that the bargraph Fit a cable tie around the leads on
If you want to have the stoichiometric
operation is now inverted. the inside of the box, to prevent them
value in the middle of the scale (so that
You simply release the switch when being pulled out of the hole.
the bargraph display is centred), then
the required selection is displayed.
the sum of the 0V endpoint value and
Holding the switch down will cause the Setting up
the 5V endpoint value must be twice
display to cycle between the inverted For use with a wideband controller,
the stoichiometric value. So, if the
and non-inverted options. the unit is set up as described in the
stoichiometric air/fuel ratio is 14.7, the
Similarly, to set the ‘B’ bargraph panel titled ‘Changing The Wideband
0V endpoint value and the 5V endpoint
sense, S3 is pressed when power is Display Settings’.
value must add up to 29.4 – eg, you
applied. This will initially indicate ‘b.ni’ Note that commercial wideband
could use 7.4 and 22.0 as the endpoints.
(B bargraph not inverted) but can be CONTROLLERS CAN HAVE EITHER ÚXED OR
If you intend to display the lambda
changed to ‘b.i’ (B bargraph inverted) adjustable endpoint values. The ad-
value, then the minimum and maximum
by holding the switch down for four justable versions have their endpoints
values must add up to 2 (eg, 0.52 and
seconds. set by connecting them to a computer.
1.48 could be used, but other values
It’s easy to check the current selec- Note also that the endpoint values
could be used instead).
tion by pressing S2 or S3 at power up. programmed into the display unit
Bargraph Display Option: the final selec- No changes will occur unless the switch must match those of the wideband
tion brings up the Bargraph Display is held for more than four seconds and controller. This ensures that the unit
Option, and in this case all eight LEDs the display changes to the next option. is correctly calibrated and gives ac-
curate air/fuel ratio readings.
Switching between the ‘A’ and ‘B’
that’s correct, check that transistors Q1 CUTTINGANDDRILLINGTHEHOLES)TCAN display values (eg, between air/fuel
to Q4 are BC327 PNP types. either be scanned or photocopied and ratio and lambda values, or between
TEMPORARILY AFÚXED TO THE LID USING unleaded petrol and LPG air/fuel
Final assembly double-sided tape. ratios) can be achieved by wiring an
As mentioned earlier, the PC board is The cutout for the LED displays can external switch (or NO relay contacts)
designed to simply clip into the speci- be made by drilling a series of small INPARALLELWITHSWITCH3SEE&IG 
ÚED PLASTIC CASE ! MM ¯ MM holes inside the inside perimeter of Note that the connections on the
cutout is made in the lid of the box for the cutout, and then knocking out the relay contacts or switch must be
THEDISPLAYSANDTHISCUTOUTISÚTTED centre piece. The cutout is then care- SOLELYFORTHISPURPOSE)FYOUNEEDTO
WITHARED0ERSPEXÚLTER)NADDITION A FULLYÚLEDTOASMOOTHÚNISH switch a fuel valve or anything else
hole is drilled in the lid for the LDR, so The hole for the LDR should be at the same time, use a double-pole
that it is exposed to the ambient light. drilled to 5mm, as should the exit relay or switch.
A hole at the rear of the box allows hole in the back of the case. This exit Reproduced by arrangement
the wiring to exit from the case. hole should be positioned near the WITH3),)#/.#()0
The front-panel artwork shown in bottom edge of the case, so that it will magazine 2011.
Fig.7 can be used as a template for directly line up with the PC stakes on www.siliconchip.com.au

Everyday Practical Electronics, October 2011 19

OxygenSensorDisplay (NOT WITH MP CORRECTIONS)1108.indd 19 23/08/2011 14:13:20


Constructional Project

Using the unit with narrowband sensors


BARGRAPH DISPLAY MODE
DOT BAR upwards from the middle LED for richer
1000 mixtures or below the middle LED for
A A
leaner mixtures.
B
B
O 2 SENSOR OUTPUT VOLTAGE (mV)

800
C
D
Enabling the S-curve response
C
E Enabling the narrowband S-curve
F response is easy: just press and hold
600 G
the Mode switch as power is applied.
D The display will then indicate the cur-
rent display mode setting. This can be
H either the Linear (wideband) mode, the
400
S-curve unleaded mode or the S-curve
LPG mode. If the switch is released
I
E before four seconds, the current display
200 mode will not be altered. Conversely, if
J
K the switch is held down, the mode will
F
L cycle from one to the other at a nominal
M G
0 four-second rate. You simply release the
LAMBDA Ȝ
( ) 0.8 0.9 1.0 1.1 1.2 1.3 switch when the required display mode
AIR/FUEL RATIO is shown.
(UNLEADED PETROL) 11.8 13.2 14.7 16.2 17.6 19.0
LPG 12.4 13.9 15.5 17.1 18.6 20.2 It’s also easy to tell which mode the
RICH LEAN
unit is in. The display will show ‘Lin.’ for
the linear mode (or wideband mode),
CENTRED BAR MODE while the two S-curve modes are shown
A B C D E F G
as S.UL (S-curve unleaded) and S.LP
LED1 RICH
(S-curve LPG).
Pressing the Mode switch after power-
LED7 LEAN up has been applied initiates the Settings
mode. As before, this allows you to alter
DOT MODE the way the display operates. You can
A B C D E F G H I J K L M
adjust how the dimming works, set the
LED1 RICH
regulator voltage, alter the unleaded or
LPG selection and change the bargraph
LED7 LEAN display from dot mode to centred bar
mode.
As in wideband mode, the bargraph
LEDs are again used to indicate which
Fig.12: two bargraph options are available when the unit is set to operate setting has been selected. These settings
in narrowband mode – either centred bar mode or a 13-step dot mode. The are somewhat different for the narrowband
S-curve graph at top indicates which bargraph LEDs light in response to S-curve modes, but are altered in exactly
the various sensor output voltages.
the same manner.
Fig.13 shows the details. As before,

W HEN used with narrowband sen-


sors, this unit will display air/fuel
ratios that are calibrated to the S-curve
For LPG, the range is from 12.6 to
21.4 with the stoichiometric point at
15.5. The unit displays an ‘r’ (rich) for
only eight LEDs in the 10-LED bargraph
are used and the lower LED (LED8)
is always lit in the settings mode. The
output of a Bosch LSM11 narrowband ratios below 12.6 and an ‘L’ (lean) for remaining LEDs on the bargraph show
oxygen sensor. Note, however, that this ratios above 21.4. which setting has been selected and
may not be accurate for other oxygen For narrowband sensors, the bar- you can cycle through these settings by
sensors. graph options are as shown in Fig.12; ie, pressing switch S2.
In the case of the LSM11, it shows air/ either a centred-bar mode or a 13-level
fuel ratios for unleaded petrol from 11.8 dot mode. These 13 different levels are Minimum Display Brightness: when LED7
to 20.6, with the stoichiometric ratio set achieved by lighting either one or two is lit, the setting is for the Minimum
for 14.7. For air/fuel ratios below 11.8, LEDs at a time. Display Brightness that occurs when
the unit will show an ‘r’ for rich, while For the bar mode, the centre LED is the LDR is in complete darkness. This
for ratios above 20.6 the unit shows an always lit and is the only LED that is lit at value is initially set at ‘14’, as shown
‘L’ for lean. stoichiometric. The bar then progresses on the display.

20 Everyday Practical Electronics, October 2011

OxygenSensorDisplay (NOT WITH MP CORRECTIONS)1108.indd 20 23/08/2011 14:13:30


Constructional Project

LED1 (ALL LIT)


When adjusting this value, it’s neces-
sary to cover the LDR so that it does not DOT OR
receive any ambient light either from CENTRED BAR

below or above its surface. A black film


canister is ideal for this, and the value LED8 SETTINGS INDICATOR
is adjusted using the Up and Down
switches to set the desired minimum
(LEDS4–7 INDIVIDUALLY LIT
brightness. ACCORDING TO SELECTION)
The absolute minimum brightness is LED1

reached at 0, but typical settings would


UNLEADED OR LPG DISPLAY
range from 10 to 30. REGULATOR VOLTAGE
DIMMING THRESHOLD
£120
ex VAT
Dimming Threshold: pressing the Set- MIN DISPLAY BRIGHTNESS
LED8 SETTINGS INDICATOR
tings switch again brings up the Dim-
ming Threshold setting, with LED6 lit. The MIAC rugged PICmicro
This is initially set at 200 and determines Fig.13: the setting indications for microcontroller is an industrial grade
the ambient light level below which the narrowband mode. This mode is controller which can be used to
dimming begins. Increasing the value initiated by pressing and holding the control a wide range of different
means that dimming begins at a higher Mode switch as power is applied. electronic systems: for mains
switching, motor control, sensor
ambient light level, while decreasing
monitoring and much more.
the value sets the dimming to begin at
a lower light level. be toggled using either the Up or Down
switch between S.UL (for unleaded
Regulator Voltage: the next setting is petrol) or S.LP (for LPG). When normal
for the Regulator Voltage (LED5 lit). mode is resumed, the display will then Free Flowcode 3
This value is initially set at 5.00V and with every MIAC
show the air/fuel ratio values for the
is normally adjusted (using the Up selected fuel.
and Down switches) to agree with As before, the unit can be set up for
the actual regulator output voltage, both unleaded petrol and LPG, with
as measured between its OUT and the display reading toggled using an
GND terminals. external switch wired across S4. When
The regulator voltage adjustment this switch is open, the default air/fuel
can also be used to alter the unit’s readings (as selected in the preceding
response to the oxygen sensor’s out- paragraph) are displayed.
put. For example, setting the regulator
voltage to a value that’s higher than Bargraph Display Options: finally, S1 is Rugged PIC 18F4455
the actual regulator voltage results pressed again to bring up the Bargraph Programmable from USB -
in the unit displaying its full range of Display Options (all 8-LEDs are lit). download software provided
air/fuel values over a reduced voltage Again, these are selected using the Up Compatible with third party
PICmicro, BASIC and C compilers
range. It effectively lowers the rich end or Down switch and you can choose
Includes free Flowcode 3 graphical
of the S-curve, so that rich readings either the centred bar mode (shown as programming software (no
are indicated at lower oxygen sensor bCn on the display or the 13-step dot upgrade rights)
voltages. mode (shown as doT). EPE 8 digital or analogue inputs
Similarly, setting the regulator volt- 4 relay outputs - 8A
age value lower than the real 4 motor outputs with speed
control - 12V, 500mA
regulator voltage increases
4 line 16 character display
the voltage range. This raises Control keypad
the rich end of the S-curve Fully networkable via built in
and rich readings are shown CAN bus
at higher oxygen sensor Lab View and Visual Basic
voltages. compatible - DLL supplied
Basically, this adjustment In-Circuit Debug over USB with
FlowKit
can be used to provide a more
accurate air/fuel reading for
the particular oxygen sensor
used.

Unleaded Or LPG Display: LED4


indicates the Unleaded Or
LPG Display setting. This can

Everyday Practical Electronics, October 2011 21

OxygenSensorDisplay (NOT WITH MP CORRECTIONS)1108.indd 21 23/08/2011 14:13:43

You might also like