This is only a preview of the May 2019 issue of Silicon Chip. You can view 46 of the 112 pages in the full issue, including the advertisments. For full access, purchase the issue for $10.00 or subscribe for access to the latest issues. Articles in this series:
Items relevant to "DSP Active Crossover and 8-channel Parametric Equaliser":
Articles in this series:
Items relevant to "Solar-powered data repeater for 433MHz remotes":
Items relevant to "Bridge adaptor gives four times your amplifier power!":
Items relevant to "Low-cost 3.5-inch LCDs for Arduino or Micromite":
Purchase a printed copy of this issue for $10.00. |
433MHz Wireless Data
Range Extender
by John Clarke
There are many “remote control” devices
which rely on a 433MHz data link. You may
have one and not even realise it – an alarm
remote, a garage door/gate controller or even
an outdoor weather station are just some examples.
But is yours 100% reliable? Is the range a bit less
than you’d like? Perhaps the remote unit is
too far away from the receiver – or are there hills,
trees or other obstacles in the way?
Here’s the answer: a small, solar-powered repeater
that you place between the transmitter and receiver
with clear line-of-sight to both. You’ll end up with
the reliability – and the extra range – you need.
T
unlicensed devices operating in this signal anyway, it could be enough to
here are quite a
band (many 433MHz transmitters are stop data getting through.
few devices which
far weaker than this).
This repeater can be placed in a lotransmit periodic
Even the weather can have an im- cation where it can clearly and reliably
bursts of data on the 433MHz UHF
pact: a shrub or tree that has little to no receive signals from the transmitter,
“LIPD” band, including a number of
effect in dry weather can play havoc and which is also a better location for
our designs, such our Driveway Moniwith UHF signals in the wet.
reception by the receiving unit (ie, it
tor (July & August 2015; siliconchip.
While 433MHz signals aren’t atten- can be placed somewhere in between
com.au/Series/288).
uated as much as higher frequencies the two devices).
This includes some commercial
(eg, 2.4GHz, which is also used for
It stores the received data and then,
devices too, such as remote weather
data), if you’re suffering from marginal after a short delay, re-transmits the
stations. Unfortunately, it isn’t always
same signal in the same
possible to get reliFeatures
frequency band.
able reception.
So this design is suitSometimes this
* Extends the range of 433MHz transmitters
able for extending the
is because there are
* Overcomes ‘line-of-sight’ limitations caused by trees, obstacles etc
wireless range by up to
hills, trees, build* Receives 433MHz signal and re-transmits at 433MHz after a short delay
two times, where lineings etc between
* Suitable for use with projects that transmit intermittent signal bursts
of-sight transmission is
the transmitter and
* Discrimination of genuine signal from noise
possible.
receiver locations.
* Repeater chaining possible
But it’s also extremely
Other times, it’s
* Adjustable delay period
effective at improving the
because of limit* Adjustable maximum data rate detection
signal integrity where the
ed antenna sizes
* Solar power with LiFePO4 cell storage
two units have obstrucor the 25mW le* Up to 200m open-space range with optimised antenna
tions between them, ingal limit placed on
44
Silicon Chip
Australia’s electronics magazine
siliconchip.com.au
Is this repeater legal to
use without a license?
In a word, yes.
You can view the “LIPD” class license for the 433MHz “ISM” band,
which applies to everyone in Australia, at: www.acma.gov.au/Industry/
Spectrum/Radiocomms-licensing/Class-licences/lipd-class-licence-spectrum-acma
The equivalent document for New
Zealand is available at: https://
gazette.govt.nz/notice/id/2017go4089
Note that the New Zealand EIRP
limit of -16dBm is the same as the
Australian limit of 25mW. It is simply
specified in different units.
Neither of these documents place
any restrictions on the use of the
433/434MHz LIPD band other than
the maximum effective radiated
power. There is nothing to limit how
frequently you may transmit in that
band, or how long the bursts can be.
And there is no mention of repeaters
whatsoever.
With a solar panel to keep the internal battery charged, you’ll never have to
touch it once completed. Get up to double the range you had originally!
cluding buildings, trees and terrain.
Other things to try first
Before building a repeater, there are
some simple ways to improve range
that may give you the range you need.
The first step is to try a better antenna.
Typically, our projects use a short
length of wire as the antenna, sized
to be one-quarter of the wavelength.
This is around 170mm for a 433MHz
transmitter or receiver.
Using a commercially-made whip
antenna for the transmitter and/or
receiver can improve the range compared to the simple wire antenna, as
can a longer ½-wave antenna (340mm
for 433MHz).
But we must caution you that if your
transmitter is close to the 25mW legal limit, using a better antenna (with
higher gain) may be illegal. That’s because 25mW is the effective radiated
power limit, so it takes into account
siliconchip.com.au
antenna gain. Each increase in antenna
gain of 3dB is equivalent to doubling
the output power.
So you cannot legally use a +3dBi
antenna with devices that exceed
12.5mW transmit power.
Antenna orientation is important
too. Having the transmitter and receiver antenna both with the same
orientation, eg, both orientated vertically or both horizontally may improve range.
If these changes prove to be impractical or not effective enough, then it
would make sense for you to build
this repeater.
A repeater is placed in the signal
path between the transmitter and receiver.
In this case, the repeater comprises
a UHF receiver and UHF transmitter,
plus a microcontroller, some memory
and a power supply. Once the repeater
receives a valid signal, it is stored and
Australia’s electronics magazine
Since our repeater uses commercially available 433MHz transmitters,
which comply with the power limit,
and since it only transmits after the
original transmission has ceased, it
is entirely legal to operate in Australia
and New Zealand.
However, we do not recommend
that you use this repeater with any
signals which transmit frequently.
Typically, you would use it in conjunction with a device that sends a
short burst (well under one second)
no more frequently than, say, once
every 30 seconds. If you used it with
a device transmitting rapidly, you
could blanket the 433MHz band with
transmissions in a 100-200m radius.
The Class License states that: “If
interference occurs, the onus is on
the user of a LIPD to take measures
to resolve that interference, for example by retuning or ceasing to operate
the device.” (Retuning these devices
would be difficult, if not impossible,
without specialised equipment).
So keep that in mind, and use
common sense when setting up your
transmitting device and repeater(s).
May 2019 45
The 433MHz Data Repeater is based on commercial transmitter and receiver modules, as shown here. The Jaycar
ZW3100 transmitter and ZW3102 receiver are shown on the left with the Altronics Z6900 transmitter and Z6905 receiver
at right. They are for all intents and purposes identical; either will fit directly into our PCB.
then after a delay, retransmitted, to be
received by the receiver.
This effectively increases the range
for the transmission as it can be placed
closer to both the transmitter and receiver than they are to each other, and
possibly in a more advantageous location (eg, higher up) where there will
be fewer obstacles in the way of both
signal paths.
Other types of repeaters exist, which
operate slightly differently to this one.
For example, many repeaters retransmit the received signal on a different
frequency.
That prevents conflicts between the
transmitter and receiver and allows the
repeater to operate with effectively no
delay. But the final receiver must be
able to receive on the new frequency,
so that type of repeater is not ‘transparent’.
This repeater retransmits in the same
frequency band as the received signal.
That means that the final receiver does
not need to be modified in any way.
But the repeater has to wait for the
end of the transmission before resending. Otherwise, the received and trans-
mitted signals will interfere, and the
receiver could even go into a loop, continually retransmitting the same data.
Compatible projects
Some of the projects we have previously published that can benefit from
using this repeater:
• the UHF Remote Switch (January
2009; siliconchip.com.au/Article/
1284),
• the Versatile 10-Channel Remote Control Receiver (June 2013;
siliconchip.com.au/Article/3811),
• the aforementioned Driveway Monitor and Infrared to 433MHz UHF
Transceiver (June 2013; siliconchip.
com.au/Article/3812).
All the projects mentioned above
used the standard 433MHz UHF transmitters and receivers sold by Jaycar and
Altronics (as shown above).
The Jaycar catalog codes are ZW3100
for the transmitter and ZW3102 for the
receiver, while the Altronics catalog
codes are Z6900 for the transmitter
and Z6905 for the receiver.
This repeater may be able to be used
with some other commercial devic-
Screen1: the yellow trace at the top is the output from the
UHF receiver, RX1. You can see the high-frequency noise
before valid data is received. When there is a received
signal, the random signal ceases and the transmitted code
is produced instead. IC1 rejects the noise and only accepts
the valid code, as shown in the cyan trace below.
46
Silicon Chip
es transmitting data in the 433MHz
band, however, whether it will work
depends on the details of those transmissions, so it’s hard to say that a particular device will or will not work
until you try it.
Keep in mind that you need to use
the repeater in situations where it
doesn’t matter if the receiver could receive two identical packets in a short
period.
That’s because it may pick up both
the direct transmission and the repeated transmission in some cases.
In all the projects mentioned above,
this should not matter, as the receivers
are effectively ‘stateless’.
That should be true of many other
devices such as weather stations. But
again, you will need to try it out to
confirm that the receiver’s operation
is not adversely affected by receiving
multiple identical packets.
Presentation
Our repeater is housed in an IP65
sealed box and that means it is suitable for use outdoors, in areas where it
could be exposed to the weather.
Screen2: the yellow trace at the top shows the original signal
being received from the source, while the cyan trace at the
bottom shows the signal being transmitted by the repeater.
You can see how it does not start transmission until it has
finished receiving an entire packet, and there is a short
delay before retransmission, around 60ms in this case.
Australia’s electronics magazine
siliconchip.com.au
Fig.1: the repeater circuit. Data transmissions are picked up by UHF receiver RX1 and fed to microcontroller IC1’s
RB0 input. They are then stored in SRAM IC2, and once the transmission is complete, read back out of the SRAM and
sent on to UHF transmitter TX1. IC1 then waits for a programmable delay before listening for another transmission.
Power from the rechargeable LiFEPO4 cell is stepped up to 5V by REG2, and that cell is charged from a solar panel
using charge management chip IC3.
It is designed to be powered from
a solar panel and uses a single-cell
LiFePO4 rechargeable cell for power
storage, so it can be used where there
is no mains power available.
This is ideal as you can, for example, mount it up on a pole, where it
will have a good ‘view’ of both the
transmitting and receiving units, and
siliconchip.com.au
it should also get plenty of sunlight to
keep the battery charged.
Circuit details
The circuit diagram of the repeater is
shown in Fig.1. It’s based around microcontroller IC1, the previously mentioned 433MHz transmitter (TX1) and
receiver (RX1), a 1024kbit/128kbyte
Australia’s electronics magazine
static RAM (IC2), plus power supply
parts such as the LiFePO4 charger (IC3)
and 5V step-up regulator (REG2).
Microcontroller IC1 monitors the
signal from the UHF receiver (RX1),
stores the received data in the SRAM
(IC2) and then powers up the UHF
transmitter (TX1) to send out the stored
code that was previously received. IC1
May 2019 47
Fig.2: this shows how the boost converter generates 5V to run the micro and
UHF transmitter and receiver from the 3.2-4.2V cell. The control circuit
pulses the base of internal transistor Q1 which pulls current from the cell
through inductor L1, charging up its magnetic field. When Q1 switches off,
that magnetic field collapses, D1 is forward-biased and CL charges up to 5V.
This is regulated by feedback to the control circuit via the voltage divider
formed by trimpot VR3 and a 10kΩ resistor.
also has two trimpots (VR1 and VR2)
that are used to set the maximum data
rate and the minimum retransmission
delay; more on that later.
Receiver RX1 is powered continuously from the 5V supply so that it
can receive a signal at any time. When
there is no signal to be received, its data
output pin delivers a high-frequency
random (noise) signal. That is due to
the automatic gain control (AGC) in
the receiver increasing gain until it is
receiving a signal, even if that signal
is just amplified noise.
When there is an actual 433MHz
signal to receive, the AGC reduces the
receiver’s gain to prevent internal clipping, ie, so it is not overloaded due to
excessive gain. Since the AGC gain varies at a relatively slow rate, when the
433MHz signal transmission stops, the
receiver output will be low for a few
hundred milliseconds before the AGC
action increases the gain sufficiently to
produce noise again.
The 433MHz transmitter and receiver use an elementary modulation system, known as amplitude shift keying
or ASK. When its input is high (one),
the transmitter produces a 433MHz
carrier. When its input is low (zero),
the 433MHz carrier transmission stops.
The data rate is usually fast enough
that the receiver gain does not vary
significantly during the burst, even
though during the zero bits, there is
no carrier.
There are various schemes which
exist to avoid having long periods of
all 0s or all 1s, regardless of the data
being transmitted, to help in cases like
this. One such scheme is Manchester
encoding, where each bit is encoded
48
Silicon Chip
as either a low (0) then a high (1), or a
high (1) then a low (0), at a fixed rate.
The UHF transmitter and receiver pair
can transfer data at up to 5kbits/second
using Manchester encoding.
Distinguishing signal from
noise
The receiver’s AGC action poses
challenges for our software, since it
needs to be able to distinguish a series of zeros and ones that form part
of a genuine data transmission from
the zeros and ones that result from the
amplified noise in the receiver, when
there is no signal present.
IC1 monitors the signal from the
UHF receiver at its RB0 digital input
(pin 6). Each time the voltage level
changes, it decides whether it is just
due to noise or a valid data signal.
Valid data is determined by comparing the received data rate to the maximum rate setting.
This is set using VR1, which also varies the voltage at test point TP1. With
TP1 at 0V, the maximum data rate is
233bps, and with TP1 at 5V, the maximum data rate is 5kpbs. Intermediate
voltages give intermediate maximum
rate values.
If the incoming data rate is higher
than the rate setting of VR1, the data
is assumed to be noise and is rejected
as invalid (see Screen1).
If the data rate is less than the maximum data rate setting, the data is
considered valid and so it is stored in
memory. As soon as the data rate exceeds the maximum rate setting, it is
assumed that the transmission is complete and so the data which has been
stored is then transmitted.
Australia’s electronics magazine
This is done by reading the data out
of the RAM and feeding it to digital
output RA4 (pin 3) of IC1 at the same
rate that it was received. At the same
time, TX1, the UHF transmitter is powered up and transmits this stored data
(see Screen2).
IC2 is the memory that is used to
store the data. It is a 1024kbit random
access memory organised as 128k x
8-bit bytes. The memory is read and
written using via a Serial Peripheral
Interface (SPI).
When writing, data is sent to the SI
input of IC2 (pin 5) from the SDO (pin
8) output of IC1, one byte at a time.
When reading, data is sent from the
SO output of IC2 (pin 2) to the SDI input (pin 7) of IC1; again, one byte at a
time. In both cases, the data is clocked
by a signal from the SCK (pin 10) of
IC1, which is fed TO the SCK input of
IC2 (pin 6).
The memory SPI interface is enabled
by a low level at the chip select (CS) input (pin 1) of IC2, which is driven from
the RB3 digital output of IC1 (pin 9).
To write to the memory, the CS line
is brought low and then a write instruction is sent from IC1 to IC2, followed
by the memory address to write to. In
our application, this is always the first
location (address zero). This is a 24bit address sent as three 8-bit bytes.
The seven most significant address
bits are always zero since only 17 bits
are required to address the 128k bytes
in the RAM.
Following this, data can be written,
one byte at a time. By default, the address is automatically incremented after each byte of data is written, so bytes
are written sequentially to the RAM.
We store the received data as 16-bit
values. The most significant bit (bit
15) indicates the received level, low
(0) or high (1). The remaining 15 bits
are used to store the duration that the
data stayed at that level. This period is
stored in increments of 4µs, resulting
in a 4µs minimum period and 131ms
maximum.
Reading data out of the memory is a
similar process to writing, except that
a different instruction is used and the
data is sent in the opposite direction,
from IC2 to IC1.
Power saving features
Since we are powering the repeater
using solar panels and a small cell for
storage, its power consumption must
be minimised, especially when idle
siliconchip.com.au
and waiting for data. This is done by
switching off power to components
when they are not required.
The two trimpots, VR1 and VR2, are
only connected to the 5V supply when
their positions are being read. This is
done only during the initial powerup process and when switch S1 is
pressed. Any other time, the RA6 and
RA7 pins that supply 5V to the trimpots are low (0V), to prevent current
flow through the pots. This saves 1mA,
which adds up to 24mAh per day.
Similarly, the transmitter (TX1) is
off until it is required to send a UHF
signal. TX1 is powered directly from
IC1’s RA2 and RA3 digital outputs
(pins 1 & 2); these go high (to 5V) to
power TX1. The power saving is considerable since TX1 draws some 10mA
when powered and transmitting. This
saves 240mAh/day.
IC2 is on standby unless it is being
used. So unless there is a valid data
being received, it draws just 10µA instead of the 10mA required when it is
active. Typically, the memory is only
powered twice as long as the transmitter; the first half being the reception
period and the second half being the
transmission period. This also saves
around 240mAh/day.
Microcontroller IC1 typically draws
1.7mA and UHF receiver RX1 draws
2.9mA. The transmit and receive LEDs
are powered when TX1 and RX1 are active respectively, and draw about 3mA.
The LEDs can be disconnected using
a jumper shunt (JP1) to save power if
they are not needed. They are mainly
provided for testing purposes.
The circuit is powered from a single 600mAH LiFePO4 cell. The quiescent current draw is around 9.4mA,
ie, when the transmitter, memory and
LEDs are off. This means the cell will
last for around 60 hours or 2.5 days
when fully charged.
Charging circuitry
The LiFePO4 cell is charged by IC3,
which is powered from a 5V regulator (REG1) and this, in turn, is powered from a solar panel. Note that it
connects to the circuit via a fuse (F1),
which prevents damage if the cell is
inserted incorrectly. If the cell is reversed, current will flow through diode D2 and blow the fuse. Diode D1
prevents damage if the solar panel is
accidentally connected with the wrong
polarity.
IC3 is a miniature single-cell intesiliconchip.com.au
Parts list – 433MHz Wireless Data Repeater
1 double-sided PCB coded 15004191, 103.5 x 78mm
1 IP65 enclosure, 115 x 90 x 55mm [Jaycar HB6216]
1 600mAh LiFePO4 cell (AA sized, ie, 50mm diameter, 14mm long) [Jaycar SB2305]
1 12V 5W Solar panel [Jaycar ZM9050]
1 panel label (see text)
1 15 x 8 x 6.5mm powdered iron toroid (L1) [Jaycar LO1242]
1 433MHz ASK transmitter (TX1) [Altronics Z6900, Jaycar ZW3100]
1 433MHz ASK receiver (RX1) [Altronics Z6905, Jaycar ZW3102]
1 PCB-mount tactile momentary SPST pushbutton switch (S1)
[Altronics S1120, Jaycar SP0600]
1 2-way screw terminal with 5.08mm spacing (CON1)
1 2-pin header, 2.54mm spacing (JP1)
1 3-pin header, 2.54mm spacing (JP2)
2 shorting blocks/jumper shunts (JP1,JP2)
1 1A M205 fuse (F1)
2 PCB-mount M205 fuse clips (F1)
1 18-pin DIL IC socket (for IC1)
1-2 8-pin DIL IC sockets (optional; for IC2 & REG2)
1 PCB-mount AA cell holder
1 flag heatsink, 19 x 19 x 9.5mm [Altronics H0630, Jaycar HH8502]
1 IP65 cable gland to suit 3-6.5mm diameter cable
6 PC stakes (optional)
4 M3 x 5mm panhead machine screws
1 M3 x 6mm panhead machine screw
1 M3 hex nut
2 4.75mm long #0 panhead self-tapping screws
2 100mm cable ties
1 500mm length of 1mm diameter enamelled copper wire
2 175mm lengths of medium-duty hookup wire OR
2 175mm length of 1mm diameter enamelled copper wire (see text)
Semiconductors
1 PIC16F88-I/P 8-bit microcontroller programmed with 1500419A.HEX (IC1)
1 23LCV1024-I/P 128kB SRAM in PDIP package (IC2) [Mouser, Digi-Key] OR
1 23LCV1024-I/SN 128kB SRAM in SOIC package (IC2) [Mouser, Digi-Key]
1 MCP73831T-2ACI/OT single cell Li-ion/LiFePO4 charger, SOT-23-5 (IC3)
[Mouser, Digi-Key]
1 TL499A power supply controller (REG2) [Jaycar Cat ZV1644]
1 7805 5V regulator (REG1)
1 1N4004 1A diode (D1)
1 1N5404 3A diode (D2)
1 Green 3mm high-brightness LED (LED1)
1 Red 3mm high-brightness LED (LED2)
1 Yellow 3mm high-brightness LED (LED3)
Capacitors
2 470µF 16V low-ESR electrolytic
1 100µF 16V electrolytic
1 10µF 16V electrolytic
1 470nF 63V MKT polyester
1 220nF 63V MKT polyester
2 100nF 63V MKT polyester
1 100nF multi-layer ceramic
1 10nF 63V MKT polyester
(code 0.47, 474 or 470n)
(code 0.22, 224 or 220n)
(code 0.1, 104 or 100n)
(code 0.01, 103 or 10n)
Resistors (all 0.25W, 1% metal film)
3 10kΩ
(brown black orange brown or brown black black red brown)
4 1kΩ
(brown black red brown or brown black black brown brown)
1 330Ω
(orange orange brown brown or orange orange black black brown)
2 10kΩ miniature horizontal mount trimpots (VR1,VR2)
1 50kΩ miniature horizontal mount trimpot (VR3)
Australia’s electronics magazine
May 2019 49
Fig.3: this PCB overlay diagram and the photo below show how the
components are fitted to the board. There are two possible locations for IC2,
depending on whether you’re using the through-hole (DIP) or SMD (SOIC)
package version. Be careful to orientate the diodes, ICs, cell holder, transmitter
and receiver correctly, as shown here. Some components can be left off if the
solar battery charging function is not needed (see the text for details).
grated Li-ion/LiPo charge management
controller. It charges the cell at a constant current, up to a charge termination voltage of 4.2V. The charge current
is set by the resistance at pin 5. and for
our circuit, this is set to 100mA by the
10kΩ resistor. The charge LED (LED3)
lights when the cell is charging.
The 433MHz UHF transmitter (TX1)
and receiver (RX1) can operate from
2.5-5V. Since the transmitter will have
more output power and thus a better
range when powered from 5V, rather
than the 3.2-4.2V from the LiFePO4
50
Silicon Chip
cell, we use a step-up (boost) regulator to generate a 5V to power these
modules.
However, the circuit can be built
without this step-up regulator, if maximum range is not required. This saves
time and money. The rest of the circuit
will then be powered directly from the
LiFePO4 cell. This would also extend
the cell life as the step-up regulator
is only around 70% efficient, and the
lower supply voltage will also mean
that less current is drawn by IC1, IC2,
TX1 and RX1.
Australia’s electronics magazine
Jumper link JP2 is used to select
whether these components are powered from the 5V boosted supply, or
directly from the cell.
The voltage step-up is performed
by TL499A switching regulator REG2.
It comprises a switching control circuit, a transistor and a series diode. It
requires inductor L1 to perform the
boost function and a 470µF low-ESR
output capacitor for energy storage
and filtering.
A simplified circuit showing the operation of the boost converter is shown
in Fig.2. Initially, internal transistor
Q1 is on and current flow begins to
build through the inductor L1 (at a
rate limited by its inductance), until it
reaches a particular value. This maximum current is set by the resistor connected to pin 4 of REG2.
When Q1 switches off, L1’s magnetic
field collapses and so current continues to flow to the load and output capacitor CL via diode D1. This current
flow causes a voltage to appear across
L1, which adds to the supply voltage
(VIN), charging CL up to a higher voltage than the input supply.
The process continues with Q1
switching on again, once L1’s magnetic field has mostly dissipated, and
thus the field builds back up until Q1
switches off again.
The output voltage is sampled via
a voltage divider comprising trimpot
VR3 and a 10kΩ resistor. This determines the proportion of the output
voltage applied to pin 2 of REG2,
which it compares against an internal
1.26V reference. The duty cycle of Q1
is controlled to maintain 1.26V at the
pin 2 input.
Therefore, by changing the resistance of VR3, we can vary the output
voltage. The greater the attenuation of
this resistive divider, the higher the
output voltage must be to maintain
1.26V at pin 2. If VR3 is set to 29.68kΩ,
the divider formed with the 10kΩ resistor reduces the output by a factor of
3.97. That means that the output will
be 3.97 x 1.26V = 5V.
Should the output voltage rise
slightly above 5V, the TL499A will
cease switching Q1 until the voltage falls slightly below the 5V level.
Should the voltage fall below 5V, the
transistor will be driven with a higher
duty cycle, to deliver more current to
the output and bring it back up to 5V.
Note that the 1.26V reference is only
a nominal value and could be any voltsiliconchip.com.au
age between 1.20V to 1.32V, depending
on the particular IC. So VR3 makes it
adjustable, to allow the output voltage
to be set accurately.
Chaining multiple repeaters
As mentioned in the features panel, it is possible to have more than
one repeater, to extend the transmission range further. The repeater closest to the source (original transmitter)
will send the signal on to the second
repeater. When the second repeater
sends out its signal, the first repeater
must ignore it; otherwise the two repeaters will endlessly retransmit the
same packet.
This is prevented by an adjustable
delay between the end of each transmission and the unit accepting a new
packet. This delay ranges from 50ms
to 12.5s and is set using VR2. The voltage at TP2 indicates the delay setting,
with each volt representing 2.5s. So for
example, if VR2 is adjusted for 2V at
TP2 then the delay is 2.5s x 2 = 5s. 0V
gives a 50ms (minimum) delay.
Construction
The repeater is built using a double-sided PCB coded 15004191 which
measures 103.5 x 78mm. It fits in an
IP65 sealed box measuring 115 x 90 x
55mm. Use the PCB overlay diagram,
shown in Fig.3, as a guide during assembly.
Start by soldering the battery charger, IC3. This is in a small five-pin SMD
package. The correct orientation is evident since it has two pins on one side
and three on the other. Tack solder
one of the pins (ideally, at upper right)
then check its orientation and solder
the diagonally opposite pin.
Then proceed to solder the remaining pins, and refresh the first joint with
a bit of added solder or flux gel.
If you accidentally bridge the three
pins which are close together, add a
little flux paste and then clean up the
bridge with the application of some
solder wick.
The PCB has the option to use a DIP
(through-hole) or SOIC (SMD) package
for the memory chip (IC2). Only one
type should be installed. If using the
SOIC package, solder it next, using a
similar procedure as described above.
But first, make sure that its pin 1 dot
or divot is at upper left, as shown in
Fig.3. It should also have a bevelled
edge on the pin 1 side.
The SOIC package for IC2 is larger
siliconchip.com.au
than that of IC3, so you should find it
a little easier. Again, any accidental
bridges can be cleaned up with flux
paste and solder wick.
Install the resistors next. They are
colour coded with the resistance value as shown in the parts list. A digital multimeter should also be used to
check the resistor values, as the colour
codes can be hard to read.
Fit the diodes next, making sure
to insert them with the correct polarity, ie, with the striped ends facing as
shown in the overlay diagram. D2 is
considerably larger than D1.
We recommend soldering an IC
socket for IC1. The remaining ICs (including IC2, if using the DIP package
version) can be fitted via an IC socket
or soldered directly in place, which
would give better long-term reliability. Take care with orientation when
installing the socket(s) and ICs. Additionally, make sure that IC2 and REG2
are not mixed up.
Next, there are six optional PC
stakes to install. These make wiring
connections and test point monitoring easier. These are located at TP5V,
GND, TP1, TP2 and one each for the
antenna connection of RX1 and TX1.
The capacitors should be mounted
next, starting with the 100nF multilayer ceramic capacitor next to UHF
receiver RX1, then following with the
MKT polyester types, none of which
are polarised. Follow these with the
electrolytic types, which must be installed with the polarity shown; the
longer lead goes into the pads marked
with a “+” sign, towards the top of
the PCB.
REG1 can be now fitted. It is mounted horizontally on a heatsink. Bend the
leads so they fit the PCB holes while
the mounting hole lines up with the
hole on the PCB. Sandwich the heatsink between the regulator and PCB
and do up the screw and nut before
soldering the leads.
Trimpots VR1 to VR3 are next. VR1
and VR2 are 10kΩ and would typically be marked with 103. VR3 is 50kΩ
and may be marked as 503. Then install the LEDs, LED1 to LED3. In each
case, the anode (longer lead) goes to
the pad marked with an “A” on the
PCB. The bottom of the LEDs should
be about 5mm above the PCB surface
when soldered in place . You can
then fit pushbutton switch S1.
Install the 3-way and 2-way SIL
headers now, for JP1 and JP2. Then
Australia’s electronics magazine
fit the 2-way screw terminal, CON1,
with the wire entry holes end toward
the bottom PCB edge.
L1 is wound using 17 turns of 1mm
enamelled copper wire on a 25mm diameter powdered iron toroidal core.
These turns should be wound neatly around the perimeter, as shown in
Fig.3. Remove the enamel from the
ends of the wires using a hobby knife
so you can tin them and then solder
them to the PCB pads shown. The core
is held in place with two cable ties that
loop through PCB holes, as shown.
The battery holder must be orientated as shown (red wire to +) and secured to the PCB using two self-tapping screws through the cell holder
and into the slotted holes on the PCB.
Cut the wires from the battery short
and terminate them to the PCB.
Insert the fuse clips for F1, making
sure that the end stops in the clips are
facing to the outside. Before soldering
them, insert the fuse so that the clips
are correctly aligned, for good contact
with the fuse.
Finally, the UHF transmitter and
receiver can be mounted. These must
also be orientated correctly. The pin
markings are printed on the transmitter module. Orientate the antenna pin
connection on the transmitter and receiver so that they are adjacent to the
antenna connections on the PCB.
You have two options for the antennas: either use 170mm lengths of
hookup wire coiled inside the box or,
for better range (>40m), 170mm-long
lengths of stiff enamelled copper wire
protruding from the box.
The extra 5mm in the lengths specified in the parts list is to give you
enough wire to solder to the antenna
terminals (for the hookup wire) or to
bend over at the tip (for the enamelled
copper wire).
Having chosen which antenna wire
you want to use, cut the appropriate
lengths and solder them to the antenna
PC stakes, or directly to the antenna
pads if you are not using PC stakes.
Note that you will need to scrape
some insulation off the end of the
enamelled copper wire (eg, with a
hobby knife) so that you can tin and
then solder it to the board.
Mounting it in the box
There is not much work required to
mount the board in the box. We drilled
a hole in the side for the cable gland
required for the solar panel wiring.
May 2019 51
Here’s how it looks
mounted in its
waterproof
case. The blue
and yellow
wires are the
170mm-long
transmitting
and receiving
antennas –
they can be left
“floating” in the
case but ensure
there are no bare
ends to short to
any components or
to the PCB.
This hole is 25mm up from the outside base of the case opposite CON1. If
you only require a UHF transmission
range of less than 40m, the antenna
wires can be bent around the inside
perimeter of the box.
For maximum transmission range
(up to 200m), the stiff receiver antenna wire should pass through a small
hole in the upper edge of the box, and
the receiver wire similarly should pass
through a small hole in the lower edge
of the box.
Once it’s through, bend the tips over
to form small 3mm loops. That prevents you poking your eye out on the
otherwise sharp end.
1mm wire is used so that the wire is
stiff enough to stay straight. The wire
exit holes should then be sealed with
a neutral cure silicone sealant.
The repeater PCB is held inside the
case by M3 screws that go into the integral threaded bushes in the base of
the box.
The Neoprene seal for the lid needs
to be placed inside the surround channel and then cut to size. The start and
finish gap in this seal should be along
the lower long edge of the lid.
find more information and direct links
to these products at: www.siliconchip.
com.au/Help/FrontPanels
Labelling it
Setting up
To produce a front panel label, you
have several options.
For a rugged label, mirror the design and print it onto clear overhead
projector film (using film suitable for
your type of printer). This way, the ink
will be on the back of the film when
the label is affixed. Attach with clear
silicone sealant.
There are alternatives such as
“Dataflex”and “Datapol” labels for use
with inkjet and laser printers – you’ll
It is essential that the shunt is not
placed on JP2 until VR3 is adjusted to
for 5V at the output of IC4. To do this,
insert the LiFePO4 cell into the holder
and measure voltage between the GND
and TP5V PC stakes. Adjust VR2 for a
reading of 5V.
52
Silicon Chip
Solar panel or mains power
We used a 12V 5W Solar panel to
power the unit. A 6V panel would be
more efficient, since we are reducing
the voltage down to 5V. However, 6V
panels aren’t easy to find. The panel
power rating only needs to be 1W.
If you want to run the unit from
mains power, a 9V plugpack could be
connected to CON1 instead.
Make sure the plugpack is out of
the weather, with only the low voltage wires going to the repeater.
In this case, IC3 and the LiFePO4 cell
are not required, although you could
leave them in so that the unit will run
even during power outages (assuming
the transmitting and receiving units
are also battery-powered).
If you’re leaving off IC3, you could
also omit F1, D2, LED3 as well as IC4
and its associated parts. The 5V output
from REG1 could then be directly used
to power the circuit by connecting a
wire link from the regulator output to
the 5V terminal at JP2.
Installation
The repeater should be mounted in
a location that will give good reception of the original UHF signal. The
Australia’s electronics magazine
LED indicators (LED1 and LED2) will
let you know if the signal is received
and retransmitted if a shunt is installed on JP1.
VR1 must be adjusted so that the
receive LED does not flash at all, or at
least not too often, when no signal is
being received. But if it’s adjusted too
far, the repeater will not work, so you
need to check that it is still retransmitting valid data.
To achieve this, initially set VR1
fully clockwise and press S1 so that
the VR1 setting is updated. More of
the random signal noise will now be
detected and the receive LED will flash
now and then, followed by the transmit LED. Adjust VR1 anticlockwise
a few degrees and press S1 to again
update the setting. Check that the repeater retransmits correctly.
If the repeater operates correctly, try
further anticlockwise adjustment. The
final adjustment will be a compromise
between reliable repeater operation and
noise rejection from the UHF receiver.
Adjusting VR1 too far anticlockwise will prevent successful repeater
operation.
VR2 should be set fully anticlockwise if you are using a single repeater.
If you are using multiple repeaters, set
VR2 on all repeaters fully clockwise,
giving a 12.5s delay. If your transmitter
can send signals more often than this,
you will need to experiment with the
maximum clockwise rotation of VR2
that will still cause all valid packets
to be relayed.
Remember that the settings for the
VR1 and VR2 trimpots are only read by
IC1 when first powered up and when
S1 is pressed. LED1 and LED2 light
when S1 is pressed, to acknowledge
that the settings have been updated.
Once you’ve finished adjusting
VR1 and VR2, you will need to check
whether the ultimate receiver is correctly decoding the retransmitted code
from the repeater(s). If not, you may
need to move them.
You can then permanently mount
the repeater(s). This is done using
the mounting holes provided in the
box corners.
These holes are accessible when the
box lid is removed.
Alternatively, you could use a bracket and attached this to the box using
the box mounting holes.
Avoid drilling extra holes in the box
as this could compromise its waterSC
tight seal.
siliconchip.com.au
|