Stepper motor problem again
Archiver
Posts: 46,084
Sending it again with the proper subject name.
- SAndesh
Original Message
From: <firsttime@a...>
To: <basicstamps@yahoogroups.com>
Sent: Wednesday, July 21, 2004 10:01 PM
Subject: Re: [noparse][[/noparse]basicstamps] EEPROM is FULL
> Hi,
>
> This is the part of the program available on parallax site. I am having
> difficulty understanding it. If P4 is connected to phase 1 and P5 is
> connected to Phase 2 and so on. What should happen to the stepper motor?
>
> Thanks
>
> Sandesh
>
> ' {$STAMP BS2}
> Coils VAR OUTB
>
> sAddr VAR Byte
> x VAR Byte
>
> Step1 DATA %1100
> Step2 DATA %0110
> Step3 DATA %0011
> Step4 DATA %1001
>
> Initialize:
> DIRB = %1111
>
> Main:
> FOR x = 1 TO 100
> GOSUB Step_Fwd
> NEXT
> PAUSE 5
>
> Step_Fwd:
> sAddr = sAddr + 1 // 4
> READ (Step1 + sAddr), Coils
> PAUSE 5
> RETURN
>
- SAndesh
Original Message
From: <firsttime@a...>
To: <basicstamps@yahoogroups.com>
Sent: Wednesday, July 21, 2004 10:01 PM
Subject: Re: [noparse][[/noparse]basicstamps] EEPROM is FULL
> Hi,
>
> This is the part of the program available on parallax site. I am having
> difficulty understanding it. If P4 is connected to phase 1 and P5 is
> connected to Phase 2 and so on. What should happen to the stepper motor?
>
> Thanks
>
> Sandesh
>
> ' {$STAMP BS2}
> Coils VAR OUTB
>
> sAddr VAR Byte
> x VAR Byte
>
> Step1 DATA %1100
> Step2 DATA %0110
> Step3 DATA %0011
> Step4 DATA %1001
>
> Initialize:
> DIRB = %1111
>
> Main:
> FOR x = 1 TO 100
> GOSUB Step_Fwd
> NEXT
> PAUSE 5
>
> Step_Fwd:
> sAddr = sAddr + 1 // 4
> READ (Step1 + sAddr), Coils
> PAUSE 5
> RETURN
>