Shop OBEX P1 Docs P2 Docs Learn Events
motor mind B — Parallax Forums

motor mind B

ArchiverArchiver Posts: 46,084
edited 2004-07-08 07:13 in General Discussion
I am trying to implement the motor mind b on a traveling gantry. I
want to use a rotating disk with a hall effect sensor to determine
the position of the gantry. I have loaded the demonistration code
from solutions cubed manual but when I put a meter on the motor
output I don't get any current. Also how fast can the BS2 receive
input in the count mode of the motor mind?

Thank-you

Mark Gillett

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-01-21 20:16
    I am having trouble figuring out how to use a subroutine that will start
    my motor in reverse direction, using the motor mind b. In the subroutine
    labeled "back" (listed below) I have to get the motor going forward at the
    duty cycle I want and then send the reverse command. In this program, the
    forward and halt subs work well but the back subcommand flips constantly
    between forward and reverse. I feel quite certain that I will be embarrassed
    when someone tells me how simple my problem is, nevertheless I will
    appreciate any help this group can give me.

    (P.S.) as per Dwayne Reid's advice I have turned off the html formatting of
    my emails. Sorry for the inconvenience. Please let me know if my emails
    continue to generate needless gibberish in the header.


    output 8
    input 6
    tm con 8
    fm con 6
    high fm
    x var word
    y var word

    low fm
    pause 20
    high fm
    pause 25

    start:
    high 4 'set pin state for rctime
    function
    high 2 'set pinstate for rctime
    function
    pause 1
    rctime 4,1,x 'check forward position of
    joystick
    rctime 2,1,y 'check rear position of
    joystick
    debug ? x 'show me what x is doing

    if x=0 and y=0 then halt 'if joystick is neutral motor is
    stopped
    if not x=0 and y=0 then forward 'if x has value and y doesn't then
    motor fwd.
    if not y=0 and x=0 then back 'if y has value and x doesn't then
    motor back.




    Forward:
    serout fm,396,[noparse][[/noparse]$55,$03,$DD] 'motor mind B forward 86%

    goto start




    back:
    serout fm,396,[noparse][[/noparse]$55,$03,$DD] 'motor mind b forward 86%
    serout fm,396,[noparse][[/noparse]$55,$01]

    'Reverse command for motor mind b
    goto start '***** this
    is a question--Why doesn't theMMb
    'have
    a command for starting a motor in reverse?

    halt:
    serout fm,396,[noparse][[/noparse]$55,$00] 'stop command for Motor
    mind b
    goto start
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-04 20:35
    Dear group,
    I was wondering if u can hook up the motor mind B up to the basic stamp?? And
    how u do it..

    Justin

    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-04 20:55
    Yes. There are BASIC Stamp examples in the documentation. It uses a
    serial connection and is very easy.

    -- Jon Williams
    -- Parallax


    Original Message
    From: Digitalcowboy00 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=G27FHfEcSDSh_QZiskDuj63rYIz-LKz7OAc5-f2CQKcICVoYR_dkxU1DR4MRKwyc4jOxQs4NDyf60n2NMBDXYJHbhQ]DigitalCowboy00@s...[/url
    Sent: Monday, August 04, 2003 2:35 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Motor mind B


    Dear group,
    I was wondering if u can hook up the motor mind B up to the basic
    stamp?? And how u do it..

    Justin

    [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/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-04 21:49
    Yes, and the MotorMind B manual has connection diagrams and some code
    samples for a Stamp.

    http://www.solutions-cubed.com/Products/MotorMindB/motormindB_download.htm

    There is also some info in one of the Nuts & Volts articles from a few
    years back.


    > I was wondering if u can hook up the motor mind B up to the basic stamp??
    And how u do it..
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-05 03:31
    I want to run the speed of a motor with the motor mind b and the basic
    stamp, but the code they have is more then i need. Does any one now a
    simple code to do this?


    justin
    Original Message
    From: "Jon Williams" <jwilliams@p...>
    To: <basicstamps@yahoogroups.com>
    Sent: Monday, August 04, 2003 2:55 PM
    Subject: RE: [noparse][[/noparse]basicstamps] Motor mind B


    > Yes. There are BASIC Stamp examples in the documentation. It uses a
    > serial connection and is very easy.
    >
    > -- Jon Williams
    > -- Parallax
    >
    >
    >
    Original Message
    > From: Digitalcowboy00 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=hYecnGU0YnY4fcPIvL8-H7a0GMnF8WwdJkiA_bq1FcNnArz6AHszea4iJmy_ufPb9n_ztELNRG-Dd4K8SuST6vA]DigitalCowboy00@s...[/url
    > Sent: Monday, August 04, 2003 2:35 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Motor mind B
    >
    >
    > Dear group,
    > I was wondering if u can hook up the motor mind B up to the basic
    > stamp?? And how u do it..
    >
    > Justin
    >
    > [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/
    >
    >
    >
    >
    > This message has been scanned by WebShield. Please report SPAM to
    > abuse@p....
    >
    >
    >
    >
    > 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 2004-07-08 07:13
    Hi,

    I am a student of Mechanical Engineering at University of South
    Florida.I have a limited background of electronics and through a
    friend of mine working on BAsic Stamps, I learnt about this group.

    I am working in the field of Robotics and am making a robot arm
    gripper. I need to control three DC gearmotors and ensure the work in
    a synchronised fashion using a Motor Mind B. I had a few questions as
    to how to do it.
    1. Is it possible to control three DC Motors using a single Motor
    Mind?
    2.The operating voltage for each motor is 0.29 A and a peak voltage
    is about 0.65 A. Is this voltage too high for the Motor Mind B?
    3. How do I connect the leads of three motors to the Motor Mind B and
    how do I connect it to the Basic Stamp?

    I tried running one motor using a sample program as provided in the
    S3 manual. It worked fine. Now I am trying to run a single motor in a
    reversible manner using a centre-off toggle switch. What values do I
    specify in the program? I mean do I specify a -1,0,1 values for
    Reverse-Stop-Forward or do I need a 1,0,2 Values for the same?

    I understand that this being my first email and am asking too many
    questions. And its quite likely I may be too vague and unspecific
    about my queries If someone can provide me some help, I can finish my
    projects really quickly.

    Regards,
    Koushik
Sign In or Register to comment.