Shop OBEX P1 Docs P2 Docs Learn Events
Motor Direction — Parallax Forums

Motor Direction

ArchiverArchiver Posts: 46,084
edited 2000-05-13 03:54 in General Discussion
Hello,,

I would like to know where can I find an IC for
control the direction of a Motor and how can I
interface it., I just need the motor to run left and
then right.


Best Regards,
Alejandro Vazquez

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-05-13 03:54
    This was shown at the Sensor Show in LA this week. Use the Melexis chip
    indicated below to change motor direction and speed.
    Chuck



    'setup for a Melexis MLX10402 motor switcher
    'and Lego 9v motor
    '5/1/00

    b1=9 'stamp pins 9 and 10 connected to Melexis inputs
    b2=10
    aa: 'speed increase in one direction and
    low b1 'speed increase in reverse direction
    low b2
    for b0=50 to 250
    pwm b1,b0,100
    pause 5
    next
    pause 5000
    if b1=9 then cc
    b1=9:b2=10
    goto aa
    cc:
    b1=10:b2=9
    goto aa
Sign In or Register to comment.