PTK40A Quick Start Guide
PTK40A Quick Start Guide
PTK40A Quick Start Guide
HEAD to TOE
Quick Started Guide – PTK40A
Jan 2011
Information contained in this publication regarding device applications and the like is intended
through suggestion only and may be superseded by updates. It is your responsibility to ensure
that your application meets with your specifications. No representation or warranty is given and
no liability is assumed by Cytron Technologies Incorporated with respect to the accuracy or use
of such information or infringement of patents or other intellectual property rights arising from
such use or otherwise. Use of Cytron Technologies’s products as critical components in life
support systems is not authorized except with express written approval by Cytron Technologies.
No licenses are conveyed, implicitly or otherwise, under any intellectual property rights.
A. POWER SUPPLY
1 Power connector
2 DC adaptor socket
C. RC SERVO
7 RC Servo motor
D. RELAY
8 Relay
E. UIC00B PROGRAMMER
F. UART
G. MICROCONTR
I. STEPPER MOTOR
19 Unipolar/Bipolar selector
21 Stepper motor
J. MOTOR DRIVER
K. EXTERNAL DRIVER
26 I2C connector
27 DS1307 RTC IC
28 3V cell battery
M. USB
30 SPI EEPROM
O. PIN SELECTOR
31 Pin selector
P. EXPANSION PORTS
32 Expansion Ports
33 4X4 Keypad
34 Reset button
35 Programmable switches
36 IC MCP602
37 DC motor
40 IR sensor
S. BUZZER
42 Buzzer
U. LEDs
45 LEDs
V. ANALOG INPUT
47 Potentiometer
48 Analog selector
A. Power Supply
Power supply is main power for PTK40A. The voltage of power supply could be given is
12V. There are two types of power connector on the PTK40A, DC plug ‘adaptor’ is for AC-
DC adaptor and 2510-02 ‘JP2’ is for battery source
C. RC Servo
RC servo motor is a type of motor that is generally used in hobby RC toy. Due to its special
feature that offers open loop position control, it has been employed in building robot arm and
biped robot. Ensure the wire connection is correct and “SERVO” was selected on JP9 of pin
selector.
D. Relay
Relay is an mechanical device that is used as a switch in electrical system with high current
or voltage. When a high signal is sent from the PIC MCU to the relay via special interface,
VIN LED will light to indicate the relay is activated and GND LED will light when the relay is
deactivate. If an additional high voltage or high current device is required (such as magnetic
door lock), it can be controlled by connecting to the relay output (JP19). Select relay on JP7
at pin selector to enable control of relay from PIC.
F. UART
PTK40A offer two options of connector with UART, which are UC00A and Cytron starter
kit. UC00A normally being uses to offer communicate between PTK40A and PC/laptop
through USB connection. Example test code will show how SKPS as Cytron starter kit used
to read analog value from joystick and display it on LCD. Rx and Tx status indicator LED
will blink on when PTK40A transmit and receive data.
G. Microcontroller
Zip socket for 40-pin of PIC microcontroller. It come with PIC16F877A.
H. Characters LCD
The 16x2 characters LCD offers character display for embedded system. It can be used to
display numerical information, text message and also special symbol. Initialization of LCD is
needed before the use of LCD. The contrast of LCD can be adjusting using the on board
preset.
I. Stepper Motor
Stepper motor is very important actuator in automation application due to its feature that
offers step-by-step rotation. There are many types of stepper motor available in the market
such as unipolar type, bipolar type, single-phase type, multi-phase type etc. Place the mini
jumpers on Unipolar/Bipolar selector to select the drive methods. At pin selector, select
PWM on JP10 for stepper motor PWM speed. Also the jumpers at Motor Driver to Stepper.
J. Motor Driver
L293D IC which is motor driver for stepper and DC motor. Place the mini jumpers on
Stepper/DC motor selector to select motor used.
K. External Driver
Besides use L293D as motor driver, external driver for stepper and DC motor also can be
used. Connect SD02B at JP26 to control stepper motor and other type of external DC motor
driver to JP27 to control DC motor.
N. SPI
SPI is other serial communications used in PTK40A. PIC acts as a master and EEPROM act
as a SPI slave. Using SPI communication, The PIC will read/write data from/to EEPROM.
Select SPI on JP3, JP5, JP6 and JP7.
O. Pin Selector
Pin selector for PTK40A Training Kit. There are some I/O pins on PTK40A which are being
shared among device. For example on JP10, buzzer pin is shared with PWM pin. On JP9,
servo is shared with SK – RST. To choose or to select buzzer, user need to place the mini
jumper on JP10 correctly.
P. Expansion Ports
Expansion ports or JP4 provided if user want to expand PTK40A to other I/O devices.
The DC brush motor included in PTK40A is a general purpose DC motor with 5V operating
voltage. The slotted encoder disc is a 1/16" thick plastic, with 1.4" outer diameter. The slotted
encoder disc has 8 spokes that enable it to provide 16 transitions. Do place the jumper to
PWM for JP10 and DC Motor for JP20 and JP21.
S. Buzzer
Buzzer is one of the digital output devices. Buzzer and PWM shared same pin in PTK40A.
To enable the control of buzzer, select BUZZER on JP10 using mini jumper.
photo-electric sensor and select the voltage for digital input at JP15.
U. LEDs
The LEDs are function as general purpose of digital output.
V. Analog Input
Analog input is designed to read analog voltage from potential meter, temperature sensor or
external analog input. Only 1 analog input can be used at the same time. Use mini jumper at
JP14 to select analog input used. JP12 is provided to connect others analog input besides
temperature sensor and potentiometer.
Please refer to PTK40A User’s Manual for the details of PTK40A usage.
Prepared by
Cytron Technologies Sdn. Bhd.
No. 16, Jalan Industri Ringan Permatang Tinggi 2,
Kawasan Industri Ringan Permatang Tinggi,
14100 Simpang Ampat,
Penang, Malaysia.
URL: www.cytron.com.my
Email: support@cytron.com.my
sales@cytron.com.my