Difference between revisions of "Talk:Relays"

From OpenCircuits
Jump to navigation Jump to search
(New page: [http://online.rigour.info/residence-majestic/ residence majestic] [http://guest.rigour.info/library/html/lipari-appartamento/ lipari appartamento] [http://content.rigour.info/html/mensile...)
 
(wikify syntax)
 
(14 intermediate revisions by 10 users not shown)
Line 1: Line 1:
[http://online.rigour.info/residence-majestic/ residence majestic] [http://guest.rigour.info/library/html/lipari-appartamento/ lipari appartamento] [http://content.rigour.info/html/mensile-le/ mensile le ore] [http://gratis.rigour.info/content/view/the-rhytm.htm the rhytm is magic] [http://pagina.rigour.info/malcolm-italiana/ malcolm italiana sas] [http://blog.rigour.info/web/consel/ consel] [http://note.rigour.info/content/view/dlink-adsl.htm d-link adsl wireless kit] [http://pagina.rigour.info/lost-se/ lost s02e15] [http://speed.rigour.info/a-samsung.htm a5 samsung] [http://note.rigour.info/content/view/whose-side.htm whose side are you on] [http://paga.rigour.info/never-been/ never been kissed] [http://italy.rigour.info/blog/la-pastora.htm la pastora] [http://pagina.rigour.info/gps-accessorio/ gps accessorio] [http://pagina.rigour.info/radio-karaoke/ radio karaoke gratis midi e basi music] [http://down.rigour.info/blog/ef-mm.htm ef 28mm f 2 8] [http://blog.rigour.info/web/fonderia-crespi/ fonderia crespi] [http://blog.rigour.info/web/ticino-trasporti/ ticino trasporti] [http://milano.rigour.info/namida.htm namida] [http://milano.rigour.info/modem-wi.htm modem wi fi adsl] [http://italy.rigour.info/blog/ricarica-ink.htm ricarica ink cartuccia compatibile] [http://guest.rigour.info/library/html/www-argentina/ www argentina com] [http://down.rigour.info/blog/tv-usb.htm tv usb digitale analogico] [http://content.rigour.info/html/fiat-punto/ fiat punto sporting] [http://up.rigour.info/description/lib/pc-ram.htm pc3200 ram] [http://paga.rigour.info/bilancia-antica/ bilancia antica] [http://italy.rigour.info/blog/mp-.htm mp3 128 fm] [http://pagina.rigour.info/cooper-gordon/ cooper, gordon leroy] [http://all.rigour.info/non-partir/ non partir] [http://note.rigour.info/content/view/contestazione-generale.htm contestazione generale] [http://load.rigour.info/view/new/le-foto.htm le foto di gioia] [http://all.rigour.info/albergo-due/ albergo due stelle] [http://it.rigour.info/topic/gioco-burrago/ gioco burrago] [http://paga.rigour.info/gagliano-del/ gagliano del capo] [http://note.rigour.info/content/view/antenna-fiat.htm antenna fiat punto] [http://speed.rigour.info/beautifulsoul-jesse.htm beautifulsoul jesse mccartney] [http://web.rigour.info/lettore-di/ lettore di smart-card] [http://blog.rigour.info/web/download-gioco/ download gioco pc gratis] [http://it.rigour.info/topic/de-natura/ de natura deorum traduzione cicerone] [http://guest.rigour.info/library/html/garmin-/ garmin - forerunner 301] [http://note.rigour.info/content/view/lavoro-alba.htm lavoro alba] [http://uve.rigour.info/blog/ulloa-pereira.htm ulloa pereira, luis de-] [http://load.rigour.info/view/new/culi-di.htm culi di donne] [http://content.rigour.info/html/stati-depressivi/ stati depressivi nel bambino] [http://all.rigour.info/liste-nozze/ liste nozze on line] [http://all.rigour.info/prova-scritta/ prova scritta esami di stato] [http://it.rigour.info/topic/carte-dei/ carte dei sentieri] [http://uve.rigour.info/blog/ps-rayman.htm ps2 rayman] [http://all.rigour.info/pl-s/ pl s3500] [http://italy.rigour.info/blog/toyota-yaris.htm toyota yaris 1 4 tdi] [http://it.rigour.info/topic/fascismo-e/ fascismo e nazismo] [http://pagina.rigour.info/haendel-passacaglia/ haendel passacaglia suite n 7] [http://here.rigour.info/blog/richar-gere.htm richar gere] [http://down.rigour.info/blog/spetters.htm spetters] [http://guest.rigour.info/library/html/venezia-milano/ venezia milano biglietti aerei] [http://speed.rigour.info/bugiardo-e.htm bugiardo e incosciente] [http://paga.rigour.info/ferrovie-stato/ ferrovie stato orari] [http://down.rigour.info/blog/wwww-google.htm wwww google] [http://online.rigour.info/veleno-toto/ veleno toto] [http://content.rigour.info/html/nepalesi-massacro/ nepalesi massacro] [http://online.rigour.info/roselyn-sanchez/ roselyn sanchez] [http://pagina.rigour.info/merial-frontline/ merial frontline combo] [http://guest.rigour.info/library/html/wather/ wather] [http://content.rigour.info/html/oc-theme/ oc theme california] [http://pagina.rigour.info/lolita-sex/ lolita sex] [http://web.rigour.info/concorso-premio/ concorso premio] [http://uve.rigour.info/blog/www-pecore.htm www pecore it] [http://milano.rigour.info/eos-.htm eos 300 d kit 18 55 canon] [http://paga.rigour.info/ministero-per/ ministero per i beni e le attivita culturali] [http://dir.rigour.info/warren-g/ warren g regulate] [http://paga.rigour.info/the-reason/ the reason] [http://italy.rigour.info/blog/legge-del.htm legge del 19 maggio 2004] [http://gratis.rigour.info/content/view/foto-dragonstea.htm foto dragonstea] [http://pagina.rigour.info/diana-spencer/ diana spencer accident] [http://online.rigour.info/vecina/ vecina] [http://paga.rigour.info/cd-e/ cd 224e] [http://paga.rigour.info/bioncle/ bioncle] [http://uve.rigour.info/blog/gatta-nera.htm gatta nera ainett stephens] [http://paga.rigour.info/sadica/ sadica] [http://guest.rigour.info/library/html/singles-/ singles - flirt up your life] [http://gratis.rigour.info/content/view/resistores-fisicos.htm resistores fisicos] [http://gratis.rigour.info/content/view/malatya-provincia.htm malatya (provincia)] [http://content.rigour.info/html/radeon-/ radeon 9550 128 bit] [http://up.rigour.info/description/lib/postales-eroticas.htm postales eroticas] [http://guest.rigour.info/library/html/the-dandy/ the dandy warhols] [http://all.rigour.info/remi/ remi] [http://web.rigour.info/fortuna-clip/ fortuna clip] [http://pagina.rigour.info/punk-o/ punk o rama] [http://here.rigour.info/blog/kia-sorento.htm kia sorento roma] [http://here.rigour.info/blog/slip-e.htm slip e perizoma string intimo] [http://gratis.rigour.info/content/view/navigatore-palmare.htm navigatore palmare gps n35] [http://pagina.rigour.info/free-porn/ free porn website] [http://online.rigour.info/tito-schipa/ tito schipa] [http://web.rigour.info/annunci-con/ annunci con foto e telefono] [http://gratis.rigour.info/content/view/cima-.htm cima  srl] [http://uve.rigour.info/blog/you-got.htm you got served] [http://uve.rigour.info/blog/trevi-divx.htm trevi divx] [http://online.rigour.info/mobili-per/ mobili per ospedali] [http://gratis.rigour.info/content/view/blu-club.htm blu club egitto] [http://dir.rigour.info/la-fossa/ la fossa dei peccati] [http://paga.rigour.info/i-cugini/ i cugini di campagna] [http://italy.rigour.info/blog/dolce-.htm dolce 6 gabbana] [http://speed.rigour.info/mondiale-cross.htm mondiale cross 2003. classe 125 e 650] [http://pagina.rigour.info/blues-brother/ blues brother] [http://dir.rigour.info/weyrauch-wolfgang/ weyrauch, wolfgang] [http://web.rigour.info/cochise/ cochise] [http://all.rigour.info/zum-zum/ zum zum zum] [http://guest.rigour.info/library/html/qomsheh/ qomsheh] [http://note.rigour.info/content/view/tenebre.htm tenebre] [http://italy.rigour.info/blog/marisa-monte.htm marisa monte. mais] [http://online.rigour.info/gsmart-mini/ gsmart mini] [http://gratis.rigour.info/content/view/combersar.htm combersar] [http://pagina.rigour.info/polmone-del/ polmone del suino] [http://uve.rigour.info/blog/sesso-genova.htm sesso genova] [http://italy.rigour.info/blog/zoom-ottico.htm zoom ottico 6x] [http://content.rigour.info/html/ostaggio-turco/ ostaggio turco esecuzione] [http://here.rigour.info/blog/are-you.htm are you gonna be my girl ascolto] [http://all.rigour.info/albergo-bordighera/ albergo bordighera] [http://italy.rigour.info/blog/telefonini-nek.htm telefonini nek] [http://online.rigour.info/toronto-sun/ toronto sun com] [http://gratis.rigour.info/content/view/gustavo-grande.htm gustavo grande fratello] [http://here.rigour.info/blog/freelander-roma.htm freelander roma] [http://italy.rigour.info/blog/sesso-con.htm sesso con suore] [http://web.rigour.info/fit-puglia/ fit puglia] [http://content.rigour.info/html/immagine-mare/ immagine mare] [http://all.rigour.info/sony-kepxs/ sony kep-42xs1] [http://blog.rigour.info/web/jeans-take/ jeans take -two kimberly] [http://uve.rigour.info/blog/cura-acne.htm cura acne] [http://here.rigour.info/blog/casa-dolce.htm casa dolce] [http://online.rigour.info/devour-/ devour - il gioco di satana] [http://here.rigour.info/blog/maturita-.htm maturita 2004 topografia] [http://blog.rigour.info/web/agp-slot/ agp slot] [http://speed.rigour.info/gaber-giorgio.htm gaber giorgio] [http://gratis.rigour.info/content/view/storage.htm storage] [http://content.rigour.info/html/gol-miner/ gol miner] [http://online.rigour.info/rotten-porno/ rotten porno] [http://paga.rigour.info/office/ office 2003] [http://guest.rigour.info/library/html/orari-treni/ orari treni venezia milano] [http://load.rigour.info/view/new/lettore-dvd.htm lettore dvd supporto divx 500] [http://uve.rigour.info/blog/bananan.htm bananan] [http://pagina.rigour.info/dance/ dance 1990] [http://paga.rigour.info/pentium-j/ pentium4 550j] [http://uve.rigour.info/blog/giochi-per.htm giochi per celulari lg r telefoni lg] [http://content.rigour.info/html/opel-zafira/ opel zafira milano] [http://all.rigour.info/lettore-dvx/ lettore dvx recorder dvd] [http://dir.rigour.info/mercedes-classe/ mercedes classe a istruzione uso it] [http://italy.rigour.info/blog/lotus-firenze.htm lotus firenze] [http://milano.rigour.info/compensi-del.htm compensi del collegio sindacale] [http://here.rigour.info/blog/niki-srl.htm niki srl] [http://load.rigour.info/view/new/new-york.htm new york minute] [http://pagina.rigour.info/www-dpo/ www dpo] [http://dir.rigour.info/paola-e/ paola e chiara cantanti nude] [http://note.rigour.info/content/view/monitor-crt.htm monitor crt 0 25] [http://blog.rigour.info/web/server-adunanza/ server adunanza] [http://here.rigour.info/blog/km-jeep.htm km0 jeep cherokee diesel auto km 0] [http://blog.rigour.info/web/microsoft-windows/ microsoft windows xp media] [http://down.rigour.info/blog/merletto.htm merletto] [http://gratis.rigour.info/content/view/nhun.htm nhun] [http://online.rigour.info/aspirapolvere-ad/ aspirapolvere ad acqua con filtro hepa] [http://speed.rigour.info/azione-d.htm azione 3d] [http://content.rigour.info/html/mondo-wrestling/ mondo wrestling it] [http://here.rigour.info/blog/smartphone-gps.htm smartphone gps] [http://online.rigour.info/maximus-mix/ maximus mix] [http://speed.rigour.info/happy-song.htm happy song] [http://online.rigour.info/nashville/ nashville] [http://dir.rigour.info/power-dvd/ power dvd software] [http://italy.rigour.info/blog/palmerio.htm palmerio] [http://all.rigour.info/economia-unile/ economia unile it] [http://content.rigour.info/html/heredia/ heredia] [http://down.rigour.info/blog/hard-disk.htm hard disk 2 5 apple] [http://online.rigour.info/the-lions/ the lions sleeps tonight] [http://web.rigour.info/codici-gameshark/ codici gameshark gba] [http://milano.rigour.info/batterie-panasonic.htm batterie panasonic x70] [http://pagina.rigour.info/seduzioni/ seduzioni] [http://down.rigour.info/blog/okamura.htm okamura] [http://dir.rigour.info/partituras-de/ partituras de la ley] [http://down.rigour.info/blog/dida.htm dida] [http://it.rigour.info/topic/und/ und] [http://online.rigour.info/monitor-benq/ monitor benq lcd 19 fp931] [http://web.rigour.info/caught-in/ caught in a middle] [http://uve.rigour.info/blog/cam-girls.htm cam girls] [http://content.rigour.info/html/matite-giotto/ matite giotto] [http://here.rigour.info/blog/j-veux.htm j veux d la tendresse] [http://here.rigour.info/blog/chams.htm chams] [http://online.rigour.info/acer-palmare/ acer palmare navigatore gps] [http://pagina.rigour.info/udo-samel/ udo samel] [http://pagina.rigour.info/faak-it/ faak it] [http://uve.rigour.info/blog/www-fondaria.htm www fondaria it] [http://gratis.rigour.info/content/view/nokia-rsmmc.htm nokia rs-mmc dv] [http://here.rigour.info/blog/la-canzone.htm la canzone del sle] [http://paga.rigour.info/stato-patrimoniale/ stato patrimoniale] [http://load.rigour.info/view/new/mensaje-detexto.htm mensaje detexto] [http://content.rigour.info/html/che-tette/ che tette] [http://content.rigour.info/html/concessionari-kawasaki/ concessionari kawasaki] [http://note.rigour.info/content/view/toyota-di.htm toyota di mauro] [http://italy.rigour.info/blog/ati-radeon.htm ati radeon 9600 agp] [http://up.rigour.info/description/lib/raw.htm raw] [http://load.rigour.info/view/new/bando-forze.htm bando forze armate] [http://dir.rigour.info/adven/ adven] [http://gratis.rigour.info/content/view/twentieth-centuryfox.htm twentieth century-fox] [http://down.rigour.info/blog/pace-nel.htm pace nel mondo]
+
== that resistor shouldn't be 10k ==
 +
 
 +
my argument:
 +
 
 +
Um, assuming that somebody just threw in 10k and didn't bother to calculate what the value should be, then it's misleading at best (ie, always use 10k) and won't work at worst (I realize that 10k might be the correct value for some choices of transistor, relay and microcontroller). This isn't just a pull-up or pull-down resistor. It matters what current is going through it, because the same current ends up going through the base of the transistor.
 +
 
 +
the fix:
 +
 
 +
It'd be great if the original author of the jpeg would modify it to just say R and then we could put the formula for figuring out what it should be in there.
 +
 
 +
And then we could add the following text, although it sort of belongs in a transistor section or page:
 +
 
 +
----
 +
 
 +
If you have a microcontroller and you want to have it control an NPN transistor, you need to have a resistor in series with the base of the transistor.
 +
This is to get the voltage from the microcontroller's output level down to what the transistor wants (about 0.6V).
 +
Another way of thinking of it is to get the current through the resistor (and hence through the base) correct.
 +
 
 +
In the following description, <math>V_{microcontroller}</math> is the driving voltage from your microcontroller's output (for example, 3.3V), <math>V_{base}</math> is the voltage the transistor wants across the base-emitter (usually about 0.6V), <math>I_{relay}</math> is the current the relay needs running through it to be turned on (for example, 100mA), and <math>h_{fe}</math> is the current gain of the transistor (usually about a factor of 100, so if you have 1mA going through the base of the transistor, you can get up to 100 times that, or 100mA through the emitter/collector).
 +
 
 +
You need to drop a voltage <math>(V_{microcontroller}-V_{base})</math> across the resistor, and if your relay needs a current <math>I_{relay}</math> to switch, then your base-emitter current <math>I_{base}</math> should be <math>I_{base} = {{2I_{relay}}\over{h_{fe}}}</math> (with the factor of 2 as a safety margin, remember the emitter-collector current can only be up to <math>h_{fe}</math> times the base-emitter current and we don't want to design it to be on the edge of just barely working).
 +
We have a voltage and a current, so we use Ohm's law to get the resistance: <math>V_{resistor}=I_{resistor}R</math>, which we rewrite as <math>R={{V_{resistor}}\over{I_{resistor}}}</math> and then get <math>R={{h_{fe}(V_{microcontroller}-V_{base})}\over{2I_{relay}}}</math>.
 +
So, punch your components' values in to that formula and you'll get the resistor value to use.
 +
 
 +
Example: Using the common values stated earlier, we get <math>R={{100(3.3V-0.6V)}\over{2(100mA)}}=1350\Omega</math>.
 +
 
 +
----
 +
 
 +
well, the <nowiki><math></math></nowiki> latex markup syntax seems not to to be working for me... Could someone enable that feature?  The same markup works at my wikipedia sandbox: http://en.wikipedia.org/wiki/User:Mzandrew/Sandbox
 +
 
 +
Using 10k makes the current too small, so the relay might not be driven or not driven reliably.
 +
 
 +
The diode is a nice touch though.
 +
 
 +
[[User:Mzandrew|Mzandrew]] 14:05, 2 September 2007 (PDT)

Latest revision as of 06:26, 25 June 2008

that resistor shouldn't be 10k[edit]

my argument:

Um, assuming that somebody just threw in 10k and didn't bother to calculate what the value should be, then it's misleading at best (ie, always use 10k) and won't work at worst (I realize that 10k might be the correct value for some choices of transistor, relay and microcontroller). This isn't just a pull-up or pull-down resistor. It matters what current is going through it, because the same current ends up going through the base of the transistor.

the fix:

It'd be great if the original author of the jpeg would modify it to just say R and then we could put the formula for figuring out what it should be in there.

And then we could add the following text, although it sort of belongs in a transistor section or page:


If you have a microcontroller and you want to have it control an NPN transistor, you need to have a resistor in series with the base of the transistor. This is to get the voltage from the microcontroller's output level down to what the transistor wants (about 0.6V). Another way of thinking of it is to get the current through the resistor (and hence through the base) correct.

In the following description, <math>V_{microcontroller}</math> is the driving voltage from your microcontroller's output (for example, 3.3V), <math>V_{base}</math> is the voltage the transistor wants across the base-emitter (usually about 0.6V), <math>I_{relay}</math> is the current the relay needs running through it to be turned on (for example, 100mA), and <math>h_{fe}</math> is the current gain of the transistor (usually about a factor of 100, so if you have 1mA going through the base of the transistor, you can get up to 100 times that, or 100mA through the emitter/collector).

You need to drop a voltage <math>(V_{microcontroller}-V_{base})</math> across the resistor, and if your relay needs a current <math>I_{relay}</math> to switch, then your base-emitter current <math>I_{base}</math> should be <math>I_{base} = {{2I_{relay}}\over{h_{fe}}}</math> (with the factor of 2 as a safety margin, remember the emitter-collector current can only be up to <math>h_{fe}</math> times the base-emitter current and we don't want to design it to be on the edge of just barely working). We have a voltage and a current, so we use Ohm's law to get the resistance: <math>V_{resistor}=I_{resistor}R</math>, which we rewrite as <math>R={{V_{resistor}}\over{I_{resistor}}}</math> and then get <math>R={{h_{fe}(V_{microcontroller}-V_{base})}\over{2I_{relay}}}</math>. So, punch your components' values in to that formula and you'll get the resistor value to use.

Example: Using the common values stated earlier, we get <math>R={{100(3.3V-0.6V)}\over{2(100mA)}}=1350\Omega</math>.


well, the <math></math> latex markup syntax seems not to to be working for me... Could someone enable that feature? The same markup works at my wikipedia sandbox: http://en.wikipedia.org/wiki/User:Mzandrew/Sandbox

Using 10k makes the current too small, so the relay might not be driven or not driven reliably.

The diode is a nice touch though.

Mzandrew 14:05, 2 September 2007 (PDT)