Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Serial controlled variable speed motor

  1. Dec 28, 2015 #1
    Hello all, I am trying to create a circuit that allows me to use serial data to control the speed of a 12v dc motor I removed from an electric drill. So far I have successfully made the circuit in diagram (a) using a 100k pot to alter the speed. So the next problem to solve is how I can instead use serial data as the controller.

    Diagram (a)
    speed controller circuit with pot.jpg

    Diagram (b)
    mosfet circuit.jpg

    Now, the creator of the circuit depicted in diagram (b) stated "I suppose with really beefy motors and really beefy motor power supplies, there might be some danger of getting the backEMF spikes onto the motherboard, causing problems, so ... don't do that." However, someone suggested using diodes to solve this problem of backEMF to protect the computer from spikes. So with all this information considered, my question is now this: What modifications need to be made to the circuit in diagram (b) to make it safe to use so to avoid any nasty backEMF and other potential harm to my computer when using serial data to control the MOSFET?

    Many thanks,
    Sam.
     
    Last edited: Dec 28, 2015
  2. jcsd
  3. Dec 28, 2015 #2

    NascentOxygen

    User Avatar

    Staff: Mentor

    You're not concerned about the low efficiency of the "series resistor" type of speed control? You could get considerably better efficiency were the MOSFET to be used as an on/off switch in a variable pulse-width switching controller. How many amps will the motor draw at full load?

    You'll never want the controller to reverse the motor? If not, then a diode across the MOSFET and another across the motor terminals will catch inductive spikes and protect your MOSFET; the diodes oriented so as to be reverse-biased by the motor's power supply.

    What exactly are you wanting your repurposed drill motor to do?
     
  4. Dec 28, 2015 #3

    anorlunda

    Staff: Mentor

  5. Dec 28, 2015 #4

    meBigGuy

    User Avatar
    Gold Member

    The proper solution is a uP receiving RS-232 commands and then sending PWM to a motor controller like the TB6612

    This board is a proper example:
    http://www.robotshop.com/en/pololu-qik-dual-serial-motor-controller.html

    Here is a board you can connect to an arduino:
    https://www.sparkfun.com/products/9457

    What you have proposed is essentially creating PWM (ON-OFF-ON-OFF) signals via the TX pin of the serial port. There are two ways to do that (from a control perspective). Send serial data patterns to produce the PWM ratios you desire (pulse density modulation), or use the firmware to manually toggle the Tx signal.

    IN either case, the control will be unreliable to the extent that the firmware might be usurped for another task. Also, the degree of speed control is limited.

    But, what you have shown can cause the motor to turn on and turn off at some rate. It does need a protection diode.
     
  6. Dec 29, 2015 #5

    CWatters

    User Avatar
    Science Advisor
    Homework Helper

    Does it have to be RS232? The speed controllers used in model cars/planes use a simple pulse width scheme. Typically they need a 1-2mS long pulse repeated every 20mS. The duration of the pulse sets the speed so 1mS might be OFF and 2mS = Max speed.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Serial controlled variable speed motor
  1. Dc motor speed control (Replies: 4)

  2. AC Motor speed control (Replies: 8)

  3. Motor Speed Control (Replies: 0)

Loading...