Shop OBEX P1 Docs P2 Docs Learn Events
BS2 BS2P first steps — Parallax Forums

BS2 BS2P first steps

ArchiverArchiver Posts: 46,084
edited 2002-08-27 22:04 in General Discussion
Hello,
I'm using a BS2 to control a mini sscII servo controller.

When I put on the socket a BS2 the servo attached to the
minicontroller is working properly.

But when I replace the BS2 by the BS2P on the socket, the green led
on the mini sscII remains always green. And nothing happens when a
command is sent from the BS2P to the mini sscII. The servo doesn't
move. The only think change is the Basic Stamp on the socket.

Is the code different between the BS2 and BS2P ?
Thanks for your help.

This is the code :
'{$STAMP BS2p}
svo con 0 'use servo 0
sync con 255 'Mini SSC sync byte
pos var byte 'Byte variable holds position value
BtnWrk var byte
x var byte
n96n con $4054

pos = 165:serout 10,n96n,[noparse][[/noparse]sync,svo,pos]
pause 1000
pos = 2:serout 10,n96n,[noparse][[/noparse]sync,svo,pos]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-08-27 22:04
    try changing
    n96n con $4054
    to
    n96n con $40f0

    That should fix it, or at least its a start.



    Original Message
    From: "mariobarp" <mario.barp@e...>
    To: <basicstamps@yahoogroups.com>
    Sent: Tuesday, August 27, 2002 3:58 PM
    Subject: [noparse][[/noparse]basicstamps] BS2 BS2P first steps


    > Hello,
    > I'm using a BS2 to control a mini sscII servo controller.
    >
    > When I put on the socket a BS2 the servo attached to the
    > minicontroller is working properly.
    >
    > But when I replace the BS2 by the BS2P on the socket, the green led
    > on the mini sscII remains always green. And nothing happens when a
    > command is sent from the BS2P to the mini sscII. The servo doesn't
    > move. The only think change is the Basic Stamp on the socket.
    >
    > Is the code different between the BS2 and BS2P ?
    > Thanks for your help.
    >
    > This is the code :
    > '{$STAMP BS2p}
    > svo con 0 'use servo 0
    > sync con 255 'Mini SSC sync byte
    > pos var byte 'Byte variable holds position value
    > BtnWrk var byte
    > x var byte
    > n96n con $4054
    >
    > pos = 165:serout 10,n96n,[noparse][[/noparse]sync,svo,pos]
    > pause 1000
    > pos = 2:serout 10,n96n,[noparse][[/noparse]sync,svo,pos]
    >
    >
    >
    >
    > 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/
    >
    >
    >
    >
Sign In or Register to comment.