6.DC Motor Interface

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 51

14054-MICROCONTROLLER LAB KIT MANUAL

Arrow Focus Technology Ph : 91-422-3043010, 3091914


11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

6. DC_MOTOR_Interface.

Mother board ckt for DC motor interface

U 3
J9 VC C
P 1 _ I/O R 7 10K VC C

1
2 1 40 R 8 10K

1
1 3 2 P 1 .0 /T 2 VC C 39 2
2 4 3 P 1 .1 /T 2 -E X P 0 .0 /A D 0 38 3
3 5 4 P 1 .2 P 0 .1 /A D 1 37 4
4 6 5 P 1 .3 P 0 .2 /A D 2 36 5
G N D
VC C

5 7 6 P 1 .4 /S S P 0 .3 /A D 3 35 6
6 8 7 P 1 .5 /M O S I P 0 .4 /A D 4 34 7
7 9 8 P 1 .6 /M IS O P 0 .5 /A D 5 33 8
8 P 1 .7 /S C K P 0 .6 /A D 6
1

C 9 32 9
C
9 1 0 R ST P 0 .7 /A D 7 31 C
1 8 1 1 P 3 .0 /R XD E A /V P P 30 VC C
2 7 1 2 P 3 .1 /T XD A L E /P R O G 29

1
PW M _ M O T O R _C O N

PWM DC IN 3 6 1 3 P 3 .2 /IN T O PSEN 28 2


3 SPEED_1_SW 4 5 1 4 P 3 .3 /IN T 1 P 2 .7 /A 1 5 27 3
4 SPEED_2_SW 5 4 1 5 P 3 .4 /T O P 2 .6 /A 1 4 26 4
5 SPEED_3_SW 6 3 1 6 P 3 .5 /T 1 P 2 .5 /A 1 3 25 5
6 SPEED_4_SW 7 2 1 7 P 3 .6 /W R P 2 .4 /A 1 2 24 6
7 8 R 9 10K 1 8 P 3 .7 /R D P 2 .3 /A 1 1 23 7
P 3 _ I/O 1 9 XTA L2 P 2 .2 /A 1 0 22 8
J12 2 0 XTA L1 P 2 .1 /A 9 21 9
VC C
p ro g /ru n /s w

G N D P 2 .0 /A 8
1

VC C C
SW 1

8 Q 1 10K R 10
2
J11

9 +12V 1 1 .0 5 9 2 M h z A T89S 52
10
VC C
SW 2
1 0 M F /2 5 V

C 9
1
1

+ C 10 C 11
R ESET

R S T -S W

30PF 30PF

R 11
2

8 .2 K
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

DC motor Interface circuit board

VC C _+5V

J21 J22
U 10
1

U 11
PWM DC IN P W M D C IN 2 1 8 1 1 6

D C M O T O R 12V
3 3 3 A 1 Y 1 1 7 2 1I 1O 1 5
-

1
1N 4007 D 28
4 A 2 Y 2 1 6 3 2I 2O 1 4
5 A 3 Y 3 1 5 4 3I 3O 1 3
A

M G 1
6 A 4 Y 4 1 4 5 4I 4O 1 2
PW M _ M O T O R _C O N _EXT R A

7 A 5 Y 5 1 3 6 5I 5O 1 1
8 A 6 Y 6 1 2 7 6I 6O 1 0
+
PW M _ M O T O R _C O N

A 7 Y 7 7I 7O

2
9 1 1 8 9 +12V
A 8 Y 8 G N D +12V

1
1 U LN 2003
19 G 1
10 G 2 20 VC C _+5V
G N D VC C

74H C T540

+ 3 .3 V _ B
1
SPEED_1_SW SPEED _1_SW 2 SW 61
4 4 3 SPEED _1
R 67
1

1 2
SPEED_2_SW SPEED _2_SW 2 SW 63 3
5 5 3 SPEED _2 4
5
6
1 7
SPEED_3_SW SPEED _3_SW 2 SW 66 8
6 6 3 SPEED _3 9
10k C

1
SPEED_4_SW SPEED _4_SW 2 SW 67
7 7 3 SPEED _4
+3.3V_B + 3 .3 V _ B
8 8
9 9 +12V
10 10
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Open the keil uvision3.LNK.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 You will get a window as shown below.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Click Project -> New Project.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Select the location of the project.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Create a new folder for projects.

 Click open after creating the folder.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Create separate folders for individual projects.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Create separate folders for individual projects.

 Click open.
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Create a new project for example: DC Motor.

 Click save.
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 You will get a window like this.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Select Atmel.
 Click the plus (+) symbol that is in the left of Atmel .
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Select AT89s52 from the list.

 Click ok after selecting AT89s52.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 You will get a window like this.

 Click yes.
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 You will get a window like this.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Click File -> New.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Text pad will be opened.


 This was used to type program.
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Type the DC motor program in the text pad.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Click File -> save .


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Save the program for example: DC motor. c.

 Click save.
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Click the plus sign in the right side of Target 1 in the project work space
window.
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Click the plus sign in the right side of Source Group 1 in the project work space
window.
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Right Click the Source Group 1 in the project work space window.

 Select Add Files to Group ‘Source Group 1’.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 You will get a window like this.


 Select the already created C File Example : Traffic

 After selecting Click ADD.


 Click close after adding the file.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Dc motor . c program gets added to your project as shown below.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Click Options for Target Button (Left side of Target 1 indicated in yellow).
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 You will get the Option for Target ‘Target 1’ Window as shown below.
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Click output Tab from that window.


 You will get a window like this.

 You can see that create Hex file check box was disabled..
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Enable that check box as shown below.

 Click Ok after enabling.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Click Save for saving.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Click on Rebuilt all target files button. ( Third from left corner indicated in
yellow)
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 You will get the error messages at the bottom of the slide as indicated in blue.
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Open the ISP_PROG v1.3.exe from the location where you saved
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Select Option - > Settings as shown below.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Select the com port that you connected using the serial cable.

 Click Ok.
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Click options -> Device.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Select AT89s52.
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Click ok.

 Click on Read device signature.

 Click on RUN.
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 You can see the device specification connected to the Serial port in the
MESSAGES BOX.
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Click on Load Flash file.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Click on RUN.

 Select the Hex file of your project from the folder you saved.
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 You can see the Hex file selected in the below slide.
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Click open.

 Click RUN.
 You can see the HEX file READ operation.
14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Click CHIP ERASE.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Click RUN.

 Click WRITE FLASH.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

 Click RUN.

 The HEX File will be written into the AT89s52 Microcontroller.


14054-MICROCONTROLLER LAB KIT MANUAL
Arrow Focus Technology Ph : 91-422-3043010, 3091914
11-P, G.J. Chandran Complex, Tel/Fax: 91-422-2306818
Head Quarters Road, Coimbatore-641018 E-mail: arrowfocustechnology@yahoo.com

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy