e01a012.PDF
(
622 KB
)
Pobierz
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
GENERAL
INTEREST
Miniature PCM
Remote Control
part 1: transmit at 433 MHz and 950 nm!
Here’s a design that should gladden the hearts of many model builders.
A really small proportional remote control unit built using standard -
low-cost components. It’s ideal for loads of applications and so flexi-
ble that simply by changing on-board jumpers you are free to choose the
transmission medium: radio, Infrared or two-wire!
12
Elektor Electronics
10/2001
GENERAL
INTEREST
into the receiver allowing direct connection
to the models drive motor. Using the infrared
control option a low-cost 4-channel propor-
tional control system can be built that simply
cannot be matched for price and performance
by anything available commercially. The two-
wire control option is useful if the device to
be controlled is in a fixed location, for exam-
ple the receiver could drive two model servos
controlling the pan and tilt of a remote security
camera.
This remote control design is a good
demonstration of how microcontrollers can be
used to implement features that not so long
ago would require dedicated circuitry. The
design need not stop here. If, for example you
decide that a menu driven transmitter
together with a keypad and LCD would bet-
ter fulfil your needs then it is entirely possi-
ble to implement this. Many features of the
microcontroller together with unused ROM
are just waiting for an inspired programmer
to make good use of them.
Remote control main features:
– Lightweight
– Simple construction with no set-up or alignment
– 6 channels
→
4 proportional and 2 digital
– Switched outputs for 5 A load
– Four standard servo connectors
– Trim function on 4 channels
– Small, light and compact
– PCM transmission method
– Selectable Infrared or radio operation
– Current saving transmission method
– Type-approved and licence-exempt 433MHz Tx and Rx modules
– Voltage supervision in both the transmitter and receiver
– Built-in speed regulator in receiver
– Built-in soft start switch in receiver
– Speed regulator and softstart controller suitable for loads <15A
– Battery Low indicator
– Servo reverse (change the servo travel direction) for all 4 servos
– Operating voltage: transmitter 3.3 V to 4.8 V
(3x AA Alkaline cells or 4x Nicad cells)
– Receiver 5 V from on-board BEC voltage regulator
The transmitter
The block diagram shown in
Figure 1
indi-
cates that a microcontroller does most of the
donkey-work. It digitises the analogue resis-
tance values of the four input potentiometers,
checks for push button presses, and gener-
ates the transmitted signal protocol. The sig-
nal can be transmitted at RF or by infrared.
Even if you are only intending to use the
transmitter at RF it is worth fitting the
infrared components to make the finished
unit more flexible. The additional cost
incurred by fitting the IR diode and its drive
transistor is relatively low.
During initialisation the transmitters
microcontroller will read the state of the input
at port pin P0.7. If it is high (jumper JP2 not
fitted) then RF control will occur. If it is low
(jumper JP2 fitted) then signals will be sent
using infrared. When the controller sends
infrared signals the driver stage uses more
peak current than with the RF option. The
controller formats the output signal differently
by modulating the Pulse Code Modulation
(PCM) data at 36 kHz and reducing the data
rate in order to prolong battery life. The same
modulation is used by remote controllers for
TVs etc and gives good transmission security.
The components used for the transmitter
circuit shown in
Figure 2
are low-cost and
widely available from numerous suppliers but
its worth taking a closer look at some of the
more unusual items:
It used to be that constructional pro-
jects using RF transmitters and
receivers would only be attempted
by the more courageous electronics
enthusiasts. Thankfully since the
advent of complete integrated RF
modules we can forget the tedious
set-up and adjustment process and
just treat the RF stage as another
plug-in building block. The design
described here is very flexible and
can use these RF modules to imple-
ment a radio remote control. Micro-
controllers are also employed in the
transmitter and receiver to replace
the discrete shift registers, clock
generators and timing circuitry that
you normally find in remote control
designs. The result is a compact, reli-
able and low cost remote control
unit. The low radiated power emit-
ted by these licence-exempt radio
modules limits the range of the units
so this design is only really suitable
for controlling indoor models.
A speed controller is also built
4 potentiometers
433 MHz
LPD
Tx module
Microcontroller
Infra-red
sender
2 pushbuttons
The Joystick assembly
The remote control system should be small,
economical, simple to build and suitable for
010205 - 13
Figure 1. Transmitter block diagram.
10/2001
Elektor Electronics
13
GENERAL
INTEREST
+4V5
S3
ON/OFF
R2
R6
D
2
D
1
C1
P1
P2
P3
P4
220µ
25V
IR-LED
20k
20k
20k
20k
R1
R5
A1
15
UT1
3
1
2
3
4
8
9
P0.0
P0.1
P0.2
P0.3
P0.4
P0.5
P0.6
P0.7
P1.7
P1.6
P1.5
P1.4
P1.3
P1.2
P1.1
P1.0
Radiometrix
2
5
20
19
18
17
16
14
13
TX2
IC1
T1
BT1
UHF Transmitter
R4
1k
4V5
1
4
87LPC768
10
11
12
TIP110
ZTX603
X1
X2
8
7
6
5
5
6
7
S4
R3
JP1
X1
S1
S2
C2
C3
1234
P5
100k
P6
100k
P7
100k
P8
100k
15p
6MHz
15p
010205 - 11
infrared encoding
Figure 2. Transmitter circuit diagram.
use with standard model servos from Graup-
ner, Multiplex, Futaba and Ripmax etc. One
of the first hurdles in building this propor-
tional remote control system was to track
down an economical joystick assembly to use
for control input. The US Company CTS pro-
duces a suitable assembly. Its miniature joy-
stick is self-centring, has low mechanical
‘play’ and can optionally have a switch fitted
(
Figure 3
).
The most important technical features of
this joystick are:
– 1 Million operating cycles
– Sturdy metal housing
– 2 Potentiometers
– Available potentiometer resistor
values between 10 kΩ and 150 kΩ
– Selectable potentiometer resistor
tolerance from 10% to 30%.
– Available with in-built pushbutton
switches
– Switch contact resistance less than
0.1 Ω
– Switch rating 50 mA @ 12 V
– Push button life: 100,000 opera-
tions
Unfortunately the joystick control
paddle passes through a circular
opening in its housing. This has the
effect of limiting control when the
joystick is moved to the extremes of
both the X and Y axis simultane-
ously. The joystick housing will
therefore require a little modification
and most competent modellers will
have no problem in ‘squaring out’
the opening to allow maximum
deflection of the paddle at all posi-
tions. The paddle itself can also be
modified to improve the feel of the
joystick. On the prototype we used
some drilled-out plastic guides from
ball-joints to extend the sticks.
Standard linear or turn poten-
tiometers can be substituted for the
joystick assembly if the combined X-
Y control is not necessary in your
model. In series with the poten-
tiometers are also trim pots that
allow the servo position to be finely
adjusted or trimmed out. This feature
is useful for example when setting
up a model car to ensure that ‘hands
off’ it steers straight ahead.
Microcontroller
The central control element in the
transmitter is the 87LPC768 micro-
controller from Philips. This device
inputs analogue values from the joy-
Figure 3. Miniature joystick assembly from CTS.
14
Elektor Electronics
10/2001
GENERAL
INTEREST
Figure 4. The 433 MHz transmitter and receiver modules.
sticks and pushbuttons and converts
them into digital values using its
analogue to digital (A/D) converters.
A PCM signal is then produced and
output to the IR diode or RF module.
The microcontroller is based on
the well-established Intel 80C51
architecture so for programming
there are many low-cost develop-
ment tools including shareware
available.
The 87LPC768 is described as a
‘
Low power, low price, low pin count
microcontroller’
. A 6 MHz clock is
necessary to cope with the proces-
sor intensive software routines and
this produces a cycle time of 1 µs.
The main controller features can be
summarised as:
band to send data. As well as supplying com-
plete transmitter/receiver solutions some
manufacturers produce integrated RF mod-
ules that can be used in many applications.
The big advantage of these modules is that
they do not require any set-up or tuning, they
are supplied ready to go. The modules used
in this circuit are produced by the company
Radiometrix (
Figure 4
, together with the
receiver module). The main features of the
transmitter module are summarised in the fol-
lowing table:
– 4 Kbytes ROM
– 128 Bytes RAM
– 32 Bytes Customer Code EEPROM
– Operating voltage 2.7-6.0 V
– Two 16 Bit Timer/Counters
– 4 channel Pulse Width Modulator
(PWM) using 10 Bits
– 4 channel A/D converter, 8 Bit res-
olution, conversion time 9.3 µs @
20 MHz clock frequency
– integrated reset
– Selectable internal RC oscillator.
– 20 mA driver current from output
port
– 18 I/O-Pins maximum, when inter-
nal Reset and RC Oscillator is
selected
– 2 analogue comparators
–I
2
C interface
– Full duplex UART
– Serial In-circuit Programming
Transmitter TX2
– Frequency 433 MHz, +9 dBm
– Modulation: FM
– Data rate 40 kbps max.
– Operating voltage 4.0 V to 6.0 Vdc
– Current consumption 6 mA
supply
voltage
+
Controller
R2
The transmitter RF module has five pins
enabling it to be soldered or plugged directly
to the PCB. The module will begin transmit-
ting as soon as power is applied provided
that the modulation input signal is high.
R3
+
The Infrared transmitter
The infrared diode driver stage consists of
Darlington transistor T1. The transistor is
ideal as an LED power driver with a current
gain of 2000 and a maximum collector current
of 1 A. Two other alternative transistors are
the BCX38 and TIPP110 but these have dif-
1V23
010205 - 14
The RF Module
In recent times we have seen a big
increase in the number of different
applications using the 433
Figure 5. Internal comparator of the
controller.
MHz
10/2001
Elektor Electronics
15
GENERAL
INTEREST
ferent pin-outs. Resistor R5 limits the diode
peak current to approximately 240 mA. This
figure was chosen as a trade off between bat-
tery life and transmitter range. R1 can be
reduced to increase range as long as the peak
forward current rating of the diode is not
exceeded.
The IR LED type TSUS5201 emits IR light
at 950 nm with a beam intensity of
230 mW/sr at 1.5 A with a half angle of
2 switches
433 MHz
LPD
Rx module
Microcontroller
15°.
In principle any IR LED can be used but if
you do intend to use a substitute choose one
with a beam intensity >200 mW/sr at 1.5 A
and with a wavelength of 950 nm. The IR LED
operating current is given by the formula:
±
Infra-red
receiver
4 servos
soft-start switch
I
LED
= (V
BAT
– V
CESAT
– V
F
) / R1
alternative:
speed generator
where:
V
BAT
= operating voltage 4.5 V
V
CESAT
≈
010205 - 15
0.7 V
V
F
= forward voltage drop of an infrared
diode ≈ 1.6 V
Figure 6. Receiver block diagram.
A crucial consideration affecting the reliabil-
ity of the IR signals is the peak current that
can be supplied by the battery. It is recom-
mended to use either alkaline or Nicad cells
to supply the high impulse current
required by the IR driver stage.
Cheap zinc-carbon cells may not be
able to supply the necessary current.
Servo reverse
A 4 way DIP switch is conveniently
included on the transmitter enabling
the direction of travel of any of the
R8
M+
D2
T4
M
K1
MBR745
M–
K2
IRF4905L
T1
T5
K3
R5
R9
SUP75N03
LM2940
IC3
D1
C7
C5
C6
C4
220µ
25V
470µ
25V
100n
100n
R4
R2
R1
15
S1
UR1
A1
3
5
1
2
3
4
8
9
P0.0
P0.1
P0.2
P0.3
P0.4
P0.5
P0.6
P0.7
P1.7
P1.6
P1.5
P1.4
P1.3
P1.2
P1.1
P1.0
TEST
ON/OFF
20
19
18
17
16
14
13
IC1
Radiometrix
7
1
C3
RX2
UHF Receiver
87LPC762
10µ
25V
2
4
10
11
12
K4
SFH5110
BT1
P2
P1
IC2
3
X1
X2
T3
T2
1
5
6
7
R3
JP1
JP2
X1
2
SFH5110
R7
R6
C1
C2
15p
6MHz
15p
2x
BUZ11
speed control
infrared
encoding
010205 - 12
encoding
Figure 7. Receiver circuit diagram with two communication methods.
16
Elektor Electronics
10/2001
Plik z chomika:
gasma
Inne pliki z tego folderu:
bge.jpg
(26 KB)
detail1.htm
(5 KB)
detail2.htm
(4 KB)
detail3.htm
(4 KB)
detail4.htm
(6 KB)
Inne foldery tego chomika:
1974
1975
1976
1977
1978
Zgłoś jeśli
naruszono regulamin