pontech SV203 Manuel utilisateur

Rev.1.20
Copyright1997-98byPontech.Allrightsreserved.(714)985-9286Fax(714)985-9288
2700E.ImperialHwy.,SuiteN-Brea,CA92821

1
SV203- Servo Motor Controller Board
The SV203 is a PIC16C73 microcontroller based servo motor
controller board that accepts RS-232 serial data from a host
computer and outputs PWM (pulse-width-modulated) signals to
control up to eight RC (radio-controlled, i.e. model airplanes, cars,
etc.) servo motors. Unused servo pins can be reconfigured as digital
outputs for controlling on/off devices. LED displays can be driven
directly by the pins but devices such as relays and solenoids may
need a simple transistor driver circuit.
There is also a 5-channel A/D port for reading analog voltage
between 0-5 volts, and a SPI (synchronous peripheral interface)
port which allows data to be shifted in or out serially.
The SV203B/C has the added feature of being able to run a
standalone BASIC program stored on board an 8K EEPROM. An
optional IR-Receiver/Transmitter (IR100) is also available to allow
Infrared Serial Communications.

2
SV203- Servo Basics
RC servos operate using feedback to compare the current position
to an input pulse width, which typically repeats every 14 to 20 ms
(milliseconds). If the pulse width lasts for approximately 0.6 ms, the
servo will rotate to a maximum position. If the pulse width is
increased to approximately 2.4 ms, the servo will rotate to the
opposite maximum position (Figure 1). A 1.5 ms pulse will set the
servo in the middle (neutral) position.
The SV203 controller is designed to the specifications of a Futaba
servo model FP-S148. These servos have a neutral position at 1.52
ms. -90 degrees at 0.6 ms, and 90 degrees at 2.4 ms. Other servos
may have slightly different values for these positions.
(Figure 1 - servo timing diagram)

3
SV203- Power Supply and Pin-out
A 6-Volt DC source powers the board, either from 4 alkaline
batteries or 5 NiCad cells. An AC adapter can also be used: 6VDC,
at 300mA. If using NiCads, a 4-cell pack might be easier to find
than a 5-cell pack. The board will operate fine with 4 cells, but may
not last as long as 5 cells.
(Figure 2 - pin-out for SV203)

4
SV203- Power Supply and Pin-out
DB-9DB-9 DB-25DB-25 MacintoshMacintosh DB-9DB-9
1-- 3 1
2 5 2 2
3 3 -- 3
4-- -- 4
58 , 4 7 5
6-- -- 6
7-- -- 7
8-- -- 8
9-- -- 9
(Figure 2a – DB cross-referenced chart)

5
SV203- Servo Connections
The servo port connectors use a 3-pin male sip (single inline pin)
connector (0.1-inch spacing). The servo connector is designed to be
used with Futaba-type servos with J-type connectors. The servos
have three colored wires, Black for ground, Red for power, and
White for signal.
Connect the cable with the White wire pointing to S1…S8, and the
Black wire toward the outside edge of the board.
(Figure 3 - servo connected to SV203)

6
SV203- Example Interface
OPEN “COM1:9600,N,8,1,CD0,CS0,DS0” FOR OUTPUT AS #1
DO
PRINT:PRINT “*****SV203 Servo Controller *****”
INPUT “Enter Board ID Number:
INPUT “Enter Servo # to control: Servo$
INPUT “Enter Position of Servo: Pos$
PRINT #1, “BD”;ID$;”SV”;Servo$;”M”;Pos$
INPUT “Quit (y/n)”; Q$: IF Q$ = “y” THEN EXIT DO
LOOP
(Listing 1 - Sample interface program using QBASIC)
***** SV203 Servo Controller *****”
Enter Board ID Number:? 1 Board width ID = 1
Enter Servo # to control:? 2 move servo #2 to
Enter Position of Servo:? 200 position 200
Quit (y/n):? n
***** SV203 Servo Controller *****”
Enter Board ID Number:? 0 Any Board regardless of
Enter Servo # to control:? 4 ID, move Servo #4 to
Enter Position of Servo:? 254 position 254
Quit (y/n):? n
***** SV203 Servo Controller *****”
Enter Board ID Number:? 1 Board with ID = 1
Enter Servo # to control:? 2 Turn off Servo #2
Enter Position of Servo:? 0
Quit (y/n):? n
***** SV203 Servo Controller *****”
Enter Board ID Number:? 1 This command is invalid because
Enter Servo # to control:? 9 there is no Servo #9 and also
Enter Position of Servo:? 256 256 is out of the range of the
Quit (y/n):? y servo position.
(Listing 2 - Example screen of when program in Listing 1 is running)
Listing 1 is a simple program written in QBASIC that requests the
user to input a board ID number, a servo number to control, and
the position of the servo.

7
SV203- Operation of Board
Connect the servos to the board, plug in the RS-232 cable to a
COM port of a PC and the other end to the SV203. Power the
board and the servos should return to the neutral position. Run the
example programs.
The SV203 processes information one ASCII string command at a
time. Each command string follows the format:
L n L n … <enter> (maximum of 20 characters/line)
Where Lis the command letter(s) in caps, nis a decimal integer
number(s), and <enter> is ASCII 13. Please refer to Command
Listing Page (p.26) for a complete listing.
For example, the commands to select a board, select a servo and
move to a position are BD, SV, and M, respectively. If your want
to move servo #3 of a board with an ID number equal to 1 to
position 85, you would send the flowing command string.
BD1SV3M85 <enter>
The commands can also be separated by spaces or commas for ease
of reading.
BD1 SV3 M85 <enter> or
BD1,SV3,M85 <enter> or
BD 1 SV 3 M 85 <enter>
A terminal program may be used to test the functions of the board.
The default setting on the board is 9600 baud, N81, with echo off.
(A program called TERM.EXE is provided as a simple terminal like
software to test the SV203 functions).

8
SV203- Operation of Board
Once a board or servo is selected, it will stay selected until power is
removed or another select command is received. For example, if the
following commands were sent:
BD1 SV2 M100 <enter>
The next command will still move servo #2:
M150 <enter>
More then one servo can be moved at the same time in one line of a
command string, just make sure you don’t exceed the 20 characters
per line limit, including spaces and commas:
BD1 SV1 M30 SV2 M104 SV3 M25 <enter>
The commands above will select Board #1, Move servo #1 to
position 30, then move servo #2 to position 104 and move servo #3
to position 25 all at about the same time.
Any parameter value for the command not in the range of the
command will be ignored. (see Command Listing Page – p.26.)
The board will start processing the command string when it
receives the <enter> or ASCII 13 character. The host computer
talking to the board should insert a delay of about 3 milliseconds
between each command string to allow time to process the
commands.

9
SV203- Commands Descriptions
BDnSelect Board
Before the board will accept any commands, it must first be
enabled. To enable the board, you must send the BD command
followed by the board ID number (n). The default ID number of the
board is 1. So simply send the following to enable the board:
BD1 <enter>
The board ID number can be user-redefined by using the WE
command (see Commands Descriptions Page – p.20). This allows
multiple boards of different ID number to be connected to the same
serial port.
You can enable the board in two other ways: You can pre-enable
the board at power-up by changing the default settings. (see
Changing Default Settings Page – p.22); or you can enable the
board by sending an ID number 0, such as:
BD0 <enter>
This will override the ID number checking and any boards
connected to the port will be enabled regardless of the ID number
of the board.
Table des matières

















