Shop OBEX P1 Docs P2 Docs Learn Events
Can someone please explain this motor driver to me — Parallax Forums

Can someone please explain this motor driver to me

vla7vla7 Posts: 79
edited 2007-12-13 11:51 in BASIC Stamp
I bought a pololu micro dual serial motor controller and am having a hard time getting it to function correctly.
I have the use's guide but it doesn't make any sense to me.· I would really appreciate it if someone can explain how to enter the code to controll this motor controller.· Specifically what numbers make the motor go forward, backwards, and controlling individual motors.··I'm pretty sure I'm·wiring it right so I'm not sure if I somehow fried this little motor controller or if I'm just not understing the code.· I can make it go forwards and backwards but cannot seem to be able to control individual motors.

Comments

  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2007-12-13 03:15
    I believe by default the controller is configured as a two motor controller. It may be possible that somewhere along the line it got configured as a single motor controller. Have you tried sending the configuration string for a two motor controller.

    Jeff T.
  • vla7vla7 Posts: 79
    edited 2007-12-13 03:21
    what's the configuration string for a two motor controller?
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2007-12-13 03:31
    Read page 4, 5, and, especially,·7 of the manual --

    http://www.parallax.com/Portals/0/Downloads/docs/prod/motors/plolumtorcontr.pdf
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2007-12-13 03:31
    Best check the docs but I think it's $80,2,2

    Jeff T.
  • vla7vla7 Posts: 79
    edited 2007-12-13 03:38
    when I enter that code, one motor spins for a second and the other one pulses.
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2007-12-13 03:47
    Upload, as an Attachment, the program you are using.
  • vla7vla7 Posts: 79
    edited 2007-12-13 04:00
    I don't really know what happened but I just loaded this simple program and it worked
    ' {$STAMP BS2}

    HIGH 11
    LOW 10
    HIGH 10
    PAUSE 100

    SEROUT 11,84,[noparse][[/noparse]$80,0,0,127]

    I've been trying it for the that past 2 days and it has been making both motors spin but this time only one of the motor turned on like its supposed to do and I did nothing different. I'm not sure whats going on.
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2007-12-13 04:02
    What you did, for future reference,·was to cofigure the controller for two motor control.

    Jeff T.
  • vla7vla7 Posts: 79
    edited 2007-12-13 04:08
    So do I enter this code first $80,2,2
    run the program, and it reconfigures the driver for 2 motors
    and then enter the new code for example SEROUT 11,84,[noparse][[/noparse]$80,0,0,127]
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2007-12-13 05:11
    You·should not need to use the configuration string again. Your controller is set for two motors now.

    Jeff T.
  • vla7vla7 Posts: 79
    edited 2007-12-13 11:51
    Thanks Jeff and PJ
    I really appreciate the help
    I was ready to give up on this thing
Sign In or Register to comment.