Shop OBEX P1 Docs P2 Docs Learn Events
SEROUT and Motor Mind B Help — Parallax Forums

SEROUT and Motor Mind B Help

bkibabkiba Posts: 17
edited 2007-10-18 22:27 in BASIC Stamp
I always have trouble formatting the information I send out with the SEROUT command.· Can someone please assist:

This is what I'm trying

0 is the baud mode for BS1 2400 baude
85 is the sync command in decimal
3 is the command for setdc or running the motor basically
and speed is a byte from 0-255 for the speed

I can't get the motor to run at all and I don't have any idea if the motor mind is reciving the info.

I have debug lines so I know the BS1 is getting past the serout command.· I also check the pins of the motor mind and I know that it is getting power, etc.· I've tested the motor seperatley with the power supply an it works

SEROUT 7, 0, (#85,#3, speed )

Comments

  • tabbotttabbott Posts: 26
    edited 2007-10-18 22:27
    If you wanted the Ascii code for 8, 5, 3 then the binary number 'speed' sent, that is correct. But what you want is binary for all fields.
    Use: SEROUT (85,3,speed)

    Hope that helps
Sign In or Register to comment.