0% found this document useful (0 votes)
2 views20 pages

Robotic User Manual

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 20

P ROLIFIC

Embedded Systems

Robotic Kit’s
User Manual

Prolific Systems & Technologies Pvt. Ltd.


202, Suchita Industrial Estate,
Pokhran road no.-2,opp. Oswal Park,
Thane (West).
Pin-400601.
Tel.no. - 022-25443307,25437170.
www.prolifictraining.com

1
P ROLIFIC
Embedded Systems

Table of contents

1. Introduction

2. IC Description

3. Connectors Description

4. Switches and Jumper Setting

5. Getting Started

6. Using Keil C Cross Complier

7.Using Flash Magic

2
P ROLIFIC
Embedded Systems

1. Prolific’s Robotic kit.


2. Serial communication cable.
3. Power Adaptor.
4. CD.

Getting started
1. Getting familiar with the Prolific’s Embedded kit.
The various IC’s used are as per the following.

IC DESCRIPTION
U8
7805 U9 U1
7806 89v51rd2 U5 U6 U4
ADC0808 PCF8591 7407

U7
LM336

U3 U2
L293D RS232
3
P ROLIFIC
Embedded Systems

IC Details

U1 P89V51RD2 8051 Micro-controller Philips

U2 MAX232 RS232 Communication Driver IC

U3 L293D Driver for DC Motor

U4 7407 Buffer

U5 ADC0808 Parallel ADC

U6 PCF8591 I2C ADC/DAC

U7 LM336 Adjustable Voltage regulator

U8 LM7805 5V Regulator IC

U9 LM7806 6V Regulator IC

4
P ROLIFIC
Embedded Systems

2. The next that we must know is the connector’s detail description.

CON3 CON4 CON9 CON10 CON11 CON12

CON13

CON14

CON1 CON2 CON5 CON6 CON7 CON8

5
P ROLIFIC
Embedded Systems

CONNECTORS DESCRIPTION
CON1 DC MOTOR1

CON2 DC MOTOR2

CON3 TOUCH SENSOR1

CON4 TOUCH SENSOR2

CON5 SERVO MOTOR1

CON6 SERVO MOTOR2

CON7 RS-232

CON8 STEPPER MOTOR

CON9 ANALOG IN

CON10 ANALOG IN

CON11 ANALOG IN

CON12 ANALOG IN

CON13 ANALOG IN

CON14 ANALOG IN

CON15 ANALOG OUT

CON16 SYSTEM POWER

CON17 SERVO POWER

CON18 STEPPER POWER

CON19 DC MOTOR POWER

6
P ROLIFIC
Embedded Systems

Switches, Jumpers & Test Points


Description

TP1

TP3

TP4

TP6

TP5

TP2

J1

7
P ROLIFIC
Embedded Systems

Switches, Jumpers & Test Points


Description

J1 BUZZER 1-2 P1.5


2-3 BUZZER

TP1 ADC OSC OUT

TP2 ANALOG GND

TP3 GND

TP4 SERVO GND

TP5 DC GND

TP6 STEPPER GND

8
P ROLIFIC
Embedded Systems

Now that we have understood the placement of the components lets us begin working
with it.

Step 1:

Take out Robotic Kit and connect the male counter part of the serial communication
cable to the DB9 connector (CON7) of the kit. The other end of the cable is to be
connected to the communication port (Normally COM1) of the PC.

Step 2:

Take the power adaptor and connect the DC Jack connector to the SYSTEM PWR jack
on kit. Plug the other end of the connector to the 230v AC mains. If u wants to drive the
DC motor you have to take one more power supply, connect the DC Jack to DC
MOTOR jack.

Motor Adaptor1 Adaptor2


DC motor SYSTEM PWR DC motor Jack
Stepper motor SYSTEM PWR STEPPER Jack
Servo motor SYSTEM PWR SERVO Jack

Step3.

Once the connections is set up. Turn on the supply you must see power on led glow
indicating the proper power supply for the kit.

Step4.
Connect the desire motor to the appropriate connector. And follow steps form (HOW
TO WRITE THE SOFTWEAR DRIVER USING KEIL IDE) and (HOW
TO DOWNLOAD THE PROGRAM USING FLASH MAGIC) for
programming and downloading the program to the kit.

9
P ROLIFIC
Embedded Systems

HOW TO WRITE THE SOFTWEAR DRIVER USING “KEIL IDE”.

Getting Started.
To Run and Download the Program please follows these steps.

Step 1.

Install the Keil Demo Software by running the set up file giving the CD.
Open the folder with the name Emb_instl in the CD.
Inside the folder you will see the folder with the name Keil double click on it and run the
set up.
Step 2.

Start µVision

µVision is a standard Windows application and started by clicking on the program icon.

Create a Project File

To create a new project file select from the µVision menu Project – New Project….
This opens a standard Windows dialog that asks you for the new project file name. We
suggest that you use a separate folder for each project. You can simply use the icon
Create New Folder in this dialog to get a new empty folder. Then select this folder and
enter the file name for the new project, i.e. Project1. µVision creates a new project file
with the name PROJECT1.UV2 which contains a default target and file group name.
You can see these names in the Project Workspace – Files.

Select a Device

When you create a new project µVision ask you to select a CPU for your project. The
Select Device dialog box shows the µVision device database. Just select the
Microcontroller you use. We are using for our examples the Philips 8xC51RD+
controller. This selection sets necessary tool options for the 8xC51RD+ device and
simplifies in this way the tool configuration.

10
P ROLIFIC
Embedded Systems

Note

• You may select the Extended Linker (LX51) and Extended Assembler (AX51)
in this dialog. The extended Linker and Assembler is available in the Keil
Professional Developer's Kit and gives you additional features such as variable
banking or user class names.
• When you create a new project, µVision may automatically add the correct device
specific CPU startup code for you.
• On some devices, the µVision environment needs additional parameters that you
have to enter manually. Please carefully read the information provided under
Description in this dialog, since it might have additional instructions for the
device configuration.

Once you have selected a CPU from the device database you can open the user manuals
for that device in the Project Workspace – Books page. These user manuals are part of
the Keil Development Tools CD-ROM that should be present in your CD drive.

11
P ROLIFIC
Embedded Systems

Create a new source file

You may create a new source file with the menu option File – New. This opens an empty
editor window where you can enter your source code. µVision enables the C color syntax
highlighting when you save your file with the dialog File – Save As… under a filename
with the extension *.C. We are saving our example file under the name main.c.

Once you have created your source file you can add this file to your project. µVision
offers several ways to add source files to a project. For example, you can select the file
group in the Project Workspace – Files page and click with the right mouse key to open
a local menu. The option Add Files opens the standard files dialog. Select the file
MAIN.C you have just created.

12
P ROLIFIC
Embedded Systems

Set Tool Options for Target

µVision lets you set options for your target hardware. The dialog Options for Target
opens via the toolbar icon or via the Project - Options for Target menu item. In the
Target tab you specify all relevant parameters of your target hardware and the on-chip
components of the device you have selected. The following the settings for our example
are shown.

13
P ROLIFIC
Embedded Systems

Build Project and Create a HEX File

Typical, the tool settings under Options – Target are all you need to start a new
application. You may translate all source files and line the application with a click on the
Build Target toolbar icon. When you build an application with syntax errors, µVision
will display errors and warning messages in the Output Window – Build page. A double
click on a message line opens the source file on the correct location in a µVision editor
window.

14
P ROLIFIC
Embedded Systems

Now you may modify existing source code or add new source files to the project. The
Build Target toolbar button translates only modified or new source files and generates
the executable file. µVision maintains a file dependency list and knows all include files
used within a source file. Even the tool options are saved in the file dependency list, so
that µVision rebuilds files only when needed. With the Rebuild Target command, all
source files are translated, regardless of modifications.

After you have tested your application, it might be required to create an Intel HEX file
and to download the application software into the physical device using a Flash
programming utility. µVision creates HEX files with each build process when Create
HEX file under Options for Target – Output is enabled. The Merge32K Hex file
option is available for Code Banking Applications when you have selected the Extended
Linker LX51. You may start your Flash programming utility after the make process when
you specify the program under the option Run User Program #1.

15
P ROLIFIC
Embedded Systems

Once the hex file is created you can download it using another software Flash magic

16
P ROLIFIC
Embedded Systems

HOW TO DOWNLOAD THE PROGRAM USING “FLASH MAGIC”


Kindly follow the following instructions to download .hex file from PC to KIT.

1. Attach RS 232 (Serial cable which is provided along with kit) to the kit and PC’s
COM1 port.
2. Power ON the Kit with the Adapter provided.
3. RED Led should turn ON.
4. RUN the Setup of Flash Magic Software.
5. The Setup file is provided in the CD.
6. Open the CD
7. You will see three folders with the name “Emb_Instl”
8. Double Click on the folder named “Emb_instl”
9. You will see various folders and two Setup files with the name Flash Magic.
10. Double Click on Flash Magic
11. Follow the instructions to complete the setup
12. Once setup is completed open the flash magic software.
13. It should look something like this

14. Select the COM Port where you have attached your kit to PC.
15. Usually COM1 Port is the only one, which is available on PC.
16. Select that as in the above picture
17. Select the Baud Rate as 9600 as in the next picture

17
P ROLIFIC
Embedded Systems

18. Once Baud Rate is selected now Select the device ours is 89V51RD2.
19. The device is last in the drop down list as in the next picture.

20. Now tick on Erase all flash block on the right hand side, which you can see in the
picture.
21. Now Click on Browse option to select .hex file
22. You will find .hex file in the “robo_prog” folder
23. Select dcmtr.hex file as you can see in the picture below.

18
P ROLIFIC
Embedded Systems

24. Once proper file is selected now tick on Verify after programming as you can see
in the above picture
25. Next click on start as soon as you click on start the following message will appear
on the screen.

19
P ROLIFIC
Embedded Systems

26. Now press the RED Key provided in the Kit.


27. The program will get downloaded.
28. You can see in the above picture at the Bottom left corner there is a message
called “Attempting to connect”
29. Once program is getting downloaded the above message will change and finally
30. The message “finished” can be seen there
31. Once finished now again click on RED key in the KIT to see the output of the
program.

So now you are ready to explore all new world of programming Micro-controller and
understanding Embedded Systems.

20

You might also like