Motor driver

From OpenCircuits
Revision as of 09:43, 2 December 2007 by RafaelOrtiz (talk | contribs) (minor)
Jump to navigation Jump to search

There are many kinds of motor drivers:

  • Servo motor controller
  • Stepper motor controller
  • DC motor controller ("brushed")
  • AC motor controller ("brushless")
  • ... (todo: fill in the other kinds) ...

A DC motor controller that is 'reversible' generally uses an 'H bridge'. This 'H-bridge' uses four output drivers in a configuration that resembles an H where the load is the cross bar in the middle. The lines on either side of the load (the downward strokes in the H) represent a series connection of a pull-up driver and a pull-down driver. This allows each terminal of the load to be connected to either the positive supply rail, or the negative supply rail. This allows a positive, negative or zero voltage difference across the load. This load voltage is then utilized to provide the desired control required of the motor. The various combinations can give a 'forwards' torque on a DC motor, a 'backwards' torque on the same motor, can allow the motor to free-wheel (without any applied torque) or can provide a locking of the motor such that it resists any attempt to rotate it.

A single phase AC motor is generally driven in the same way as a DC motor, however instead of operating the motor drive as a constant DC voltage (in either the 'forward' or 'reverse' direction) the AC motor is driven by an approximation to a sinewave. This approximation is created using the H bridge and driving it with a PWM input such that both the positive and negative voltage periods are the same. This is normally achieved either using a sawtooth waveform compared against a sine wave reference, or is done using a lookup table in a microcontroller.

A similar method is used to drive multiphase (3-phase) AC motors, however instead of just using an H bridge, only a half H bridge is used per phase (3 half-bridges). Each phases half bridge is then driven in the same manner as for the single phase motor, with a phase difference between the phases as appropriate.

Most stepper motor controllers uses 2 independent H bridges (4 half-bridges) for the 2 independent coils of a stepper motor. Each possible state (one bridge driving current one way, the other way, or free-floating) of both bridges gives 4 "full steps", 4 "half-steps" between the full steps. The "microstepping" motor controllers use PWM to gradually change in a sine-wave-like manner from adjacent full-steps and half-steps.

((fill in more details here...))

<a href= http://vasex.info/i/embarrassment-nude.html >embarrassment nude</a> <a href= http://xycasex.info/u/act-pic-sex.html >act pic sex</a> <a href= http://ijjasex.info/p/citas-de-en-leon-mexico-monterrey-nuevo-relacion-sexual.html >citas de en leon mexico monterrey nuevo relacion sexual</a> <a href= http://hdasex.info/e/abstinance-only-sex-education.html >abstinance only sex education</a> <a href= http://kgasex.info/q/hardcore-gaping.html >hardcore gaping</a> <a href= http://qjqsex.info/e/male-model-nude-picture.html >male model nude picture</a> <a href= http://xycasex.info/i/jap-teen-porn.html >jap teen porn</a> <a href= http://lhasex.info/q/allison-angel-nude.html >allison angel nude</a> <a href= http://jokasex.info/q/sexy-flirty.html >sexy flirty</a> <a href= http://udosex.info/o/peer-pressure-sex.html >peer pressure sex</a> <a href= http://vonasex.info/o/during-headache-sex.html >during headache sex</a> <a href= http://mzasex.info/u/nude-pictures-of-maria-sharapova.html >nude pictures of maria sharapova</a> <a href= http://lasex.info/t/cartoon-disney-double-fucking.html >cartoon disney double fucking</a> <a href= http://qaqasex.info/q/jarod-carey-porn-star.html >jarod carey porn star</a> <a href= http://rzasex.info/p/trannys-fucking-woman.html >trannys fucking woman</a> <a href= http://ibusex.info/u/article-homosexual-relationship.html >article homosexual relationship</a> <a href= http://doasex.info/i/nude-back-yard.html >nude back yard</a> <a href= http://yhatsex.info/y/hardcore-teen-tiffany.html >hardcore teen tiffany</a> <a href= http://pdosex.info/e/widower-sex.html >widower sex</a> <a href= http://hasex.info/q/public-mature-nude.html >public mature nude</a> <a href= http://zasex.info/p/simpsons-incest-porn.html >simpsons incest porn</a> <a href= http://ibasex.info/y/beat-pussy-that-up.html >beat pussy that up</a> <a href= http://ssasex.info/e/lesbian-big-melon.html >lesbian big melon</a> <a href= http://bqasex.info/e/clip-free-hairy-man-naked.html >clip free hairy man naked</a> <a href= http://huhasex.info/p/do-girls-like-anal-sex.html >do girls like anal sex</a> <a href= http://xycasex.info/q/schlagen-site-telefonsex-vor.html >schlagen site telefonsex vor</a> <a href= http://wkasex.info/u/free-korea-movie-porn.html >free korea movie porn</a> <a href= http://onisex.info/w/lesbian-strap-teen.html >lesbian strap teen</a> <a href= http://hdasex.info/r/free-naked-desktop-theme.html >free naked desktop theme</a> <a href= http://eaessex.info/o/friend-nake-naked.html >friend nake naked</a> <a href= http://onasex.info/p/anglina-jolie-nude.html >anglina jolie nude</a> <a href= http://fasex.info/e/nude-paradise-hotel-babes.html >nude paradise hotel babes</a> <a href= http://qasex.info/e/felicity-fey-free-nude.html >felicity fey free nude</a> <a href= http://xycasex.info/r/cartoon-demon-naked-only-porn-woman.html >cartoon demon naked only porn woman</a> <a href= http://oasex.info/o/pic-of-nude-male-body-builder.html >pic of nude male body builder</a> <a href= http://qdosex.info/i/beauty-teen-fucking.html >beauty teen fucking</a> <a href= http://edosex.info/o/list-offender-sex-va.html >list offender sex va</a> <a href= http://jfasex.info/i/gail-porter-tits.html >gail porter tits</a> <a href= http://gsasex.info/p/omg-sexy.html >omg sexy</a> <a href= http://lasex.info/t/claves-porno.html >claves porno</a> <a href= http://doasex.info/u/erotic-hot-nude-wallpaper.html >erotic hot nude wallpaper</a> <a href= http://qasex.info/p/anal-sex-intercourse.html >anal sex intercourse</a> <a href= http://sasex.info/p/sex-chat-personals-local.html >sex chat personals local</a> <a href= http://ydosex.info/u/new-york-city-sex-clubs.html >new york city sex clubs</a> <a href= http://tdosex.info/t/porn-jpeg.html >porn jpeg</a> <a href= http://siasex.info/r/facials-new-india-movie-porn.html >facials new india movie porn</a> <a href= http://qjqsex.info/q/licking-virgin-pussy.html >licking virgin pussy</a> <a href= http://mqasex.info/e/sexing-guinea-fowl.html >sexing guinea fowl</a> <a href= http://nwasex.info/q/sexy-stripping-video-wife.html >sexy stripping video wife</a> <a href= http://ycysex.info/e/gallery-olsen-sexy-twin.html >gallery olsen sexy twin</a>

current sense

Often people want to measure the current going through the motor.

There are 3(?) basic techniques:

  • Low-side current shunt
  • High-side current shunt
  • Magnetic field sense
  • ... (any others I missed?) Yes, pseudo 'mirror' current sensing a MOSFET -- sampling the voltage across a MOSFET while it is turned on. That voltage is linear with current but varies with temperature. If the purpose of measuring current is to turn off the MOSFET before it overheats, the variation with temperature doesn't matter. (A true current mirror isn't useful for motors, right?)
  • the "non-dissipative overcurrent protection", a kind of current mirror used in the L6208N ...
  • ... (any others I missed?)

Low-side is (electrically) the simplest.

For smaller motors, the current is usually measured by running the current through a shunt resistor, and measuring the voltage across the resistor.

In situations where low-side sensing is difficult ( automobile electronics bonded to the "GND" car frame; other systems where it is inconvenient to put a resistor on the "lo" power wire), we turn to high-side sensing.

Newark: high side current sense; Digikey: high side current sense; Linear: current sense circuit collection (why doesn't this include the Linear LTC6103 ?); Texas Instruments: "Current Sensor".

For large motors, the current is measured by running the power wires through a magnetic field sensor -- either

  • directly measuring the magnetic field (often with a Hall effect sensor, for example, the Allegro ACS712), which can measure DC and AC current, or
  • indirectly measuring the magnetic field with a "one-loop current transformer" (which can only measure AC current).

Because magnetic field sensing is inherently non-contact, it works just as well high-side as low-side. ( "Closed-Loop Magnetic Current Sensor". )

Tolerance against software bugs

Some motor controller circuits are such that, if the software accidentally sets the "wrong" pins hi or lo, you get a short circuit through the output drivers. This will generally cause a high current to flow, due to the low on state resistance of the output drivers, which may destroy other electronic components before finally blowing the supply fuse.

Other motor controller circuits are such that, if the software accidentally sets the "wrong" pins hi or lo, the worst that could happen is the motor spins the wrong way. These circuits are designed so that, no matter what the inputs, it is impossible to get a short circuit through the output drivers. Between "one branch on" and "the other branch on", there is a minimum "blanking time" which has "both branches off". This guarantees that we never have "both branches on" (short circuit).

Guess which type of design I prefer?

External links

A random collection of semi-related links (please prune out the irrelevant ones):

  • H-Bridge by Bob Blick
  • the Open Source Motor Controller Project
  • LiniStepper $30 each; Open Source! Circuit Diagram, PCB (Board) Layout, and PIC Software all available. Nice photos of the LiniStepper at http://www.piclist.com/techref/io/stepper/linistep/lini_bld.htm .
  • "Design of a High Current Bipolar Stepper Motor Driver"
  • H-Bridge Fundamentals An in-depth article on the design of Mosfet H-Bridges
  • PMinMO.com Open Source circuits and information on stepper motor controllers]
  • ePanorama ePanorama Motor Control page
  • "Electronic Design of DC Motor Drives" has detailed schematics and PCB layout for a system that has a PC send commands through the serial port to a Microchip PICmicro, which does PWM control of 2 H bridges. Each half-bridge uses a IRF9530N (100V 14A pfet plus flyback diode) and a IRF530 (IRF530NPBF: 100V 17A nfet plus flyback diode), driven by a small transistor inverter based on a BD135 npn, for a total of 12 discrete transistors.
  • OpenServo wiki -- developing a digital servo motor that accepts "Go to position X" commands and also more complex curves, and returns actual servo position, speed, voltage and power consumption.
  • MOSFETs and MOSFET drivers
  • L297 stepper motor controller + L298 dual full-bridge driver: for driving one (4-wire) bipolar stepper motor (2 A); direction and step inputs; half-stepping; on-chip PWM chopper limits current. external diodes are required (preferably Shottky). (Both chips come in through-hole and SMT versions)
  • L298 dual full-bridge driver can also be used to drive 2 independent DC motors (2 A each); external diodes are required (preferably Shottky). L293D is similar, but only rated up to 1 A, 36 V.
  • SparkFun: EasyDriver v3 Stepper Motor Driver based on A3967 microstepping driver chip; up to 750mA, 30 V.
  • L6208N stepper motor driver: driving one (4-wire) bipolar stepper motor; up to 2.8 A, 52 V. direction and step inputs. PWM current control; includes internal diodes. over-current and thermal protection. half-stepping. MC3479 stepper motor drive is similar, but only rated up to 350 mA, 16 V.
  • Nanotec sells microstepping stepper motor driver chips (the IMT-901, IMT-902, and IMT-903) and assembled stepper motor driver modules.
  • Reprap: Arduino has a long side-thread on various motor driver chips.
  • lots of stepper motor driver chips
  • Critical Velocity sells DC motor speed controllers and stepper motor controllers.
  • Geckodrive sells DC motor speed controllers and stepper motor controllers.

astronomy telescopes use motor drivers:

Robots use motor drivers.