Shop OBEX P1 Docs P2 Docs Learn Events
Dc motor controll w/bs2sx — Parallax Forums

Dc motor controll w/bs2sx

ArchiverArchiver Posts: 46,084
edited 2001-12-08 22:57 in General Discussion
I have sent two messages inorder to find out how to program the bs2sx
to control two dc motors and as yet have not seen any resonse.
""are there anyone one out thier who has worked on this type of a
program or am i trying to find infor on the wrong group""

mybe i am the only one working on this type of project??

Please help!!

Op

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-12-07 15:01
    Lots of folks here work on motors. However, what are the specifics? Are
    these servos or ordinary DC motors? In your last message (I only saw 1)
    you mention servo motors, but it wasn't really clear what you wanted to
    do. The R/C receiver outputs a pulse that is probably about 1.5mS long
    for the servos to be in center position. You could simulate this with
    the BS2SX's PULSOUT command. Is that what you are asking?

    Al Williams
    AWC
    * Control 8 servos at once
    http://www.al-williams.com/awce/pak8.htm

    >
    Original Message
    > From: kuek24523 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ba48HRKjfVfPrIDVk3uClDzm3dMscTf9aOBczvN_xO3Owea6Ee3xv-by09-jB9OCnpDAdOw3]ops-@p...[/url
    > Sent: Friday, December 07, 2001 8:55 AM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] DC MOTOR CONTROLL W/BS2SX
    >
    >
    > I HAVE SENT TWO MESSAGES INORDER TO FIND OUT HOW TO PROGRAM THE BS2SX
    > TO CONTROL TWO DC MOTORS AND AS YET HAVE NOT SEEN ANY
    > RESONSE. ""ARE THERE ANYONE ONE OUT THIER WHO HAS WORKED ON
    > THIS TYPE OF A
    > PROGRAM OR AM I TRYING TO FIND INFOR ON THE WRONG GROUP""
    >
    > MYBE I AM THE ONLY ONE WORKING ON THIS TYPE OF PROJECT??
    >
    > PLEASE HELP!!
    >
    > OP
    >
    >
    > 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/
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-07 15:15
    What type of motor control are you looking for...
    off/on control?
    forward/reverse?
    variable speed?

    What device(s), if any, do you have planned for between the Stamp and the
    motors?

    What are the motor characteristics (volts, amps)?

    Regards,
    Daniel

    >
    Original Message
    > From: kuek24523 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=RPAokijxfVC7s4M0-T8intGJacSJU89iwQNoFuKYHVSVQyAajxbD6nacAttanLu1TSyTg5TTm6k]ops-@p...[/url
    > Sent: Friday, 07 December 2001 09:55
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] DC MOTOR CONTROLL W/BS2SX
    >
    >
    > I HAVE SENT TWO MESSAGES INORDER TO FIND OUT HOW TO PROGRAM THE BS2SX
    > TO CONTROL TWO DC MOTORS AND AS YET HAVE NOT SEEN ANY RESONSE.
    > ""ARE THERE ANYONE ONE OUT THIER WHO HAS WORKED ON THIS TYPE OF A
    > PROGRAM OR AM I TRYING TO FIND INFOR ON THE WRONG GROUP""
    >
    > MYBE I AM THE ONLY ONE WORKING ON THIS TYPE OF PROJECT??
    >
    > PLEASE HELP!!
    >
    > OP
    >
    >
    > 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!?
    Get your free @yahoo.com address at http://mail.yahoo.com
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-07 15:19
    Was your original question specific enough for someone to answer?
    Why not fine tune it and try again...
    Now, what exactly are you trying to accomplish?
    CL

    >
    >
    > I HAVE SENT TWO MESSAGES INORDER TO FIND OUT HOW TO PROGRAM THE BS2SX
    > TO CONTROL TWO DC MOTORS AND AS YET HAVE NOT SEEN ANY RESONSE.
    > ""ARE THERE ANYONE ONE OUT THIER WHO HAS WORKED ON THIS TYPE OF A
    > PROGRAM OR AM I TRYING TO FIND INFOR ON THE WRONG GROUP""
    >
    > MYBE I AM THE ONLY ONE WORKING ON THIS TYPE OF PROJECT??
    >
    > PLEASE HELP!!
    >
    > OP
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-07 16:23
    Hi Al,

    Thanks for your reply to my e-mail. I have had a very hard time finding out
    how to program the BS2sx to run the robot I built.

    Here is the story on what I am trying to do. I have a robot that runs on
    two Wiper Motors that run about 3 amps per motor. Currently I am operarting
    the robot by a R/C system which is connected to a Basic Stamp !.

    The R/C system (same as used in model airplanes) sends a signial to run
    servos but rather than the output of the R/C receiver going to two servos
    the two channels go to the Basic Stamp I which converts the servo inputs to
    be used to run the DC motors.

    The setup for the Basic Stamp 1 is the stamp is connected to a UNL2003A
    driver which is connected to the 4 relays whch control the voltage to the DC
    Motors. This all works very well but now comes the problem.

    I have installed a second stamp to the system witch is the BS2sx. The
    reason I installed the second stamp as I needed more I/O ports for other
    operations. One of the operation is to run the robot byway of IR sensors.
    I developed a program that will work with my Boe-Bot that have 2 servos as
    the driving motors so what I want to do is instead of running the Basic
    Stamp byway of the R/C receiver, I want to run it byway of the BS2sx.

    The way I have the BS2sx connected to the BS1 is as follows:

    The servo program of the BS2sx runs the servo output through P12 and P13
    (which run to servso motors)
    to P6 and P7 of the BS1. P6 and P7 were originally connect from the R/C
    receiver.
    .
    If I cant find a program that will let me use to two stamps then I would
    like to find out that I could control the robot motors using the BS2sx
    connected to the UNL2003A which are connected to the relays. The relays
    would be connect as follows:


    Relay 1 Enable left motor
    Relay 2 Enable right motor
    Relay 3 Forward/Reverse left motor
    Relay 4 Forward/Reverse right motor


    Can you please help,

    op

    From: "Al Williams" <alw@a...>
    To: <basicstamps@yahoogroups.com>
    Sent: Friday, December 07, 2001 10:01 AM
    Subject: RE: [noparse][[/noparse]basicstamps] DC MOTOR CONTROLL W/BS2SX


    > Lots of folks here work on motors. However, what are the specifics? Are
    > these servos or ordinary DC motors? In your last message (I only saw 1)
    > you mention servo motors, but it wasn't really clear what you wanted to
    > do. The R/C receiver outputs a pulse that is probably about 1.5mS long
    > for the servos to be in center position. You could simulate this with
    > the BS2SX's PULSOUT command. Is that what you are asking?
    >
    > Al Williams
    > AWC
    > * Control 8 servos at once
    > http://www.al-williams.com/awce/pak8.htm
    >
    > >
    Original Message
    > > From: kuek24523 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=zVBw-rFzSwMdf1ipB8FPvLBHGmT669WdoZf0EI4X7wGAGpaRoZuMmREd_o_bvvGwVQcLNApkXhg]ops-@p...[/url
    > > Sent: Friday, December 07, 2001 8:55 AM
    > > To: basicstamps@yahoogroups.com
    > > Subject: [noparse][[/noparse]basicstamps] DC MOTOR CONTROLL W/BS2SX
    > >
    > >
    > > I HAVE SENT TWO MESSAGES INORDER TO FIND OUT HOW TO PROGRAM THE BS2SX
    > > TO CONTROL TWO DC MOTORS AND AS YET HAVE NOT SEEN ANY
    > > RESONSE. ""ARE THERE ANYONE ONE OUT THIER WHO HAS WORKED ON
    > > THIS TYPE OF A
    > > PROGRAM OR AM I TRYING TO FIND INFOR ON THE WRONG GROUP""
    > >
    > > MYBE I AM THE ONLY ONE WORKING ON THIS TYPE OF PROJECT??
    > >
    > > PLEASE HELP!!
    > >
    > > OP
    > >
    > >
    > > 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/
    > >
    >
    >
    > 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/
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-07 19:10
    It's probably easiest to program for relay activation of your motors. You
    havn't explained your project's
    hardware and goals or your experience in programming. I found these six lessons
    helpful in starting:


    http://www.stampsenclase.com/downloads/wam1.pdf
    http://www.stampsenclase.com/downloads/wam2.pdf
    http://www.stampsenclase.com/downloads/wam3.pdf
    http://www.stampsenclase.com/downloads/wam4.pdf
    http://www.stampsenclase.com/downloads/wam5.pdf
    http://www.stampsenclase.com/downloads/wam6.pdf


    kuek24523 wrote:

    > I HAVE SENT TWO MESSAGES INORDER TO FIND OUT HOW TO PROGRAM THE BS2SX
    > TO CONTROL TWO DC MOTORS AND AS YET HAVE NOT SEEN ANY RESONSE.
    > ""ARE THERE ANYONE ONE OUT THIER WHO HAS WORKED ON THIS TYPE OF A
    > PROGRAM OR AM I TRYING TO FIND INFOR ON THE WRONG GROUP""
    >
    > MYBE I AM THE ONLY ONE WORKING ON THIS TYPE OF PROJECT??
    >
    > PLEASE HELP!!
    >
    > OP
    >
    > 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!?
    Get your free @yahoo.com address at http://mail.yahoo.com
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-07 23:05
    PLEASE STOP SHOUTING!

    You need some sort of motor control between the stamp and the motors.
    Examples are the MotorMindB, the Mondotronics H-bridge, or any of the
    Allegro H-bridge modules.

    Your code will depend on which motor control method you use. Have you looked
    on the Parallax web site for any suggestions?

    Original Message

    > I HAVE SENT TWO MESSAGES INORDER TO FIND OUT HOW TO PROGRAM THE BS2SX
    > TO CONTROL TWO DC MOTORS AND AS YET HAVE NOT SEEN ANY RESONSE.
    > ""ARE THERE ANYONE ONE OUT THIER WHO HAS WORKED ON THIS TYPE OF A
    > PROGRAM OR AM I TRYING TO FIND INFOR ON THE WRONG GROUP""
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-07 23:05
    PLEASE STOP SHOUTING!

    You need some sort of motor control between the stamp and the motors.
    Examples are the MotorMindB, the Mondotronics H-bridge, or any of the
    Allegro H-bridge modules.

    Your code will depend on which motor control method you use. Have you looked
    on the Parallax web site for any suggestions?

    Original Message

    > I HAVE SENT TWO MESSAGES INORDER TO FIND OUT HOW TO PROGRAM THE BS2SX
    > TO CONTROL TWO DC MOTORS AND AS YET HAVE NOT SEEN ANY RESONSE.
    > ""ARE THERE ANYONE ONE OUT THIER WHO HAS WORKED ON THIS TYPE OF A
    > PROGRAM OR AM I TRYING TO FIND INFOR ON THE WRONG GROUP""
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-07 23:05
    PLEASE STOP SHOUTING!

    You need some sort of motor control between the stamp and the motors.
    Examples are the MotorMindB, the Mondotronics H-bridge, or any of the
    Allegro H-bridge modules.

    Your code will depend on which motor control method you use. Have you looked
    on the Parallax web site for any suggestions?

    Original Message

    > I HAVE SENT TWO MESSAGES INORDER TO FIND OUT HOW TO PROGRAM THE BS2SX
    > TO CONTROL TWO DC MOTORS AND AS YET HAVE NOT SEEN ANY RESONSE.
    > ""ARE THERE ANYONE ONE OUT THIER WHO HAS WORKED ON THIS TYPE OF A
    > PROGRAM OR AM I TRYING TO FIND INFOR ON THE WRONG GROUP""
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-07 23:05
    PLEASE STOP SHOUTING!

    You need some sort of motor control between the stamp and the motors.
    Examples are the MotorMindB, the Mondotronics H-bridge, or any of the
    Allegro H-bridge modules.

    Your code will depend on which motor control method you use. Have you looked
    on the Parallax web site for any suggestions?

    Original Message

    > I HAVE SENT TWO MESSAGES INORDER TO FIND OUT HOW TO PROGRAM THE BS2SX
    > TO CONTROL TWO DC MOTORS AND AS YET HAVE NOT SEEN ANY RESONSE.
    > ""ARE THERE ANYONE ONE OUT THIER WHO HAS WORKED ON THIS TYPE OF A
    > PROGRAM OR AM I TRYING TO FIND INFOR ON THE WRONG GROUP""
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-08 16:29
    Op,

    It seems that you have an functioning robot, basically:

    <RC receiver> ---> <Stamp1> ----> <relays> ----> <motors>

    Thus, the Stamp1 is already properly interpreting RC signals.

    Is this what you want, replacing the <RC receiver>?

    <Stamp2> ---> <Stamp1> ----> <relays> ----> <motors>

    In other words, just have the Stamp1 still run the motors, and use the
    Stamp2 to provide the command signals instead of the <RC receiver>.

    Application Note 4 for BASIC Stamp I, provides some guidance in generating
    the signal to drive a RC servo; could not this be adapted to command the
    Stamp1 in the place of the RC receiver?

    Otherwise, just wire the existing UNL2003A to the Stamp2 in place of the
    Stamp1. Move the Stamp1 code to the Stamp2 (watching for the occasional
    differences in the command sets), and drive the '2003A from the Stamp2.

    Perhaps I've missed something.

    Regards,
    Daniel


    >
    Original Message
    > From: O.P. Stancer [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=Xnr43KGPp0SlnZp7wct-LUhgTbExMIUspRIJV3GDZbEwZ6qyIHXjFiah1WeCPXDsn-X5y7f6yvzy4w]ops-@p...[/url
    > Sent: Friday, 07 December 2001 11:24
    > To: basicstamps@yahoogroups.com
    > Subject: Re: [noparse][[/noparse]basicstamps] DC MOTOR CONTROLL W/BS2SX
    >
    >
    > Hi Al,
    >
    > Thanks for your reply to my e-mail. I have had a very hard time
    > finding out
    > how to program the BS2sx to run the robot I built.
    >
    > Here is the story on what I am trying to do. I have a robot that runs on
    > two Wiper Motors that run about 3 amps per motor. Currently I am
    > operarting
    > the robot by a R/C system which is connected to a Basic Stamp !.
    >
    > The R/C system (same as used in model airplanes) sends a signial to run
    > servos but rather than the output of the R/C receiver going to two servos
    > the two channels go to the Basic Stamp I which converts the servo
    > inputs to
    > be used to run the DC motors.
    >
    > The setup for the Basic Stamp 1 is the stamp is connected to a UNL2003A
    > driver which is connected to the 4 relays whch control the
    > voltage to the DC
    > Motors. This all works very well but now comes the problem.
    >
    > I have installed a second stamp to the system witch is the BS2sx. The
    > reason I installed the second stamp as I needed more I/O ports for other
    > operations. One of the operation is to run the robot byway of IR sensors.
    > I developed a program that will work with my Boe-Bot that have 2
    > servos as
    > the driving motors so what I want to do is instead of running the Basic
    > Stamp byway of the R/C receiver, I want to run it byway of the BS2sx.
    >
    > The way I have the BS2sx connected to the BS1 is as follows:
    >
    > The servo program of the BS2sx runs the servo output through P12 and P13
    > (which run to servso motors)
    > to P6 and P7 of the BS1. P6 and P7 were originally connect from the R/C
    > receiver.
    > .
    > If I cant find a program that will let me use to two stamps then I would
    > like to find out that I could control the robot motors using the BS2sx
    > connected to the UNL2003A which are connected to the relays. The relays
    > would be connect as follows:
    >
    >
    > Relay 1 Enable left motor
    > Relay 2 Enable right motor
    > Relay 3 Forward/Reverse left motor
    > Relay 4 Forward/Reverse right motor
    >
    >
    > Can you please help,
    >
    > op


    _________________________________________________________
    Do You Yahoo!?
    Get your free @yahoo.com address at http://mail.yahoo.com
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-08 19:56
    Daniel,

    Thanks again for your reply. You are correct execpt that I want to continue
    to use the RC receiver when I want to operate Radio Controll but then be
    able to switch the RC receiver out are put the BS2sx in its place thru a
    switch, then I can switch my two systems in and out at will.

    The only thing that is stopping me is how to wright the SEROUT command for
    the BS2sx and the SERIN command for the BS1. I have read the book on it but
    still have not made it work.

    Can you tell me what the full command would be for SEROUT in the BS2sx
    program and the full command for SERIN for the BS1?

    op
    Original Message
    From: "D. Daniel McGlothin" <ddm_stamps@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Saturday, December 08, 2001 11:29 AM
    Subject: RE: [noparse][[/noparse]basicstamps] DC MOTOR CONTROLL W/BS2SX


    > Op,
    >
    > It seems that you have an functioning robot, basically:
    >
    > <RC receiver> ---> <Stamp1> ----> <relays> ----> <motors>
    >
    > Thus, the Stamp1 is already properly interpreting RC signals.
    >
    > Is this what you want, replacing the <RC receiver>?
    >
    > <Stamp2> ---> <Stamp1> ----> <relays> ----> <motors>
    >
    > In other words, just have the Stamp1 still run the motors, and use the
    > Stamp2 to provide the command signals instead of the <RC receiver>.
    >
    > Application Note 4 for BASIC Stamp I, provides some guidance in generating
    > the signal to drive a RC servo; could not this be adapted to command the
    > Stamp1 in the place of the RC receiver?
    >
    > Otherwise, just wire the existing UNL2003A to the Stamp2 in place of the
    > Stamp1. Move the Stamp1 code to the Stamp2 (watching for the occasional
    > differences in the command sets), and drive the '2003A from the Stamp2.
    >
    > Perhaps I've missed something.
    >
    > Regards,
    > Daniel
    >
    >
    > >
    Original Message
    > > From: O.P. Stancer [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=OQRXGs9no1J4149c6Uqb8Nmn_8v2RxoGJcrOnXzn-3UoxqTcC5TPysYGYSHnmW5nHR2x5bWHMw]ops-@p...[/url
    > > Sent: Friday, 07 December 2001 11:24
    > > To: basicstamps@yahoogroups.com
    > > Subject: Re: [noparse][[/noparse]basicstamps] DC MOTOR CONTROLL W/BS2SX
    > >
    > >
    > > Hi Al,
    > >
    > > Thanks for your reply to my e-mail. I have had a very hard time
    > > finding out
    > > how to program the BS2sx to run the robot I built.
    > >
    > > Here is the story on what I am trying to do. I have a robot that runs
    on
    > > two Wiper Motors that run about 3 amps per motor. Currently I am
    > > operarting
    > > the robot by a R/C system which is connected to a Basic Stamp !.
    > >
    > > The R/C system (same as used in model airplanes) sends a signial to run
    > > servos but rather than the output of the R/C receiver going to two
    servos
    > > the two channels go to the Basic Stamp I which converts the servo
    > > inputs to
    > > be used to run the DC motors.
    > >
    > > The setup for the Basic Stamp 1 is the stamp is connected to a UNL2003A
    > > driver which is connected to the 4 relays whch control the
    > > voltage to the DC
    > > Motors. This all works very well but now comes the problem.
    > >
    > > I have installed a second stamp to the system witch is the BS2sx. The
    > > reason I installed the second stamp as I needed more I/O ports for other
    > > operations. One of the operation is to run the robot byway of IR
    sensors.
    > > I developed a program that will work with my Boe-Bot that have 2
    > > servos as
    > > the driving motors so what I want to do is instead of running the Basic
    > > Stamp byway of the R/C receiver, I want to run it byway of the BS2sx.
    > >
    > > The way I have the BS2sx connected to the BS1 is as follows:
    > >
    > > The servo program of the BS2sx runs the servo output through P12 and P13
    > > (which run to servso motors)
    > > to P6 and P7 of the BS1. P6 and P7 were originally connect from the R/C
    > > receiver.
    > > .
    > > If I cant find a program that will let me use to two stamps then I would
    > > like to find out that I could control the robot motors using the BS2sx
    > > connected to the UNL2003A which are connected to the relays. The relays
    > > would be connect as follows:
    > >
    > >
    > > Relay 1 Enable left motor
    > > Relay 2 Enable right motor
    > > Relay 3 Forward/Reverse left motor
    > > Relay 4 Forward/Reverse right motor
    > >
    > >
    > > Can you please help,
    > >
    > > op
    >
    >
    > _________________________________________________________
    > Do You Yahoo!?
    > Get your free @yahoo.com address at http://mail.yahoo.com
    >
    >
    > 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/
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-08 20:00
    Oh yes ..the BS2sx will be running all the other sensors>

    op
    Original Message
    From: "D. Daniel McGlothin" <ddm_stamps@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Saturday, December 08, 2001 11:29 AM
    Subject: RE: [noparse][[/noparse]basicstamps] DC MOTOR CONTROLL W/BS2SX


    > Op,
    >
    > It seems that you have an functioning robot, basically:
    >
    > <RC receiver> ---> <Stamp1> ----> <relays> ----> <motors>
    >
    > Thus, the Stamp1 is already properly interpreting RC signals.
    >
    > Is this what you want, replacing the <RC receiver>?
    >
    > <Stamp2> ---> <Stamp1> ----> <relays> ----> <motors>
    >
    > In other words, just have the Stamp1 still run the motors, and use the
    > Stamp2 to provide the command signals instead of the <RC receiver>.
    >
    > Application Note 4 for BASIC Stamp I, provides some guidance in generating
    > the signal to drive a RC servo; could not this be adapted to command the
    > Stamp1 in the place of the RC receiver?
    >
    > Otherwise, just wire the existing UNL2003A to the Stamp2 in place of the
    > Stamp1. Move the Stamp1 code to the Stamp2 (watching for the occasional
    > differences in the command sets), and drive the '2003A from the Stamp2.
    >
    > Perhaps I've missed something.
    >
    > Regards,
    > Daniel
    >
    >
    > >
    Original Message
    > > From: O.P. Stancer [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=7Czkd9XAmpN_iTqBhx5eap2uHdsvilID1-TVRHZpWnyIF5YYb4Xr3WW9IuCWvozgqPB6Jsqe1TCZK7Y]ops-@p...[/url
    > > Sent: Friday, 07 December 2001 11:24
    > > To: basicstamps@yahoogroups.com
    > > Subject: Re: [noparse][[/noparse]basicstamps] DC MOTOR CONTROLL W/BS2SX
    > >
    > >
    > > Hi Al,
    > >
    > > Thanks for your reply to my e-mail. I have had a very hard time
    > > finding out
    > > how to program the BS2sx to run the robot I built.
    > >
    > > Here is the story on what I am trying to do. I have a robot that runs
    on
    > > two Wiper Motors that run about 3 amps per motor. Currently I am
    > > operarting
    > > the robot by a R/C system which is connected to a Basic Stamp !.
    > >
    > > The R/C system (same as used in model airplanes) sends a signial to run
    > > servos but rather than the output of the R/C receiver going to two
    servos
    > > the two channels go to the Basic Stamp I which converts the servo
    > > inputs to
    > > be used to run the DC motors.
    > >
    > > The setup for the Basic Stamp 1 is the stamp is connected to a UNL2003A
    > > driver which is connected to the 4 relays whch control the
    > > voltage to the DC
    > > Motors. This all works very well but now comes the problem.
    > >
    > > I have installed a second stamp to the system witch is the BS2sx. The
    > > reason I installed the second stamp as I needed more I/O ports for other
    > > operations. One of the operation is to run the robot byway of IR
    sensors.
    > > I developed a program that will work with my Boe-Bot that have 2
    > > servos as
    > > the driving motors so what I want to do is instead of running the Basic
    > > Stamp byway of the R/C receiver, I want to run it byway of the BS2sx.
    > >
    > > The way I have the BS2sx connected to the BS1 is as follows:
    > >
    > > The servo program of the BS2sx runs the servo output through P12 and P13
    > > (which run to servso motors)
    > > to P6 and P7 of the BS1. P6 and P7 were originally connect from the R/C
    > > receiver.
    > > .
    > > If I cant find a program that will let me use to two stamps then I would
    > > like to find out that I could control the robot motors using the BS2sx
    > > connected to the UNL2003A which are connected to the relays. The relays
    > > would be connect as follows:
    > >
    > >
    > > Relay 1 Enable left motor
    > > Relay 2 Enable right motor
    > > Relay 3 Forward/Reverse left motor
    > > Relay 4 Forward/Reverse right motor
    > >
    > >
    > > Can you please help,
    > >
    > > op
    >
    >
    > _________________________________________________________
    > Do You Yahoo!?
    > Get your free @yahoo.com address at http://mail.yahoo.com
    >
    >
    > 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/
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-08 20:45
    op,

    If you want to have either RC receiver OR Stamp2 controlling, then I would
    do something like:

    <Stamp2>
    V
    <RC Receiver>
    > <Switch>
    > <Stamp1> ...

    This way, there would be no changes required in the Stamp1 software. Use
    something like PULSOUT in the Stamp2 to allow it to pretend to be the RC
    receiver--see BASIC Stamp I App Note 4.

    If you want to have both RC receiver and Stamp2 simultaneously active, you
    could still have the Stamp2 just generate the RC-style pulses and then mix
    them in the Stamp1.

    Alternatively, you could set up the serial communications that you
    mentioned.

    To prevent damage to your Stamps, you SHOULD to review the principles of
    BASIC Stamp I App Note 14 "Networking multiple Stamps", and also the BASIC
    Stamp II manual treatment of SEROUT, especially the section "Networking with
    Open Baudmodes".

    You would also want to work out the communication protocol--how the Stamp2
    tells the Stamp1 to operate the motors, whether the communication is one-way
    or if the Stamp1 sends information back to the Stamp2, etc. You will also
    have to deal with issues regarding the synchronization of the two
    processors, timeouts, etc--perhaps just have the Stamp2 continuously send
    the commands to the Stamp1, and have the Stamp1 synch up on a special
    lead-in character of the transmission.

    To your specific question, from my reading of the book, I think the
    following should let the Stamp2 send the letter 'A' to the Stamp1 ( 'x'
    stands for the pin you have chosen on each Stamp to connect) using 8-bit
    characters, no parity, 1 stop bit:

    Stamp2 (transmitting): SEROUT x,16780,[noparse][[/noparse]"A"]
    Stamp1 (receiving): SERIN x,N2400,b2

    Be aware of the fact that program execution is blocked until the SERIN
    completes. You may also need to explore pacing on the Stamp II.

    I'm not an expert on Stamp serial communications--maybe someone else on the
    list might chime in here, or you could check out Jan Axelson's book, "Serial
    Port Complete" (http://www.lvr.com/spc.htm) for a lot of information on
    serial Stamp networks.

    BTW, be aware that the parameters on the SERIN / SEROUT have significant
    differences between Stamp I & II.

    Regards,
    Daniel




    >
    Original Message
    > From: O.P. Stancer [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=z2jfZ-5mBW6SoUmtvYKW1yGWKWYnNRfPERta8MMkc8A5draR8hX5pZEDEZava4GMOEC9MYeY]ops-@p...[/url
    > Sent: Saturday, 08 December 2001 14:56
    > To: basicstamps@yahoogroups.com
    > Subject: Re: [noparse][[/noparse]basicstamps] DC MOTOR CONTROLL W/BS2SX
    >
    >
    > Daniel,
    >
    > Thanks again for your reply. You are correct execpt that I want
    > to continue
    > to use the RC receiver when I want to operate Radio Controll but then be
    > able to switch the RC receiver out are put the BS2sx in its place thru a
    > switch, then I can switch my two systems in and out at will.
    >
    > The only thing that is stopping me is how to wright the SEROUT
    > command for
    > the BS2sx and the SERIN command for the BS1. I have read the
    > book on it but
    > still have not made it work.
    >
    > Can you tell me what the full command would be for SEROUT in the BS2sx
    > program and the full command for SERIN for the BS1?
    >
    > op
    Original Message
    > From: "D. Daniel McGlothin" <ddm_stamps@y...>
    > To: <basicstamps@yahoogroups.com>
    > Sent: Saturday, December 08, 2001 11:29 AM
    > Subject: RE: [noparse][[/noparse]basicstamps] DC MOTOR CONTROLL W/BS2SX
    >
    >
    > > Op,
    > >
    > > It seems that you have an functioning robot, basically:
    > >
    > > <RC receiver> ---> <Stamp1> ----> <relays> ----> <motors>
    > >
    > > Thus, the Stamp1 is already properly interpreting RC signals.
    > >
    > > Is this what you want, replacing the <RC receiver>?
    > >
    > > <Stamp2> ---> <Stamp1> ----> <relays> ----> <motors>
    > >
    > > In other words, just have the Stamp1 still run the motors, and use the
    > > Stamp2 to provide the command signals instead of the <RC receiver>.
    > >
    > > Application Note 4 for BASIC Stamp I, provides some guidance in
    > generating
    > > the signal to drive a RC servo; could not this be adapted to command the
    > > Stamp1 in the place of the RC receiver?
    > >
    > > Otherwise, just wire the existing UNL2003A to the Stamp2 in place of the
    > > Stamp1. Move the Stamp1 code to the Stamp2 (watching for the occasional
    > > differences in the command sets), and drive the '2003A from the Stamp2.
    > >
    > > Perhaps I've missed something.
    > >
    > > Regards,
    > > Daniel
    > >
    > >
    > > >
    Original Message
    > > > From: O.P. Stancer [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=z2jfZ-5mBW6SoUmtvYKW1yGWKWYnNRfPERta8MMkc8A5draR8hX5pZEDEZava4GMOEC9MYeY]ops-@p...[/url
    > > > Sent: Friday, 07 December 2001 11:24
    > > > To: basicstamps@yahoogroups.com
    > > > Subject: Re: [noparse][[/noparse]basicstamps] DC MOTOR CONTROLL W/BS2SX
    > > >
    > > >
    > > > Hi Al,
    > > >
    > > > Thanks for your reply to my e-mail. I have had a very hard time
    > > > finding out
    > > > how to program the BS2sx to run the robot I built.
    > > >
    > > > Here is the story on what I am trying to do. I have a robot that runs
    > on
    > > > two Wiper Motors that run about 3 amps per motor. Currently I am
    > > > operarting
    > > > the robot by a R/C system which is connected to a Basic Stamp !.
    > > >
    > > > The R/C system (same as used in model airplanes) sends a
    > signial to run
    > > > servos but rather than the output of the R/C receiver going to two
    > servos
    > > > the two channels go to the Basic Stamp I which converts the servo
    > > > inputs to
    > > > be used to run the DC motors.
    > > >
    > > > The setup for the Basic Stamp 1 is the stamp is connected to
    > a UNL2003A
    > > > driver which is connected to the 4 relays whch control the
    > > > voltage to the DC
    > > > Motors. This all works very well but now comes the problem.
    > > >
    > > > I have installed a second stamp to the system witch is the
    > BS2sx. The
    > > > reason I installed the second stamp as I needed more I/O
    > ports for other
    > > > operations. One of the operation is to run the robot byway of IR
    > sensors.
    > > > I developed a program that will work with my Boe-Bot that have 2
    > > > servos as
    > > > the driving motors so what I want to do is instead of running
    > the Basic
    > > > Stamp byway of the R/C receiver, I want to run it byway of the BS2sx.
    > > >
    > > > The way I have the BS2sx connected to the BS1 is as follows:
    > > >
    > > > The servo program of the BS2sx runs the servo output through
    > P12 and P13
    > > > (which run to servso motors)
    > > > to P6 and P7 of the BS1. P6 and P7 were originally connect
    > from the R/C
    > > > receiver.
    > > > .
    > > > If I cant find a program that will let me use to two stamps
    > then I would
    > > > like to find out that I could control the robot motors using
    > the BS2sx
    > > > connected to the UNL2003A which are connected to the relays.
    > The relays
    > > > would be connect as follows:
    > > >
    > > >
    > > > Relay 1 Enable left motor
    > > > Relay 2 Enable right motor
    > > > Relay 3 Forward/Reverse left motor
    > > > Relay 4 Forward/Reverse right motor
    > > >
    > > >
    > > > Can you please help,
    > > >
    > > > op



    _________________________________________________________
    Do You Yahoo!?
    Get your free @yahoo.com address at http://mail.yahoo.com
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-08 22:07
    Daniel,


    Thanks for all the great info....I had already programed the BS2sx to
    pulsout and had connected the BS2sx to my BS1 and damaged two ports of the
    BS1. I had not used the command SEROUT at that time.

    I will read the manual regarding networking before I do it again...

    I will let you know how I make out Daniel.

    Thanks op
    Original Message
    From: "D. Daniel McGlothin" <ddm_stamps@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Saturday, December 08, 2001 3:45 PM
    Subject: RE: [noparse][[/noparse]basicstamps] DC MOTOR CONTROLL W/BS2SX


    > op,
    >
    > If you want to have either RC receiver OR Stamp2 controlling, then I would
    > do something like:
    >
    > <Stamp2>
    V
    > <RC Receiver>
    > <Switch>
    > <Stamp1> ...
    >
    > This way, there would be no changes required in the Stamp1 software. Use
    > something like PULSOUT in the Stamp2 to allow it to pretend to be the RC
    > receiver--see BASIC Stamp I App Note 4.
    >
    > If you want to have both RC receiver and Stamp2 simultaneously active, you
    > could still have the Stamp2 just generate the RC-style pulses and then mix
    > them in the Stamp1.
    >
    > Alternatively, you could set up the serial communications that you
    > mentioned.
    >
    > To prevent damage to your Stamps, you SHOULD to review the principles of
    > BASIC Stamp I App Note 14 "Networking multiple Stamps", and also the BASIC
    > Stamp II manual treatment of SEROUT, especially the section "Networking
    with
    > Open Baudmodes".
    >
    > You would also want to work out the communication protocol--how the Stamp2
    > tells the Stamp1 to operate the motors, whether the communication is
    one-way
    > or if the Stamp1 sends information back to the Stamp2, etc. You will also
    > have to deal with issues regarding the synchronization of the two
    > processors, timeouts, etc--perhaps just have the Stamp2 continuously send
    > the commands to the Stamp1, and have the Stamp1 synch up on a special
    > lead-in character of the transmission.
    >
    > To your specific question, from my reading of the book, I think the
    > following should let the Stamp2 send the letter 'A' to the Stamp1 ( 'x'
    > stands for the pin you have chosen on each Stamp to connect) using 8-bit
    > characters, no parity, 1 stop bit:
    >
    > Stamp2 (transmitting): SEROUT x,16780,[noparse][[/noparse]"A"]
    > Stamp1 (receiving): SERIN x,N2400,b2
    >
    > Be aware of the fact that program execution is blocked until the SERIN
    > completes. You may also need to explore pacing on the Stamp II.
    >
    > I'm not an expert on Stamp serial communications--maybe someone else on
    the
    > list might chime in here, or you could check out Jan Axelson's book,
    "Serial
    > Port Complete" (http://www.lvr.com/spc.htm) for a lot of information on
    > serial Stamp networks.
    >
    > BTW, be aware that the parameters on the SERIN / SEROUT have significant
    > differences between Stamp I & II.
    >
    > Regards,
    > Daniel
    >
    >
    >
    >
    > >
    Original Message
    > > From: O.P. Stancer [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=71QUpx57ErZqP3X3Ln7ANtHs6dZOAeFFn9q_EqqlzGQ8zLNfEuvvbyEsXlIOS_spIa4eXpoOB0WYtQ]ops-@p...[/url
    > > Sent: Saturday, 08 December 2001 14:56
    > > To: basicstamps@yahoogroups.com
    > > Subject: Re: [noparse][[/noparse]basicstamps] DC MOTOR CONTROLL W/BS2SX
    > >
    > >
    > > Daniel,
    > >
    > > Thanks again for your reply. You are correct execpt that I want
    > > to continue
    > > to use the RC receiver when I want to operate Radio Controll but then be
    > > able to switch the RC receiver out are put the BS2sx in its place thru a
    > > switch, then I can switch my two systems in and out at will.
    > >
    > > The only thing that is stopping me is how to wright the SEROUT
    > > command for
    > > the BS2sx and the SERIN command for the BS1. I have read the
    > > book on it but
    > > still have not made it work.
    > >
    > > Can you tell me what the full command would be for SEROUT in the BS2sx
    > > program and the full command for SERIN for the BS1?
    > >
    > > op
    Original Message
    > > From: "D. Daniel McGlothin" <ddm_stamps@y...>
    > > To: <basicstamps@yahoogroups.com>
    > > Sent: Saturday, December 08, 2001 11:29 AM
    > > Subject: RE: [noparse][[/noparse]basicstamps] DC MOTOR CONTROLL W/BS2SX
    > >
    > >
    > > > Op,
    > > >
    > > > It seems that you have an functioning robot, basically:
    > > >
    > > > <RC receiver> ---> <Stamp1> ----> <relays> ----> <motors>
    > > >
    > > > Thus, the Stamp1 is already properly interpreting RC signals.
    > > >
    > > > Is this what you want, replacing the <RC receiver>?
    > > >
    > > > <Stamp2> ---> <Stamp1> ----> <relays> ----> <motors>
    > > >
    > > > In other words, just have the Stamp1 still run the motors, and use the
    > > > Stamp2 to provide the command signals instead of the <RC receiver>.
    > > >
    > > > Application Note 4 for BASIC Stamp I, provides some guidance in
    > > generating
    > > > the signal to drive a RC servo; could not this be adapted to command
    the
    > > > Stamp1 in the place of the RC receiver?
    > > >
    > > > Otherwise, just wire the existing UNL2003A to the Stamp2 in place of
    the
    > > > Stamp1. Move the Stamp1 code to the Stamp2 (watching for the
    occasional
    > > > differences in the command sets), and drive the '2003A from the
    Stamp2.
    > > >
    > > > Perhaps I've missed something.
    > > >
    > > > Regards,
    > > > Daniel
    > > >
    > > >
    > > > >
    Original Message
    > > > > From: O.P. Stancer [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=71QUpx57ErZqP3X3Ln7ANtHs6dZOAeFFn9q_EqqlzGQ8zLNfEuvvbyEsXlIOS_spIa4eXpoOB0WYtQ]ops-@p...[/url
    > > > > Sent: Friday, 07 December 2001 11:24
    > > > > To: basicstamps@yahoogroups.com
    > > > > Subject: Re: [noparse][[/noparse]basicstamps] DC MOTOR CONTROLL W/BS2SX
    > > > >
    > > > >
    > > > > Hi Al,
    > > > >
    > > > > Thanks for your reply to my e-mail. I have had a very hard time
    > > > > finding out
    > > > > how to program the BS2sx to run the robot I built.
    > > > >
    > > > > Here is the story on what I am trying to do. I have a robot that
    runs
    > > on
    > > > > two Wiper Motors that run about 3 amps per motor. Currently I am
    > > > > operarting
    > > > > the robot by a R/C system which is connected to a Basic Stamp !.
    > > > >
    > > > > The R/C system (same as used in model airplanes) sends a
    > > signial to run
    > > > > servos but rather than the output of the R/C receiver going to two
    > > servos
    > > > > the two channels go to the Basic Stamp I which converts the servo
    > > > > inputs to
    > > > > be used to run the DC motors.
    > > > >
    > > > > The setup for the Basic Stamp 1 is the stamp is connected to
    > > a UNL2003A
    > > > > driver which is connected to the 4 relays whch control the
    > > > > voltage to the DC
    > > > > Motors. This all works very well but now comes the problem.
    > > > >
    > > > > I have installed a second stamp to the system witch is the
    > > BS2sx. The
    > > > > reason I installed the second stamp as I needed more I/O
    > > ports for other
    > > > > operations. One of the operation is to run the robot byway of IR
    > > sensors.
    > > > > I developed a program that will work with my Boe-Bot that have 2
    > > > > servos as
    > > > > the driving motors so what I want to do is instead of running
    > > the Basic
    > > > > Stamp byway of the R/C receiver, I want to run it byway of the
    BS2sx.
    > > > >
    > > > > The way I have the BS2sx connected to the BS1 is as follows:
    > > > >
    > > > > The servo program of the BS2sx runs the servo output through
    > > P12 and P13
    > > > > (which run to servso motors)
    > > > > to P6 and P7 of the BS1. P6 and P7 were originally connect
    > > from the R/C
    > > > > receiver.
    > > > > .
    > > > > If I cant find a program that will let me use to two stamps
    > > then I would
    > > > > like to find out that I could control the robot motors using
    > > the BS2sx
    > > > > connected to the UNL2003A which are connected to the relays.
    > > The relays
    > > > > would be connect as follows:
    > > > >
    > > > >
    > > > > Relay 1 Enable left motor
    > > > > Relay 2 Enable right motor
    > > > > Relay 3 Forward/Reverse left motor
    > > > > Relay 4 Forward/Reverse right motor
    > > > >
    > > > >
    > > > > Can you please help,
    > > > >
    > > > > op
    >
    >
    >
    > _________________________________________________________
    > Do You Yahoo!?
    > Get your free @yahoo.com address at http://mail.yahoo.com
    >
    >
    > 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/
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-08 22:57
    op,

    Just to be complete, I suppose I should have mentioned that the protections
    discussed for serial networking the Stamps should be considered when
    interconnecting them for PULSOUT as well. Essentially, you need to be
    concerned about potentially shorting +5VDC to Ground through the pin(s).

    Regards,
    Daniel

    >
    Original Message
    > From: O.P. Stancer [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=1NBKck9Mzs9No9aq4RNZ-7rSE-L2iKWEsz2ENgrPd4hzbhPhpoU3d1svlOF4pAd1kgAZvKKqfgs]ops-@p...[/url
    > Sent: Saturday, 08 December 2001 17:07
    > To: basicstamps@yahoogroups.com
    > Subject: Re: [noparse][[/noparse]basicstamps] DC MOTOR CONTROLL W/BS2SX
    >
    >
    > Daniel,
    >
    >
    > Thanks for all the great info....I had already programed the BS2sx to
    > pulsout and had connected the BS2sx to my BS1 and damaged two
    > ports of the
    > BS1. I had not used the command SEROUT at that time.
    >
    > I will read the manual regarding networking before I do it again...
    >
    > I will let you know how I make out Daniel.
    >
    > Thanks op



    _________________________________________________________
    Do You Yahoo!?
    Get your free @yahoo.com address at http://mail.yahoo.com
Sign In or Register to comment.