motor program help
Archiver
Posts: 46,084
I'm making a robot using a basic stamp rev. D and micro motor controller and
everything appears to be hooked up correctly but its not working and I think it
is because of the program.
this code is used to test the motors.
symbol speed = b1
low 0
high 0
for speed = 0 to 127
serout 6,N2400, ($80,0,0,speed)
pause 20
next
for speed = 127 to 0
serout 6,N2400, ($80,0,0,speed)
pause 20
next
for speed = 0 to 127
serout 6, N2400, ($80,0,1,speed)
pause 20
next
for speed = 127 to 0
serout 6, N2400, ($80,0,1,speed)
pause 20
next
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
[noparse][[/noparse]Non-text portions of this message have been removed]
everything appears to be hooked up correctly but its not working and I think it
is because of the program.
this code is used to test the motors.
symbol speed = b1
low 0
high 0
for speed = 0 to 127
serout 6,N2400, ($80,0,0,speed)
pause 20
next
for speed = 127 to 0
serout 6,N2400, ($80,0,0,speed)
pause 20
next
for speed = 0 to 127
serout 6, N2400, ($80,0,1,speed)
pause 20
next
for speed = 127 to 0
serout 6, N2400, ($80,0,1,speed)
pause 20
next
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
[noparse][[/noparse]Non-text portions of this message have been removed]
Comments
wrote:
> I'm making a robot using a basic stamp rev. D and micro motor
controller and everything appears to be hooked up correctly but its
not working and I think it is because of the program.
>
> this code is used to test the motors.
>
> symbol speed = b1
> low 0
> high 0
> for speed = 0 to 127
> serout 6,N2400, ($80,0,0,speed)
> pause 20
> next
> for speed = 127 to 0
in BS1 you must specify STEP -1 ( per editor doc)
> serout 6,N2400, ($80,0,0,speed)
> pause 20
> next
> for speed = 0 to 127
> serout 6, N2400, ($80,0,1,speed)
> pause 20
> next
> for speed = 127 to 0
> serout 6, N2400, ($80,0,1,speed)
> pause 20
> next
>
>
>
>
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
aa7ej <aa7ej@y...> wrote:--- In basicstamps@yahoogroups.com, Kyle Cooper
wrote:
> I'm making a robot using a basic stamp rev. D and micro motor
controller and everything appears to be hooked up correctly but its
not working and I think it is because of the program.
>
> this code is used to test the motors.
>
> symbol speed = b1
> low 0
> high 0
> for speed = 0 to 127
> serout 6,N2400, ($80,0,0,speed)
> pause 20
> next
> for speed = 127 to 0
in BS1 you must specify STEP -1 ( per editor doc)
> serout 6,N2400, ($80,0,0,speed)
> pause 20
> next
> for speed = 0 to 127
> serout 6, N2400, ($80,0,1,speed)
> pause 20
> next
> for speed = 127 to 0
> serout 6, N2400, ($80,0,1,speed)
> pause 20
> next
>
>
>
>
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and Body of
the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
[noparse][[/noparse]Non-text portions of this message have been removed]