Welcome to hificat.com ---- HANGZHOU KinCony ELECTRONICS CO.,LTD.
About Us Contact Us          Our Patents Our Articles        Forum      SiteMap    Chinese Version

Chapter 1. Overview Chapter 2. Emulation Guide Chapter 3. Build Your First Project Chapter 4. In System Programming
Chapter 5. USB Interface Installation Chapter 6. LED Display Application Chapter 9. FAQ Chapter 10. System Configuration and Service
 
Chapter 7. Basic Experiments
7.1. Experiment with LED 7.2. Experiment with Flowing LEDs 7.3. Experiment with Keys 7.4. Experiment with Beeper
7.5. Experiment with Relay 7.6. Experiment with LED Display 7.7. Experiment with Serial Port  
 
8.1. Experiment with Matrix Key 8.2. Experiment with Stepping Motor 8.3. Experiment with 1-Wire Digital Thermometer DS18B20
8.4. Experiment with 24C01 EEPROM 8.5. Experiment with 93C46 Serial EEPROM 8.6. Experiment with DS1302 Real-time Clock
8.7. Experiment with 8-bit Serial AD Converter ADC0832 8.8. Experiment with 1602 Character LCD Module 8.9. Experiment with 12864 Graphic LCD
8.10. Experiment with Infra-red Remote Controller 8.11. Experiment with Wireless Encoding Module Chapter 11. User Feedback

Chapter 8. Advanced Experiments

8.2. Experiment with Stepping Motor

Recently, loop pulse distributor is used to control the stepping motor. The loop pulse distributor can be composed by discrete devices, controlled by software, or dedicated integrated circuit.

Generally, a full stepping motor controlling system consists of controller, driver and motor, like the below diagram.

 

controller driver motor


Excitation Mode of Stepping Motor

Usually, there are 3 excitation modes: 1 phase excitation, 2 phase excitation and 1-2 phase excitation. 1 phase mode is the easiest, but generates least torque. 2 phase mode generates better torque. 1-2 phase mode is a half-step mode, that is, the rotation angle is half the former 2 modes.

1 phase excitation

number of steps

A

B

/A

/B

1

1

0

0

0

2

0

1

0

0

3

0

0

1

0

4

0

0

0

1

5

1

0

0

0

6

0

1

0

0

7

0

0

1

0

8

0

0

0

1

 

2 phase excitation

number of steps

A

B

/A

/B

1

1

1

0

0

2

0

1

1

0

3

0

0

1

1

4

1

0

0

1

5

1

1

0

0

6

0

1

1

0

7

0

0

1

1

8

1

0

0

1

 

1-2 phase excitation

number of steps

A

B

/A

/B

1

1

0

0

0

2

1

1

0

0

3

0

1

0

0

4

0

1

1

0

5

0

0

1

0

6

0

0

1

1

7

0

0

0

1

8

1

0

0

1

Stepping Motor Driving Circuit

The small stepping motor used in this section has no special requirements on driving voltage or current. Improvement must be taken when stepping motor is used in industrial design. The below picture shows the general driving circuit.

Most often, more than 1 driver is needed in practical applications. The above circuit requires many components, and space on PCB boards. Integrated circuits like ULN2003, ULN2803 are a better solution for multiple drivers.

K8MDP contains ULN2003, which is high voltage, high current darlington arrays each containing seven open collector darlington pairs with common emitters. Each channel rated at 500mA and can withstand peak currents of 600mA. Suppression diodes are included for inductive load driving and the inputs are pinned opposite the outputs to simplify board layout. It is useful for driving a wide range of loads including solenoids, relays DC motors, LED displays filament lamps, thermal print heads and high power buffers.

Schematic diagram of ULN2003 is shown at below pictures.

Below shows the classic application circuit with ULN2003.

Software Design for Stepping Motor

Functions: motor will rotate clockwise at system power on, it rotates counter-clockwise when key SW20 is depressed.

Loop pulse table for clockwise rotation:

number of steps

P00

P01

P02

P03

A

B

/A

/B

1

1

1

0

0

2

0

1

1

0

3

0

0

1

1

4

1

0

0

1

Loop pulse table for counter-clockwise rotation:

number of steps

P00

P01

P02

P03

A

B

/A

/B

1

1

1

0

0

2

1

0

0

1

3

0

0

1

1

4

0

1

1

0

Schematic Diagram

Program Flow Chart



COPYRIGHT2003--2008 HANGZHOU KinCony ELECTRONICS CO.,LTD. All Rights Reserved

Add:Rm 11-3-702, Pujing Jiayuan, Gongshu District, Hangzhou, Zhejiang, China.
Tel:+86-0571-85956028,Fax:+86-0571-88230070 E-mail: hificat@163.com  ICQ:164806453  Webmaster:Hificat