View Index by Level
RANDOM PAGE

SITE SEARCH

LOG
IN

SIGN UP

HELP

Picaxe Stepper Motor


This is the AQA version closing after June 2019. Visit the the version for Eduqas instead.

To gain access to revision questions, please sign up and log in.

A2

Stepper Motor Driver

This driver is suitable for small stepper motors with four separate coils. The H-Bridge driver is better for bipolar stepper motors.

PX Stepper CCT.gif

Code to Spin in Whole Steps

start:
    movw    0x01
    movwr   portb
    call    wait100ms
    call    wait100ms
    call    wait100ms

    movw    0x02
    movwr   portb
    call    wait100ms
    call    wait100ms
    call    wait100ms

    movw    0x04
    movwr   portb
    call    wait100ms
    call    wait100ms
    call    wait100ms

    movw    0x08
    movwr   portb
    call    wait100ms
    call    wait100ms
    call    wait100ms

    jmp     start 

PX Stepper.jpg

TASK: Write Code to Spin in Half Steps

TASK: Write Code to Spin Anticlockwise

TASK: How fast can you spin the motor before it stalls?

 

 

 

reviseOmatic V3     Contacts, ©, Cookies, Data Protection and Disclaimers Hosted at linode.com, London