Shop OBEX P1 Docs P2 Docs Learn Events
Trying to Connect 2 DC motors to Basic Stamp — Parallax Forums

Trying to Connect 2 DC motors to Basic Stamp

Jay007Jay007 Posts: 5
edited 2007-10-14 12:58 in BASIC Stamp
Hi guys, I'm very new to this and don't even know where you begin?·I want to connect 2 individual DC Motors to the Basic Stamp (Homework Board), that I can control each motor individually. Both Motors are spinning a wheel, what I m trying to do is control the voltage coming into each motor thru a program that will control the speed of each wheel. Ultimately show that if one wheel speeds up the other will automatically slow down. Please advise?

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-10-14 03:27
    Not to put a damper on your idea but depending on the power source and the draw of the motors this may not be true. You can make it true but it's not an absolute.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • Mike GreenMike Green Posts: 23,101
    edited 2007-10-14 03:36
    You need some kind of motor controller. Parallax's HB-25 will work for most DC motors and the Polulu controller will work for some depending on their power requirements. Neither one will allow you to directly control the speed of the motors although they will allow you to control the power going to each motor. If you need to accurately control the speed, you'll need some kind of speed sensor. A simple interrupter may work where you put an LED on one side of the wheel and a phototransistor on the other side of the wheel and arrange so there are holes in the wheel every so often and the Stamp counts the number of light pulses that occur in a period of time which is proportional to the rotational speed of the wheel.
  • D FaustD Faust Posts: 608
    edited 2007-10-14 12:09
    You could also use a hall effect sensor and magnet for an encoder.· If you· do not need forward-revererse control.· Here is a thread about motor controllers: http://forums.parallax.com/showthread.php?p=643103

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    LOOKDOWN ThisThread, [noparse][[/noparse]Your_?, My_?, Cool_Thing], looknum
    LOOKUP looknum, [noparse][[/noparse]1, 2, 3], subnum
    ON subnum GOTO Hope_this_helps, Thanks!, WOW!!
    END 
    
  • Jay007Jay007 Posts: 5
    edited 2007-10-14 12:58
    Thanks for the woderful Ideas, guys, I willl start witht he HB-25. Hopefully that will work.... More input is also apperciated.
Sign In or Register to comment.