About this project:
After constructing the
Pulse
Width Modulator for High Power LEDs I needed to build another
LED
modulator for another optical transceiver. For this project I
decided to take a different approach and use solely linear techniques
for the audio modulation. Like the PWM circuit, this circuit also
uses the "precision current sink" approach to regulate set the LED
current. In addition to the linear modulator, a tone generator -
based on the same source code as in the PWM circuit - was added to
facilitate testing and aiming.
In order to linearly modulate the intensity of
an LED it is necessary to vary the amount of current flowing
through the device rather than the voltage across it. It is
fortunate that the luminous output of an LED is linearly proportional
to the current flowing through it: At
higher currents, the "current versus light output" curve "flattens" a
little bit, but this results on only a very small amount
(a few
percent
at most - see the sidebar below) of distortion and is
unnoticeable in voice communications.
Figure 1:
Schematic of the high-compliance current sink, used as a
high-powered LED modulator.
Click on the image for a larger version.

|
Comment: Philips is apparently phasing out the Luxeon
I, III, and V lines in favor of the
lower-power Luxeon Rebel devices. Since I have not used those
other devices, the techniques described here may not directly
apply. For the time being, however, the Luxeon III devices are
still available from various sources.
First, a bit of explanation as to how the circuit works.
The "Precision Current Sink":
Several means have been devised to modulate high-current LEDs,
variously using bipolar and power MOSFET devices, several examples of
which may be found on the page
"The
'Luxeon': New Light of Hope for Optical Comms". I
decided to try a different approach - the Precision Current Sink
.
The basic current sink circuit may be seen in
Figure 1. This circuit uses a
single section of an operational amplifier "wrapped around" a
transistor and using a current sense resistor. The circuit works
thusly:
- Assume that 1 volt is applied to the non-inverting input of the
op amp
at Vin.
- If the voltage across Rsense
is lower than 1 volt, the
output voltage of the op amp is increased, turning on Q1, the power
transistor, until enough current flows through Rsense to achieve a
voltage drop equal to that of Vin.
Ohm's law tells us that if Rsense
is equal to 1 ohm, we will achieve a drop of exactly one volt
when the current through Rsense
is one amp. Likewise, if the current is higher than one amp the
op amp will reduce the drive to Q1 to reduce the voltage drop across Rsense until it is one volt.
- As the voltage applied to Vin
changes, the op amp will change the drive to make the current through Rsense proportional to Vin. Because the drain current
through Q1 is the same as the source current (ignoring the minute
amount of gate-source leakage) we know that the current through the
LED's current will be the same as that of Rsense.
- Cfilt is important in that it provides a low-impedance
source current. Without it, audio would be imposed on the power
supply leads and get into other circuits. Also, there is no
guarantee that the power source - be it a battery or power supply -
will provide a low impedance path at all frequencies - especially if
fairly long power leads are used. For high-power (>1 watt)
LEDs, a recommended value is at least 1000uF.
To make this circuit suitable for use as a linear modulator for speech,
several refinements need to be made:
- A fixed DC voltage needs to be applied to Vin to establish an "idling current"
for the LED. This idling current would be set to half that of the
expected peak current - a value that would correlate with "100%
positive modulation." For a red Luxeon III LED, this maximum
peak current would be 2.2 amps.
- Modulation needs to be applied. The voltage at Vin would, in addition to the fixed
DC voltage, have the audio modulation applied to it.
- A few additional capacitors need to be added to make the
modulator stable under varying current conditions.
Comment: While an N-Channel power
MOSFET is shown in the circuit diagrams, a NPN transistor could also be
used. The MOSFET was used because its drive requirements are
negligible at audio frequencies (e.g. only capacitance) and because
they are rather
ubiquitous (even available at Radio Shack) and inexpensive. If an
NPN
transistor were used for a high-power modulator, a Darlington
arrangement would likely be required as the current-sourcing
capability of a typical op amp is likely inadequate for reliable
operation. It should also be noted that if an NPN transistor(s)
are used that a few other changes in the stabilizing
resistors/capacitors would also be required to maintain circuit
stability.
Figure 2:
Schematic of the "simplified" high-powered LED Linear
Modulator.
Click on the image for a larger version.

|
Circuit description - "Simple" version:
The circuit shown in
Figure 2
addresses the added requirements. The "heart" of this circuit is
the "precision current sink"
consisting of U1B, Q1, and R9.
In this circuit, the current through the current-sense resistor, R9,
produces a
voltage that is proportional to the current through the LED. U1B
is wired such that, because of the closed-loop feedback, the it will
attempt to make the voltage on pin 6, the inverting input, the same as
that on pin 5, the signal input: If the voltage on pin 6 is below
that of pin 5, the output voltage of the op amp will increase, causing
Q1, a power FET, to conduct more, until the voltages on pins 5 and 6
match each other. Because the luminous output of LEDs is
proportional to their current, the result is an extremely linear
modulation curve with excellent fidelity.
In order to properly modulate an LED one needs to
establish a "resting" current: A "100% modulated LED" will
experience a current excursion from zero to twice the
resting current, with the resting curring being half of the
maximum
current and to do this, R7 sets a DC
bias. With the 5 volt reference supply shown this resting
current could be set from zero all the way to 2.5 amps, but with a
3-watt Red Luxeon device, this would be set to 1.1 amps as measured by
observing a drop of 1.1 volts across R9.
The audio is applied and modulated atop this resting current, coupled
via C3, a 0.1uF capacitor. The value of 0.1uF was chosen
purposely as it will limit the low-frequency response of the
modulation to about 150 Hz or so at the -6dB point - and this small
value will also allow the circuit to stabilize more quickly when it is
powered up. The circuit consisting of U1A is a simple audio
amplifier, the gain being adjustable using R4, with the audio coming
from
an inexpensive electret microphone.
In order to maintain stability of the circuit with varying power supply
voltages, U2, a 5 volt regulator is used. Without a stable
voltage
reference the LED's resting current would vary. The regulator
also
removes from the reference supply any traces of modulation that might
be imposed on the power supply, improving stability and preventing
"motorboating." Another critical component is C5, a 2200uF
capacitor. This capacitor provides a low-impedance path and
prevents current swings from modulating the power supply: Without
it, the entire circuit could be unstable, and modulated audio might
ingress any other devices operated from the same supply.
R11/C4 are also used to improve stability of the circuit at higher
frequencies. It
should go without saying that Q1, the N-channel power
FET,
must be heat-sinked!
Current limiting:
Another component worth mentioning is the current-limiting resistor in
series with the LED (
RLimit.) If the LED module is not
constructed with a means of
Overcurrent
Protection then the builder may feel more comfortable with
the addition of this component. For a 12.0 volt supply
(representing a partially-depleted lead-acid battery) using a Luxeon
III, one would wish to limit the
absolute peak current
to 3 amps or
less. Assuming a nominal peak current of 2.2 amps one would incur
2.2 volts across R9, about 1 volt across an inexpensive MOSFET, and 4
volts across the LED - plus another half volt or so due to IR drop in
the connecting wiring for a total voltage drop of 7.7 volts or so - the
"remainder" being about 4.3 volts. In this particular case, using
a 1.5 ohm resistor for
RLimit with a dissipation of 5 watts
would be sufficient, as the average current would be 1.1 amps.
Another way to limit the maximum current to the LED would be through
the use of a larger ohmic value of resistor for R9 - but remember that
doing so will not only require a higher-power resistor, but
still-higher peak-to-peak audio levels from U1A, requiring one to take
into account that sufficient audio levels would be available.
"How
'linear' is this modulator?"
When linearity is
considered, one must A few simple
tests were done to answer this question. The amount of
distortion was measured using a Hamamatsu S1123-01 photodiode in
parallel with a 10k resistor, the
output of which was connected to a computer sound card. In each
case, a red Luxeon III high-powered LED was used as the light
source, using the circuit in Figure 4
as the modulator.
Before any other measurements were to be done, the amount of distortion
of the current waveform applied to the LED was measured to provide a
reference point as to how "clean" the signal being applied to the LED
might be.
First, the Spectran program was used to measure the distortion produced
by the 1 kHz tone generator itself: The 2nd and 3rd harmonics
were found to be at least 59dB below the fundamental.
Next, the distortion of the modulator itself was measured by observing
the voltage waveform across the current-sense resistor ( Rsense in Figure 1.) With the modulator
set at 100% and a small amount of audio compression occurring, the
measured distortion was:
- 2nd harmonic: -50.7 dB (0.29%)
- 3rd harmonic: -54.3 dB (0.19%)
The total distortion of the two harmonics was about 0.5% and did not
change more than 1 dB between 1.1 amps and 100 milliamps. (Distortion of higher-level harmonics was
noted to be somewhat lower, but not included in this measurement.)
Next, the distortion was measured using a plain photodiode, illuminated
by the LED. Care was taken to avoid saturating the diode.
To determine the effect of nonlinearity of current-versus-luminous
output, two sets of measurements were taken as noted below:
Measurement 1: 1.1 amps of average current, peak
current of 2.2 amps
- 2nd harmonic: -42.1 dB (0.79%)
- 3rd harmonic: -49.2 dB (0.35%)
- (Other harmonics were
noted to be at least 10 dB lower)
Measurement 2: 100
milliamps of average current, peak current of 200 milliamps.
- 2nd harmonic: -32.2 dB (2.5%)
- 3rd harmonic: -41.5 dB (0.84%)
- (Other harmonics were
noted to be at least 10dB lower)
- Total = 3.4% (approx.)
As can be seen, the overall linearity is quite good, although I was
surprised to note that the low-current linearity was somewhat worse
than the high-current linearity.
Additional testing was done using the KA7OEI Version 3 optical
receiver with the lowpass filter bypassed:
LED Current of 1.1 amps:
- 2nd harmonic: -44.2 dB (0.62%)
- 3rd harmonic: -51.3 dB (0.27%)
- Total = 0.9% (approx.)
LED Current of 100 milliamps:
- 2nd harmonic: -32.3 dB (2.4%)
- 3rd harmonic: -43.6 dB (0.66%)
- Total = 3.1% (approx.)
As you can see, the linearity, in all cases, is quite good, especially
at higher LED currents.
|
The use of more than one Luxeon in series:
This circuit, as shown (with
RLimit of zero ohms) is capable of
driving two Luxeon III LEDs in series while operating from a 12.0 volt
supply. If one is driving a pair of LEDs in series, more careful
attention must be paid on the value of
RLimit, if one chooses
to use this resistor in the first place. If voltage drop is to be
minimized, the selection of a FET for Q1 with a low ON resistance is
also advised.
It is also worth pointing out that reducing the value of R9 further
reduces the amount of voltage drop
across the modulator, allowing one to modulate a pair of Luxeon III
LEDs
in series with a power supply voltage below 10 volts. If, for
example, R9 was changed to
0.25
ohms then only 0.55 volts of peak-to-peak audio would be
required at C3 to modulate a Luxeon III at 2.2 amps. If the value
of R9 is decreased, it is advisable to increase the value of R5 (to
about 33k or so in the case of R9 being 0.25 ohms) to put a "safe"
upper limit on the amount of the LED's
resting current as adjusted by R6.
Setup:
It is recommended that one uses a current-limited supply
(maximum of 2.5 amps or so) or replace the LED with, say, a 1 ohm
resistor, when checking out the circuit and setting things up: It
would be easy, due to a wiring error or misadjustment, to destroy the
LED. The first step would be, with the gain set all of the way
down (R4 at minimum resistance) to set the idling current at 1.1 amps
with R6: These recommended currents are those suggested if one is
using a 3-watt Red Luxeon: Different devices may require
different current.
The next step would be to adjust the audio gain. For this, one
starts out with minimum gain and simply increases it until 100%
modulation is achieved. Even without any test equipment this is
easily done as one can tell by ear when full-modulation is achieved by
noting
that audible clipping starts to occur.
It should be noted that if the resting current is adjusted using R6,
the audio
gain should be readjusted at the same time to assure 100% modulation.
Notes on operation and construction:
- It is worth noting that, with this circuit, there is essentially
no limit as to the amount of upwards modulation that can occur:
While the "negative" modulation is limited at zero amps, if
the audio gain is too high, the peak current could achieve many amps,
so it is recommended that one be careful to avoid overdriving the
circuit to excess: Through sad experience, I have noted that the
bond wire on a 3-watt Luxeon will fuse somewhere
between 4 and 7 amps of average current! This can happen with
careless adjustment of R6 or, possibly, if a sustained audio overdrive
occurs.
- Again, note that the use of an LM324 (or similar) for U1 is absolutely
essential: This op amp - unlike many others - is capable
of handling an input voltage of zero volts and
outputting a voltage down to zero volts on the output. If another
op amp is chosen make certain that it is a "rail-to-rail" type on both
its input and output - or at
least capable of operating down to the negative rail like the LM324 -
but keep in mind
that most common op amps are not able to
do so. If an op amp was chosen that could not
operate down to the negative rail, U1 would have to be operated with a
negative supply at pin 11, but this need to be only 2-3 volts -
something that could be provided by a pair of 1.5 volt cells in series
or a simple voltage converter.
- This circuit does not include any sort of audio
processor. If communications is anticipated in which a
low-signal/noise ratio is likely, it is recommended that one connect an
audio compressor or "speech processor" at the microphone input to
improve the peak-to-average ratio
Additional comment:
- It is possible to strip the circuit down even more of
so-desired. One could, for example, simply apply a source of
audio to
C3, dispensing with the preceding circuitry associated with U1A.
To
fully-modulate a Luxeon III, 2.2 volts peak-to-peak of audio
(correlating with 2.2
amps of current at 100% positive modulation) would be necessary.
Minor circuit refinements - improving current limiting
and adjustment:
Using the most commonly-available op amp available that can operate
with an input and output down to zero volts, the LM324, we have four
available op amp sections - but the circuit in
Figure 2
uses only two. By using just one of the remaining op-amp sections
and
adding two resistors, we can take advantage of the op amp's limited
voltage swing to put an absolute limit on the maximum amount of current
that could be applied to the LED:
Figure 3 shows such an adaptation.
In this circuit, U1C is used as a microphone amplifier, capable of a
gain of up to about 20dB, followed by U1B which is wired as another op
amp
section with a fixed gain of about 13dB - or a voltage gain of 5:
Note that the value of R7 could be increased (to several hundred
k-Ohms) if it turns out that U1a/R4 do not yield enough gain from your
microphone to adequately drive the LED to 100% modulation.
It is important to notice that U1C is AC coupled to U1B to prevent
cumulative DC offsets from being amplified from U1C. Wired in the
way shown, U1B's output voltage is centered around 5 volts as
referenced from U2, the 5 volt regulator, with modulation riding atop
it with 100% modulation being 10 volts peak-peak.
When operating from a 12 volt supply, the output of U1B is limited in
its swing from zero volts, representing zero current (or "0%"
modulation) to just short of 11 volts - this upper voltage
being
limited by the supply voltage and the ability of the LM324's output to
swing only within about a volt of the positive supply rail.
Because of this intrinsic, positive upper limit of voltage swing the
maximum LED current is limited to a reasonable positive value - about
110% when operated from a 12.0 volt supply, or about 125% when operated
from 13.8 volt source -
no matter
how much audio drive is applied. Of course,
if one operates U1 from a higher voltage supply (say 24 volts) this
intrinsic
"positive modulation" current limiting does not necessarily apply.
Figure 3:
Schematic of the "simplified" high-powered LED Linear
Modulator with improved current limiting.
Click on the image for a larger version.

|
The actual LED currents are set using R8 and R9 to scale down
the voltage output from U1B: R8 is used to set the
maximum current obtainable when R9
is set to full current and this arrangement has the advantage that if
R9 is front-panel mounted one may use it to continuously adjust the
LED current from "full" current (1.1 amps of idle current, for example)
all the way
down to just a few milliamps - still have 100% modulation
of the LED at any selected current. If one does
not
require the need to adjust the LED's idle current from the front panel,
the one can eliminate R9 completely, using R8 to set the idle current
once and forgetting it.
Because of a quirk in the way the LM324 works, R5 and R8 are used to
load the outputs of U1C and U1B, respectively, to prevent crossover
distortion. In the case of R8, the resistance value is not
critical, but it should be less than 5k. Practically any value of
potentiometer may be used for R8 from 1k up to 100k, but if more than
5k is used, simply parallel a lower-value resistor (such as 4.7k)
across it to maintain loading at pin 7.
A
few comments applicable to all
circuit variations on this page:
In order to maintain stability, all of the completed
circuits have capacitors at the output. Taking the schematic in
Figure 3 as an example:
- A large, good-quality capacitor should be used for C3. This prevents large
amounts of modulated audio from appearing on the power supply
lead. This capacitor should be placed physically close to the
connection to LED1, Q1, and R11
and good, common-point grounding techniques should be used.
- Capacitor C4 is used to assure stability of
the current sink itself. Without this capacitor,
high-frequency oscillations may appear on the output causing audible
distortion to occur under certain circumstances. Note that the
values of capacitance used have no affect in the audio frequency range.
- The output transistor should be attached to a heat sink. If
it gets hot enough to boil water, it needs more heat-sinking!
- Remember:
Whatever you use for U1, it must be capable of operating down
to
the negative supply rail.
Adding a few features:
The "simple" modulators shown in
Figure
2 and
Figure 3 work
nicely, but in order to improve
intelligibility and facilitate alignment of the optical gear a few
extra features would nice to have:
- Audio compressor. Maintaining as close to 100% modulation
as possible is very helpful when trying to communicate over a link with
a low signal-noise ratio.
- Tone generation. Being able to generate tones can aid in
alignment as well as provide a reference when measuring and analyzing
the link's properties, such as scintillation.
- Variable drive level. In the circuit below, the current can
be adjusted over its entire range while still maintaining 100%
modulation.
- Line-level input. A separate line-level input is a nice
feature to facilitate inputs from other audio sources, such as audio
from a computer or digital audio player. These can also be used
for audio-based modes such as WOLF, WSJT, PSK31 and SSTV, just to name
a few possibilities.
- Additional monitoring features.
Circuit description - "Fancy" version:
Modulator:
Figure 4:
Schematic of the high-power LED Linear Modulator.
Click on the image for a larger version.

|
Signal input stage:
The audio input can be one of three sources: A built-in electret
microphone, an external microphone via J1, or an external line input
via J2. S1, an SPDT switch, selects which source is to be
used and if a "center off" switch us used, that position can serve as a
"mute" setting.
Note that J1 is a "disconnecting" type of jack and is wired to disable
the internal microphone when an external one is plugged in. In
experimentation, it has been noted that computer-type microphones are
wired in one of two ways: While the audio is always on the "tip"
some connectors apply bias to the tip and leave the ring disconnected
while others apply the bias voltage only to the ring. The circuit
shown accommodates both wiring schemes.
Note also that J2 is wired such that the two resistors will sum (and
attenuate) a line-level stereo input (from a computer or an audio
player) to a monaural signal. The
resistors (R3 and R4) are necessary in many audio amplifiers because it
has been noted that with many stereo-output audio devices, simply
shorting the left
and right channels together often results in distortion as the two
amplifiers will "fight" each other.
AGC Amplifier:
C1 is used to limit the low frequency response to about 30 Hz and U1C,
a non-inverting amplifier, contains a gain cell, OC1 that consists of a
Cadmium-Sulfide (CdS) photocell and LED, optically coupled in a
light-proof package. The CdS cell (which is in parallel with R9,
the "Max Gain" control) will decrease in resistance when the LED,
driven by U1D, is illuminated at high audio levels, thus causing the
resistance to go down and reducing the circuit gain.
U1B is used as a summing/gain amplifier (a voltage gain of 5 is set) to
provide additional amplification. The output of this amplifier is
fed to U1D which has a variable gain setting that effectively sets the
maximum amplitude of signal that can be present at the output of
U1B. The output of U1D goes to a full-wave bridge rectifier
(D1-D4) that allows the LED to be illuminated on either positive or
negative excursions of the audio waveform. C3/R12 prevent "clipping
noise" from being put onto the +5 volt supply line as well as
preventing excess positive excursions of the +5 volt rail by averaging
out the conduction current through the LED.
Note that there is another input to U1B: The signals from an
audio tone generator
(see below) are input via R21 and
C8. Note that the audio levels from the tone generator are
not
affected by the AGC amplifier, but the AGC does detect the presence of
those tones being generated and will decrease the gain of U1C
accordingly to prevent
overmodulation.
Pre-emphasis:
Switch SW3 provides high-frequency boost to the transmitted audio -
mostly to accommodate conditions in which the signal-to-noise ratio at
the receiving end is
quite low. While the frequency response of the transmitter and
accompanying receive system are fairly flat, the human voice has
relatively little energy at higher frequencies (above 1 kHz or so) but
this is the same range in which un-voiced consonants have their
energy. With weaker signals it was found that these un-voiced
speech components - those that allow one to tell an "f" from an "s",
for example - were among the first to be lost, making deciphering
speech
a bit more challenging. This capability, along with the liberal
use of phonetics, can help improve intelligibility under such adverse
conditions. If digital modes were used, pre-emphasis would
usually be
disabled.
Peak Indicator:
The Q2/Q3 circuit forms a "peak" indicator to let the user know
that the audio level is sufficient to fully modulate the
transmitter. In this circuit, R27 sets a threshold voltage:
When audio from the output of U1d drops below this voltage, it causes
Q2 - and, in turn, Q3 - to conduct, turning on the LED. Even
though this indicator works only with the downward modulation, it
serves the purpose of letting the user know that something is happening.
The purpose of this circuit is simply to let the user know that an
"adequate" amount of audio is present: It is expected that it
will flash frequently under normal conditions, with the AGC amplifier
preventing gross overmodulation. What is most important is that
the
user note if the LED is
NOT flashing occasionally - a
conditions that means that either there's no audio at all (which could
happen for a number of reasons - such as forgetting to move S1 to the
proper position, having a microphone disabled, etc.) or too little
audio to
properly modulate the system - which could occur if R9 is set too low
or if the external audio source were running with an inadequate output
level.
About OC1:
OC1 is simply an LED that is optically coupled to a Cadmium Sulfide
photocell. While these are commercially available (many are made
by Vactec) they can also be homebrewed rather easily. All that is
required is an LED (a high-brightness red one will work fine)
and a small CdS cell. This CdS cell should exhibit a resistance
of several megohms after a few moments in total darkness and well under
10k in bright room lighting.
To construct a homebrew gain cell:
- Use clear epoxy cement to glue the face of the LED
and the CdS cell together, making sure that the LED lights up the face
of the CdS cell.
- After the epoxy cures, slide a piece of black heat-shrink tubing
over the entire assembly - but do not shrink the tubing!
Use some black silicone adhesive (RTV) to fill in the open ends of the
heat shrink tubing to prevent light ingress along the leads -
especially on the LED side.
- After the silicone has cured, shrink the tubing.
- If black silicone and/or heat shrink tubing is not available, you
can
carefully make do with black "spaghetti" tubing or even black
electrical tape - just take care that there is no light ingress.
If the circuit is housed in a light-tight enclosure, this is less
important, although be aware that light leakage can cause confusing
results during testing.
It is also possible to use a green LED if a high brightness red LED is
unavailable. In some ways, this is a better match for the CdS
cell as it is more sensitive to the green light than red. A word
of warning, though: If you use a high-brightness LED, verify that
it is of the "low voltage" variety - that is, it illuminates at 2.1
volts or lower. Many of the "super bright" green LEDs need 3-4
volts to
light up: This voltage is too high for the circuit to work
properly.
Finally, some CdS Cell optical couplers contain a pair of LEDs
connected back-to-back so
that they respond to either positive or negative voltages. If you
are constructing your own optical coupler, you can do this and avoid
the need for D1-D4 completely - just make sure that you try to position
the two LEDs so that they illuminate the CdS cell more or less
equally: It is possible that the 2-leaded "bi-color" LEDs (the
ones that light red with one polarity and green with the other
polarity) may work as well.
Comment: With this linear modulator, it is most
important that the
downward modulation not exceed 100% -
that is, the LED current cannot go below zero - as this will cause
distortion. On the other hand,
occasional excursions
above 100% (that is, above
twice
the
average, resting current) may be permitted. If the full-wave
rectifier (D1-D4) is omitted and a
single LED is used,
the LED could be connected so that it responded only to
downward
("negative") peaks of the audio waveform. Note that both U1B and
U1D invert the audio, so the LED would, in fact, be wired to illuminate
as the output voltage of U1D went downwards.
Output driver and monitoring:
U1A is wired as a "Precision current sink" and with R20, the 1 ohm
"sense" resistor, one volt of input to pin 3 will result of one amp of
current
flow. Using U1A in this way guarantees that LED current will be
proportional to the voltage present across R18.
Being that the output from U1B is AGC-limited to an amplitude pre-set
during the adjustment of R16, this signal is always representative of
one with 100% modulation. If one wanted a resting current of 1
amp, this output, through R17,
a trimmer potentiometer, is set to provide 2 volts peak (1 volt
"resting") voltage at its wiper. In this way, R18 may be used to
provide a 100% modulated signal over a continuous range from full
current to just a few milliamps.
Two monitoring points are provided: The junction of C11/R22 may
be used to measure the average LED current, where 1 volt = 1 amp, while
J3 is used to monitor the modulated audio with headphones, the level
being adjusted by R23. S2 is in series with the LED, allowing it
to be shut off without having to power down the entire circuit and PB1
allows simple on/off keying of the LED: If the LED is being
modulated
with an audio tone, MCW keying can be done using PB1.
Modifications to minimize voltage drop:
The following comments about minimizing voltage drop are generally
applicable
to both the "simple" and "fancy" circuits although specific component
designations refer to those in Figure 4.
In testing, it has been noted that the LM324 used will properly operate
down below even 10's of millivolts input and because of this, it is
possible to reduce the value of R20 down to at least 0.1 ohms. If
a low on-resistance MOSFET is used for Q1, one can
construct a circuit that will fully modulate the LED with less than 0.5
volts of additional voltage drop. What this means is that with
these lower resistances it is possible to run a single Luxeon III from
a 6 volt supply (with appropriate circuit modifications) or up to three
Luxeon III's in series from a 12 volt
battery supply!
With the circuit shown and a value of 1 ohm selected for R20, there
is adequate headroom to modulate two Luxeon III LEDs wired in series to
2.2 amps peak while using a single 12 volt "gel cell" as a power source.
With a 1 ohm resistor used as R20, it is possible to set the LED's
resting current to 5 milliamps and still achieve nearly 100% modulation!
Comments about the circuit:
- I plan to revisit the audio monitor and install a
buffer amplifier so that it will be insensitive to the load of the
LED: As shown, the audio output decreases when R18, the current
setting, is decreased - or just goes away altogether when S2 is opened.
- Do NOT omit R10, a 4.7k resistor that goes from the
output of U1C to ground. Because a peculiarity with the LM324 as
used in this circuit, objectionable crossover distortion may occur if
you omit this resistor. If you chose another operational
amplifier, it may not require this extra resistor, but whatever
amplifier you chose, it MUST be capable of operating down to
the negative supply rail - MOST OP AMPS CANNOT DO THIS!!!
Adjustment of the modulator:
- With a fairly high level audio input (a 500mV pk-pk 1kHz sine
wave
works nicely) on the line-in connector (with S1 appropriately set) use
an oscilloscope on pin 7 of U1B to adjust R16, the "Limiting Level"
control so that the output *just*
hits the negative rail. If you don't have an oscilloscope, a
low-frequency (30-200 Hz or so) tone may be used as any distortion due
to hitting the negative rail is easily audible: R16 would be
adjusted to the point where the distortion just goes away.
- Now, shorting the LED connection and monitoring the LED current
test
point (or across R20) turn R17 down all of the way (wiper to ground)
and R18 up all of
the way (wiper at R17) and then adjust R17 for a resting current of 1.1
amps. Do NOT do this adjustment using an LED as it
is possible to exceed the LED's maximum ratings by accident and destroy
the LED.
- R27 is adjusted so that the LED illuminates when the audio hits
the
80-90% downward point, but it can also be adjusted by simply looking at
the LED while modulating the unit at maximum gain, turning R27 until
the LED turns off - and then backing it off until the LED comes on
again.
Operation:
S1 is used to select between the line input or microphone input while
R9 is used to adjust the
maximum gain that the AGC will
allow. If a high gain setting is
used on a fairly high audio level, overmodulation will not occur, but
there will be considerable compression - depending on the audio level
at
the input: High compression may be desired under conditions of
low signal-noise in order to maximize intelligibility.
Note that in all positions of S2, the audio input is still
active. This means that even when generating a tone the
microphone will pick up and transmit audio, although the level will be
reduced by the AGC amplifier because of its detection of the
tone. If S1 is a "center-off" type of
switch, the middle position can be used to mute the audio inputs or, if
no line input audio source is present, muting can be accomplished by
selecting that position.
The LED current may be set with R18, providing 100% modulation at any
current from the full setting all the way down to a few milliamps.
Comment: 100% modulation is defined as modulation
that goes all the way from zero up to twice the average (unmodulated)
current as set by R18.
Tone generator:
Figure 5:
Schematic of the PIC-based tone generator that is integrated with
the linear modulator.
Click on the image for a larger version.
 |
On the same board, I also built a tone generator. This tone
generator uses an 8-pin PIC, the 12F683, which has an onboard A/D
converter as well as a hardware-based PWM generator that can be used as
a D/A converter.
Much of the source code was "borrowed" from my PWM-based modulator,
hence the similarities.
Clocked at 20 MHz, there is a 19.53125 kHz interrupt that is used to
generate sine waves using DDS techniques and an 8-bit sine lookup
table, using the PIC's built-in PWM hardware as a D/A converter to
produce 78.125 kHz square waves of varying duty cycle.
The lowpass filter for the PWM-generated audio consists of R103, R104,
C105 and C106, effectively removing most of the 78 kHz PWM energy while
causing
little attenuation of the highest-frequency audio tones.
Modes are selected by applying different voltages to GP1: These
voltage are created using a resistive divider on the rotary switch and
the digitized voltage is used to select the appropriate mode.
Also present is R102, a pot that produces a
variable voltage read by the PIC's onboard A/D converter and is used to
select the various tone modes and frequencies.
On the output of the PWM network are two pots, R105 and R106, that are
used to set the output tone levels to correspond with 100% modulation
in the case of the test tones, and 25% modulation in the case of the
pilot tone: The second half of the rotary switch (S1B) is used to
select the tone level in the case of the test tones, the attenuated
tone in the case of the pilot tone, or no tone (in position "E")
should the pilot tone not be used at all.
Note that C108 isn't needed if you use this circuit with Figure 4
as there's already a blocking capacitor, C8.
The nominal voltage used to select the tone mode is noted
below and assume that the PIC is operating from a 5.0
volt supply. The actual voltage thresholds for selecting the
modes are
midway between the voltages specified.
Tone modes:
A - (0 volts) 1 kHz tone,
fixed. The 1 kHz tone is a "standard" tone used for peaking the
receiver using the audible S-meter system, for MCW keying, for
measurement of scintillation, or just as a source of audio. Even
though it is possible to set Mode C to generate a 1 kHz tone, this mode
allows the convenience of simply turning the switch all the way to one
end of rotation - something that's
easy to do in the dark! In this mode, R102, the "Tone" pot has
absolutely no effect.
B - (1.0 volt) The tone pitch is variable
from 20Hz to about
2.5 kHz using R102. Note that inside the PIC this adjustment is
de-linearized
so that when a linear pot is used, the rotation is "stretched" at the
low end and compressed at the high end, making frequency adjustment
seem more "natural."
C - (2.0 volts) Eight fixed tones are
selectable - see below.
D - (3.0 volts) Tone sequences.
Below the midpoint of rotation, a
descending tone sequence is generated, while above the midpoint, an
ascending tone sequence is generated. The rate of repetition is
higher the farther the pot is turned toward the end of rotation.
E - (4.0 volts) No tones generated:
Used for "normal" audio mode.
F - (5.0 volts) A 4 kHz tone is generated
as a "pilot" tone. Using R106, the level of this tone is reduced
by 12dB (referenced to "100% modulation") and this tone is mixed with
normal microphone/line
audio. As shown in Figure 4, the
modulator's AGC is
connected such that the amplitude of this pilot carrier is taken into
account and prevents overmodulation of the LED with the combined audio
sources. At the receive end, this pilot tone can be filtered out
and is available for analysis of scintillation or used for peaking the
receiver.
The 8 fixed audio tones available in
Mode C are:
1 - Musical note B0 (actual freq. = 30.9944
Hz) (Lowest voltage)
2 - Musical note E1 (actual freq. = 41.1295 Hz Hz)
3 - Musical note C4 - middle C (actual freq. = 261.6674 Hz)
4 - Musical note F4-sharp (actual freq. = 369.8468 Hz)
5 - Musical note A5-sharp (actual freq. = 932.26912 Hz)
6 - Musical note
- E6 (actual freq. = 1318.52896 Hz)
7 - 440 Hz - Musical note A4 (actual freq. = 439.907 Hz)
8 - 1kHz tone (actual freq. = 999.9242 Hz) (Highest
voltage)
Notes:
- As mentioned, the audio tones are fed into the audio chain at
U1B, past
the audio gain compression of U1C. What this means is that the
audio tones are unaffected by any compression or gain settings.
Because the AGC amp is connected to the output of U1B, it does see the tones and the AGC action
includes the tone amplitude. What this means is that when the
pilot tone is active, the contribution of the audio is reduced by about
1dB. This also means that if a test tone is selected, it will -
with its more-or-less 100% modulation - will "steal" most of the AGC
action and the microphone audio will be greatly attenuated.
- Instead of a 6-position rotary switch, a potentiometer (anything
from 1k to 50k) could have been used in lieu of S101a. The
obvious disadvantage
with a pot is that it lack detents, so it is a bit harder to know
exactly what setting one is using or if it is on the edge of switching
between two modes if the voltage is at a threshold. If a
potentiometer were used, one would have to add another switch to
perform the function of S101b to select the tone sources.
Figure 6: Pictures of the
as-constructed linear modulator.
Top: Front panel of modulator. Middle:
Circuit board of modulator. Bottom: Wiring of front
panel and bottom of circuit board.
Click on any image for a larger version.

|

|

|
Operation in the various modes
Using DDS
techniques, low-distortion sine waves can be generated at practically
any audio frequency below the Nyquist limit with a resolution of 0.298
Hz.. Having this capability allows several tone generation modes:
- Continuously variable frequency (Mode B.) Using
R102, the
audio
frequency can be adjusted from 20 Hz to about 2.5 kHz (2457 Hz,
actually.) In this mode, the rotation of R102 is "de-linearized"
to make it easy to adjust the tone frequency over a wide range.
With a 20 MHz crystal and assuming a 5.0 volt supply, the output
frequency is
based on the following formula:
- Frequency (Hz) = ((3270403125 * V^2) + 670000000) /
33554432 (Where "V" is the voltage applied to pin 7, GP0.)
- The A/D resolution is 10 bits and the frequency step size is
approximately 0.298 Hz. Because the calculation uses integer
math, some rounding-off errors will occur.
- Selection of fixed frequencies (Mode C.) When in
this mode,
one of 8
fixed tone frequencies may be selected using R102 as noted below.
- Ascending or descending tone sequence (Mode D.) The
tone
sequence
consists of four dissonant tones that are very easy to pick out of the
noise. R102 is used to adjust the sequencing rate.
- Activation of a pilot carrier (Mode F.) In this
mode, a 4
kHz tone
(12 dB below 100%
modulation - the precise level being set by R106) is mixed with
the microphone (or line input)
audio. Because the sample point of the compressor is at the
output of the audio mixing stage, the presence of the pilot is detected
- along with the other audio - and the compressor prevents the
combination of the "audio plus tone" from overmodulating the LED.
With the pilot tone being 12dB below the peak audio, its presence
reduces the available power for modulating other audio sources by less
than 0.5 dB.
Note about Mode D - the tone sequence generator:
The tone sequence mode (
Mode D) can generate either an
ascending
tone sequence consisting of tone
#'s3, 4, 5 and 6 (in that order) or a descending tone sequence using
the same tones in
reverse order. The tone mode (and sequencing rate) is adjusted
via R102:
- If R102 is set below mid-rotation, a descending
tone sequence is generated, the sequencing rate increasing as R102 is
turned counterclockwise (e.g. wiper toward ground.)
- If R102 is set above mid-rotation, an ascending
tone sequence is generated, the sequencing rate increasing as R102 is
turned clockwise (e.g. wiper toward +5 volts.)
Adjustment of the tone generator:
- Setting to tone Mode B and to "line-in" mode with no
audio
source,
adjust R106 so that the sine wave just touches the
bottom op amp rail as measured with an oscilloscope at the output of
U1B (pin 7) of the linear modulator. If no oscilloscope is
available, increase the level until the distortion just
becomes audible - backing it off slightly to the point where the
distortion just becomes inaudible. After adjusting R106,
rotate R102 to change frequencies and adjust R106 again as necessary
with different audio
frequencies to assure that U1B is never overdriven.
- Note: When adjusting the tone amplitude in Tone Mode
B, it is easiest to hear low amounts of distortion and aliasing
with a low
frequency (<100 Hz) tone as the first several harmonics and digital
artifacts are within the
optimal hearing range.
- Setting to tone Mode F (audio with pilot tone) - again,
with no
external audio input - adjust R105 so that the the voltage is 1/4 that
of
the tones in the other modes (12dB down.) This may be done with
an oscilloscope or AC voltmeter. Note: If
you are using an AC Voltmeter, first switch to mode A (the "variable
tone" mode) and set the potentiometer for the highest
frequency and note the voltage.
Important note: It is strongly recommended that you
never operate any modulator or LED without having
current limiting on the LED. This may take the form of a
resistor, or
a current
limit circuit such as one using an LM317.
Operation:
S2 positions A, B, C and D are intended to be used to generate audio
tones
at 100% modulation. Position F generates a low-level 4 kHz pilot
tone for reference/analysis purposes and position E is for generating
audio with no pilot tone at all.
When in modes A, B, C and D, R102 is used for setting the tone
frequency,
selecting one of eight fixed tones or selecting the tone sequence mode
and rate, respectively.
Note that in all positions of S2, the audio input is still
active.
This means that even when generating a tone, the microphone will pick
up and transmit audio, although the level will be reduced by the AGC
amplifier. Again, if S1 is a "center-off" type of switch, the
middle
position
can be used to mute the audio inputs or, if no line input audio source
is present, muting can be accomplished by selecting that position.
Note that the (partial) component list below applies only to
Figures 4
and 5.
Components:
- U1 is an LM324 quad op amp: DO NOT SUBSTITUTE
unless the device you use for U1 capable of operating down to the
negative supply rail on both the input and output!
- U2 is an 78L05 (or 7805) 5 volt regulator.
- Q1 is a power MOSFET capable of handling at least 5 amps and 50
volts or more. Practically any N-channel power MOSFET will work -
as long as it can be attached to a heat sink so that it may safely
dissipate up to 10 watts of heat. As can be seen from Figure 6
the transistor was mounted to the aluminum front panel of a Radio Shack
project box. Common
examples include the IRF510 transistor available at Radio Shack.
- Q2 and Q3 are NPN and PNP general-purpose transistors,
respectively.
- OC1 is "gain cell" consisting of an CdS cell optically coupled to
an LED - see text.
- D1-D5 are small signal diodes, such as 1N914 or
1N4148.
- D6 - About any 3 amp diode.
- U101 is an appropriately programmed PIC12F683
microcontroller.
- R107-R111 could be anywhere from 1k to 22k - as long as they are
all of the same value.
- LED1 is a high-powered LED. The use of a red (or
red-orange or amber) 3-watt Luxeon is assumed here, but other units may
be used
provided that R7 is adjusted for maximum safe current. It is
strongly recommended that the LED itself be equipped with a current
limiter to protect the LEDs.
- LED2 is a plain, ordinary LED and it need only be bright enough
to be
seen during normal operation. I used a standard "dim" red LED,
but
about any color would be fine.
- TH1 is a self-resetting, 3 amp "thermal" fuse that is used to
protect the circuit in the event of an internal power supply short, or
in conjunction with D6 to provide power supply reversal
protection. These devices are made by several manufacturers,
an
example of which may be seen
here at Jameco Electronics.
- S1 is an SPDT switch. If you have one with a "center off"
position, that can also serve as an "audio mute" position.
- S2 disconnects the LED to allow "muting" of the light output, but
leaves the rest of the circuit powered up. This keeps the circuit
active, thus eliminating the need to wait for things to stabilize were
the entire circuit powered down: The current consumption with the
LED off is about 40 milliamps. Note that as the LED current is
decreased, the audio output from J3 will also decrease and when S3
is opened, the audio output will also go away.
- S101 is a 2-pole, non-shorting rotary switch with at least 6
positions. I used a 6 position switch (from Radio Shack - P/N
275-1386) because that was what was
available. If necessary, several toggle switches and fixed could
be used to
set the various modes, as could a simple potentiometer. (See
the note above.)
- R20 should be a 1 ohm resistor with a power rating of 2-watts or
greater.
Comments:
- This tone generator circuit may be used to generate test tones
for other types of
communications circuits. One example of this is to aid with
alignment of a 10 GHz wideband FM communications system: The use
of distinctive tones is invaluable in establishing the aiming of the
antennas between the two stations attempting to make a QSO. This
tone generator may also be of use as a general-purpose bench top audio
signal generator.
- At very low frequencies (<100 Hz) and in the background, it is
normal to hear digitizing artifacts on the generated sine
wave.
Even though the distortion of this audio generator is only 1-2 percent,
the human ear is very good at picking out the extraneous sounds amongst
a pure tone.
- In November of 2007, I modified the firmware (and modulator
circuit) to use an analog voltage on Pin 6 (GP0) to change modes.
Previously, a 2-bit binary code was used to select one of 4
modes: Using an analog voltage instead of the binary input
permitted a greater number of modes to be selected while maintaining
relative circuit simplicity.
- For schematic version 1.4, a few improvements that had been made
over time were finally included on the schematic - namely, the "Peak
Indicator", the "Pre-Emphasis" switch, and improvements in the
frequency compensation of the current driver stage.
- I have recently completed a new, higher-power modulator capable
of fully-driving one of the newer "Phlatlight" (tm) LED modules to full
power: Information on this will follow shortly.
Return
to the KA7OEI Optical communications Index page.
If you have questions or comments concerning the contents
of this
page, or are interested in this circuit, feel free to contact me using
the information at this
URL.
Keywords:
Lightbeam communications, light
beam, lightbeam,
laser beam, modulated light, optical communications, through-the-air
optical
communications, FSO communications, Free-Space Optical communications,
LED communications, laser communications, LED, laser, light-emitting
diode, lens, fresnel, fresnel lens, photodiode, photomultiplier, PMT,
phototransistor, laser tube, laser diode, high power LED, luxeon,
cree, phlatlight, lumileds, modulator, detector
This page and contents copyright
2007-2009. Last update: 20091230