Nothing Special   »   [go: up one dir, main page]

PTK40A Quick Start Guide

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 16

ROBOT .

HEAD to TOE
Quick Started Guide – PTK40A

PIC Training Kit


PTK40A

Quick Start Guide


V1.2

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.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 1


ROBOT . HEAD to TOE
Quick Started Guide – PTK40A

A. POWER SUPPLY

1 Power connector

2 DC adaptor socket

3 ON/OFF Slide Switch

4 Power indicator LED

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 2


ROBOT . HEAD to TOE
Quick Started Guide – PTK40A

B. 7-SEGMENT LED DISPLAY

5 74HC4511 7-segment decoder

6 7-segment display (common cathode)

C. RC SERVO

7 RC Servo motor

D. RELAY

8 Relay

9 Relay status indicator LED

10 Terminal block for relay output

E. UIC00B PROGRAMMER

11 Integrated UIC00B Programmer to load program

F. UART

12 Socket for Cytron’s Starter Kit (SKPS, SKXBee and SKKCA)

13 Connector for UC00A, USB to UART converter to PC

14 UART VCC jumper

15 Status indicator LED for Rx and Tx

G. MICROCONTR

16 Zip socket for 40-pin PIC microcontroller

H. 16x2 CHARACTER LCD

17 16x2 Character LCD

18 Preset for LCD contrast

I. STEPPER MOTOR

19 Unipolar/Bipolar selector

20 Stepper motor connector

21 Stepper motor

J. MOTOR DRIVER

22 L293B Full Bridge IC Driver

23 Stepper/DC motor selector

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 3


ROBOT . HEAD to TOE
Quick Started Guide – PTK40A

K. EXTERNAL DRIVER

24 Connector for SD02B (Stepper motor driver)

25 Connector DC motor driver

L. INTER-INTEGRATED CIRCUIT (I2C)

26 I2C connector

27 DS1307 RTC IC

28 3V cell battery

M. USB

29 USB B Type socket

N. SERIAL PERIPHERAL INTERFACE (SPI)

30 SPI EEPROM

O. PIN SELECTOR

31 Pin selector

P. EXPANSION PORTS

32 Expansion Ports

Q. 4x4 KEYPAD & PUSH BUTTONS

33 4X4 Keypad

34 Reset button

35 Programmable switches

R. DC MOTOR & ENCODER

36 IC MCP602

37 DC motor

38 Slotted encoder disc

39 Preset for threshold

40 IR sensor

41 Status indicator LED for encoder

S. BUZZER

42 Buzzer

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 4


ROBOT . HEAD to TOE
Quick Started Guide – PTK40A

T. EXTERNAL DIGITAL INPUT

43 Voltage selector for digital input

44 External digital input connector

U. LEDs

45 LEDs

V. ANALOG INPUT

46 LM35 temperature sensor

47 Potentiometer

48 Analog selector

49 External analog input connector

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

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 5


ROBOT . HEAD to TOE
Quick Started Guide – PTK40A

B. 7 Segment LED Display


7-segment is a component that consists seven segments of lights which would display the
number from 0 to 9. 2 CD4511 are used to decode 2 units of 7-segment display.

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

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 6


ROBOT . HEAD to TOE
Quick Started Guide – PTK40A

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.

E. UIC00B USB ICSP Programmer


On board programmer (UIC00B) is utilized to download the program into PIC MCU.
UIC00B offers a convenient programming method that allow program to be loaded or
updated while the PIC MCU stays on the board. Connect mini USB cable to UIC00B and
other end of cable to PC/laptop.

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.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 7


ROBOT . HEAD to TOE
Quick Started Guide – PTK40A

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.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 8


ROBOT . HEAD to TOE
Quick Started Guide – PTK40A

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.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 9


ROBOT . HEAD to TOE
Quick Started Guide – PTK40A

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.

L. Inter-Integrated Circuit (I2C)


I2C is used in External RTC Chip, DS1307. The DS1307 serial real-time clock (RTC) is a
low-power, full binary-coded decimal (BCD) clock/calendar plus 56 bytes of NV SRAM
chip. Using I2C communication, PTK40A will display current date, hours and day. At pin
selector, select I2C on JP5 and JP3 using mini jumper

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 10


ROBOT . HEAD to TOE
Quick Started Guide – PTK40A

M. USB B Type Socket


USB is used for communication between PC/laptop and PTK40A Training Kit. Connect USB
B type cable to JP11 and other end of cable to PC/laptop. On JP3, JP5 and JP6, select USB
using mini jumper. Only PIC18F family offer USB peripheral, PIC16F877A do not support
USB peripheral. Please change to PIC18F4550 to support USB communication.

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.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 11


ROBOT . HEAD to TOE
Quick Started Guide – PTK40A

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.

Q. 4x4 Keypad and Push Buttons


The 4 x 4 keypad is attached on the PCB for the ease of users to key in the numbers. SW1,
SW2 and SW3 are programmable switches.

R. DC Motor & Encoder

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 12


ROBOT . HEAD to TOE
Quick Started Guide – PTK40A

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.

T. External Digital Input


Offers option for external digital input. User may connect additional digital input such as

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 13


ROBOT . HEAD to TOE
Quick Started Guide – PTK40A

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.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 14


ROBOT . HEAD to TOE
Quick Started Guide – PTK40A

Please refer to PTK40A User’s Manual for the details of PTK40A usage.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 15


ROBOT . HEAD to TOE
Quick Started Guide – PTK40A

Prepared by
Cytron Technologies Sdn. Bhd.
No. 16, Jalan Industri Ringan Permatang Tinggi 2,
Kawasan Industri Ringan Permatang Tinggi,
14100 Simpang Ampat,
Penang, Malaysia.

Tel: +604 - 504 1878


Fax: +604 - 504 0138

URL: www.cytron.com.my
Email: support@cytron.com.my
sales@cytron.com.my

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 16

You might also like