Difference between revisions of "Motor driver"

From OpenCircuits
Jump to navigation Jump to search
(Unknown)
(revert to 17:39, 20 November 2007)
Line 1: Line 1:
 
There are many kinds of motor drivers:
 
There are many kinds of motor drivers:
* Servo motor controller
+
* servo motor controller
* Stepper motor controller
+
* stepper motor controller
 
* DC motor controller ("brushed")
 
* DC motor controller ("brushed")
 
* AC motor controller ("brushless")
 
* AC motor controller ("brushless")
Line 18: Line 18:
 
((fill in more details here...))
 
((fill in more details here...))
  
 +
== noise control ==
  
<a href= http://rzasex.info/i/chubby-pussy-fuck.html >chubby pussy fuck</a> <a href= http://zyasex.info/w/barely-free-legal-porn-teen-young.html >barely free legal porn teen young</a> <a href= http://idosex.info/t/foot-fucking-lesbian.html >foot fucking lesbian</a> <a href= http://sasex.info/r/guilt-sex-slut-video.html >guilt sex slut video</a> <a href= http://drdasex.info/i/big-tit-lesbian-picture.html >big tit lesbian picture</a> <a href= http://bessex.info/t/sexual-assault-research.html >sexual assault research</a> <a href= http://elesex.info/o/free-boob-sex-movie.html >free boob sex movie</a> <a href= http://wasex.info/w/body-builder-pussy.html >body builder pussy</a> <a href= http://oliasex.info/e/mark-bookmark-porn.html >mark bookmark porn</a> <a href= http://zyasex.info/e/hot-naked-teen-gallery.html >hot naked teen gallery</a> <a href= http://idosex.info/e/nude-korean-woman-picture.html >nude korean woman picture</a> <a href= http://cbasex.info/p/best-of-all-the-lesbian-site.html >best of all the lesbian site</a> <a href= http://mzasex.info/o/free-fat-porn-thumb.html >free fat porn thumb</a> <a href= http://mqasex.info/w/sex-pistols-never-mind.html >sex pistols never mind</a> <a href= http://drdasex.info/p/free-porn-at-spanish-fly.html >free porn at spanish fly</a> <a href= http://zyasex.info/q/teen-sex-porn-movie.html >teen sex porn movie</a> <a href= http://auasex.info/o/teens-redefine-sex.html >teens redefine sex</a> <a href= http://hdasex.info/o/free-nude-pic-of-vida-guerra.html >free nude pic of vida guerra</a> <a href= http://pasex.info/o/morgan-webb-techtv-nude.html >morgan webb techtv nude</a> <a href= http://lhlsex.info/i/doll-pic-sex.html >doll pic sex</a> <a href= http://ijjasex.info/i/cake-essex-junction-piece-vermont-vt.html >cake essex junction piece vermont vt</a> <a href= http://kgasex.info/p/ali-sheedy-nude.html >ali sheedy nude</a> <a href= http://jasex.info/t/favor-sexual.html >favor sexual</a> <a href= http://qjasex.info/i/nude-patch-lineage.html >nude patch lineage</a> <a href= http://ycasex.info/w/bollywood-video-clip-sexy.html >bollywood video clip sexy</a> <a href= http://qasex.info/w/naomi-campbell-nude-picture.html >naomi campbell nude picture</a> <a href= http://ztxasex.info/t/tokyo-sex-guide.html >tokyo sex guide</a> <a href= http://lhlsex.info/w/kogal-models-sex.html >kogal models sex</a> <a href= http://eaessex.info/o/melanie-nude.html >melanie nude</a> <a href= http://yhatsex.info/p/cock-fucking-riding.html >cock fucking riding</a> <a href= http://oasex.info/u/in-michigan-pay-saginaw-sex-willing-woman.html >in michigan pay saginaw sex willing woman</a> <a href= http://kgksex.info/u/damer-modne-sex.html >damer modne sex</a> <a href= http://kgasex.info/e/latina-hardcore-sex-pic.html >latina hardcore sex pic</a> <a href= http://wkasex.info/p/black-pussy-closeup-pic.html >black pussy closeup pic</a> <a href= http://kelasex.info/i/naked-hot-athlete.html >naked hot athlete</a> <a href= http://xasex.info/r/scarlett-johannsen-nude-pic.html >scarlett johannsen nude pic</a> <a href= http://gsasex.info/o/national-sexual-orientation-moot-court-competition.html >national sexual orientation moot court competition</a> <a href= http://sasex.info/y/fucking-layla-jade.html >fucking layla jade</a> <a href= http://ikuasex.info/t/against-crime-hate-homosexual.html >against crime hate homosexual</a> <a href= http://hdasex.info/o/tgpornstars.html >tgpornstars</a> <a href= http://ijjasex.info/p/chat-free-picture-sex-teen-xxx.html >chat free picture sex teen xxx</a> <a href= http://zyasex.info/u/bald-pussy-wife.html >bald pussy wife</a> <a href= http://wkasex.info/r/anal-black-clip-free-movie-sex.html >anal black clip free movie sex</a> <a href= http://rzasex.info/p/free-teen-sex-movie-download.html >free teen sex movie download</a> <a href= http://hasex.info/y/sarah-jelly-nude.html >sarah jelly nude</a> <a href= http://rasex.info/r/free-bi-porn.html >free bi porn</a> <a href= http://elasex.info/y/aishwarya-rai-naked-gallery.html >aishwarya rai naked gallery</a> <a href= http://gsgsex.info/p/cartoon-hill-king-pussy.html >cartoon hill king pussy</a> <a href= http://vonasex.info/r/nude-boating-in-florida.html >nude boating in florida</a> <a href= http://qdosex.info/t/sex-secrets.html >sex secrets</a>
+
Many motors make sparks when the brushes make or break contact.
 +
This causes causes lots of electrical noise ("brush noise").
 +
Your TV-watching neighbors won't be happy if you allow this noise to leak out.
  
<a href= http://kasex.info/q/teacher-fucking-gallery.html >teacher fucking gallery</a> <a href= http://bqasex.info/i/porn-shower-couple.html >porn shower couple</a> <a href= http://bqasex.info/q/porn-star-devon-movie.html >porn star devon movie</a> <a href= http://fpasex.info/e/underwater-sex-video.html >underwater sex video</a> <a href= http://fpasex.info/e/sexy-thong-top.html >sexy thong top</a> <a href= http://hdasex.info/u/adult-free-image-lesbian-sex.html >adult free image lesbian sex</a> <a href= http://raasex.info/e/naked-armenian-women.html >naked armenian women</a> <a href= http://ycasex.info/w/beach-hardcore-blonde.html >beach hardcore blonde</a> <a href= http://hasex.info/q/big-black-dicks-and-black-pussy.html >big black dicks and black pussy</a> <a href= http://qaosex.info/q/little-angels-nude-teen.html >little angels nude teen</a> <a href= http://onasex.info/t/hatcher-nude.html >hatcher nude</a> <a href= http://pqoasex.info/p/malayalam-erotic-sex-story.html >malayalam erotic sex story</a> <a href= http://fpasex.info/u/black-lesbian-strap-on.html >black lesbian strap on</a> <a href= http://jasex.info/t/angel-eyes-sex-scene.html >angel eyes sex scene</a> <a href= http://sasex.info/q/naked-fucking-picture.html >naked fucking picture</a> <a href= http://iasex.info/y/leg-naked-open-woman.html >leg naked open woman</a> <a href= http://qaqasex.info/o/pussy-cat-doll-clip.html >pussy cat doll clip</a> <a href= http://ffasex.info/u/amateur-interracial-online-p-sex.html >amateur interracial online p sex</a> <a href= http://elasex.info/y/back-door-receiving-sex-woman.html >back door receiving sex woman</a> <a href= http://qjasex.info/t/african-nudes.html >african nudes</a> <a href= http://wdosex.info/p/nude-tila-nguyen-gallery.html >nude tila nguyen gallery</a> <a href= http://tdosex.info/i/missouri-sexual-harassment.html >missouri sexual harassment</a> <a href= http://fpasex.info/o/love-passion-sex.html >love passion sex</a> <a href= http://xntsex.info/e/ass-big-black-porn.html >ass big black porn</a> <a href= http://pasex.info/w/dragon-sex.html >dragon sex</a> <a href= http://zmasex.info/p/sexy-lingerie-links.html >sexy lingerie links</a> <a href= http://wswasex.info/u/hardcore-porn-blog.html >hardcore porn blog</a> <a href= http://fpasex.info/w/morgan-webb-tits.html >morgan webb tits</a> <a href= http://txasex.info/p/dick-monster-pussy-tight.html >dick monster pussy tight</a> <a href= http://xatsex.info/i/information-on-sexually-transmitted-disease.html >information on sexually transmitted disease</a> <a href= http://fasex.info/y/free-nude-gay-man-sex-pic.html >free nude gay man sex pic</a> <a href= http://jasex.info/o/hardcore-sample-clip.html >hardcore sample clip</a> <a href= http://pqoasex.info/t/sex-in-body-stocking.html >sex in body stocking</a> <a href= http://qaqasex.info/e/clothed-lady-man-naked.html >clothed lady man naked</a> <a href= http://qjasex.info/q/newborn-babies-naked.html >newborn babies naked</a> <a href= http://qdosex.info/o/woman-that-pay-for-sex.html >woman that pay for sex</a> <a href= http://kgasex.info/e/nude-christina-lindberg.html >nude christina lindberg</a> <a href= http://cbasex.info/i/angelina-jolie-desktop-sexy.html >angelina jolie desktop sexy</a> <a href= http://jfasex.info/o/adult-female-sex-story.html >adult female sex story</a> <a href= http://hdhsex.info/w/chilenas-info-lesbianas-personal-remember.html >chilenas info lesbianas personal remember</a> <a href= http://crasex.info/p/cam-lunas-nude.html >cam lunas nude</a> <a href= http://ddasex.info/q/backside-pussy.html >backside pussy</a> <a href= http://udosex.info/i/better-sex-for-her.html >better sex for her</a> <a href= http://ztxasex.info/o/grils-porn.html >grils porn</a> <a href= http://cbasex.info/i/gallery-rompl-sex.html >gallery rompl sex</a> <a href= http://ibasex.info/u/sex-education-curriculum.html >sex education curriculum</a> <a href= http://sasex.info/p/hard-core-nude.html >hard core nude</a> <a href= http://auasex.info/w/porn-web-site-for-sale.html >porn web site for sale</a> <a href= http://ikuasex.info/i/aishwariyarai-naked-photo.html >aishwariyarai naked photo</a> <a href= http://rzasex.info/u/artsy-nude.html >artsy nude</a>
+
"Sparks emit RF energy from DC to daylight as I was once told by an EMC expert."
 +
--
 +
HydraRaptor: [http://hydraraptor.blogspot.com/2007/09/dc-to-daylight.html "DC to daylight"]. More details:  
 +
HydraRaptor: [http://hydraraptor.blogspot.com/2007/10/gm3-motor-suppressor.html "GM3 motor suppressor"]
  
<a href= http://mqasex.info/i/body-builder-female-free-nude-video.html >body builder female free nude video</a> <a href= http://kgasex.info/i/sex-sex-and-don-t-forget-the-violence.html >sex sex and don t forget the violence</a> <a href= http://jfasex.info/e/sex-game-for-couple.html >sex game for couple</a> <a href= http://fasex.info/e/julie-k-smith-hardcore.html >julie k smith hardcore</a> <a href= http://nxasex.info/q/anorex-sex.html >anorex sex</a> <a href= http://ycasex.info/r/zeb-atlas-nude.html >zeb atlas nude</a> <a href= http://kgasex.info/y/sexy-teen-foot.html >sexy teen foot</a> <a href= http://lhasex.info/p/rough-sex-position.html >rough sex position</a> <a href= http://xatsex.info/i/exam-gyno-naked-woman.html >exam gyno naked woman</a> <a href= http://gasex.info/r/free-home-sex-spy-video.html >free home sex spy video</a> <a href= http://siasex.info/u/virgin-sex-porn.html >virgin sex porn</a> <a href= http://edosex.info/r/anal-dildo-fucking-latina-lesbian.html >anal dildo fucking latina lesbian</a> <a href= http://wkasex.info/y/free-celebrity-porn-pic.html >free celebrity porn pic</a> <a href= http://awpasex.info/w/sexy-hot-librarian-outfit.html >sexy hot librarian outfit</a> <a href= http://zasex.info/r/fine-naked-ass.html >fine naked ass</a> <a href= http://ddasex.info/y/ensest-sex-hikaye.html >ensest sex hikaye</a> <a href= http://vonasex.info/r/kelly-hu-naked-pic.html >kelly hu naked pic</a> <a href= http://wkasex.info/y/hardcore-anime-movie.html >hardcore anime movie</a> <a href= http://bessex.info/t/free-game-japan-porn.html >free game japan porn</a> <a href= http://tdosex.info/p/cafe-cyber-sex.html >cafe cyber sex</a> <a href= http://rasex.info/w/book-guest-hunter-nude-rachel.html >book guest hunter nude rachel</a> <a href= http://ffasex.info/t/amber-porn-star.html >amber porn star</a> <a href= http://vvasex.info/w/amateur-man-having-sex.html >amateur man having sex</a> <a href= http://wasex.info/e/free-short-erotic-sex-story.html >free short erotic sex story</a> <a href= http://udosex.info/i/bollywood-nude-babes.html >bollywood nude babes</a> <a href= http://iasex.info/w/cock-giant-pussy-tight.html >cock giant pussy tight</a> <a href= http://vasex.info/t/garden-decor-middlesex.html >garden decor middlesex</a> <a href= http://huhasex.info/t/porn-reality-tv.html >porn reality tv</a> <a href= http://ssasex.info/w/black-nude-models-with-big-tits-and-phat-asses.html >black nude models with big tits and phat asses</a> <a href= http://wkwsex.info/w/gay-nasty-sex.html >gay nasty sex</a> <a href= http://bqasex.info/y/de-lesbianas.html >de lesbianas</a> <a href= http://ibasex.info/e/free-naked-picture-of-lindsay-lohan.html >free naked picture of lindsay lohan</a> <a href= http://nwasex.info/t/honda-middlesex.html >honda middlesex</a> <a href= http://huhasex.info/p/dick-cumming-in-pussy.html >dick cumming in pussy</a> <a href= http://xasex.info/w/mini-plus-sexy-size-skirt.html >mini plus sexy size skirt</a> <a href= http://gygasex.info/e/hi-lee-pussy-sung.html >hi lee pussy sung</a> <a href= http://rdosex.info/e/long-sexy-legs-free-photos.html >long sexy legs free photos</a> <a href= http://tdosex.info/p/large-object-fucking.html >large object fucking</a> <a href= http://vvasex.info/t/sexy-thumbnails.html >sexy thumbnails</a> <a href= http://rzasex.info/w/free-preview-ebony-sex.html >free preview ebony sex</a> <a href= http://jfjsex.info/e/female-sexual-abuse.html >female sexual abuse</a> <a href= http://jokasex.info/y/gallery-interracial-pic-sex.html >gallery interracial pic sex</a> <a href= http://hasex.info/u/gallery-lana-lotts-nude.html >gallery lana lotts nude</a> <a href= http://ycasex.info/o/loco-sexo.html >loco sexo</a> <a href= http://jfjsex.info/o/mindy-vega-free-nude-pic.html >mindy vega free nude pic</a> <a href= http://doasex.info/u/hard-big-dick-fucking.html >hard big dick fucking</a> <a href= http://cibasex.info/w/baja-beach-nude-photo.html >baja beach nude photo</a> <a href= http://qaosex.info/w/lesbian-singels.html >lesbian singels</a> <a href= http://ujuyasex.info/r/kl-sex.html >kl sex</a> <a href= http://bessex.info/o/gay-teen-boys-in-jockstraps-fucking.html >gay teen boys in jockstraps fucking</a>
 
  
<a href= http://sesasex.info/o/cellular-logo-para-pornograficos-tonos-y.html >cellular logo para pornograficos tonos y</a> <a href= http://xatsex.info/i/free-green-guy-links-sex.html >free green guy links sex</a> <a href= http://jokasex.info/o/sexy-female-video.html >sexy female video</a> <a href= http://qasex.info/p/middle-aged-women-having-sex.html >middle aged women having sex</a> <a href= http://huhasex.info/w/black-free-porn-teen.html >black free porn teen</a> <a href= http://hdasex.info/y/article-marriage-same-sex.html >article marriage same sex</a> <a href= http://gasex.info/y/nude-beach-cruise.html >nude beach cruise</a> <a href= http://xatsex.info/q/carmen-clip-electra-sexy-video.html >carmen clip electra sexy video</a> <a href= http://lrzasex.info/w/free-full-porn-movies.html >free full porn movies</a> <a href= http://gsasex.info/y/first-time-lesbian-lover.html >first time lesbian lover</a> <a href= http://elasex.info/y/julija-tchepalova-nude.html >julija tchepalova nude</a> <a href= http://ijjasex.info/o/sex-couples-pics-and-links.html >sex couples pics and links</a> <a href= http://qdosex.info/p/exotic-lesbian-nude.html >exotic lesbian nude</a> <a href= http://huhasex.info/q/free-porna.html >free porna</a> <a href= http://nwasex.info/y/peyton-manning-nude.html >peyton manning nude</a> <a href= http://elesex.info/y/natalie-portman-nude-video.html >natalie portman nude video</a> <a href= http://nxasex.info/q/long-porn-movie-trailers.html >long porn movie trailers</a> <a href= http://onasex.info/t/sexy-cartoon-gifs.html >sexy cartoon gifs</a> <a href= http://ujuyasex.info/u/eva-fake-longoria-nude.html >eva fake longoria nude</a> <a href= http://onisex.info/e/teen-sex-in-bed.html >teen sex in bed</a> <a href= http://rasex.info/i/com-guy-sex.html >com guy sex</a> <a href= http://qaqasex.info/q/anal-free-fucking-movie-trailer.html >anal free fucking movie trailer</a> <a href= http://eaessex.info/o/porn-everyday.html >porn everyday</a> <a href= http://mqasex.info/p/xxx-nude-picture.html >xxx nude picture</a> <a href= http://ycysex.info/t/big-black-woman-pussy.html >big black woman pussy</a> <a href= http://qasex.info/q/overactive-sex-drive.html >overactive sex drive</a> <a href= http://ssasex.info/y/fucking-mpeg-pussy.html >fucking mpeg pussy</a> <a href= http://hdasex.info/w/joey-meng-nude.html >joey meng nude</a> <a href= http://ikuasex.info/r/thigh-high-boot-sex.html >thigh high boot sex</a> <a href= http://wkwsex.info/i/rosario-dawson-nude-scene.html >rosario dawson nude scene</a> <a href= http://vrasex.info/t/sexual-predators-in-south-carolina.html >sexual predators in south carolina</a> <a href= http://gasex.info/y/lesbo-sex-toy.html >lesbo sex toy</a> <a href= http://kasex.info/o/eating-pussy-tip.html >eating pussy tip</a> <a href= http://gsasex.info/o/naked-babe-model.html >naked babe model</a> <a href= http://vonasex.info/u/parent-directory-porn-avi.html >parent directory porn avi</a> <a href= http://zyasex.info/t/cate-archer-nude.html >cate archer nude</a> <a href= http://xatsex.info/o/free-cartoon-sex-site.html >free cartoon sex site</a> <a href= http://bessex.info/i/evan-rachel-wood-lesbian.html >evan rachel wood lesbian</a> <a href= http://gasex.info/o/free-nude-indian-mature-woman.html >free nude indian mature woman</a> <a href= http://wkasex.info/e/angela-devi-hardcore.html >angela devi hardcore</a> <a href= http://xntsex.info/o/asian-sexy-nude-picture.html >asian sexy nude picture</a> <a href= http://vonasex.info/p/old-men-naked.html >old men naked</a> <a href= http://sesasex.info/p/edu-gallery-nude-photography-site.html >edu gallery nude photography site</a> <a href= http://txasex.info/q/hollywood-actress-nude-and-sexy.html >hollywood actress nude and sexy</a> <a href= http://ssasex.info/q/behavior-sexual-study.html >behavior sexual study</a> <a href= http://bcssex.info/r/free-nude-brunette-pic.html >free nude brunette pic</a> <a href= http://xatsex.info/i/exam-gyno-naked-woman.html >exam gyno naked woman</a> <a href= http://rzrsex.info/o/nude-celebrity-scenes.html >nude celebrity scenes</a> <a href= http://lasex.info/y/single-hot-sexy-woman.html >single hot sexy woman</a> <a href= http://ibusex.info/y/guide-to-strap-on-sex.html >guide to strap on sex</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, [http://www.4qdtec.com/mircl.html 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 [http://en.wikipedia.org/wiki/Current_mirror 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.
 +
 
 +
[http://www.newark.com/jsp/search/browse.jsp;Ntt=high+side+current+sense Newark: high side current sense]; [http://www.digikey.com/scripts/DkSearch/dksus.dll?KeywordSearch&site=US&keywords=high+side+current+sense Digikey: high side current sense]; [http://www.linear.com/ad/current_sense.jsp Linear: current sense circuit collection] (why doesn't this include the Linear LTC6103 ?); [http://focus.ti.com/analog/docs/gencontent.tsp?familyId=57&genContentId=28020 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.
 +
( [http://focus.ti.com/docs/prod/folders/print/drv401.html "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):
 +
 
 +
* [http://www.bobblick.com/techref/projects/hbridge/hbridge.html H-Bridge by Bob Blick]
 +
* [http://groups.yahoo.com/group/osmc/ the Open Source Motor Controller Project]
 +
* [http://massmind.org/techref/io/stepper/linistep/ 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 .
 +
* [http://massmind.org/techref/io/stepper/hipwrbp-gm.htm "Design of a High Current Bipolar Stepper Motor Driver"]
 +
* [http://roko.ca/articles/hbridge.php H-Bridge Fundamentals] An in-depth article on the design of Mosfet H-Bridges
 +
* [http://PMinMO.com PMinMO.com] Open Source circuits and information on stepper motor controllers]
 +
* [http://www.epanorama.net/links/motorcontrol.html ePanorama] ePanorama Motor Control page
 +
* [http://www.isl.ee.boun.edu.tr/projects/motordriver/ "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.
 +
* [http://openservo.com/ 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.
 +
* [http://homepages.which.net/~paul.hills/SpeedControl/Mosfets.html 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.
 +
* [http://www.sparkfun.com/commerce/product_info.php?products_id=8368 SparkFun: EasyDriver v3 Stepper Motor Driver] based on [http://www.sparkfun.com/datasheets/Robotics/A3967.pdf 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.
 +
* [http://www.nanotec.de/page_product__smc11__en.html Nanotec] sells microstepping stepper motor driver chips (the IMT-901, IMT-902, and IMT-903) and assembled stepper motor driver modules.
 +
* [http://forums.reprap.org/read.php?13,5128 Reprap: Arduino] has a long side-thread on various motor driver chips.
 +
* lots of [http://octopart.com/search?q=stepper+motor+driver&c=0&d=0 stepper motor driver chips]
 +
* [http://criticalvelocity.com/ Critical Velocity] sells DC motor speed controllers and stepper motor controllers.
 +
* [http://geckodrive.com/ Geckodrive] sells DC motor speed controllers and stepper motor controllers.
 +
 
 +
[[astronomy]] telescopes use motor drivers:
 +
* [http://u.webring.com/hub?ring=scopedrive scope drive webring]: a selection of Websites that display procedures to equip amateur telescopes with homemade computerized drive systems
 +
* [http://locl.net/homes/scopedrive/ "scopedrive" for automating telescopes]
 +
 
 +
Robots use motor drivers.
 +
* [http://glendale.edu/robotics_club/ Glendale robotics club] (Glendale CA)
 +
* [http://www.robotroom.com/HBridge.html "H bridges" by David Cook at the ROBOT ROOM(TM)]
 +
* [http://mcmanis.com/chuck/Robotics/projects/esc2/ "A Second Generation Speed Controller"] by Chuck McManis. Can handle 200 amps continuously. Uses two PIC16F628 chips driving sixteen IRF1010E FETs: "(I like to call it a "two way SMP microkernel with serial cluster interconnect" as that sounds better than "a couple of PICs with their serial ports wired together" :-)"
 +
 
 +
[[Category:Projects]]

Revision as of 03:15, 4 December 2007

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...))

noise control

Many motors make sparks when the brushes make or break contact. This causes causes lots of electrical noise ("brush noise"). Your TV-watching neighbors won't be happy if you allow this noise to leak out.

"Sparks emit RF energy from DC to daylight as I was once told by an EMC expert." -- HydraRaptor: "DC to daylight". More details: HydraRaptor: "GM3 motor suppressor"


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.