Professional Documents
Culture Documents
control two CD-ROM drives and has IR remote control- by Mauro Grassi
Level Meter - Page 28.
82 Circuit Notebook
(1) PIC-Controlled SLA Battery Capacity Meter; (2) Audio Link Via Cat.5 Light Box
Cable; (3) Simple Model Train Controller; (4) RIC Servo Exerciser; (5) For Making
Animation For Mobiles; (6) Discrete Component Low Dropout Regulator PC Boards
-Page 69.
90 Vintage Radio
Pocket-sized valve portable radios by Rodney Champness
siliconchip. com. au 1
Publ s er' L t er
staff and those readers who read the first issue, back
last month.
Leo Simpson
SitScope
Standard 1M/20pF BNC inputs Smart POD Connector Opto-isolated USB 2.0 12VDC with low power modes
"
BItScope " P h : (02) 94362955
DeSigns Fax: (02) 9436 3764 WWW _bI-t seo Pe _eo m
Letters and emails should contain complete name, address and daytime phone number. Let
ters to the Editor are submitted on the condition that Silicon Chip Publications Ply Ltd may
edit and has the right to reproduce in electronic form and communicate these letters. This
also applies to submissions to "Ask SILICON CHIP" and "Circuit Notebook".
Sensor light with August 2007 issues is the best kit I have
no manual over-ride ever built. It took me about 10 hours
I wish to respond to the article in to complete and I was very careful to which I decided I didn't want in my
Ask SILICON CHIP, page 97, May 2007 ensure correct alignment of the various drinking water.
(and the response in Mailbag, page components. Tony Ullman,
5, July 2007), regarding sensor lights My wife is so pleased and impressed Georgica, NSW.
staying on due to intermittent power by the Nixie Clock that she has made Comment: good point. The tube mllst
glitches. room for it in one of her glass display not be exposed to sunlight.
There is an HPM brand sensor, cases. The clear Perspex case really
model 630/3A, that is set-up to work does make the Nixie Clock look incred Reason to invert
in sensor mode only, with no built-in ible! Congratulations to David Whitby a laptop display
manual override (note: the 630/3 has and SILICON CHIP! I have been looking for a vvay to
the built-in manual override). Power Dave Sargent, invert the screen of a laptop for about
glitches, brownouts or switching the Howard, Qld. a year. I tried Google, online forums,
power off, then on again within two etc and eventually gave up.
seconds doesn't affect it. Simple tank indicator I therefore read the Serviceman's
If you wish to install a manual over has drawback Log for September 2007 with great
ride on the 630/3A, you can simply The simple tank water level indica interest. It presented an easy solution
add an external bypass switch. tor presented by John Williamson in to my needs.
Tony Cassaniti,
the September 2007 issue does indeed Interestingly the Serviceman could
Garden Suburb, NSW.
perform exactly as he says. However not think of why anyone would use
when I tried the very same idea a while this. In my case, the application is
Satisfaction with ago the problem I had was that the to mount an old laptop upside down
Nixie clock water in the clear plastic tubing was on the roof of my 4WD and use it to
r just had to let you know that the then exposed to sunlight and began display navigation with a GPS and as
Nixie Clock published in the July & to grow some multi-coloured algae a large roof-mounted DVD player.
Tony Wise,
Melbourne, Vic.
Speedo readings
odometer read between 4.8km and
not good enough
4.9km (2-4% low). A timed check
Climate change
I have read the recent letters re of the speedo shows that 100km/h
is indicated as 108km/h, a fact that
scepticism
garding car speedo errors. I find it There has never been any doubt that
quite disconcerting that manufactur I can testify can't be too much in
the pubHsher, Leo Simpson, stands
ers are pennitted such a large error. If error as I drive on the highway with
on the conservative side ofthe politi
I go into a supermarket and buy 100 the speedo indicating just below the
cal spectrum but I would call him a
grams of product, I expect to get very 110km/h mark (approximate needle
climate-sceptic rather than "denier"
close to 100 grams (maybe ±1 %). I width) and have never had a speed
and some hard-nosed scepticism is
would be very displeased to find that camera ticket although I pass a
certainly needed wi th some of the self
I only had 87.273 grams. large number of cameras on various
serving "solutions" on offer.
As you state, it must be very highways.
Changing the area lighting on a
frustrating for heavy vehicles with Surely it is about time that car
block of flats to CFLs saved consider
speed limiters set at 100km/h to be instrument manufacturers caught
able power but the biggest impact was
stuck behind a line of cars all doing up with the rest of the world and
from the longer life, meaning that visits
88km/h even though their speedos made instruments that indicate more
from an electrician at $80 per blown
are showing 100. accurately the speed and distance.
light globe were cut to one-third, never
Your correspondent Adrian Leake Perhaps even radar or GPS technol
mind better lighting. The much higher
(SILICON CHIP, August 2007) asserts ogy would beat the old mechanical
cost of the CFLs was recovered in only
that odometers are calibrated to read devices running off the transmis
a few months.
accurately. My experience is that sion.
I've installed and maintained some
they read low. On several differ Bill Neumann,
remote area solar power systems and
ent 5km 'Speedo Check' zones my Yeerongpilly, Qld,
I agree that they are quite uneconomic
Prime Electronics, their sole ples of this particular model and Symonston, ACT.
scienTECI·1
Innovative. TemllOlogy Ecosystem
Tl'JJch/n
ITni"'n Sor
NV9DDB NV6000
/ollQ'owave Inlegra lid Cilall! El.etlljcity Lab
Tralnl!l'(MlC i
SClenTEC I
Technologies ,.". "',
Contact Geo Electronics, 45 Yachtsman dr. Chipping Norton, NSW 2170
~*= ~y=
• It is extremely unlikely that you -- J -
will achieve adequate results using a
-I! -I, - 1 -,T!
-(
~---1~
bargain-basement laptop and/or a $99 - -
combination CDlradio/cassette home I ----1
"hifi" system. As with all systems, the
chain is only as strong as its weakest
r MUleali r Mule IP: Mute f;i Mule Ir Mute
link.
• This project is much more easily Fig.l: this is the Windows volume control mixer panel. Set both the "CD"
carried out with the help of an expe and "wave" level controls to about 80% and the "master" or "volume
rienced musician, preferably someone control" to zero.
who can play an instrument (eg, guitar)
Properties:
and sing. ,
• Screen resolutions of less than MiKel device: 1M IW'M'"
1280x1024 will make it difficult to Adjust volume 1 0 1 - - - - - - - -
control and organise the program
windows used in this project. r. Etayback
• An absolute minimum of back rfiecOlding
ground noise is essential to the re
cording process. If your computer
has a noisy fan, then you should at
tend to this before embarking on this Show the following 'IOlume coollols:
project.
0 3D Depth
J
1
Also, remember to take the phone off o SPDIF
the hook and switch off your mobile o Aux
phone prior to any recording. o CD Plal'er
• The objective is here is NOT to o
o Line In
Mlclophone
strive for bass levels that will rattle the
windows or searing treble that causes
Fig.2: the Windows o Phone Lll1e
volume control mixer
bleeding from the ears. Instead, the aim panel properties window.
L.~:....L...P_c_s_p_ea_ke_r_~-:-- ~ ~ ..
is to achieve a well-balanced, pleasant Be sure to select the
r
Balance: Bak.'1Oe
ij,-f-~
, ( , ij,~~ -.fJ a- .;[j ij,
-:-~ ~ a. -:-:1-: ~ ij, -:- ,J-: ~ a. -:- ~ -V ij, -:-
:~: :r
Volume
l
'Io""e: VoItJne,
.
V_
:I
Vol_ Volume'
.r
. . . . . .
. .:
-1-
-I
...:.J-
j1
---1-
-J
- -
-I
.-1-
'1
-......J. --!- . ......J
r Muto,," P M,Ke P Mute r M"le rSelocl r Seioci r Select P Select
Adv."ee<l Avonu AC97 Aldo
Fig.3: opening two instances of the Windows volume control mixer panel- one for playback and one for recording.
preferably from a comfortable position treble controls (or equaliser) but avoid various types of motherboards
in the room's "sweet spot" and assess using any more boost or cut than is sound cards, you should rely on
the quality of the sound. , absolutely necessary. Do not use any ears to make the final judgement.
Important: avoid setting the "wave" equalisation facilities (or "effects") not much use having a system
level control to greater than about 80% thaL may be available on the computer. superb specifications if it is not p
- this is likely to cause overloading Ensure that these are disabled. ing to listen to (iL does happen),
(clipping) of the computer's audio If you are intending to use a la
system. Testing the PC's audio computer for this project, then
If your stereo system has a CD A number of computer audio per· highly recommended that you eval
player, it is a good idea to compare the formance testing programs are avail its performance using a program
performance of the two (ie, with the CD able, with RightMark Audio Analyser as this. Some laptop computers,
ROM drive in the PC). If you cannot (http://audio.rightmark.org/download. fairly expensive ones, have relati
detect any audible differences between shtmI) being the best tested by the poor audio performance specificat
them, then this is a good sign that the author. This program will test the and hence, poor sound quality.
computer's audio quality is adequate playback and recording capabilities
(.it may also be a good sign that you of your PC's sound system and report Treating room acoustics
have no ear for music, however!). such specifications as frequency re To measure the overall chara
Now switch back to the computer sponse, distortion, hum and noise, istics of the entire system (or of
and try different tracks and different stereo separation and more. audio system, for that matter),
CDs. If necessary, "fine-tune" the sys While considerable variations of follow these simple steps:
tem with the stereo system's bass and performance will be found between (1). Generate a 20Hz to 20kHz s
waveform is as high as possible with a slightly reduced recording level. no detectable distortion, background
out the peaks exceeding -3dB. Fig.5 Let it record for about 30 seconds and noise or hum.
is a good example of a track that has then stop. At this point, it is necessary to make
been correctly recorded. As shown, the Now set the microphone playback it a habit to lead in any recording you
peaks do not exceed this value. level to around 80% and play back do with a "1-2-3-4" (depending on
Note: ensure that the level scale on the recorded track. Set the main the beat of the music). Use something
the righthand side of the window is in playback level control for a subjective that creates a sharp, short pulse in
decibels. This is done by right clicking loudness level similar to the original the recorded waveform as shown in
the scale and selecting "decibels". instrument's volume. The objective Fig.6 (the author uses a pencil on the
If the recorded level exceeds -3dB here is to obtain a crisp, clear repro edge of a wooden table). This is very
at any time, stop and start again with duction of the original with (ideally) important, as later on you will need
a- -:-~ ~I r~;~
:'alance: Balance: Balance:
".
-:-~ ~ <fJ I):;. -:-~ -fJ
olume: \/oli.xne Volume: Volume:
-
I
:I
-r
- -
-I
---.J
:- 1 -
---.J-
-y
- -
Advanced
~I~~~
~ance: Balance: Balance:
b a fairly Oat frequency l'e pODse
~
-:-~ ~ a- -:-~ ~ a- ~~ ~ and quite good sensitivity.
;:ume: Volume: VokJme: Volume:
:I - -
-t
- - .
-, .
-y-
-
:-.-J: :-.-J:
-r
:-.-J:
~ Select Ir Selecl r Selecl r Selecl
success is when the performer likes quality depends on finding the opti
"vhal they hear. mum settings for each control.
If, for instance, the microphone level
Gain structure is set too high, then distortion will
Fig.7 lell & above: these an! Ihe The signal chain between the per result from overloading of that stage.
windows required for ease of former and the listener's ear consists Reducing the volume somewhere else
cUlltrnl in (luplex Illode. This of a number of stages, each of which cannot compensate for this. Do not
involves opening two inslanCI!S has an effect on the overall gain (or move on to the next stage until you
of Adohe Audition & selling
one tin' playhack and the olh!!r
amplification) of the system. Aside feel confident about the preceding
for rewrding. The playback & from the numerous volume controls, stages. To learn more about gain struc
rel:onling volume control panels you must deal with and the original ture, see http://www.mmproductions.
III IIsl also be opened. loudness levels of both the instrument co.uklgainl.htmJ
and the voice, the distance between
the microphone and the performer is Duplex operation
another factor affecting gain. We will now learn how to perform
It may take some practice to estab playback and recording simultane
these timing reference points in your lish the correct level settings for each ously. This involves opening two
waveforms in order to synchronise stage. The configuration of these set instances of Adobe Audition and
them for mixing. tings is collectively referred to as the setting one up for playback and the
"gain structure" of the system. This is other for recording. The playback and
Recording the voice a subject of tremendous importance recording volume control panels must
The purpose of this stage is to suc in sound engineering. There exist any also be opened and the four windows
cessfully record and play back the number of combinations of settings arranged conveniently on the screen
singer's voice, again with good fidelity. that will result in the same apparent as shown in Fig. 7.
Repeat the steps described above in loudness but obtaining the best sound It is necessary to become proficient
"Recording the instrument".
A word of warning - advise the
vocalist not to sing directly into the
microphone as this can create "woof
ing" and "whooshing" artefacts that
sound terrible and are impossible (1). A refinement of the duplexing technique described in this project is to
to edit out later. With practice, you play back the instrument to the performer through headphones and not via
should be able to record the perform the main system. This eliminates any presence of the instrument track in the
er's voice and play back a faithful vocal track. Once again, it's best to let the performer decide which method
replica at will. they preFer.
Again, review each recording at (2). If you are experiencing burn speed/audio q.uality related problems, try
tempt in its entirety and only continue lowering the burn speed when writing to the CD.
to the next stage when you have a (3). Adobe Audition can also be used in 32-bit mode.
satisfactory result. One indicator of
in setting up both recording and the singer to tap the microphone clearly visible synchronisation mark
playback gain structures, starting both lightly with a pencil on the last lead ers. Both recorded tracks should be lis
programs (recording first) and moni in marker. The timing precision of tened to and evaluated, particularly b
toring the process until completion this operation will determine the final the performer. Often the performer wi
of the recording. Sometimes, during accuracy of time-alignment (synchro recognise instances in either or bot
a crescendo (a significant increase nisation) when mixing the two tracks tracks where improvements could b
in "vocal level"), the waveform will later on. made and ask to re-record them.
overload (or "clip"). [f this happens, The vocals should now commence Remember that it is difficult for an
the recording must be halted and the and be recorded simultaneously with performer to accurately perceive how
levels reset. playback of the instrumental track. they sound while they are actuall
Remember that ~he distance between Note that the voice track wm also con performing.
the performer and the microphone is tain a faint background signal of the
an important factor. Only practice instrumental track. While an equiva Track signal processing
and patience will yield the optimum lent, higher amplitude copy will later It's at this point that you may elec
levels, placements and settings. overlay it, it is suggested that the in to process the tracks - eg, equalisa
To perform this stage, open a new strument playback level be as low as tion, noise reduction, dynamic rang
file in the recording instance of Adobe possible to minimise this effect. enhancement, reverb and echo, etc
Audition WigA) and start recording. This is usually no problem if the Adobe Audition is a very powerfu
Then open the playback instance con microphone is not too close to the audio editing program, capable 0
taining the instrumental track, having speakers and the vocals have been generating studio-quality results if
first verified optimum levels. adjusted to give a good strong record is used competently.
ing signal. However, it is suggested that a mini
Setting the marker At the conclusion, you will have two mum of "special effects" be applied
In order to set a synchronisation files, one of the instrument and one Only use those necessary to correc
marker in the voice track, instruct of the voice, both with accurate and obvious inadequacies or to add a b
sure to first save copies of the original Answer: select a narrow band of frequencies either side of the frequency where th
unedited tracks! While Adobe Audi offending room resonance is being triggered and set Adobe Audition to "Loop Play
tion allows you to "undo", you can
quickly get lost, especially if you ne Question: what do you do if the instrument is not acoustic (ie, electric)?
glect to save and correctly name each Answer: use the computer's "line input" and rig the system so that the performer ca
track variation (remember to always hear the instrument properly while they are playing it.
use WAY format). Question: when I do a sweep, the recorded result looks like a map of the Himalayas
Is the response of my system really that bad?
Synchronisation and mixing Answer: do anumber of trials with the microphone in various positions throughout th
When you are satisfied with the room, take the average and only attempt to correct overall response imbalances. Do no
instrument and voice tracks and know worry too much about individual narrow peaks if they change when the microphone
that they both contain accurate timing moved. These are caused by room ref,lections and are of little concern. Concentrate o
markers, you are then ready to syn the most severe frequency anomalies and treat them via suitable equalisation,
"mix-pasting" it into the other track, AnswBr:yes - select the entire waveform and go to "Frequency Analysis" under "Ana
positioning the cursor so that the two lyse". Higher FFT settings will increase the number of samples. (Select "advanced" i
are in sync. This is where the lead-in the analysis window to gain access to this).
markers are used. Question: why this duplex business? Why not just make two tracks and mix them?
Fig.6 shows a magnified portion of Answer: no performer, regardless of skill or ability, can sing atrack and play it separatel
the start of the instrument track. First, and maintain perfect timing (unless a metronome is used). The method adopted her
position the cursor so that it aligns (and found to be popular with musicians) is to record the instrument track first an
with the centre of the last lead-in then while playing it back, record the performer singing along to it, hence the nee
marker, then select the track from there for the two instances of Adobe Audition.
onwards to the end by holding down The performer will find it much easier to sing along to the instrumental track tha
the <shift> key and then pressing the singing without accompaniment.
beginning of the voice track, where Answer: at no time should you be using the microphone in playback mode throug
the marker should be clearly visible. the speakers. Whether recording or playing, ,the microphone playback level contro
Position the cursor directly in line should be set to zero.
by Mauro Grassi
t's called, quite simply, an "Elec the supplier had rewritten the basic Therefore, we were dubious. Skep
Fluoro clue
One of the claims on eBay gave us 390
at least some clue to the theory behind 15
this product. "To test the device, fluo
rescent light tubes were used, however,
please bear in mind that appliances Fig.i: there's not much inside
used in the home may be different." the Electricity-Saving Box
A fluorescent light is a common mainly a capacitor, a varistor
inductive load, as shown in Fig.2. and a power supply to light up a couple ofLEDs. The claimed "intelligent
When power is applied a bimetallic and digital" circuitry (what else could that be but a microcontroller?) was
strip in the starter heats up closing obviously out to lunch on the day we opened up this can of worms!
the switch. When this happens, the
filament at either end of the tube volt-amps, or the product ofthe v01tage is zero, meaning that the power fact
receive current through an inductor and current it consumes). The power is also zero. As the phase differen
and eventually the potential difference factor is therefore a number between between the voltage and current wav
reaches a point at which the gas inside zero and one since the real power is at forms varies between these extreme
the tube ionises. most equal to the apparent power that the power factor varies between ze
At this point, the tube fires and emits is supplied, by conservation of energy. and one. Fig.3 shows the derivatio
light and the starter opens again. This The further from one the power factor of an expression for the power fact
state will continue until the power is is, the more power losses are involved in terms of the phase difference, f
turned off. in supplying electricity and transmit sinusoidal waveforms. The calcul
The large capacitor is not necessary ting it over the power grid. tions are more complex for other typ
for its operation (its purpose will be Now consider a sinusoidal voltage of waveforms.
explained shortly). Sometimes it is waveform. When the current wave For a pme sine wave, it turns o
omitted. form is in phase with the voltage that the power factor is the absolu
Because fluorescent lights are waveform, the power factor is simply val ue of the cosine of the phase diffe
common inductive loads, this sug one. On the other hand, suppose the ence between the voltage and curre
gested that the product was aimed at voltage waveform is 90° out of phase waveforms. Therefore, for an ide
correcting the power factor of your with the current waveform, as happens inductive load, the power factor
household. for an inductive load. zero, while for an ideal resistive loa
Let us explain. The "power factor" Since power is the product of volt the power factor is one.
of a load is the ratio between the real age and current, it will happen that Now back to Fig. 1. The large 6.21
power (that which the load can use to the power waveform is symmetrical capacitor across the mains confirme
do work, measured in Watts) and the about the time axis. This means that our initial suspicion that it is there
power that is supplied, also known the average power, which represents correct the power factor.
as the apparent power (measured in the real power transferred to the load, The term "power factor corr~
J NlOW EII:"Clrll:i1y So'lvlnr;; Ball I POWll't !I\... ~r • Sa... ~ Monf!'Y· .6.'1)'. Qlhrf Glll!Clrh. (iatlr.rh, Glzmn" £Ipctranica. (pno lim. '9-0c-;-07 21 57 OJ AEST) . Mcr.:tl!a flre(oJl; r_ l~._
'" !:CIt ~ Itj""" !\O<*m.... ~ tJol)
"':IJ:g.;;::.=<b>y=.::,~::m'-:.<lU:: _
~.=="""Y=::'-;:~::_='Ilox=.,;;;;;;:s;....·S-·"""'Y_
_ Z3l'XllS3067719QQhZ02OQ9csteopyZ294Q9rdZl~me2
• '" lei
~ Serch ) ~.;~,." elly SeU My e8ol)' Comlllunll)l tlelp
.COf1UlU Sign In
~ ",'.,1_'1.... ~.IOI'
1h-liIluNttgil'dIlll' U.\A;od:"UI~..?o..,f~to~.~
MU llra qlM'51lflfl
L~
• AcId 10 FP!l'i'Il!' StIr'
W~dc """"" -'r's olher ,tems' ~ I !.lit
PoW.lt
~Mn Ioc4tllll~ Adfllllldl!, SA. Austrtl:', "'U: ...fl.N's SIIY..
1i!Il!!.lJE~!!!.E.l!
OUMJCltr mldtlabJe
~
"""1 em!wn Buy safely
1, Chick ,II. selle,'sllplI(,ldoll
STARTER
ince:
tion" refers to using a circuit, usually
something as simple as a capacitor in "'(wt).dt = IT
parallel with the inductive load to cor
rect the phase difference between the
voltage and current waveforms, since nd:
for a capacitor the current leads the 2".
voltage. This is why sometimes you see r
.III
siu(2..AI.dt = U
a capacitor being used in fluorescent
lights (in fact, in offices and factories It fulll)\'{ th
where there are large numbers offluo
rescent lights, there wi!] always be a
power-factor-correcting capacitor). -
1 l~'"
2:1 . (I
Pft\.dt
, .
=
\ nJc, '~O::l wt)
- - ' - '..,....--
2
Its purpose is to bring the current
waveform closer into phase with the 'il1" th R:\lS vult (T i,' ~ d tit f{~.l· "111'1'1 t. i,' ,*. i f"lJow~ hat tb
voltage waveform, thus increasing the av rag" app , nt POW').r il; hr~ prudllc-t of Ih P, u": ~ T, p.,w r fit tor "
power factor and minimising power t ( ratiu of the J,V ag rea] puwer and tlw a\·.. r~c ;lpp:tr m power in utll!~r
losses. As can be seen from the sche
W 1'1s it is:
matic we traced out, this is one of the
intentions of this product.
The varistor in parallel with the
mains is meant to provide surge pro
tection, another claim of the manu Fig 3: This shows a derivation from first principles of the power factor for a
sinusoidal waveform. The power factor of the load turns out to be the cosine of
facturer. The 330kn reslstor is used
the phase angle between the voltage and current waveforms.
to discharge the 6.2~lF capacitor when
the unit is unplugged. The bridge is solely there to rectify the mains, whic
is substantially stepped down by thE
Here's the back of
lOOnF capacitor, and then used t
the device showing
the two mains plug drive the two LEDs. Finally, the 15
pins (note two, not resistor limits the current through th
three - this circuit LEDs, which simply light up whe
is not referenced power is applied. It should now b
to earth). They do clear that the claim that this devic
give you the 3- uses no power is false.
pin international
adaptor so you Where's the microcontroller?
do actually get Another dubious claim of th
something usable
manufacturer is that this product
for your money.
Are we being a bit a "new-type inte1ligent and digita
cynical? electricity-saved (sic) device". Thi
suggests a microcontroller is bein
used, however, a look at the schemati
reveals there is no intelligent or digits
component there.
The more appealing claim of th
Fluorescent light 98,35W 98.62W 98,62W 98.71W 98.71W 98.5QW 98.5QW 98.5QW 98.44W 98.44W 9B.539W
I
Fluorescent light
+ Electricity saving box 98.65W 98.86W 98.88W 98.88W 98.78W 98.65W 98.86W 98.88W 98.78W 98.56W 9B.778W
Fridge 142.61W 142.59W I 142.83W 142.83W 142.34W 142.34W 142.35W 142.35W 141.64W 1141.64W 142.352W
Fridge
+ Electricity saving box 14328W 143.28W 142.91W 143.19W 143.19W 142.33W 142.33W 142.94W 142.94W 142.94W 142.933W
Table 1: the results of measurements of real power we made of two household inductive loads - a two-tube fluorescent
batten and a domestic refrigerator. The table shows measurements of the instantaneous power consumption of the loads
over ten consecutive 5~second intervals while the last column shows the average power consumption in watts. In every
case, the real power consumption using the electricity saving box, representing the actual cost to you, is higher.
the electricity saving box and hence in. To obtain the current waveform, same household circuit that pertml
that the claims of the manufacturer we measured the voltages at either the mains waveform,
that this product will save you money end of a resistor and subtracted the The RMS voltage is as expected a
are false. waveforms using the maths function 241 ~ 9V and the frequency is 50Hz. Th,
Given that it is clear that this device of the scope. current waveform is obtained by sub
. will not save you any money, the next Fig.4 shows a scope grab of the mains tracting two voltage waveforms acros
question is whether it corrects the voltage waveform (channel 3) and the a 4,4Q resistor on the neutral side.
power factor. mains current flowing through the The RMS voltage of the grey trace j
To answer this, we must look at fluorescent light (channel M). Note that measured to be 3.599V giving an RMt
the voltage and current waveforms the mains waveform is not a perfect current of 818mA. The phase diffel
through a load. We chose to use the sinusoid. Rather, it is an approximate ence is shown to be around 59°.
same fluorescent light we used in the sine wave with flattened peaks and Note that the apparent power i
measurements of real power, which did troughs. This is because there are therefore 0,818x240 = 196 W, roughl:
not have power factor correction built other appliances plugged into the twice that of the measured real pow€:
of 98W. This makes sense because th
Suppose we consider a typical fluor 'eent light without power factor correc power factor is given by the cosine
tion. We think of the loael as a res' tan e in seri 'with an inductor. A typical the phase difference and this is ap
value for the series resistance of th indu tor i' R = 1.812 anel a t piol.! value proximately 0,5,
for the indu tance is L = 10mH (th S8 we npasureel using an LCR Analyzer). Fig 5 shows what happens whel
It turns out that the exppssion: the electricity saving box is plugg (
in. Again, the mains voltage wavefom
B = tan -1 (u,o'L)
If = 60'.18 0 and the mains current flowing througr
the fluorescent light are shown. In thi
case, the phase difference is shown tl
measurE'S the phase difference in the volt" and current waveform" for this
be around 37°. The RMS voltage ofth
load, where w = 2rr f where f = 50Hz, the mains frequell '.
grey trace is measured to be 2.063\
Now suppose we introcluc a capaci or G = 6.2jtF in parallel with this load giving an RMS current of 469mA. Not
(which represents a. typical fluorescent light).
that the apparent power is therefor
Then it can be verified that the phase difference in this case will be:
lower at 0.469x240 = 112.6W.
This suggests that the electricit
saving box does indeed correct th
power factor of this load, also appal
The corresponding power factors are the cosine. of these angles or: ent from the lower value of the phas'
difference. In fact, aU this is consisten
cos( B) = Q.497 with the theory.
Fig 6 shows a calculation of the el
and fect of adding a capacitor C in paraUe
with an inductive load L with serie
cosWJ = 0.845 resistance R. The phase difference an
gles predicted from the equations ar
Comp:}.l'(' these values with the measured values in Figure <I and 5. consistent with our measured values
Fig 6: Theoretical calculation of phase difference between voltage and current
waveforms, and hence power factor, for a typical inductive load with series Conclusion
resistance with and without a parallel capacitor. This setup roughly applies to The Electricity-saving box will no
the fluorescent light we used in our tests. save you any money. In fact, the or.
-[----,-....,.=-_.--.,.---~-----------------
800 ~
ill
..-'
Since it will not save you any money and will have a
negligible effect on your power factor, we see little reason
to purchase this product. St
<
require power and are usually more
costly. However, they can provide ~
features that passi ve and mechanical
gauges cannot. These features include
POWER
CABLE .~
reliability, accuracy and the ability
<.. 5<.
~
READINGS TRANSMITTED TO
to provide remote monitoring of one BASE STATION VIA 433MHz
TANK
READING
FROM WATER
nominally straight sides and with the sure increases by 9.8kPa per metre HEIGHT
same shape and area at any horizon and so there is approximately an extra
tal cross section, then the water level atmosphere (l013hPa or 101.3kPa) of AIR IN TUBE
UNDER
gives a direct indication of water vol pressure for every 10.3m of depth. WATER
PRESSURE
Tanks that taper slightly (in the ver end to a pressure sensor and then place OF TUBE NEAR TANK BOTTOM
tical direction) due to the use of thicker the hose in the tank, the water will still Fig.4b: if one end of the tube is
material towards the base do not alter rise inside the tube but not to the water connected to a pressure sensor, the
water pressurises the air in the tube.
the accuracy markedly. Similarly, cor tank level (see FigAb). That's because
rugations have only a small effect on it pressurises the air trapped inside the
accuracy, although this gets worse at tube. In fact, the water level within
TUBING
very low water levels and where the the tube stabilises when the pressure
tank diameter is small compared to the inside the tube equals the water pres
'-..... AIR
ATMOSPHERIC
corrugation depth. In general though, sure at the bottom of the tube. \PRESSURE
the small non-linearity of volume with
height does not matter.
FigAc shows what happens if the
water level drops below the bottom of
AilTIT ZERO READING
AS PRESSURE
There are several electronic tech the tube. In this case, the reading will IN TUBE IS
niques that are used to measure water be zero, since both inlet ports on the THE SAME AS
ATMoSPHERIC
level in a tank. One method is to use sensor are at atmospheric pressure (ie, PRESSURE
an in-tank sensor with a series of ver the unit is calibrated to measure zero
tically-spaced metal contacts. As the pressure when there is no water in the
water rises, current flows through each tank, with the pressure then progres
successive contact (because water is sively rising as the water level rises).
a good conductor) and the associated One problem with this scheme is WATER TANK
electronic circuit displays the level. that the tube will not stay down of its,
The resolution of this type of meter own accord but will float due to the © WITH PRESSURE SENSOR,
depends on the number of vertical air trapped inside it. Fortunately, that's
contacts. This type ofwater level meter easy to overcome by tying it to a length Fig.4c: if the water level drops below
the bottom of the tube, the reading
was described in the April 2002 and of PVC pipe. Alternatively, it can be
will be zero since both sensor ports
July 2007 issues of SILICON CHIP (five tied down using a weight. are at atmospheric pressure.
levels and 10 levels respectively). Another problem concerns the effect
WIRE BONDS
/ changes.
This particular sensor is called a
differential type because it measures
the difference in pressure between the
SILICONE DIE
COATING two ports - ie, its output only changes
/
LEAD FRAME RTVDIE BOND
when the pressure difference between
the two ports changes.
The MPX20l0DP is designed for the
pressure at port 1 to be greater than or
INSIDE THE PRESSURE SENSOR equal to the pressure at port 2. In addi
Fig.5: this cross-section diagram shows the internal structure ofthe MPX tion, port 1 has a silicone gel protective
2010DP pressure sensor. The strain gauge varies its resistance according to layer to prevent moisture affecting the
the applied load. Note that there are two port openings (PI & P2). strain gauge element. This makes the
sensor ideal for water level measure
ment, as the silicone barrier keeps
the sensor free of the water vapour
that results from condensation in the
measuring tube.
By contrast, Port 2 is vented to the
atmosphere, to balance the air pres
sure on both sides of the strain gauge
element.
This sensor is specified for a O-lOkPa
pressure range, with a maximum dif
ferential pressure of 7SkPa. Using it
above the lokPa level degrades the
linearity due to internal self-heating
of the sensor. However, this limit is
specified when running the sensor
T1499A STEP UP CIRCUIT
from a lOV supply. Since we are us
Fig.6: the basic circuit for the step-up switching regulator. Transistor QI ing a SV supply, the self-heating will
is repeatedly switched on and off by the control circuit. When it is on, the be considerably lower and &0 we can
current builds up through Ll and when it switches off, the energy stored in
easily exert more pressure than lOkPa
L1 is transferred to the load.
without loss of linearity.
When connect d to measure water
level. each metre of water adds 9.8kPa
of temperature variations on the air removed from the measurement. of pressure to the sensor. Most water
pressure inside the tube. For example, In order to explain how the sensor tanks are equal to or less than about
if the sun heats the tube, the air inside ignores the atmospheric air pressure, 2.2m in height because they are de
if will expand and displace some of let's take a look at its internal construc signed to fill from the rainwater gut
the water out of the tube. tion - see Fig.S. tering of a house. This means that, for
In practice, this pressure variation The sensor used here is the MPX a 2.2m tank, the maximum pressure
is compensated for by measuring 2010DP from Freescale Semiconduc applied to the sensor will be about
the temperature and modifying the tor. Note that "RTV die bond" stands 22kPa maximum. This is well below
measurement accordingly. We can for "Room Temperature Vulcanising" the 7SkPa maximum allowable for
also minimise this pressure variation bonding. In other words, silicone glue the sensor.
by making sure the length of tubing is used to bond the strain gauge die to The strain gauge element is tempera
outside the tank is short compared to the epoxy casing and is cured at room ture compensated within the sensor
the overall length and by keeping the temperature. by connecting it in a balanced bridge
part that is exposed out of the sun. Inside the sensor is a strain gauge arrangement and by laser trimming
Another problem that must be taken that varies its resistance according to the elements during manufacture. In
care of is the effect of atmospheric the applied load - ie, the air pressure practice, the sensor is compensated
pressure variations. As shown in exerted on the gauge. Note that there over a 0-8SoC range but can be operated
Fig.4, the atmosphere presses down are two port openings to the strain from -40°C to +12SoC.
onto the water and so the water level gauge. One is on the top side and is
readings could vary markedly as the designated porU (PI), while the other Circuit details
atmospheric air pressure changes. is on the lower side and is designated As stated previously, the unit i'
The solution to this problem is Port 2 (P2). powered from a single cell - either
simply to use a differential pressure If the same pressure is applied to a 1.5V rail from a standard alkalin
sensor. This type of sensor is vented to both Pl and P2 then the strain gauge cell or a 1.2SV rail from an NiMH (or
the atmosphere, and so this variation is does not flex. However, if one port Nicad) rechargeable cell. This voltag
E B C
...
Sl
1
TP3 ICI
Tl499A I K
Dll1.5V
t'0
l470"F
7 15 14 1"'004 CEll
ESR A
m 3300
! 7
+5V
7 7 7
2.2k
7
lOOk 14
SENSORI
- t ADJ Vdd
+ I YM
10k r 31 RM ANI,I8 MPX20100P DIFFERENTIAL
PRESSURE SENSOR
t5V SWITCHED 4 P2n_np1
RA5 TP6
I VR3 3i
10k-
I~I
TEMP
ADJUST 1 AN2
IC3
7 7
I PIC 16F88-I/P
LED1
RGB-CK
1k 1k I
RAO
17
1k
Ab n
8
TP4
I
I
2 AN3
RA7
RA6 15
16
1k
lk
.l.U. .&.
Ar
Ag
I .'l. 11K
6 v..
5
5
4.004 RGB LED - TOP VIEW
7 7 A K 7
K -F(fr Ar Ar -F(fr Ab
Ab~Ag Ag~K
s-c WATER TANK LEVEL METER
of::'2007 (BASIC VERSION)
AlTERNATIVE
PINOUT
JAYCAR
ZD-0012
Fig.7: this is the circuit for the basic version of the Water Tank Level Meter. The differential outputs from the pressure
sensor at pins 2 & 4 are buffered and amplified by op amps IC2a-IC2d and then fed to inputs AN2 & AN3 (pins 1 & 2)
of a PIC18F88-IIP microcontroller (IC3). IC3 processes the data and drives a tri-colour LED at RAG, RA6 &RA7.
needs to be stepped up to 5V to run and recharging Ll, then switching off nominal value and could in fact be
the microcontroller (ICl) and its as again and transferring the charge in anywhere between 1.2-l.32V, depend
sociated circuitry Ll to the load. ing on the particular IC. As a result,
This voltage step-up is performed A voltage divider consisting of resis resistor Rl needs to be adjustable so
using a TL499A switching regulator tors Rl & R2 reduces the output level, that the output voltage can be set pre
(ICl). transistor Ql, inductor Ll, a while Ql's switching is controlled so cisely to +5Y.
series diode (Dl) and output filter ca as to maintain l.26V at pin 2. Basically, Refer now to Fig.7 for the circuit
pacitor C1. Fig.6 shows the details. the voltage divider values of 29.68kQ details of the Water Tank Level Meter
The circuit works like this: initially and 10kQ divide the output by 3.97 so (Basic Version).
transistor Ql is switched on and the the output will be at 5V when there is As shown, power from the 1.5V cell
current through inductor Ll builds l.26V at pin 2. Should the voltage rise is applied to pin 3 of step-up converter
up until it reaches a preset value, as slightly above 5V, transistor Ql stops ICl via switch Sl. Diode Dl provides
set by the resistor connected to pin switching until the voltage falls slight reverse polarity protection if the cell
4 of ICl. At that point, the transistor ly below the 5V level. Conversely, i( is inserted incorrectly, while a 470~F
switches off and the energy stored in the output voltage falls below 5V, the low-ESR capacitor bypasses the sup
Ll is delivered to the load and to out transistor switches on and off at a fast ply. This capacitor provides the neces
put capacitor Cl via the series diode rate to increase the voltage. sary transient current for the inductor
(DIODEl). This process then repeats. Note that the l.26V at pin 2 (neces when Ql switches on.
with the transistor switching on again sary to maintain regulation) is only a lf the cell is connected the wrong
way around, D1 conducts heavily As a result, no power is applied to pear at pins 1 & 7 respectively ane,
and limits the reverse voltage at pin 3 either the pressure sensor (Sensor1) are summ.ed in unity gain differentia
and across the 470f.lF capacitor to less or IC2. However, after a short period amplifier IC2c. Basically, IC2c acts as.
than IV. In addition, !]lany single cell to allow the +SV rail to stabilise, RA4 vohage follower for the positive-goin.
holders are designed to prevent the cell goes ]ow and Q1 switches on. Sensor1 signals from IC2a and as an inverter fo.
from making contact with the positive and IC2 are then powered up and begin the negative-going signals from IC2
contact if it is inserted incorrectly. operating. As a result, the signal voltage excur
Power is drawn from the l.SV cell sions from IC2a & IC2b are effective!'
only when switch Sl is pressed. This Differential outputs added together. The overall gain is
means that the cell should last for As shown in Fig. 7, Sensor1 has + (22kQ x 2/VR2).
several years before it requires chang differential outputs at pins 2 & 4. If
ing, depending on the amount of use. the same pressure is applied to both Buffer stage
The current consumption from the ports, the voltages at pins 2 & 4 are IC2d is wired as a buffer stage am
cell when the switch is pressed with nominally the same, at half supply applies an offset voltage to the non
one or two LEDs alight is typically voltage or 2.SV. However, if the pres inverting input of IC2c (pin 10) via
around 32mA. sure at port 1 is higher that at port 2, the 1kQ resistor. It obtains its referenc
IC1's output voltage appears at pin voltage at pin 2 rises and the voltage voltage via a voltage divider from th
8 and is sampled via trimpot VR1 and at pin 4 falls. This change in voltage +SV supply and this divider comprisl"
a 10kQ resistor. This sampled voltage is actually quite small, amounting to trimpot VR3 and a 22kQ resistor.
is then applied to pin 2. around 12.SmV for a 10kPa pressure In practice, VR3 is adjusted so thit.
In practice, VR1 is adjusted so that difference when the sensor is powered IC2c's pin 14 output sits at 1V whe
the output is exactly +sv. A 100nF ce from a SV rail. the sensor has no pressure differenc
ramic capacitor and a low-ESR 220f.lF The sensor's differential output sig between the two inlet ports. By cor,
capacitor filter this supply rail which nals at pins 2 & 4 are fed to op amps trast, trimpot VR2 is adjusted to pre
is then fed to pin 14 of microcontroller IC2a & IC2b respectively. These are vide 3V at IC2c's pin 8 output when th
IC3. The +SV rail is also connected to each set up as non-inverting amplifi sensor is measuring a full tank.
the emitter of transistor Q1 (BC327). ers with 22kQ feedback resistors and As a result, IC2c has a 2V range - if
When power is applied to IC3, its in with a 1kQ trimpot (VR2) connected from 1-3V for a zero to full tank lev!'
ternal software program starts running. between their inverting inputs. The measurement.
Initially, transistor Q1 is switched 10nF capacitors across the 22kQ resis If the tank being monitored is 1 .
off because IC3's RA4 output (which tors, filter the signal by rolling off the high, the sensor output will provid
drives the base via a 1kQ resistor) is high-frequency response. a 12.SmV signal when the tank is fuL
held at +Sv. The outputs from IC2a & IC2b ap In this case, the signal must be ampl
can easily provide an output from Transmission repeat: approximately 16.8s for encode 0-3, 33.5s for en
1-3V when powered from a 5V rail but code set at 4-7,67 seconds for encode set at 8-B and 268s for C-F.
Here's a preview inside the Water Tank Level Meter. This unit has the extra parts required for the Telemetry Version
(ie, the BCD switches & the 433MHz transmitter module). The pressure sensor is at bottom right.
Sensorl, ICs2a-2d, the 433MHz trans resistors would be connected across wakes IC3 from its sleep. In this case.
mitter and all those other components the 5V supply and thus drawing up the oscillator starts up and the internal
that derive their supply from the +5V to 250~A extra current for each closed program starts running,
switched rail. switch. Basically, the watchdog timer wi]
We have also minimised the current To prevent this current, "ve have timeout every 16.8s, 33.5s, 67s or 268s.
drain due to BCD switches BCDl and connected the common pins to the depending on the switch selection for
BCD2, These switches can connect RA4 output of IC3 instead. This out BCD2. The period between "wake
any of their '1', '2', '4' or '8' inputs to put is high at +5V when the micro ups" is basically the update period
the common pin (Cl. depending on the controller is in sleep mode and so - each time IC3 wakes up, the watel
switch setting, whether a switch is closed or not. the tank level is measured and the data
These inputs are usually tied to +5V BCD switches will not add to power transmitted to the base station. After
via internal pull-up resistors (typically consumption. The RA4 output subse sending this data, the microcontrol
20H2) at the RBO-RB2 inputs for BCDl quently goes low when IC3 is awake ler then returns to its sleep mode to
and the RB3-RB6 inputs for BCD2, to allow the switches to be read, conserve power.
The RA5 input for BCDl is pulled to This also means that the switch Note that a watchdog wake-up doe1
+5V using an externall00H2 resistor, mode step-up circuit comprising ICl not light the tri-colour RGB LED and
The lkQ resistor between BCD1 and and its associated components does this is again done to conserve power.
RA5 is necessary because this input is not need to supply much current to IC3 In order to light the RGB LED fOJ
susceptible to currents that flow into or when it is in sleep mode. As a result, a tank level display, switch Sl (no",
out of the pin when voltages go above ICl charges L1 for just 28~s once every in parallel with Ql) must be pressed
or below the supply (these currents 6ms and this is just enough to maintain In addition, IC3 needs to be woker:
can reset IC3), the 5V supply, By contrast, when the from its sleep independently frorr
Normally, if IC3 is to determine supply is required to deliver current the watchdog timer through a differ
which settings are selected for the to the whole circuit, 11 is charged for ent process.
BCD switches, their common (C) con 2811S every 150~s. Note that, during the sleep mode
nections must be at ground level so the ANl (pin 18) and AN2 (pinl
any closed switch will pull the nor Reawakening IC3 inputs of IC3 are set to connect to a
mally high input to ground, However, IC3 will "wake up" on anyone of comparator within IC3, TheANl inpu
this would cause extra current flow two events. The main event is when is at the cell voltage (1.2V), while tht
because the corresponding pull-up the watchdog timer times out and AN2 input is at OV because transis
a SI ,
~
C)
:::r K-F()rAr Ar-F()rAb
~. Ab~Ag Ag~K
C)
a AlTERNATIVE JAYCAR
PINOUT ZD-0012
I T
;3 TP3 ICl
III IIA99A I I
c:: SENSOR1 BC327
MPX20100P DIFFERENTIAL
PRESSURE SENSOR
p1 T1'2
7 15 14 I
VI
330n
8 C
o 0
LM335Z
1 7 ~ 7 7
2.2k~
'I
I 2 3 4 - t ADJ
+ +5V
I ~n"
10k
......u. l JI~A4 AN1
+5V swrrCHED
4
w
r=-1 22kl
13 1
RBO 6
RBI 7
RB2 8
' '1
VR3 ANT 433MHz IDATA
TX HII IC3
10k MODULE PIC 16F88~/p
R84 10
GND RB6 12
RB5 11
SENt~~ 1 22k
uu 1 lk
uu
lk
AlU J RB3 9
+
SENSOR2 J VR4
LM335Z 10k
- RAO
17
7 7 7
TP 16
RA7
6
5
~ "~~' ! L..1JAN3 RA6
15
v..
~
5
.,.
~
7 7
lN4004
!'v
SE7 WATER TANK LEVEL METER (TELEMETRY VERSION) =.
A
IIIJ
K
=
a
a
"l
Fig.8: the Telemetry Version is similar to the Basic Version but adds in a couple of BCD switches and a 433MHz data tr
switches allow tank selection and set the data update periods.
W
'-J
sensor voltage is converted to a 10-bit it is time to change the encode selec
digital value. This is then converted to tion.
°C by the software and the digital data Note, however, that if you have
transmitted to the base station where several water tank level meters, these
it is displayed on the LCD panel. The must all have the same setting for
temperature can be displayed from BCD2 and this must be identical to the
-99°C to 100°C. Base Station encode switch.
Note that the temperature reading The encode switch also alters the
can used to switch off a pump should period between each data transmis
the temperature drop below a preset sion of the tank level. If you have the
point. This is done via the base station encode switch set to 0, 1, 2 or 3, then
and a separate pump controi circuit to the update period is 16.8s. Encode
This larger than life-size view shows
the 433MHz transmitter module (1) be described. switch settings of 4-7 give a 33.5s up
and the tri-colour LED (2) mounted date; settings between 8 and B give a
at one end of the PC board. The LED Cell voltage 67s update; and settings from C to F
colour indicates the water level. The cell voltage is measured at the 268s, or about 4.5 minutes.
ANl input. This input converts the The selection you choose depends
voltage to a 10-bit digital value which on the size of the tank to some extent
tor Ql is off. As a result, the output is again transmitted to the Base Station and the number of tanks being moni
of the internal comparator is low for display. tored. The fewer the tanks, the faster
because the pin 18 inverting input of The displayed voltage is a good in the update periods can be. A slower
the comparator is higher than the pin dicator ofbattery charge. A cell voltage update rate avoids data clashes.
1 non-inverting input. that is 1.15V or less has a small "x" Data clashes occur when one tank
That leads us to the second way of located at the top left corner before the transmits its data during the same
waking up IC3 - by manually press "1" in the display reading, to indicate time period as another. This will cause
ing switch Sl and forcing the com a possible problem with the cell. incorrect data reception at the Base
parator output to go high. It works as Typically, a fully-charged NiMH cell Station and the data will be rejected.
follows. will show more that 1.25V on the Base The more tanks that are monitored
When Sl is pressed, it bypasses Ql Station display. the greater the likelihood of clashes.
and supplies power to the temperature So we need to minimise these clashes
sensor (Sensor2) via a 1.8kQ resistor. "BCD switches or the data at the Base Station will not
With power applied, Sensor2 will now Switch BCDl is designated the be updated very often.
have at least 2.5V across it and the "Tank" switch. This switch can be 'Data clashes will be worse if each
comparator's pin 1 input (AN2) will set to any number from 1-9 or to 0, tank has exactly the same update pe
now be greater than the 1.2V from the number selected representing the riod. For this reason, the tank selection
the cell. tank number. switch BCDl also alters the update
As a result, the comparator output This means that if you have two rate slightly between selections. The
goes high and this wakes up IC3. And Water Tank Level Meters (to monitor change is not great and overall is of
when that happens, the processor two tanks), you would set one as Tank the order of ±12% but that's enough to
maintains power to the sensors and 1 and the other as Tank 2. That way, cause any data clashes between tankE
the 433MHz transmitter by bringing its the base station knows which tank is to quickly drift apart. In addition, the
RA4 output low to turn on Q1. which. encode selections at BCD2 also alter
Regardless as to how it wakes up The base station has a display op the watchdog timer oscillator by c
(ie, either via the watchdog timer or tion that shows all the selected tanks small amount (this is additional to the
by pressing SlJ, IC3 measures the and their levels as a bargraph on the widely-spaced update values of 16. 7s,
temperature, cell voltage and tank one display. The order of the display 33.5s, 67s & 268s).
level. It then transmits this data via a is 1, 2, 3, etc up to 9 and then O. The As noted, clashes cause incorrect
433MHz transmitter module which is o tank is placed at the end because data to be received at the Base Station
connected to pin 13 (RB7). At the same not too many people start counting so we need to ensure that the BaSE
time, the tri-colour LED also lights for tanks from O! Station does not accept this incorrect
about 2s to show the tank level. The encode switch (BCD2) has two data. As a result, several safeguardo
Note that before measuring the functions, one of which is to prevent are included to ensure the that onll
temperature and cell voltages, IC3 any neighbouring tank level meters the correct data is processed and
changes its ANl and AN2 ports to dig from sending data to your base sta displayed.
ital inputs. This allows IC3 to measure tion. First, we send a start locking COdE
the cell voltage at pin 18 via a 2.2kQ Thus, when a water tank level meter that locks the base station receiver tc
resistor and 100nF filter capacitor and transmits its data to the base station, it the transmitter frequency. As a resull
to monitor the temperature at pin 1. also sends the encode selection. The data from another water tank mete:
As with the basic version, the temp Base Station must also have the same will be a different rate and so wi!
erature is monitored using an LM335Z encode selection programmed in to not lock.
temperature sensor. This part of the accept the data. This means that if a Second, the water tank level dat
circuit works as before. neighbour's tank levels are displayed and temperature data are sent twiG
At the AN2 input, the temperature on your base station [unlikely], then and the base station checks if the dat
Basic unit 1 length of 25mm PVC tubing to trimpot (code 103) (VR3)
1 PC board, code 04111071, 104 support the tubing or a suitable 1 10kQ horizontal trimpot (code
x 79mm weight 103) (VR4)
1 IP65 sealed polycarbonate 4 200mm cable ties
enclosure with clear lid, 115 x Extra Parts For
90 x 55mm (Jaycar HB-6246 Semiconductors Telemetry Version
or equivalent) 1 TL499A power supply controller 1 BCO 0-9 OIL rotary switch
1 MPX20100P Freescale Semi (IC1 ) (SC01) (Jaycar SR-1222 or
conductor 0-1 OkPa differential 1 LM324N quad op amp (IC2) equivalent)
temperature compensated 1 PIC16F88-I/P microcontroller 1 BCO O-F OIL rotary switch
pressure sensor (Jaycar ZO programmed with "water tank (BC02) (Jaycar SR-1220 or
1904 or equivalent) (Sensor1) level meter. hex" (IC3) equivalent)
1 SPST waterproof momentary 1 LM335Z temperature sensor 1 433MHz transmitter module
switch (Jaycar SP-0732 or (Sensor2) (Jaycar ZW-31 00)
equivalent) (S 1) 1 BC327 PNP transistor (01) 1 6.5mm diameter IP68
1 18 x 8 x 6.5mm iron-powdered 1 1N4004 1A diode (01) waterproof cable gland
core (Jaycar LO-1242 or 1 common cathode RGB LEO 3 PC stakes
equivalent) (L1) (Jaycar ZO-0012 or equivalent) 1 2.54mm jumper shunt
1 3-6.5mm diameter IP68 (LE01) 1 Solar garden light (Homemake
waterproof cable gland Lifestyle (Kmart) or equivalent
1 AA cell, - see text Capacitors - this includes the solar cell,
1 AA cell holder (Jaycar PH-9203 1 470~F 10V PC low-ESR an AA NiMH or NiCd cel'l & the
or equivalent) electrolytic 1N5819 Schottky diode (02))
1 2-way pin header with 2.54mm 1 220~F 10V PC low-ESR 1 1OOnF MKT polyester capacito
spacing electrolytic 1 1OOnF ceramic capacitor
1 18-pin OIL IC socket 1 1OO~F 16V PC electrolytic 1 1kQ 0.25W 1% resistor
1 4-way SIL socket (made from a 3 1OOnF MKT polyester 1 length of single core shielded
cut down DIP8 socket) 1 1OOnF ceramic microphone cable (length to
2 M3 x 15mm screws 3 10nF MKT polyester suit installation)
2 M3 nuts
2 No.4 x 6mm self-tapping screws Resistors (O.25W 1%) Extra parts if pressure sensor
10 PC stakes 1 100kQ 1 1.8kQ mounted inside tank
1 1.5m length of 0.5mm 322kQ 71kQ 1 bulkhead box, 65 x 38 x 17mm
enamelled copper wire 210kQ 1330Q 1 4-way header with 2.54mm pin
1 150mm length of medium-duty 1 2.2kQ spacing
hookup wire 2 M3 x 15mm Nylon screws
1 270mm length of 0.8mm tinned Trimpots 2 M3 x 6mm Nylon screws
copper wire 1 50kQ horizontal trimpot (code 2 M3 x 9mm tapped Nylon space
2 1OOmm cable ties 503) (VR1) 1 2-pair (4-wire) sheathed tele
1 length of 3mm 10 clear vinyl 1 1kQ multi-turn top adjust phone cable (to suit installation
tube (length to suit water tank trimpot (code 102) (VR2) 5 100mm Nylon cable ties
depth and installation) 1 10kQ multi-turn top adjust Neutral-cure silicone sealant
is the same for both transmissions be Next, the 8-bit tank level is sent, different for each tank selection.
fore it accepts it as valid. In addition, followed by the temperature (eight operation, the receiver must lock o
the encoding selections for the Water bits with bit 7 as a sign bit), cell volts the transmission rate or the data w
Tank Level Meter and the Base Station (8 bits) and then the 8-bit water level be read incorrectly.
must match, the water tank level must again and the temperature again. The data from the 433MHz tra
not be more than 110% and the stop The 8-bit stop code which has mitter is sent at a nominal1k bits
bit encoding must be correct. a value of 170 is then sent. These second. The receiver in the Base
The protocol for sending data is as stop bits indicate that the signal is a tion detects the signal and delivers
follows: initially, the Water Tank Level water tank signal. A different stop bit same data at its output.
Meter sends a 50ms transmission to set sequence is used for the water pump That's all for this month. N
up the receiver to be ready to accept control transmission. month, we'll show you how to bu
data. A 16ms locking signal is then Note that the locking sequence is in both versions (Basic & Telemetry
sent, followed by a4-bit encode signal cluded at the start of each transmission the Water Tank Level Meter and
and the 4-bit tank number. because the oscillator rate is slightly scribe the Base Station.
.,. 15 PD5
I
A
14 PD4
L------;:;D7:;-:;3::;!2 PAT
~
LEDI~
33 PM
34 PAS
06
D5
~ IC3c..., '¥
35 PM D4 PB7/SCKIS ~ 60< 5 121R1o.
IRxD~lQ...~O=-=-=-=-~_-_~f_-_-~~~~~~j:J~~l~~
36 PA3 D3
37 PA2 02
PDQ L.!l
3S PAl D1
DO 39 PAO
16 PD6
L--------;1-;;13PD3/1NTI
PDI/TxD ~ ..
~
IC2:74LSOON D1225 PC4 ATMEGAS515
+
DIO 23 PC2
4700
09 22 PCl .,. 2
08 21 PCO
P4
M 5 P84 +511 IC30 1
+ I
A3 4 P83
P85/MOS1 1flF - 3 MA
A2 3 PB2
Al 2 P81 12 RIo .
AO 1 POO
P86/M1S0171
lA0-4J 5 9
XTAL2 .1S I
Xl
I _._--- 17
1PD7 7.3728MHz lC3b
11
XTALI l4--IDl---- 3 4
~P02/INTO
1"~ 12~
CONI .,. v.. 7
1° .,. -.t-
LE05~ A
~+sv
1- -i 10flF
1000
CON5
S2
I
~
REG1 7805
°
47oo~
~
~:::l S3 ~1
3 .,.
"?'
o
()
+5V +12V !97 CD
~
til Fig.t: the circuit uses an Atmel ATmega85t5 microcontroller (lCt) to interface to the CD-ROM drives (via CaNt) and
c:
and CON3 are optional, to provide in-circuit programming for the microcontroller.
Pin Name Description
Error': 51200301
fRESET Alow level on this pin resets all connected drives.
0300C0 C000!=1051 2,19,22,24,26,30,40 GNO All these pins are connected to the common ground plane.
Fig.2: the Error Screen. The numbers
give information about the state of the 3,5,7,9,11,13,15,17 [07:00] 3=07,5=06 ...... 15=01,17=00
These are the eight least significant bits of the data bus.
program and the drive when the error
occurred. 4=08,6=09 ...... 16=014,18=015
4,6,8,10,12,14,16,18 [015:081 These are the eight least significant bits of the data bus.
20 KEY This pin is not connected and is used to prevent the cable
involved in DMA (direct memory ac being connected the wrong way around.
cess) for that - but it would work.
With ATAPI devices like CD-ROM 21 OORQ Data request pin - not used in this project.
drives, most operations are initiated 23 IWR Write strobe, active low.
by writing packets rather than single -
byte commands. A packet is a string 25 fRO Read strobe, active low.
of 12 or sometimes 16 bytes that are Oevlce ready ~in, active low, not used in this project. Used to
27 JIOREAOY slow a contro ler If it is too fast for the drive.
sent to the drive in sequence.
In order to send packets, a more
28 ALE Address latch enable not used in this project.
involved algorithm than just writing
31
-I IRQ Interrupt request not used in this project.
to the register file is needed. Here you L
have to worry about bus timings and Obsolete since ATA-3 - not used in this project.
32 1016
whether the drive is busy or requesting -
data. There is a well-defined protocol 33,35,36 I [A2:AO) 35=AO; 33=A1; 36=A2. Address bus
for PIO (peripheral input output) ac 37 Chip select 0
fCSO
cess to an ATAPI device. 10:
Feedback is provided by the bits 38 I. fCSl Chip select 1
BSY (bit 7) and DRQ (bit 3) in the
39 fACT Alow level on this pin indicates that the drive is working. It
Status register, which can be polled can be connected directly to a LED to show drive activity.
to determine the current state of the
Table 2: this table shows the pin-outs of the ATAPI interface, Note that this
drive. When the drive shows BSY=l
project leaves many pins usused, as they are unnecessary for PIO transfer.
it does not respond to commands and
reading any register except the Status
register is undefined. In other words, reads from the drive. supported. To make sure that the CD
the only valid information that can be When the above packet has been ROM Playback Adapter works with
read from the drive is bit 7 (BSY) of successfulIy processed by the drive, it just about any ATAPI device, we've
the status or alternate status registers will respond by opening the tray. This used only "Mandatory" commands as
(when it is busy). packet does not require any extra data per the specification (rev 2.6 1996).
As an example, the packet to open transfer but other commands, such as Note, however, that we cannot guar
the tray of the drive is given by the reading the CD TOC (table of contents), antee that it will work correctly with
12-byte string: OX1B, OxOO, OxOO, OxOO, do require reading from the drive. all ATAPI devices. Some are buggy and
Ox02, OxOO, OxOO, OxOO, OxOO, OxOO, Other packet commands such as set the standard covers a period of many
-. OxOO, OxOO. To send this packet, you ting the volume require both reading years. We've also come across drives
first send the PACKET command OxAO and writing to the dri ve (refer to the that don't conform to the standard in
:.. to the command register and then fol ATAPI specification for the relevant every detail.
low the packet protocol, as outlined in packet codes). In our case, we tested the adapte
Flowchart 1. with seven different ATAPI devices
The protocol begins with a packet The firmware including both CD-ROMs and DVD
being written to the drive. Optionally, The main component of this project drives, and it worked correctly with
: there may follow a data read or write is the firmware, as the hardware is six of these. The seventh drive had a
transfer, depending on the packet writ little more than a Atmel microcontrol problem in that it was not detected by
ten to the drive. leI. The firmware is responsible for the firmware and closer inspection and
The CoD (command/data) and IO interfacing to the drives, decoding the debugging revealed that the micro was
(input/output) bits are in the Sector remote control signals, auto detecting unable to write to the drive's registe
Count ATA register (also known as the the connected drives and controlling file. Thus it failed the first test of the
Interrupt Reason Register in ATAPI playback and volume, among other auto detect subroutine, as explained
devices). CoD is bit 0 and IO is bit 1. things. below.
When CoD is 0, data is being trans All this is done with only 512 bytes Basically, if a particular CD-ROM
"l
Z ferred and when it is 1, a command of .RAM! The firmware size is ap or DVD drive is not detected by the
~ (packet) is being transferred. proximately 7.2KB and fits inside the firmware on start-up, it will not be
.)
~
The IO bit indicates the direction of micro's 8KB flash memory. functional with the adapter. In tha
transfer. When IO is 0 the host writes ATA and ATAPI commands are ei case, try using a different drive. Con
to the drive and when it is 1 the host ther "Mandatory", "Optional" or not versely, if the drive is correctly detect
Yes
ISSUE PACKET
COMMAND OxAO
RESULT
Yes
END PlO
READ ERROR REGISTER
PACKET COMMAND
Flowchart 1: this is the packet writing routine used in the firmware. The interrupt signal INTRQ, intended for PC
buses on computers, is not used and a method of polling for DRQ and BSY is used in its place.
How it works
Refer now to Fig.l for the circuit
details. The circuH is essentially just
an Atmel ATmega8S1S micro control
..
r'
1,1
i ~-:.
1.: J
.,~ . • rl'~'f'" . "'-,.~-_.~,,-ru.~
~·.,\~~.~'~~1.i.-f.~J,;A4r.~r~!,~,;J;t""
ler (IC1) with its general 10 pins con .... ,1 _ ' :..-'!~.a...-·:_' -'_~~.LS"u~ . . '~'_~_'~
... ..!
~
•.. ~- - - - ---y--' -
(RS-232). These devices are optional
,~,~,~.r .. ' .... .iii
~,. ~;" -_.' , ~ .
and are only needed if you are plan I , ...•..... ::::::::
ning to experiment by writing your
own firmware. Basically, they ailow
the board to be connected to a PC's CD·ROM drives have three sets of jumper pins at the back to configure the dri
serial port so that the microcontroller If you have just one drive, it can be configured as either a master (MA) or a
can be programmed in-circu1t. The slave (5L) using the jumper link. However, if you are using two drives, then o
software to use for this job is called must be configured as a master and the other as a slave, as shown here.
"Pony Prog 2000" and is free for down
load from www.lancos.comJppwin9S. using switch Sl, need a Y-splitter cable if there are t
hbnl. LEDl (green) shows the activity of drives.
ICs2 & 3 are simple logic gates, used the currently selected drive. In this case, you can use a surp
here as "glue logic" for the interface. Finally, LED2 & LEDs make a pair. computer power supply to power b
These devices are 74LSOO and 74LS04 Only one will be lit at anyone time. the boards and the drives. This w
quad NAND gates and hex NOT gates WS (green) indicates that the MAS simply plug straight into either CO
respectively but only one NAND gate TER device is being controlled, while or CONS. Another option is to us
and four NOT gates are used from LED2 (red) indicates that the SLAVE ready-made adapter like the Jen
these devices. device is being controlled. If you have JTA0202Y (from Taiwan). This u
two drives connected, you may toggle supplies +12V and +SV at 2A ea
Infrared receiver between them using the Line-In button which is enough to power two dri
IRDl is an infrared receiver module, on the remote. and the PC board. It also comes w
containing a photodiode, amplifier, the proper plug, so an you need th
filter and demodulator all in a com Power supply is a Y-splitter cable.
pact package. It accepts a modulated In order to power the drives, you
infrared signal on a 38kHz carrier and will need a power supply capable of Setting up the drives
outputs a demodulated TTL level se delivering +12V at 2A and +SV at 2A The two drives must be configu
rial stream. (eg, a computer power supply). By con before being installed. Specifically
This stream is fed to pin 12 of ICl trast, the board requires a +SV supply you wish to connect only one dri
and is decoded by the firmware in and draws just 200mA. it can be configured as either a sla
the microcontroUer. Note that IRD1's Basically, you've got two choices or master device.
output is usually high (around +SV) when it comes to the power supply. Usually this is accomplished b
and varies as a square wave when an The first option is to power the PC jumper setting on the back of the dri
infrared input is received. board directly from a 9-12V plugpack The drive will usually have a la
S3 is used to select the remote supply and power the drives sepa indicating the appropriate posit
control setup option at boot time. For rately. In this case, the board supply of the jumper.
normal operation it is open and this is fed in via CON6 and is regulated to If you wish to use two drives, ho
allovvs the signal from IRDl to pass to +SV using 3-terminal regulator REG1. ever, make sure that one is configu
the micro controller for decoding the Diode Dl provides reverse polarity as a master while the other is conf
remote control signals. Conversely, protection, in case the supply is con ured as a slave. It doesn't matter wh
when S3 is pressed, it temporarily nected the wrong way around. is which as long as they are not b
pulls this line low via a lkQ resistor The second option is to plug a slaves or both masters.
to allow remote control set-up. +12V/+SV supply into either CON4
There are fi \'e indicator LEDs on the or CONS on the PC board. The board How auto-detection works
board. LED'! (red) is the power LED, will then be directly powered from Let's now see how the micro dete
while LED3 (orange) lights when the this supply, while the supply for the any connected ATAPI devices at b
micro is being programmed or is in the drives can then be taken from the up.
reset state. Th.is state can be entered unused connector. Note that you will First, a simple test is done. The m
Setup ReMote
Eject CD
Disc Read':!
Close Tra'::!
I
't
')e
e are conn and have been correctly (which will be shown on the screen) and intuitive. By the way, you can us
'1y detected he firmware. and then press Play to play the selected virtually any RC5-compatible remot
e The 0-9 ber buttons are llsed track number. control since you can assign the bu
n to select a 'cular track number to As you can see. the user interface tons during the set-up procedure (mor
es play. Simp the correct number has been kept deliberately simple on this next month). s
;w siliconchip. NOVEMBER 2007 4
Schematic of the Siemens VDO Electronic Wedge Brake:
The brake caliper (1) spans the brake disk (2) from two
sides. The disk is braked by a pad (3) which is
moved by an electric motor (4) by several
rollers (5) along wedge-shaped
inclined faces.
~L
Available from:
Wagner Electronics
'rE:Peerlessvine
1=-
138 Liverpool Road,
Ashfield, NSW, 2131 vifa innovation lives on
Phone: 02·9798·9233
~S'CA SPEAK
Fax, 1)2-9798-0017
Email: sales@wagner.net.au
Web, www.wagner.net.au
• mrm ffiC8LffiIID ~~
:::::;,::;';;;;~
Available Aust, only. Price: $A13.95 plus 57 p&p per order (includes GST). Just fill in and mail the handy
order form in this issue or ring (02) 9939 3295 and quote your credit card number.
-
the set was situated in one
of those much-dreaded en
tertainment cabinets, with
very little access. ( \J\
The problem was no
sound which is an unu
sual fault these days. For
tunately, I could see the
cause as soon as I gal close
to the TV.
What happened was iliat Rigel DS5062MA 60MHz Rigol DS5102MA 100MHz
the mains power onloff
~ 60MHz Bandwidth ~ 100MHz Bandwidth
switch had been giving
~ 1GS/s Real Time Sampling ~ 1GS/s Real Time Sampling
trouble and wouldn'llatch
~ 2 Channels ~ 2 Channels
in the on position. So, to
~ Mono LCD Display ~ Mono LCD Display
keep the sel on. Ule owner
~ 4K Memory Per Channel ~ 4K Memory Per Channel
had jammed a match splin
~ 20 Automatic Measurements ~ 20 Automatic Measurements
ter in the side of the on/off
~ Advanced Triggering on Edge, . ~ Advanced Triggering on Edge,
button.
oIortunalely, he didn't Video & Pulse Video & Pulse
~ Built-in FFT ~ Built-in FFT
realise that this switch also
~ Built-in USB ~ Built-in USB
has a momentary switch
~ 3 Year Warranty ~ 3 Year Warranty
built in. This normally re
lhe microprocessor and
mules the sound to prevent
unnecessary noises when
ONLY $) ex GST
o y 1,099 exGST
~\'itching the set on or off. SAVE $200 SAVE $300
I proved the point by
removing the match and
pushing the switch in far
enough for Ihe set to come Sydney Melbourne Brisbane Adelaide Perth
on then releasing it slightly Tel 02 9519 3933 Tel 03 9889 0427 Tel 07 3275 2183 Tel 08 8260 8166 Tel 089361 4200
Fax 02 9550 1378 Fax 03 9889 0715 Fax 07 3275 2196 Fax 08 8260 8170 Fax 089361 4300
so that the momentary
email testinst@emona.com.au web www.emona.com.au
switch was no longer on.
This brought the sound on
with the picture.
I told the client that I
E attA
would have to order the
switch in from Grundig and it would functions - On, Standby and Full Off What was crook was the pow
take time. In the event, the switch - which could be controlled by the on/off button itself which had crack
(part no. 297032917200) was no longer remote. You only had to push the and so was not sitting on the swit
available but as luck would have it, I switch in to go into either the full On properly. Once again I was left wit
did have a 297032917204 switch in or Standby modes which are control dilemma. The faulty knob would pro
stock. led by the remote. If you pressed the ably work perfectly well super-glu
Back at the customer's unit, I man remote's Off button once, it would go to its original switch. However I cou
aged to rotate the set in the entertain to Standby. If you pressed it twice, it only go down that path once. The kn
ment cabinet and remove the back and would pop the switch out to Off using was no longer available and once
the main chassis. I then had to remove the solenoid. perglued on, you would never be ab
the control and display chassis to gain The original switch looked identi to remove it if the switch failed.
access to the switch. Finally, I removed cal to the one I had (thank goodness) In the end, I decided to replace t
the whole assembly and examined it but it also looked as though there was switch just to make sure and sup
carefully. nothing wrong with it as it was now glued the knob onto it. This fully
It was indeed a very special switch latching properly every time outside stored the sound and it was a win-w
with a solenoid built in. It had three the cabinet. situation all around.
2.2k
~AlRM
A .
--
~mKE
A 1
@ WW.~
'- - .__~:-. C)-O, @I
-
I.
A
Fig.6: the test LEDs are connected to the receiver as shown here. Follow the
2.2k STRIKE
2
procedure in the text to synchronise the transmitters and test the receiver.
switch on and check that there is 5V from operating your receiver. If ran
'" domisation is not done, there is the
between pins 14 & 5 of the IC socket.
If this is within 10% of 5V (4.5V to real risk that someone else's transmit
5.5V), switch off and plug ICl into its ter that has also not been randomised
socket, making sure that it is correctly will operate your receiver.
These binders will protect your
orientated. To randomise a transmitter, simply
copies of SILICON CHIP. They
Next, wire up the test LEDs as shown connect pins 3 & 5 of its IC5P con·
feature heavy-board covers & are
in Fig.5. These are all wired in series nectar together and then press switch
made from a distinctive 2-tone
with 2.2kQ current limiting resistors. 52. The transmit LED will flash at a
green vinyl. They hold 12 issues &
Once the LEDs are wired up, apply i-second rate for the duration. Release
will look great on your bookshelf.
power and check that the receiver's the switch when you are ready after
power LED flashes briefly at about anywhere from several seconds to * 80mm internal width
once per second. If it does, then so
far so good.
several minutes.
The parameters are all altered every * SILICON CHIP logo printed in
gold,coloured lettering on spine &
The transmitter must now be ran 40/ls (that's 25,000 times a second), so cover
domised and then synchronised with they '"'\Till be different for each transmit
he receiver. Let's now take a look at ter after even short presses. * Buy five and get them postage
these two procedures. free!
Synchronising
Price: $A13.95 plus $A7 p&p per
Randomising After randomising. the transmitter order. Available only in Aust.
Randomisation of the transmitter must then be s\ nchronised with the
ensures that it uses a unique set ofpa receiver. To do this, disconnect pins Silicon Chip Publications
rameters to calculate the rolling code. 3 & 5 of the IC5P header and connect
This procedure is important because pins 3 & 4 together instead. That done, PO Box 139
the original parameters programmed press and hold down 51 on the receiver Collaroy Beach 2097
in are the same for every transmitter, and then press one of the switches on
Basically, you need to personalise the transmitter. Or call (02) 9939 3295; or fax (02)
.9939 2648 & quote your credit
the parameters to prevent another The transmit LED will now flash
card number.
transmitter that has the same identity twice momentarily and the receiver's
Use this handy form
---------
Enclosed is my cheque/money order for
As previously noted, the Holling Code Keyless Entry System provides a high $ or please debit my
level of security because the transmitted code changes each time it is sent.
However, to further improve security, we have also inCluded code protection for o Bankcard 0 Visa 0 Mastercard
both the transmitter and receiver. Card No:
Basically, code protection prevents the program and data within the PIC mi
crocontrollers from being read by a PIC programmer. As a reSUlt, the parameters
used to calculate successive rolling codes are kept safe within the microcontrollers.
In particular, this effectively prevents a transmitter from being "interrogated", in Card Expiry Date __/__
order to make a duplicate transmitter that will operate the door lock. Signature _
So while the hex files can be used to program the microcontrollers, they can Name _
not be read back once programming has been verified. The parameters used
for calculating the rolling code are then randomised in the transmitter using the Address' --'- _
set-up procedure already described. It is these parameter and rolling code seed
P/Code. _
values that are hidden by the code protection. '- J
siliconchip. com. au NOVEMBER 2007 63
rent for the electric striker and a
Table 1: Strike1 Operation (LK1) Table 2: Strike2 Operation (LK2)
alarm siren if fitted. Many electr'
LK1 + Open LK2 + Open strikes draw around 800mA, so a 1
Strike1 Disarm Arm & Strike2 plugpack will be required.
operates on Arm Only Only Disarm operation Momentary Toggle Not valid
Note that the armed status is star
so that if power goes off, the arm
or disarmed mode will be returne
Table 3: LK3, VR1 & VR2 Settings when power is reconnected. So if th
LK3 + Open receiver was armed when power wa
lost, then the armed mode will be l'
Operates when VR1 sets Strike1 period VR1 sets Input1 delay VR1sets alarm period stored when power is returned.
S1 pressed VR2 sets Strike2 period VR2 sets Input2 delay
When powering from a 12V batter~
5V sets 64s 5V sets 64s 5V sets 128s
2.5V sets 32s 2.5V sets 32s 2.5V sets 64s a charger should also be connected t
Notes 1.25V sets 16s 1.25V sets 16s 1.25V sets 32s maintain battery charge - see Fig. 7..
O.625V sets 8s O.625V sets 8s O.625V sets 18s 12V 350mA charger for sealed lead
O.313V sets 4s O.313V sets 4s O.313V sets 8s
O.156Vsets 2s O.156Vsets 2s O.156Vsets 4s acid batteries would be suitable. Thes
chargers are fully automatic - the.
charge the battery when required an
acknowledge LED will flash on and off shows the exit delay. maintain full charge with a trick!
at a 1-second rate until switch S1 on After about 20s, the exit delay current. Two suitable chargers are th
the receiver is released. should expire and the Arm LED should Jaycar Cat. MB-3517 and AltroniL
Now remove the link between pins then flash briefly once per second. Cat. M 8520.
3 & 4 on the transmitter's ICSP header. Now check the operation of the Depending on your applicatior
Once that's done, you should now second (smaller) switch on the trans Strikel can be optioned to operate u
find that the transmitter operates the mitter. This switch should toggle the arming. on disarming or on both arn
receiver. If it doesn't, try synchronis strike2 LED on and off with successive ing and disarming. These options a
ing again and make sure that the IR pressings. selected using link LKI. Table 1 sh01l\
receiver has a clear "view" of the what each link connection does. Yc
transmitting LED. Testing the alarm may also wish to place a small buzzi
The above randomisation and syn To test the alarm, arm the unit and across the door strike connection
chronisation procedures must be done short lnpun on the receiver to ground give an audible indication of do
for each new transmitter. Note that a (OV) using a clip lead. The external strike operation.
transmitter that has not been synchro alarm (ALRM) LED should light after The Strike2 output can be momenta;
nised will not be able to operate its 20s and should then stay on for 60s. ily activated when ever the second
recei vel', even if their rolling codes are You can check the operation of switch on the transmitter is presse
the same. Note also that synchronising the delayed exit by arming the unit Alternatively, it can be toggled on
a new transmitter prevents the use of and momentarily shorting lnpun or off with each switch pressing. Lin
a previously synchronised transmitter Input2 to OV during the exit period. LK2 selects these options.
that has the same identity. The alarm LED should not light after
Next, press the main switch on the exit period has expired. Receiver time periods
the transmitter and check that the Trimpots VR1 and VR2 are us
receiver's Strike1 LED lights for about Receiver options to set the time periods for Strikel
five seconds. The external Arm LED The receiver can be powered from Strike2, the exit and entry delays f
should also light, while the receiver's a 12V DC plugpack or a 12V battery. lnpun & Input2, and the alarm perio
on-board Arm LED should flash with When powered by a plugpack, make Link LK3 provides the means to s
an even on-off duty cycle. This flashing sure it can supply the necessary cur each time period - see Table 3.
With LK3 in the "+" position, VR
and VR2 set the strike period f
Strike1 and Strike2 respectiveL
Table 3 shows the various vol
8uitable reed switch assemblies, door strikes and sirens are available ages that VRI & VR2 can provi
from Jaycar and Altronics. to set the strike periods. The
voltages can be measured at T
The parts available from Jaycar include: (1) the LA-5072 normally for VRI and at TP2 for VR2.
closed (NC) reed switch magnet assembly; (2) the LA-5078 door To set the strike periods, sir
strike; and (3) the LA-5255 and LA-5256 piezo sirens. ply adjust VRI & VR2 to the volta.
Altronics has the following: (1) the 8-5173 reed switch assem settings required and press the s,
blies; and (2) the 8-6120A or 8-6127 siren. Altronics also chronise switch (S1) on the recei,·
stock two different door strikes - the 8-5385 for wooden board.
door-frames and the 8-5387 for metal frames. The delayed inputs (ie, the enl
delays for lnpun & Input2) are
Above right: door strikes are available from both Jayc when LK3 is in the "-" position. On
again, it's simply a matter of setting
ElECTRIC
STRIKE 2
+114V
Fig.7: here's how to connect the receiver in a typical installation. Note that you can use both NO (normally open) and
NC (normally closed) sensors on the alarm inputs (Inputl & Input2). The battery charger keeps the battery topped up.
voltages at TPl & TP2 and pressing 81 Note that because pressing switch positions for the LK3 option selected
to set the values. 81 programs in the timing adjust before pressing 81.
Finally, when LK3 is out, VRl sets ments, synchronisation will also alter In practice, this just means leav
the alarm period (VR2's setting is the timing. This means that if you syn ing VR1, VR2 and LK3 in their final
ignored). Just set the required voltage chronise a transmitter to the receiver positions after you finish the timing
at TPl and press 81 to program the at a later date, you will have to make adjustments. That way, if you synchro
period in. sure that VRl & VR2 are in the correct nise a transmitter later on, the last set
"I I~ I~
INPUT
the switches on another (non-lacked
out) transmi tter and verifying that th
S1 receiver operates as expected.
NC
~) )~ Undoing lockout
It's easy to get a locked out tram
mittel' to operate the receiver agair
SERIES CONNECllON OF PARALLEL CONNECTION OF (ie, to unlock it). Just synchronise th
NORMAllY CLOSED SWITCHES NORMALLY OPEN SWITCHES transmitter with the receiver and a[
Fig.9: here's how to wire the two different sensor types (NO & NC) to the wil] be back to normal.
alarm inputs on the receiver board.
Installation
The Rolling Code Keyless Entr.
timing values are simply reset to the arm and open on disarm. Conversely, System is suitable for use in home
same values. when LK4 is in the "+" position, the factories and cars. Fig.7 shows how t
Arm output is open on arm and low wire the unit for a typical installatior.
Arm output option on disarm. It all depends on how you Note that IRDI must be shielded fro
Link LK4 sets the arm output option intend to use this output as to which direct sunlight, otherwise the recep
- see Table 4. When LK4 is in the" +" option you choose. tion range will be severely affected.
position, the Arm output is Iowan In some cases, it may be necessar
Receiver lockout to connect the infrared receiver (IRDl
Any transmitter that has been syn via extended leads using twin-cor
Table 4: Arm Output (LK2) chronised can later be locked out from shielded cable (eg. if the receiver i
LK4 + operating the receiver. This is done by mounted on one side of a wall but in
Arm output low on Arm output open on
setting links LKl, LK2, LK3 & LK4 in frared reception is needed on the othe
arm, open on disarm arm, low on disarm the receiver and pressing switch Sl side). Fig.8 shows how this is done.
during power up. The two alarm inputs (Inputl & In
Table 5 shows the link options for put2) can be used in conjunction wi
Table 5: Receiver Lockout Selections each transmitter identity. Note that reed switch magnet assemblies tha
Lockout these link settings correspond exactly change state when a door or windm
Identity LK1
LK2 LK3 LK4
to the links used in the transmitter to is opened or closed. You can use eithe
1 + + + +
set the transmitter identity normally closed (NC) or normally oper
2 + + +
When lockout is performed, the (NO) types.
3 + + + power LED flashes the identity number As shown in Fig.9, NC types ar
4 + + to indicate that the procedure has connected in series, while NO type:
5 + + + been successfully completed. So, for are connected in parallel. However
6 + + example, if you lock-out an identity 3 for best security use only one sensa
+ +
transmitter, the power LED will flash per input.
7
three times at a nominal Is rate before Alternatively, you can use a PIF
8 +
a 4s break until Sl is released. detector or a glass breakage detect
9 + + + When Sl is released, the receiver on one or both of the inputs.
10 + + then operates normally but with the
11 + + selected transmitter now locked out. Errata: the PIC16F828A-20/50 spe .'
.....;;.----
12 + If Sl is held closed, the cycle of fled for ICI in the transmitter parts lioo
13 + + LED flashing continues. At the end of last month should be a PICI6F628A
14 - II - + the third cycle, all identities will be 20/50. Also, ICI on the receiver pa
I.
15
+ locked out and the power LED will stay overlay (Fig.6) should be a PICI6F8
16
lit until Sl is released. This feature is lIP (not PICI8F88-11P).
~-,8,
~ '~~:'I~
I.b lirD~-li
l~ol 'Ii:
~,
o '1)0
e
-I I
e c
Fig.ll: assemble
9-I'IN Sit the SOIC Converter
HEADERS as shown here.
NO~OPPER SIDE COPPER SIDE
by
Robert Scott
have been
I ing Autot
1.61 to desig
boards for my own
tions for a few years
ever since it became a
able at the right price (f
Before that I used Easy
and way in the past I used Bi
Graphics tapes and pads.
That at least got me a PC board artw
Novv the challenge was to convert that
PC board.
I tried using "PressnPeel", a photo-sensitive
which transfers a toner direct to the PC board surface u
a hot iron. This then acts as the resist for etching.
However, despite the glowing reports I've seen on this pro
on the 'net, I found it had its limitations.
First, the blank PC board must be extremely clean for the tone
siliconchip.com.au NOVEMBER 2007
III ,,------QNEUTRA.
240V
l00nF lA FUSE
'--p--o--....o-o ACTIVE
MMCl
.,. .,.
+5V
CON4
6 +5V 14
Q6 Q5
2 veld 8C557 100nF
RA3 8C547 D5
2 l C 250VAC
RA2 MCLR .4 B B lN4004
3 18 RAl X2 TYPE
4 17 RAO C
7 6 ROO IC1 10k 10k
"------_-0 LOAD
8 (FLUORO
7 RBI PIC 16F84-Q.4
TUBE
9 8 RB2 10k
11 CIRCUITS)
10 9 RB3 R85
11 10 RB4
12 16
OSCI
3
RA4 X14MHz
13 RB7 15
OSC2
12 RB6
4.7k
CON3
4
3
2
r 22PF
2200
MINUTES SECONDS
16
7 x470
/ DISPl DISP2 "- / DISP3 OlSP4 "
100nF
15 9
MMCI
14 10
13 7
10 12 6
4511 B 11 4
10 2
9 1
K
CONI .,.
4
3 8C337,8C547,
2 8C557
1 SET START
nMER SElECT
1500 A RUNNING .nME .nMER
53 52 • 51
t, LED4 E
.,.
1 1 1 OUT
1N4004
Fig.l: the light box controller is built on'two PC boards and this circuit diagram is split in two vertically, each part
containing the contents of one of the boards. They are joined by two short cables, one 4-way and one 12-way, which
plug into connectors 1/3 and 2/4 respectively.
BAUAST 1
i i
12WAY 'I
CABI£ I II LOAD
TIMER
CONTROL
§llml§ TIMER
II
!I NEUTRAl
MODULE
MODULE
I
~
II
I ~.§ ACTIVE
AWI'If
CA!lI.E
other starter then opens LneluceclEMF ,'ollage side of the circuil, orrlinar~ Making the chassis
across the inductor again will strike hookup wire or even rainbow cable Aluminium was chosen for
the second tube. can be used here. chassis as it is easy to work with
All this happens rather fast and The timer PC board is screwed to a some UV light will reflect from
both tubes should be glowing within small panel of lmm aluminium with distributing the UV fairly well thro
a second or so. stand-off's. Cutouts and holes are the artwork. The chassis is bent
Sometimes both starters open nearly required in the panel for the stand "U" shape with holes and slots cu
simultaneously and the startup strikes off's, LEDs. 7-segment displays and Eor the various components.
occur together. This type of circuit is pushbutton switches. This panel is The layout is shown in Fig. 7. re
possible with low wattage tubes as then screwed to the left side of the duced a little under half size. Ide
the distance between tube heaters is light box with a cutout to suit. the dJ.assis should be bent to sh
small compared to say, a 36W standard Looking now at Figs. 2 and 3, power with a sheet metal folder but g
lighting fluorescent and the voltage is supplied to the circuit via a 1A fuse, results can be had with 25mm a
drop is small. PC-mounted transformer, (240V to two iron and a sturdy vice.
6V windings, eg, Altronics 7012). Both The aluminium sheet size is 3
The PC boards 6V windings are connected in series, 265mm and the sheet can be 1 to
Two PC boards are used, sharing rectified and filtered, resulting in an mm thick.
functions between them. unregulated DC supply of about 16V
The control/display PC board is or so. Making the Box
connected to the timer board with The unregulated supply is used to Once the chassis is made then
12-vvay and 4-way cables. I used these power the switching relay and also box can be made to fit. I made my
as it was easier to design and make fed to a 5V voltage regulator (REG1, from 17mm plywood. 100mm hig
single-sided PC boards to suit these 7805). This provides the timer with a plywood lid was made to suit from
than it was to make a double-sided 5V regulated supply. same material.
board with a dual-in-line 16-pin plug. Most of the timer operation is car A sheet just over 600 x 470mm
Because these are all on the low ried out by the programmed PIC16F84 allow for saw cuts) will achieve m
aluminium sheet, 155 x 80mm x -1-1.5mm (for front panel) with label
240V to 12V (2x6V) PC board mounting mains transformer (eg, Altronics M-7012A)
12V 8POT PC board-mounting relay with mains-rated contacts (eg, Altronics 8-4170A)
1 1A M205 fuse
2 4-pin plugs
2 12-pin plugs
1 sheet 17mm plywood, -600 x 470mm and 17mm iron-on edge veneer
1 sheet 335 x 245 x 6mm clear glass (no flaws, scratches or tinting)
4 rubber feet
NOVEMBER 2007
si/iconchip.com.au
Fig. 7: here's how
4
to fold and cut the 1
aluminium chassis,
looking from the
underside.
The onlY critical f
positioD's are the .,-
..
1
notches for the
tombstones which PCICWD
must of course line up •
with each other. The
PC board, ballasts a -.
and starter holders
can be placed in
approximately the
positions shown.
:w
IIlJ.t
1
1
a -.
MIIAII'
•
.
1
3 7_
+
m
-*
With the dimensions shown, the closed and press down hard on the Mains wiring may be taken dire
glass plate will be 6mm all round blank PC board to hold it flat against to the block connector on the ti
greater than the box internal, the chas the artwork. PC board, with the switched ac
sis is 225mm wide by 320mm long, connected to the rest of the circ
therefore it follows that the glass plate Assembling the PC boards Use single-core lOA lighting wire
will be 237 x 332mm. Solder the 3 hnks on the display wiring the lighting circuit up. Th
Of course this all depends on your boarcl first, followed by the resistors, not because there are heavy curre
carpentry skills. I used iron-on veneer IC socket, displays, sockets and ca involved, it's for the safety afforde
on the cut edges of plywood and var pacitors. the cable's insulation.
nished the whole assembly with Es The same order applies for the timer/ Connections to the tombstones
tapol. This makes the job attractive as power supply - the lowest profile com achieved by pushing the stripped c
well as functional. Ply was used rather ponents first and highest last. 300mm into the hole provided. The wires
than straight wood as this tends to be lengths of 12-wire cable and 4-wire locked into place by a spring loa
truer so the pieces fit together better. cables using rainbovv cable or single clamp and once they are in it is diffi
The lid is a single piece of plywood, hookup wire lengths has to be made to pull them back out again so try
the same size as the box and again in order to connect the display/control to make mistakes. Make doubly
finished with iron-on veneer. It is at board to the timer board. triply sure, however, that all stra
tached to the box with two medium Do not solder the LEDs into the of the wires have gone into the h
sized hinges. display PC board yet. and none poke out to possibly sh
Inside the lid a piece of 6mm high to the chassis.
density foam plastic, covered with self Putting it all together Make sure you earth the chassis
adhesive felt on one side, was stuck All components can now be fitted the earth wire on the mains 3-c
into place with double sided tape to to the chassis as per Fig.4 and wired cable and plug.
fit into the space between the top of as per wiring schematic Fig.3. Be very The connections to the sta
the box and the glass. careful in wiring the mains-carrying holders are achieved by a clamp
Its size, 320 x 230mm, allows it cable - that is to all the fluorescent tube screw.
to clear the box edges as the lid is holders, starters and ballasts. A rectangular cutout will have t
'"
10
';'
....
'"w '"w
~ ~
Ii)
~
0
N
....I
BAllAST 1
Ii)
~
0
N
....
I
0
©
'UM-SHAPED
0"
ALUMINIUM
CHASSIS
-a::::J-o "
-a::::J-o
..-c::::Il "
..-c::::Il " CABLE
E3l
U
~~ D
/
o 0
~::::::]Q
DC
CON3
000
SET START PRESET
TIME TIMER SELECT
o
made for the control/display board aluminium over the screw heads. one should illuminate, at the sam
on its mounting plate either in the time the relay will energise and th
front of the box or as I have done in Testing. display will begin to count down from
the left side. It's best to test the timer out before 30 seconds to o.
I have specified insulated stand-offs you wire it in on the chassis. Plug the When the timer reaches 0 the rela
to mount the PC boards but metal ones t"vo boards together and wire the main will drop out, the red LED will extin
could be used except for the one on the board temporarily to the timer board. guish and the green one will come bac
mains entry side of the timer/power Do not plug the IC's in both boards as on. Pressing the start button again wi
supply board. yet, that is the 4511 and the 16F84A. bring back the 00:30 readout again.
jyJake sure you have double checked Press the select button and the dis
Display PC board everythjng especially the timer/power play should change to a different tim
The display PC board is mounted supply with its mains wiring. setting. Do this 15 times. There are 1
to a small piece of ~lmm aluminium In the interests of safety, cover the timer settings stored in EEPROM i
with holes drilled for the LEDs and fuse and fuseholder with some insu the programmed 16F84A.
switches along with a cutout for the lation tape while testing. It's the only You can change any or all of thes
display. section of the top of the PC board that's if you so desire by the doing the fo
A piece of 1mm reddish plastic was likely to bite you - but if you contact lowing: select a setting to change b
glued into the cutout as a protective it, it will do just that! pressing the select button until th
screen for the 7-segment displays and Switch on power, measure to see display is reading the setting you wan
seconds LEDs. Use a small quantity of if you have approx +16V and a regu to change.
slow setting epoxy for this. The "Five lated +5V where marked on the power Press the set button. The second
Minute" type sets too quickly and is supply; also that +5V appears on pin will start flashing, incrementing on
not as strong. 16 with respect to pin 8 on the 4511 more every second, when the time i
Drill PC board mounting holes in socket and between pins 14 to 5 on seconds is reading your requiremen
the panel by placing a photocopy of the 16F84A socket. If all is well and press set again. The single minut
the display board overlay on the panel, you have no burning smells switch off digit will start to flash incrementing a
lining up the 7-segment displays in the and remove the mains plug from the before, again when your desired tim
cut out and marking the center of the power socket. Wait a short time for the is reached press set again. The tens o
ho]es to be drilled with a prick punch electrolytic capacitors to discharge and seconds wi1l start to flash incrementin
or scriber. insert the two ICs as the single minute digit did.
I used 2mm mounting screws, nuts Reconnect and switch power back Again, when your requirement
and washers. The stand-offs should be on. You should get a readout of 00:30 reached press set again. The time
8mm to allow the push-button switch on the display board. The relay should will be set in EEPROM to your keyed
es to sit proud of the front panel. not be energized and the green standby in time.
If using 2mm screws you may have to LED should be illuminated. If you do If you make a mistake then you wi
make your own from 2mm brass tubing not have this, switch off and recheck have to go through the entire procedur
available from model aircraft stores. your work. again. Usually you will only need t
The 2mm screws don't stand out on Hopefully all should be well and do this once or twice.
the front panel as much as 3nUll. you can proceed to check the timer If all is well checking the timer the
Countersunk scre,vs could be used operation. Press the start button, the it can be wired into the chassis and th
and the front panel artwork fixed to the green led should go out and the red rest of the wiring completed.
c lEFT
Audio link 5W/2.5k
CHAN
via Cat.5 cable RJ45
This novel adaptor was developed PLUG CAT5 CABLE
in order to transmit a good quality
audio signal, to feed music (includ
ing streaming audio) from a PC to
the family audio system. Since RF
senders can be unreliable over dis RIGHT
tances of tens of metres, Cat.5 cable CHAN
was the obvious choice. HO'wever,
this would normally be done via
commercial baluns, costing around n, T2:JAYCARMM,1900
UNE/SPKR TRANSFORMER
$100 for each end.
The accompanying circuit was transformer secondaries in a Jaycar angles to reduce crosstalk, although
tried using standard line output HB6011 Jiffy box. Each box was this is probably unnecessary.
transformers and was found to fitted with two Jaycar M1900 line Apart from a slight rolloff in lower
work well. Two identical adapters transformers (one for each channel). bass, the quality is good and adding
are required, one for each end of Each box mounts two RCA chassis a small bass boost via the PC's sound
the circuit. A 2-metre Cat.5 lead is line sockets, with a transformer card gives an excellent end result.
cut in half and each resulting lead primary (5W tap) wired to each. The Fred Arden,
was clamped and terminated to the transformers were mounted at right Melbourne, Vic. ($35)
f
....5V
::J IN OUT
3
~. 1470~F
35V
I' GND 'I 1(JO.F
-d. 470~F
16v
10k
1:.J. 4.7~F
()
a
~
I 1 2.2k
I I
MCUl Vdd
11,32
34
7
25V
4 RS
III RB1
c: 35 5 R/W
RB2
VRI 5k 36
6 EN
RBJ
40
14 D7
't' 6.8k
2 ANO
RB7
39 13 D6
LCD n
RB6
38 12 D5
RB5
37 11 D4
VR2 RB4
I
5.6k
10k 03 02 D1 DO
I
470n
470n
I
T
15 RCO
16 RC1
11111
....
... 12V
I 560n 29
ra
BA'ITERY
100.F f
7
I 680n
T
r
17 RC2
18 RC3
IC1
PIC16F877A
RD6
RD7
30
LAMPl
IC2
I 680n
.. T
23
RC4
/52 53
04
IRF540N
CA3140 I 820n 24
RCS 1 1
D~G l.5k
7~ ~ I 7 7
sl'=/
6 I 910n 25
Reo ROO
19
~ T
41".
I 1.1k 26
RCl
5 AN3 14
OSC2
5.6k I 03 Xl
D5IfN7000 4.00MHz
';:H G 1.5k
20
ROI OSC1 13 'D~
122P~
sl'--=-"
1n
V..
12,31
lOW l.5k f22 PF
- (ff~
OV I
-
01 7
IRF540N 2N7000
,~,
7
§ IN
t;J D~"'5
~ GND/' O
~
t\o
a
a
'.J
SC
([r2007 PIC-CONTROLLED SLl BATTERY CAPACITY METER
co
w
BC548,BC558
_-,B
C
t'~w
+ 63V
BOOSTJ
E'--....---.------<O S1a
BRI PULSE 0 I
0.470 .---0 I
5W ...L DC I
7 I
J
/
/
10k
VR1~~YM""""
"
I
10k
1000flF +
1k OUTPUT T
10k
35V TAACKS
0.470
5W "
BOOST '
E
p~j
C
B
Simple model more positive), Q1 is turned on to reliable starting for cheaper locomo
feed positive 100Hz pulses to the th' mOlors.
train controller locomotive motor (track). When the The third position of Sl is re
This simple train controller is wiper is centred, both transistors ferr to as ;'boost" and in th
based on complementary Darling are off, and no voltage is applied to po i ion. each lOOOflF capacito
ton transistors (Q1 & Q3) which the tracks. is e ~ etiv Iy connected across th
are connected as emitter followers. Finally, when VR1's is moved be call elor and emitter of each Da
Both their bases are connected to low the centre point (ie, more nega linE'ton tran istor. Depending on th
the wiper of potentiometer VR1 via tive), Q1 is off and Q3 is turned on sellin u of \If{ 1, the capacitors fee
1.5kQ resistors and a common 470Q to feed negative 100Hz pulses to the mol' 10 Hz pulses to the ~ocomo
resis tor. track, to drive the locomotive mo tive rna r. (Editor's note: we hav
VR1 is connected across a DC sup tor in the reverse direction. Hence, some doubts about the efficacy o
ply rail of about 36V, produced by this circuit requires no reversing this j cutt feature).
bridge rectifier BR1 and the associ switch. Tran i t 1'5 Q2 & Q4, in con
ated 1000flF electrolytic capacitors. When switch Sl is placed in the jUll tion with the 0.47Q resistor
The collectors of Q1 & Q3 are con DC setting, two 1000flF capacitors pro\ ide current limiting for th
nected to the positive and negative are switched into circuit to filter circuit and thus protect again
raw (ie, unfiltered) DC from bridge the previously unfiltered DC. In this short-eireu its across the tracks. A
rectifier BRl. This assumes that condition, smoothed DC is fed to the shm -n. tho current will be limite
switch Sl is in the "pulse" setting. locomotive motor which may result to c houl 2A peak.
In effect, when VR1's wiper is in smoother and quieter operation Both the Darlington transistor
moved beyond the centre point (ie, for "can" motors but may not give as wil I need to be mounted on a finne
heatsink. Note that they must b
isolaed from the heatsink with th
usual mica washers and hardware
With larger heatsinks, the curren
capacity could be doubled byreduc
• Learn about engine management systems ing the emitter resistors to O.22Q.
• Projects to control nitrous, fuel injection and turbo boost Switch S1 is a centre-off toggl
systems and should be rated for the fu
• Switch devices on and off current of the cireui t. It should no
according to signal frequency, temperature & voltage be operated while the circuit
• Build test instruments to check fuel injector duty cycle,
powered up, otherwise substantia
fuel mixtures and brake & temperature currents will flow through it.
Hugh T. Middleton,
Mail order prices: Aust. $A22.50 (incl. GST & P&P); Overseas $A26.00 via airmail. See Lower Hutt, NZ. ($45)
www.slllconchip.com.au for ordering details.
DISABLE
L
51 MID
TRAVEl f10M l
":"
1oo
l'F
GND
1
":'
r
":'
lOOI'F +
OonF
I
.
if pin4 =1then
lowO
let b5 =0
let bB =0
1 CON2
CON 1
,2 P4
Vdd
PO 71 OUTPUT
'-'1
if b5 =0then
servo 0,150
let b5 = 1
PROG
~ ICI
I rOr- 4 P3 PICAXE P2 ~ 2 let bB = 0
-08
end if
22k
VRI
21 2 SER Plf.2--: 50k
~
3 else
IN
v..
readadc 1,bO
10k 10k ~
~ 10k 8 if bO > b6 or bO <b7 or bB = 0then
let w1 =bO ' 100 / 255
3:~ let b4 =b2 + 100
servo 0,b4
78~05.
7
~ GND
let b6 = bO +5
RIC servo ./
exerCIser
. IN
/'
let b7 = bO -5
endif
GND/ OUT let b5 =0
without the need for a radio control and the servo responds in direct endif
transceiver. Instead, it produces the proportion to the deflection of the goto main
required Ims pulses directly using wiper from the centre position.
a PICAXE03M micro. Switch S2 sets the servo to mid The programming software is avail
The circuit is powered from a 6 travel while switch Sl can be used able on line (http://www.rev-ed.co.
15V rail and the PICAXE chip is fed to disable the pulse output. uk/picaxe).
from the 7805 5V regulator. Poten The micro is programmed via the Robert Budniak,
tiometer VRl sets the pulse width resistor network connected to pin 2. Ryde, NSW. ($40)
Animation
for mobiles
This is not about mobile phones
but those visual distractions which
hang from the ceiling waiting for
a breeze to set them spinning.
Breezes are seldom experienced in
most rooms so mobiles are usually
immobile; ie, static. This simple
device adds a motor to provide a
little animation.
Instead of hanging the mobile
directly from the ceiling, a small
motor is inserted between the sus
pension hook and the Nylon line for Dl: lN4148 D2: lN4004
the mobile. The motor is given a 10 ===A~--
millisecond burst of power every 40 A K
is attached via a wire hanger and power bursts to the motor. Bardon, Qld. ($40)
407M
470k
lOOk
a2~'
BC559
c
IN PUT .~c 03 OUTPU
B ..... BC550B 470n
] = 100"F ~E 04 05 100"F :~ : : 220nF
470k BC549B BC549B
B!7C C~B VR1
I ~E E
CI 500k
,
5.6M 5.6M
:
( DOl ( ~03 I
:= 1nF
K K 330n 270k
0
l"F:=
( D02 ( 04 1nF::
470k
K K
.~C
.~ MJE2955
Dl-04: lN4148
=~""'=l 1- ---
B_
BC549,BC550, BC559
B A K
C
Discrete component plifier. The voltage setting provided provided by diodes Dl & D2.
by VRI is compared to the reference The actual current limit w
low dropout regulator voltage provided by signal diodes D3 depend on the current gain (h FE )
This low dropout regulator uses & D4. These are biased at low current transistor Q1. Q4 & Q5 need to b
discrete parts and was designed for by a 100kQ resistor. matched pair (equal current gai
use with microcontrollers which, Transistor Q4 controls Q2 "vhich and should be in thermal conta
when in the low power sleep mode, in turn, controls Q3 and hence the with each other.
only need very low current from the base current to the series pass tran The input voltage would norma
battery. sistor Ql. Q3 also provides current not exceed 12V and Ql will requ
Ql is the series pass transistor and limiting, by comparing the voltage a heatsink.
it is controlled by transistors Q4 & developed across its 330Q emitter Philip Foote,
Q5 which function as the error am- resistor with the reference voltage Dianella, WA. ($45)
I'.
~----------~~--------~------~-~-----------------
e•••rl II I
As you can see, we pay good
money for each of the "Circuit
Notebook" items published in
SILICON CHIP. But now there
are four more reasons to
send in your circuit idea. Each
month, the best contribu
tion published will entitle
the author to choose the
prize: an LCR40 LCR to send that brilliant circuit in. Send
meter, a DCA55 Semicon to SILICON CHIP and you could be
ductor Component Analyser, an winner.
ESR60 Equivalent Series Resistance of Peak Electronic Design Ltd www. You can either email your idea t
Analyser or an SCR 100 Thyristor & peakelec.co.uk silicon @siliconchip.com.au or post it t
Triac Analyser, with the compliments So now you have even more reasons PO Box 139, Collaroy, NSW 2097.
repetitive inspections of critical assets. Website: www.emona.com.au Ph (02) 9476-5854 Fax (02) 9476-3231
Getting smaller
1fT IT4 -1FT JS5 IRo 3 S 4 The demand for even smaller set:;
.TUBES ARE UNDER LICENSE Of RADIO CORPORATlO~ OF AMERICA
during this period forced a few com
promises. The antenna loop was mad~
smaller by necessity, the sets generall)
had no Rf stage and they used quit~
small batteries. In fact, the batterie~
only lasted 30-40 hours before needinl!
This is the view inside the Global miniature portable. The components are replacement.
tightly packed together.
A typical "miniature" receiver 0
Japanese miniatures
In the years preceding the introduc
tion of transistor receivers, Japanese
manufacturers revisited the idea of
producing miniature valve sets. As a
result, they produced sets that were
roughly the same size as the pocket
transistor receivers we marvelled at Inside the Olympic #450 4-valve miniature receiver. The ferrite rod
in the late 1950s and early 60s. antenna is similar to that used later in transistor radios.
These miniature valve sets had four
valves in a conventional superhetero
dyne circuit. This consisted of a lR5
converter stage. a 1T4 intermediate
frequency (IF) amplifier, a IS5 as a
combined detector, AGe diode and
pentode audio amplifier, and a 3S4
audio output stage which fed a speaker
or headphones/earpiece.
So how well did these little receiv
ers perform? The critical component
that affects performance in such small
sets is the antenna. In these radios, the
ferrite rod antenna varied from quite
small to some that ran nearly the length
ofthe case and were from 6-9mm in di
ameter. Those sets with the larger rod
antennas were likely have been better
performers - certainly better than the Removing the HT battery gives good access to the under-chassis parts in
older Australian-manufactured mini the Olympic #450. There's some chassis corrosion but the set is otherwise
in good condition.
ature portables of the late 1940s and
early 1950s.
Personally, I can not remember see
ing any of these miniature Japanese is 145mm wide x 50mm deep x 95mm worry about that and the Japanes
sets on the Australian market. In fact, high. This means that the AWA set is liked gimmicky sets, so the battery cos
I had seen only one of these really 4.6 times the size of the Global, while was not a major concern there either
tiny sets before until the HRSA 25th the standard portable is nearly 19 At the time, we weTe impressed a
anniversary celebrations, where I saw times the size of the tiny Global. the way AWA, Astor and Breville man
several in Laurie Harris's display. Ap Australian manufacturers such as aged to pack the necessary parts int
parently, they were used only in Japan Astor, AWA and Breville built these the space available for their portabl
(where they were manufactured) and smaU sets for just a few years. They sets. This initially makes you wonde
in the USA. The 10 sets in Laurie's probably stopped making them be how the Japanese got all the parts an
collection came from the estate of cause the batteries were relatively valves in the cabinet, along with
another collector. expensive and didn't ~ast all that long, reasonable loop antenna and a set o
plus the performance of these radios batteries.
Small is beautiful left quite a bit to be desired. In fact, the Global is only marginall
So just how small were the Japanese By contrast, the performance limita larger than the ubiquitous No.482, 45V
miniature sets? \Veil. let's compare the tions were not such a problem over battery of the 1950s and 1960s!
size of the smallest set - the Global seas, as AM broadcasting stations were The answer is that most of the part
with an A\VA 450P miniature portable. much closer together than in Australia. have been miniaturised to some extent
TheAWA set is 115mm \\idex 115mm The battery life would still have been a However, instead of using hearing-ai
deep x 240mffi w2.h. while the Global problem bu t affluent Americans didn't style valves as you might expect, th
Miniature receivers
The 10 miniature portables owned
by Laurie Harris are all shown in an
accompanying photograph. The top
row, starting at the left, shows the
Fleetwood case, then the Fleetwood
(one of the larger units] and the Global
(the smallest).
In the second row (left to right)
are the Olympic #450, the Standard
"Muse" SR220E and the Crown PRS30.
Fig.l: this is the circuit for the Harpers Model GK-SOl. It is a full superhet Below these are a Zephyr RN7, a selec
circuit with four valves: a IRS converter stage, a 1T4 IF amplifier, a ISS tion of miniature batteries as used in
detector/AGe diode/audio amplifier and a 3S4 audio output stage. these sets and a Hilton 3672.
The bottom row houses a Continen
Japanese manufacturers chose to use transistor receivers, while the loud tal, a Harpers K501 and a Harpers
the normal miniature series valves, as speakers used were normal SO-7Smm GK301 which has the same chassis as
mentioned earlier; ie, IRS converter, round units. the Crown PRS30.
1T4 intermediate frequency (IF) am These sels all appear to have been
plifier, ISS detector and first audio Battery life predominantly for the American
stage, and 3S4 audio output stage. In Although parts miniaturisation was market. How many other makes anrl
addition, the fenite rod loop anten well done, shrinking the battery sizes models appeared on the market is
nas used in the "larger" miniature meant that the battery life was severe~y unknown. It is rather surprising that
receivers were oli quite reasonable reduced. In the Australian miniature none (or very few] appear to have been
dimensions. portables, the l.SV filament "A" bat imported into Australia.
By contrast, the tuning gangs are tery was usually two D ce]ls (9S0) in
miniature air-spaced types rather parallel. By contrast, the Japanese The view inside
than the plastic film types used later miniature sets use either a single Several other photographs clearly
in transistor receivers. The coils and l.SV "D" cell or, in the smallest sets, show what these little receivers were
transformers, although miniature, are a "c" cell. like inside. The small Global would
not as small as those used later in In practice, a single "D" cell would probably have been the worst per
Inside the Harper., GK501 miniature valve portable. The layout is similar Subscribers also get further discounts on
to the other sets. \\ ith the parIs all packed tightly together. books, and other products we sell.
Conventional circuits
Some of the receivers have their
circuits and other general informa
tion pasted inside the back cover.
The circuits of all these sets are quite
conventional. The only variation is
the power consumption savings with
the Global when it is used with an
earpiece.
The Global receiver was of particu
lar interest to me because of the extent
of its miniaturisation and the use of
only 45V for the HT. Its audio output
would probably be somewhere around
lOOmW with a new battery.
The component count is also quite
low, the set using just seven fixed resis
tors and eight fixed capacitors. All of
the sets appear to have used padderless
tuning capacitors.
Summary
These miniature 4-valve portables
really are fascinating little receivers.
The manufacturers did an excellent
job in getting the best out of them,
although they would have been me
diocre performers in the Australian
environment. However, in their in
tended market - ie, the USA - their
performance would have been quite
satisfactory.
These little sets really show how
far the Japanese manufacturers were AMPS (AUSTRALIA) LTD IN 1931, the model 1203
prepared to go to miniaturise their had a selling price of 24 pounds and 10 shillings which was many weeks
sets in the era before transistors took wages at that time. Thei.dverts described the piano-finished cabinet as
over. They would be a worthwhile ad representing the ultima in consoles "at home in any home"
dition to a vintage radio enthusiast's The set was a 3-valve T and the valve line-up was as follows: E442S de
collection but being so rare, not many tector, C443 audio output and 506 rectifier. Photo: Historical Radio Society
collectors will have the opportunity of Australia, Inc.
to own them. SC
I. ~
0"
.. _
ASKSILIC:ONCHIp:
~. - .... ~ - . ' 2
Got a technical problem? Can't understand a piece of jargon or some technical principle? Drop us a line
and we'll answer your question. Write to: Ask Silicon Chip, PO Box 139, Collaroy Beach, NSW 2097 or
send an email tosilchi@siliconchi.com.au
Headlight reminder the lamps where they are powered by capacitor to 2.2!J..F or 4. 7!J.F. Similarly
12V. The cathodes connect together increase the 47!J..F BP feedback capaci
for cars and form the connection for the door tor to 100).1F or 220).1f.
I have just had an embarrassing switch input on the Headlight Re
situation in that the internal lights minder. In this case LK3 is out, LK4 Using the Guitar
on my car were left on for three days, is in and LKs is out.
flattening the battery. This has cost me Conversely, if one side of the lamps Jammer with a PC
a new battery, a lot of lost time, plus is directly connected to 12V, the diodes I purchased and built your Guita
the wrath of the other family member. are connected with their cathodes to Jammer kit from the October 2000 is
So after a cursory examination of the the negative side of the lamps. The sue and have used it with great success
"Headlight Reminder For Cars" kit anodes form the connection to the over the years.
(SILICON CHIP, August 2001) at my local Headlight Reminder and LK3 is in. I was wondering if it was possible
Jaycar store, I purchased one. LK4 is out and LKs is out. to use the audio output from my PC's
However, I now believe it will not sound card instead of a CD playe
do what is required of it. I have three Extending the SC480's to mix with my guitar? I have a PC
separate circuits in the car which program called "Guitar Pro" and
need monitoring: headlights, parking low-frequency response would like to jam to that. Would the
lights and interior lights, as these are I am using a pair of SC480 amplifier CD input resistor values need to be
on separate s",,,itches, as well as the modules from the January & February changed? Would it still work OK using
door switches. 2003 issues of SILICON CHIP. I know a regulated 9V plugpack? (J. R, Dee
The first two I can monitor by taking that the SC480 module has excelient Park, Vic).
a feed off the instrument lights. I do low-frequency response but I am hop • No changes are necessary to you
not know about the third circuit but ing to improve the response at near DC Guitar Jammer. Any high level or line
I wondered what would happen if I to facilitate another mode of testing. level signal can be used.
put a diode between the door switch I've built a vibration-testing platform
circuit and the light circuit. Please and I am using the SC480s to drive
advise (P. D., via email). the actuators.
Multimedia amplifier
• A diode from the door switch and Studying the circuit diagram, I can't and speakers
another from the interior light switch find the components that are limiting Some time ago, SILICON CHIP did a
could be used to detect when any light the low frequency gain. Any help on Multimedia Amplifier that fitted in
is on. The direction (polarity) of the this matter would be very much ap side a computer. Would it be possible
diodes depends on the car wiring. preciated. (J. M., via email). to use this externally, ie, not powered
If one side of the lamps is directly • Improving the bass response below from the computer? My idea is to use
connected to the chassis, then the the existing -ldB point at 14Hz is the amplifier and two speakers, with
diodes connect with their anodes to simple. Just increase the input l!J.F BP the line inputs of the amplifier fed from
When I connect a 6V battery and ventional charger on a battery for ICS, or the 1ill resistor in series
use the Battery Condition option on without the conventional charger with D12 is abnormally high in value
the Deluxe Lead-Acid Battery Zap going through the Battery Zapper? - just enough to cause trouble when
per (SILICON CHIP, May 2006), all the In other words, can I have the leads testing 6V batteries.
LEDs light up and stay on. The unit of the Zapper connected at the It's not a good idea to connect a
works fine on 12V and 24V batter same time I have the leads from a charger directly to a battery when the
ies though. conventional charger connected at zap per is connected to it and operat
I use deep-cycle 6V batteries (two the same time? ing, because the charger can shunt
in series for 12V), so the unit works • \Ne are not sure why your De the zapping pulses and prevent them
fine on them (all LEDs light, then luxe Battery Zapper isn't working "doing their work". That's why we
slowly go off when I press the but properly with single 6V batteries. incorporated inductor L3 into the
ton). However, a single 6V battery Perhaps the 470).1F 2SV electro be zapper - to increase the effective AC
will keep all the LEDs lit. tween pins 6 & 8 of ICs is leaky and impedance of the charger and pre
Secondly, is it OK to use a con- is pulling down the reference voltage vent it from shunting the pulses.
~~
Working with BA.'iIC Stamps? Pies? Atmels? Even
COMPLETE
-~blveOD DU
pes? Or virtually anything else? 4D Svstems alreadv have, • Every issue individually archived, by month and year
in stock, a gnlphicsilO module to interface your digital • complete With Index for each year
electronics design V\~th the real world! • Amust·have for everyone interested in electronics
\\1w re-invent wheels when 40 Systems have the intelligent.
cost-effective module you need for any embedded microproces This remarkable collection of PDFs covers every
sor-based system. H)f example, the 40 Svstems all-in-onc Smart issue of R & H, as it was known !rom the
Display Modules offer a simple two-wire interface to any host beginning (April 1939 - price sixpence!)
processor and the command set is easv-to-llse and understand! right through to the final edition of R, TV
Here are Just afew of the 4D Systems modules - you'll & H in March 1965, before it disappeared
find many more when you visit tt1e 4D SYStems website... forever wit'h the change of name to
pOLED·96·G1 0,96' Stamp sized Intelligent QLED module Electronics Australia.
pOLEo·96·PROP 0.96' Propeller Powered OLED module For the first time ever, complete and in one
pOLEO·128·GMDl 1.5' Next gen smart OLED display handy DVD, every article and every issue is covered,
1l0lfD·160·GMDl 1.7" Next gen smart OLED display If you're an old tilmer (or even young timer l ) into vintage radio, it
II LCo·320·PMD2 2.2' QVGA Smart LCD module
pLCD·128·GMD1 1.5' Original Intelligent LCD
doesn't get much more vintage than this. If you're a student of
IIVGA·PICASO·M01 Tiny VGA Graphics Controller for QVGA, VGA, SVGA history, this archive gives an extraordinary insight into the amazing
IlVGA·PICASOMD1-UB PICASO IlVGA Base Board breakthroughs made in radio and electronics technology following
GOlOElOX·MDl Tiny OLEO-LCD Graphics Controller with micro-SO the war years. And speaking of the war years, R & H had some of t'he
OLEO 128 (Disp. only) 128 x 128 262K true 10 life colours display best propaganda imaginable!
OUO 160 (Disp only) 160 x 128 262K true to life colours display
LCD 128 (Disp. only) LCD Display
Even if you're just an electronics dabbler, there's something here to
interest you,
I
into and then be suspended vertically
Regarding the Nixie Clock (SILI '-\'here the two digits coincide. into the water? 0. F., via email).
CON CHIP, July & August 2007), I Where the required tube digits are • This is not something we have
notice there is no provision for being lit in cycles, even occasion tested but it should be good for at least
preventing poisoning ofthe unused ally, the problem is minimal. 20 metres of cable. Just use general
cathodes. Initially, I did not see this Frequently used digits, especially purpose figure-8 mains cable.
as a problem as I thought it would be cycled digits, are not affected and
a simple matter to rotate the tubes the problem can only be seen on the Battery checker for
occasionally but now I see that they usually unlit digit as faded areas
are soldered in. and only when it is finally lit. motor bike
Most Nixie clock designs these In the NX14 Nixie Clock, the I have a 1985 Yamaha motorcycle. It
days provide for cycling of the "un digits which will never be used are has a battery level sensor which plugs
used" cathodes. The main reason digits 6-9 in the tens of minutes and into the third battery cap, which in
for this, as I see it, is that if at some tens of seconds tubes and all digits essence, is 6V DC.
stage in the future, the seconds units except 1 in the tens of hours tube. My problem is that the new sealed
digit was to fail (for example), it Since these digits are never lit, the batteries don't have caps. IfI use a zen
would allow one of the hour tubes effect will never be seen, so why er diode circuit to fool the input with
to be swapped into that position. worry? 6VDC, how exactly do it? It most likely
Of course this assumes all digits of Some Nixie clock designs now only needs a couple of milliamps. Any
the replacement are available and purport to have circuits to minimise help will be greatly appreciated. (B. S.,
haven't been "poisoned". (L. W., cathode poisoning by occasional Hatfield, Pa, USA).
via email). fast cycling through the digits (we • A zener diode won't do the job.
• We put your question to the de only need to cycle through the You need a voltage divider across the
signer of the project, David Whitby, used clock digits, not the unused battery (such as two 1kQ resistors in
and this is his answer. ones which are never seen). This series) and then feed the battery sensor
Cathode poisoning only occurs is simple to do on the NX14 Nixie circuit from the midpoint of the two
when minute amounts of material Clock - just cycle it through all the resistor. The voltage divider should
from a lit digit strike an adjacent un clock digits by holding in the fast only be witched across the battery
used (or hardly ever used) digit and time-set button for a few minutes when the ignition is turned on, to
build up on that unused digit over every now and then. But really, it avoid unnecessary current drain.
a long period of time, in the places is not a problem.
24V variant of
Voltage Switch
or wired device which will allow a is a module for the power amp only Can you lea e advise the com
discrete CD player to be connected to and that details will be published at ponent changes required to enable
the existing system. a later date? I have a very good valve your 12V Voltage Switch to operate
Presumably if a Bluetooth receiver preamp, so I would only be requiring at 24 V. It was featured in your book,
could be connected in-line somewhere, the kit as purely a power amplifier. (K. "Performance Electronics For Cars".
at least to the speakers (perhaps with P., via emaill. (N. S., Kaitaia, Z).
a separate amplifier?), an iPod and aU • We had to discard the original • There are a number of changes
the other gizmos would work with it as preamplifier shown in the June 2007 required:
well. 0. M., Khancoban, NSW). issue - it just did nqt perform well (1) Change the relay to a 24V DPDT
• Provided your car radio has an enough. However, you can build the type (eg, Jaycar SY-4053).
FM stereo tuner, the easiest way is to amplifier without a preamplifier, as (2) Change both ZD1 and ZD2 to 33V
connect the audio signals from a CD was noted in the final article in the 1W (lN4752).
player to an FM stereo transmitter. September 2007 issue. (3) Change the two 100flF 16V and
Have a look at our "FM Minimitter" By the way, using a valve pream the 10flF 16V electrolytic capacitors
described in the April 2001 issue. plifier will significantly degrade the to 100flF 35V and 10flF 35V (the 10J..lF
sound quality of the amplifier. capacitor at REG1 's output can remain
Query on a 16V type).
Water level (4) Change the 1MQ input resistor to
preamplifier board 2.2MQ (0.25W).
I am interested in building the 20W indicator query (5) Change the 1.8kQ resistor for LED1
Class-A Stereo Amplifier recently de Regarding the Tank Water Level to 3.9kQ (0.5W).
scribed in SILICON CHIP. On page 20 Indicator in SILICON CHIP, July 2007),
of the June edition, the photo shows I was wondering how far the water How to eliminate
a preamp board at the front which is tank can be from the electronic unit.
quite different to that shown on page If the figure-8 wire has to be extended DC plugpacks
24 of the August issue. Do I presume to reach from the tank to a room in a I've noticed that many people have
that the component shown in June house, what type of wire can I use? I multiple 240VAC plugpacks in the
~[r_; ~ 'F=J
just one unit that could power all hCllaforlielng
g 0"reedcahlaswitcl1to
this equipment. It might even save in
standby power costs.
Of course, each output wouM have
"' ~.
-----i.i
I 4L-.J.
i"oulsida width of bucket +4mm
to be voltage and polarity switchable
but I figure that wouldn't be too hard I Is:r~el I
TIPPING BUCKET BRACKET TEMPLATE
to manage. (T. S., Devonport, Tas). TIPPING BUCKET TEMPLATE
~-r-t- ~''''
~ plan elevation
Query on the SMS inside widtil of
tipping bucket
end Qpen
Controller TIPPING BUCKET DIVIDER TEMPLATE TIPPING BUCKET ASSEMBLED
I have assembled the SMS Controller Fig.I: follow this diagram to make the tipping bucket assembly for the
kit (SILICON CHIP, October & November Simple Data Logging Weather Station.
2004) but I find that the commands
to switch the eight outputs are not Simple Data Logging Weather Sta with boards etched from the original
working. I get a positive signal on the tion, September & October 2007: the pattern by removing the contact
selected input pins ofIC4 (ULN2803) diagram giving details of the tipping clips from CONI-CON4 and fitting
but no signal on the corresponding bucket assembly vvas omitted from them on the opposite sides of the
output pins. the second article. Fig.l (above) connectors.
I suspect that pin 10 "COM" should shows the missing diagram.
be connected via the zener diode 36V Programmable Ignition for Cars,
ZD7 to + 12V DC, not Ov. Can you com Versatile 4-Input Mixer, June 2007: March, April & May 2007: the
ment please? (F. J., via email). the PC board pattern as published link http://www.pgmfi.org/twiki/
• Both the circuit and the wiring (01106071.PCB) has the connec bin/view/LibrarylMapSensor gi Y
diagram of this project are correct, tions reversed for input connectors ing pinout information on the
as published. Note that if you have CONI-CON4 and the reversed con MAP sensors is now unavail
nothing connected to the output pins, nections were also present in the able. The information can now
there will be no voltage there. Each board overlay diagram on page 66. be found at: http://web.archive.
output is the collector of a transistor A corrected version of the board org/web/2 00 5090 6201309/www.
and if it is not connected to anything, pattern has been sent to manufac pgmfi.org/twikiJbin/viewlLibrary/
it does nothing. For suggested output turers. Operation can be achieved MapSensor
configurations, see Fig.6. SC
W~
SILICON CHIP magazine regularly describes projects which employ a mains power supply or produce high voltage.
All such projects should be considered dangerous or even lethal if not used safely.
Readers are warned that high voltage wiring should be carried out according to the instructions in the articles.
When working on these projects use extreme care to ensure that you do not accidentally come into contact with
mains AC voltages or high voltage DC.lf you are not confident about working with projects employing mains voltages
or other high voltages, you are advised not to attempt work on them. Silicon Chip Publications Pty Ltd disclaims
any liability for damages should anyone be killed or injured while working on a project or circuit described in any
issue of SILICON CHIP magazine. Devices or circuits described in SILICON CHIP may be covered by patents. SILICON
CHIP disclaims any liability for the infringement of such patents by the manufacturing or selling of any such equip
ment. SILICON CHIP also disclaims any liability for projects which are used in such a way as to infringe relevant
government regulations and by-laws.
Advertisers are warned that they are responsible for the content of all advertisements and that they must con
form to the Trade Practices Act 1974 or as SUbsequently amended and to any governmental regUlations which are
applicable.