Introduction of XL2000 experimental
system ebay
store Shipped by UPS/ to USA/worldwide, (about 3-5 days)
Experiment
19: Stepper
motor experiment Stepper motor is a kind of controlling component to
convert pulse signal to angular displacement or line displacement. In
the non-overloading situation, the motor speed and stopping location
only depend on the frequency and the number of the pulse signals. It
is not impacted by the load change. The main characteristics of stepper motor: 1.
Stepper motor must be driven with pulse signals. No
pulse, no move. If asserted with proper pulse signal, it will rotate
with a fixed angle. The speed is proportional with the frequency. 2.
This step motor is configured with 7.5 degree/pulse.
Rotating one lap needs 48 pulses. 3.
Step motor has the advantage of rapid starting and
stopping characters. change pulse direction, you can change the direction
of rotation. XL2000 package adopts 12v stepping motor, in order to
the convenience of demonstration, we provide it with a 5v power supply. The
reader can provide it with 12v. The step motor is driven by uln2003, the port is
P1.0~P1.3. clockwise
| Steps | p1.0 | p1.1 | p1.2 | p1.3 | 03h | 1 | 1 | 1 | 0 | 0 | 09h | 2 | 1 | 0 | 0 | 1 | 0ch | 3 | 0 | 0 | 1 | 1 | 06h | 4 | 0 | 1 | 1 | 0 |
| Anti-clockwise | Steps | p1.0 | p1.1 | p1.2 | p1.3 | 03h | 1 | 1 | 1 | 0 | 0 | 06h | 2 | 0 | 1 | 1 | 0 | 0ch | 3 | 0 | 0 | 1 | 1 | 09h | 4 | 1 | 0 | 0 | 1 |
|
Connection
methods: Connect step motor port (JP31) to P1.0~P1.3 port with
a 4pin line. Reference program: org 0080h loop:mov R3,#0FFh ; send -1 to 30h main:INC R3
mov a,R3 tt:
MOV
DPTR,#TAB
MOVC A,@A+DPTR
MOV P1,A
;send content to display
mov r7,#5 dec r7
lcall delay
;Delay
cjne a,#06H,main ;
| ljmp loop
; Otherwise,
clear R3
ret TAB: DB
03H,09H,0CH,06H ; stepper motor DELAY:
; Delay procedures MOV R5,#255 D3:MOV R2,#25 D4: DJNZ R2,D4 DJNZ R5,D3 RET end |
|