[TriEmbed] Protection from Dual 12V inputs
Pete Soper
pete at soper.us
Fri Mar 11 21:16:45 CST 2016
Hi Brian,
(Here's your original msg
<http://mail.triembed.org/pipermail/triembed_triembed.org/2016-February/002402.html>
for others to catch up on if they're interested. I should also point out
that folks can set their mail to "digest mode" and get a single msg a
day if this spurt of traffic gets too bad. One person unsubscribed
yesterday.)
As one relative beginner to another, let me ask what's between the
level translator and your relays? You sort of imply below you might be
expecting the level translator to deliver a ton of current despite it
going through the 470 ohm resistor (limit with 5v source is about 10ma).
It's hard to picture the level translator operating even the most puny
relay.
But Robert's circuit is predicated on the MOSFET gate needing very
little current (i.e. with 5v out of the level translator about 10ma).
The other transistor has to be able to yank the gate on the other side
of one of these resistors to ground, so making them too small defeats
the either/or aspect.
But it really needs resistors in the path from each level translator
to the transistor base Rob accidently connected it directly to. Without
those it's a survival duel between too high current through the level
translator or the transistor base to emitter path and one or both parts
may be destroyed instantly or at some random, inconvenient time. The
base resistors could be a few k ohms and even the crummiest transistors
would sink the 10ma to prevent the MOSFET connected to its collector
from switching on (the 470 ohm resistor is kind of like a bus pullup in
this situation).
Now that we're up to two transistors and four resistors, a single
74LV04 (Mouser part 771-LV04N112) seems attractive. One of it's
inverters could feed a complement of a single MCP23008 line to one
relay(driver?) and the original signal would drive the other one. But
this LV chip is wimpy. For more drive the 74AHC04 would work as below.
Or you could use the LV04 in between the MCP and the level shifter (i.e.
sticking with something you know is working now).
-Pete
On 03/11/2016 02:24 PM, Grawburg via TriEmbed wrote:
> I've tried this and it doesn't work. I did change the resistors to
> 220 just to see if that made a difference.
> My actual set-up does not use MOSFETs as I originally asked about but
> instead uses two DPDT relays.
> The input voltage goes through a level shifter since I determined that
> the 3V3 through the resistor was too close to
> the 2V5 that produces an unknown state in the relay modules. So the
> output from the shifter is 5V which does work fine. I still need to
> be able to make sure a bad code doesn't allow both relays to activate.
>
>
> Brian Grawburg
>
> ------------------------------------------------------------------------
> -----Original Message-----
> From: "Robert Gasiorowski" <rgresume at gmail.com>
> To: "Grawburg" <grawburg at myglnc.com>
> Cc: "Triangle Embedded Devices" <TriEmbed at triembed.org>
> Date: 02/24/16 05:34 PM
> Subject: Re: [TriEmbed] Protection from Dual 12V inputs
>
> Ooops, forgot to add base resistors.
>
> On Wed, Feb 24, 2016 at 5:23 PM, Robert Gasiorowski
> <rgresume at gmail.com <mailto:rgresume at gmail.com>> wrote:
>
> How about something simple like this:
>
> Inline image 1
>
>
>
> --
> */[This was sent from a PC running Debian 7, 64-bit Linux. No
> Microsoft products were used.]/
> *
>
>
> _______________________________________________
> Triangle, NC Embedded Computing mailing list
> TriEmbed at triembed.org
> http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
> TriEmbed web site: http://TriEmbed.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.triembed.org/pipermail/triembed_triembed.org/attachments/20160311/c4cb348b/attachment.htm>
-------------- next part --------------
PNG
IHDR 3¼P_ pHYs gÒR IDATxíÝÛ븵 PÍÔDá0Y(Åá0
#PÿFß«¡ù@ ¬U.×5)ion<Ø¿ýüü< bü~u ûQH Ñ @4
d7
ÃÕM HL!Ç-+W ¸¯ý8?ü¯²MÒþ¸ºÐ²a^¯\Ð×ëõù÷.l
deDr? º²
ûúhBrQE teöU´ÍÔ& ôKÓ<# ©"èB ¦ HÉpPH at 2ÕôfõÏJ¨"èB[>×Oò hÛ~äWEÐß~~~®nÜÛ4£ÌÒÉrc «k\Zä§U
¿#Ñçóê&ðz¿¯n@-D~X²F fDj¸Û¦7X"?L ¢)$è¿ð ÐrSHо\2
LÐ
PHи¿
äÏ4Iä2´L èÈÅ($hÙN.i $òC1
z$ ôFääü
º3®±®´ÿ-Á ´Jä
tg6®í£Ú:º3D~ÈA!y-ÃøʧcìóÏf³3yà^D~:¡ËìôM¤
"?-QHвåtØGÅÝ<[
«¶Á ù¡
-
Ä5 at KD~(F!AËçóê& PÈÅ($hÙëýα[Y
Z"?ãÒAv«v÷7
y
jüôÀä5ÎÄ]]ð7}(Ç4Cä§
(a||ø41ÌÒÌrãr æ)$ Õî%þhÈOÛ¬ ¢)$ h
B ¦ ¢)$ h
B ¦ ¢)$ h
Hi« @Q"?ÝRH at 2«¹dx>ç³|c (@ä§g
º°i×ëµùÓç³í¼¢C¸
?
ý*KþgËÊx%aTÊü©ü<
?®n \cL ©Âß×\òz¿
÷ùüüÿôõû¥ÒðÌ
PÈÈÏÈ=º0ä½Þïi
i jv%&iDþD~FF$èÑå
'mwS]Ý">"·p¥1|ÒÉøû&£Û _ü4C!×k£J.'òÓ
TäX7Õt®íUH.8Fäç¾P¨nªÙ½áù,QäD~îèö
Äsøõ]z¿î4Hc¦ëÌ>ÿ>a¿vS¾R8£È%]©$äVÒ
kã
ù
kí|aûùù)Þd>'6ºu<¢¤ÕçKÇĨ
q WÑ>.p¹çóG;Ás©$äVÒ
Ȑ
ùC$ò3³ÿ
½q!1;±Bÿ°£hvôtrÞ½ü[%!·fpØ}ßA}ýÂÞ~jÓÌê Óÿþõ׿þóçÕ¸«L/éßÿüëzSHIä¿»´ï ÈÈOÖ
[ôj0ó
¹Þ¸<£¬¸
7P±îXF¾oªæuÿFJHü'$ò3õ5ò߸x¿ÞfÊÒíå»»ÿa#ªUIȤ
æ
$òS¯_Øÿ==ö|ûz¿Ç²¿$QIȤ
æ
Ü'òSý/ì½
D¢ÒÃQ7* ¹4ÃÆ[ïãÈOµv¾ª·/$ %Çz¤ûù¹/
\Ï5 at oD~ +I$ ½ùiB. ôFä§=
(J"èÈO«P,Ðæ)$ ( 7"?RH@ ²@oD~§¼$Þütâ÷« ÜB ¦ ¢)$ ¯áù=¶ütB!A¿a(¶Ã1©4W_R´DþäDþyjßøÿ¯×+ÉÞ¦ÿØÚçQ| \TNäONäïB
Ã0
÷³ÿ<`ùë³}~òÇN>
TÍäñ|e Z"r"?¦6Ñ£Yô/_ï÷4
´1ê}>ä&ò§%òó0"9É×}¶ÔM% ·#ò$ò3RHеT3egû
ßá?>éä¦óh§é3Ç%HHäOBäç¡ scÔKسrlW·î¦J;ç 7ÿ<B~ÍMò³K÷uSMçÚÞ"\Näó,¶¦G³¬I&Ë&ìåM;«vVæÍ^o`@"?$gD
M;¢*éZõµjõáùÔ;0#òCr
:üÁ˽%ì¦úuÿG;ûéç?eU"?¤¥ _'ÃýסääuS}9ú#ÝÖÛùù{¦
Ï!Kìûï_ýë?æØs2%¤ÿó¯üéMùÛû¥R²`à|WÏhI\/ãT^¨g~'
ÊQ»:²³>Ô\ÏÕT¦z)vü°¤ÚíL]N òs
¨×þêºÇdÝþf Ü
ÈÏ($ :QéaÌ(P';RH at Eõ0I! ÷%òs_
¸jÞü4@!WH z#òÓ
\@èÈO{PDÐV)$ Y 7"?ÍSH at Q @oD~Z¥dÞü4O!yI$ ½ùéÄïW7 ¸
M!É
Ãpu (Jä§gÖH@c.ùd×ëõëõçóa¾,@D~:§aøäÇZÕçiâ=äÙÕ hÈ?%ò÷I!AVG¢ÏDÀÙï¾^¯Ú|7\ÔIäÏGäïBNe
yËtõÉc:i²j<k¹¨ÈÈß9éZ¾Er[Qõõ~OSÈð|~RËÝQr P??#têHÒö¦æ§º©tGw!ò§"ò3RHЩYøK5¿óïGvípÌtrßy´Ë ÔFäOKäG!Aj
ywï¦=·¤¶Ë
ðùSùyX#IÌƵOÀ=6vܬI·ãsK®n@v"ÿÈß-#ôh:¹3Iì[>õïÔ#cº©f)dx>Ë÷f}Î]"ª%ò§%òóPHЧYìK5G6y0ý:võÂ%ÇŤZÏáקñýºÇì
øùS6RäïÉNäÿíçç§x{àÞ¢Æ%\E·:~½Üóù#Þwåßí<çîÈ?¹dt£S¡{}ø"?½ÚüF$à òÓRgÝTûj5KKf¹äqÃA8Oä§+_#¿Bë-?¦©ü÷¯¿þõ?3í¼yÒ¿ÿù×?þô¦ü-ßçúäfú|WÏXÇGKa_!Arõkæ´y`;áqU;Àm"íÔ:õ[Ê|´-SìùI¨È¯ÚͲÈþ;LÞ¯·5PÈO
¾F~
Ôk'|^Y>D\.!iFQE@&"?UÙü
¨NTz3JàÆpú2ù©ÖNäWH at Eõ0I! ÷%òs_
¸jÞü4@!WH z#òÓ
\@èÈO{PDÐV)$ Y 7"?ÍSH at Q @oD~Z¥dÞü4O!yI$ ½ùéÄïW7 ¸
M! DSH at zÃ0üýïçsö@ Ú#òÓ!
ýýÜ»
JÃy%ÓÅHKäOHäG!A§Æð7
CÚ88
ÃëõÚÛ Å¤éb¤%ò'$òóðøWú4
ú_sÀ±ÝN}
8æOFià.&@Z"B"?##ðx½^ç;TÃèëý¦öº©\LÜDþDþn Si»Ob÷ÖX7Õ?$ r"B"?
}Cò9²³ÿ
ì¦zLÒÉø{%Où$«[°BäOHäg¤ _³ù©võè¬ÊLYàFDþ$D~F
¨È±nªé\ÛË3ÐØM%£ ù¹/
=ÅV8¹3ªj¶box>ËgOþ¨ðbDþ´D~
ú4}Õv¢|í¦Z}¥pF¹ËÅ:w`%òs#
úuÀ·ÕM5ûéç?ËgÇ}.&й»+[PHÀAûOÏ1Ô;ë¦Ú×ØCÊj òÃB ©gä»z¯
&ò!òE!AË2
¨g~'
ÊQ»:sîw|¨9ÀHä?s (
¨ÝÎÔØå¤X "?· zí¯®{LØíoÀ]üÜBª
Ƹ1 uù¹#
TäXp_"?÷¥ë¡èÈOp% 7"?ÍPHÀdÞü´G!EI$ ½ùiBJE z#òÓ<
% ôFä§U
(AèÈOóDÐNü~u ûQH Ñ @4k$ a/¾^¯Çÿ?þÏ|YÆü
Ã0Á=ðõö÷óyxÃyeõb&¼Â QDþDþÎ)$hßj§ÑÎë'WÚK*Ëùyeú#©(Cä/@äG!AãÆø¾ìV_?y¬ÏÿÏâæ'餱nª9½97À*¿ ÅÖ´À¸öl£Í^ï÷4
Ïç'µÜTÈÅ4Ì
#ò ò32"A˶BXÐ6ÝçØI³sº©ä *""?##ÀápÙ^7Õ\´Jäß"ò÷Ã\¯¥nª)¹`ÈOÀlÝáåecþø¤À}L»²ªÊ@r Ð0Èß
$ðë/%zÚ]T7Õl@|x>ëÉ(Ó~)Ïî #ò¯ù»¢ eÓöù÷ìquÓ×O
.y7Ì×nªÕW
g6Åù
ù)$hYÉgwä³ÕM5ûéç?
g/=¼Õ¥ òhÈÏãñPHÀaå²1ë¦Ú×Ø3@ j òÃB ©gä»zõÌåÚ#ò!òE!AË2
ÀGjL7NxÜ@gÎ=êª"ò9ÈO
ÔngjìrR¬L Ð [PH@½öW×=&
ìö7à.D~nD!ÕJcF Ü:üÜB*r¬I
¸/ûRHÀõPôFä§
¸DÐf($à²@oD~Ú£¢$Þü´J!%È" ½ùiBH z#òÓ*
ôFä§y
ÈK"èÈO'~¿º Àý($ h
Èb« @Q"?½±FRúd×ëõëçóa¾,@»D~ºeD.¬ö%ï:áõÿæ?z>Çÿ¥=bUÊ\d@""çHоeDû¼²ìF:s´ÚMUæ"ù
ùQHи1ÊÏÝJ¿QX2Ø?ÊÎü1¦OUy¥ÌE$ò òóPHжñëk0ýõúûý¤º©$ *""?#
-
qN4sz¬¯ûl©*02
!ò ò3²Ø®eĹ
íÝÜòý¦Vå}#^Ý ¿¿F$èÚßê»t¶¥nª1J$@=DþÜDþ~($ iB:<{l
í´+«ª
d-Ð6IäïB
M;KÌà\îêLê¦
Ïg%E.ª"ò ò÷F!A˦ñ}:)výSE½äÑók7Õê+
3ÊÖE~¬¥j ÈMä/@äg¤ e_ð}жÕM5ûéç?
gÍÇ
ÞäòùK4Oäçñx($à°òÙuSíkò ×ùaJ!AËÔ3ò]½JæòMùÏù¢ eÂVÔ%M£vuæÜø««@·Dþ3ù¢ÚíL]N òs
¨×þêºÇdÝþf Ü
ÈÏ($ :QéaÌ(P';RH at Eõ0I! ÷%òs_
¸jÞü4@!WH z#òÓ
\@èÈO{PDÐV)$ Y 7"?ÍSH at Q @oD~Z¥dÞü4O!yI$ ½ùéÄïW7 ¸
M! DSH Ñ @4Om¢GÃ0,_|½^å[@"?$§ G³Ì±] hÈÉ)$èÝ0
z¤ º"òCÖHÐ5¹ 7"?¤¢ _r @oD~HH!A§äÞüB
Ï%Võ\Kää,¶¼>äó1-SÚçYîÑp/"?PH at v;ic+UL_7p;"?=0µ
]åòD~HN!y½^fÐtEä§%¦6Ѳáù¼º fO×ÔQôT¤"òC1
Zöz¿sìöXúäå: 1µ
Ñ6pw"?RH@^Óé°cÿÓ²
jʬ.+{ùé©M]ÈÒºÙ6º£ nMä§
(aµ/jë
Q
ùi©M @4
M! DSH Ñ @4
M! DSH ÑüA:8hx>¯n Eü0eD fD¢½Þï« @Q"?,ìazýØÞJî}i#màÞw
3"Glë×ë¸åêëÃ0¬îáóâø[ßn¼ÜárW;í`ßÈ¿Þw~ùCù($àÀ{ô1ìdÔ²ºÿÙƳWfuÅÖö
À'#ÿ1«|ÙáKÚi÷?M_?÷?¿
²¨¢¯¢F
²6Cxç
H`
â³À°~¾xltMí¿Àg"ÿÉî¿Å($à¬ÚÂzmíhÏ%Vx§6ÖHÀq«U§?ÚÚrgâä
×ùT;í ÐáÈ_ì b;Å($à `ýµÇhuåÜê
1¥ÅVô`$q&òG
¥üAá Sàzõ~@*"ÿl¥Üré
ØNµpcû&/Ü zêðN=p«½VûÛço ~u*ìþx\È ¸^+ fË]æ)áÏo???W·Þ=çûõ¾ºp~ºåÃO·ZúðÚ DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @´?®n <
Çsx^Ý ùáî~ûùù¹º
ÀÍÚ DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSH Ñ @4
M! DSHdx>çóêVPB=ïu=- @´?V_]í|½ßûìlÏåÆ·ìª7%ùÑóεªm®-íÙÉý|Ôw¾Ú'¿õ_ïFb½7eßôÊ\{Mä
»[Ø
æÜWcïÝçtO}iìBê$ìæÉ+pænd+;0 iÍG$>_°Yu8¾><Ó×U÷ræýªç½^æÙÇòüËlµÝ0;M*Üæ
/¬Z~VWf{vÂæÉu7²õ»ÉÍ¿/_§ßvMUmmÌúåu÷NÜWâõ~ÿ˱çäûzÓU$Ù9Ù×áÌÝÈ2GdÊгùÄÉå
fw±Ó"xg>eVíïsuÏ_çSÏ]ýÏÀ
nÞð«=Û>IËWݨ· üc{IsL
nÿÓ®~UW²ºÏäß²ð__Ýì@à ÃßÄ©Ã1'VD
«ÌzáÕ
£û£®[[îÿ¬&ò½ûú[$úÔ¦©«7;û-<zÚßÝOyøÐ!;ÉݼØ-ÀÜÿµ-«¬®mÀU2Í>¿z.W&æT¾N²hSÉQ¢TÉÛåmîÐúSfö§*>Uàröaøl¼yg|-FWÏ1É$×y¢wì¯nÕÏñµ
?úêáfUD¨sº¤çêôWûrV´uÄcãcËñNK¶µú]½
uJsÎ7 ¶¯LªucBY¦Ñ$ñ9íû¾ç/mÓ&Yö}øz»6}=ä`uç ·<ð[[ç{:á{.Ù¼òÃ;Ëá¯÷êGîÙ@Ù±¥ácÎËVwR²ÎbrÇÀn 1Nn
ÍÃu縳#
ûõñ?sÇbÁ9ß
W=îØæÞ|)$ö¿x«÷!ýîQ7Åî¶Î1ÓcÛ¼
kñ¯#$'[uáíûÛÓ3ßè|ß2oWI
J~3}I+1{kÂgLTèÌýCåîØæ>Mm*SÒ~Ó`¦?Jx ý6$ÙOÔùºñUWæüΧÕȬñk§¯Ã ÄJ^Ò>ÛÀh+Dä§WýéÉ'r¼:b¯Np¦+{#å»´st Y?ïèe
¹EÇÌØøiºÊ×ìð=¾¤·~¡y,ß5
Î\ÕÙÉ%:|_èÖæDÈDÉ´Q2ßÊÈð%J5
ojø»SþÊdªNóM~ýX¾¤±³ølËêl´ìó¾pÐû n)<XM¿¼çCRÉVß%Á³së#¡p5ííNÚsL»LªæëdYílÉ^Væý
Ú
ùѿÎVÑ°ý(wä²WµüLK¢Þ
WJ9h¾Ë?«[
mØå'Ò¼B"¤Øg:cÊßNÿøz: o
Á§|à '/f¾÷bz.Ç®á×i¥º
/
ølGíöë;öUó\¸ÕÏ^ÚÜÕ¿uíï?MxJÂίØÓÉw˾óXg.x^Æ|jÓ×çáLoP2-'Jg£î¼OggËþ.ÔÛ:è¬m'»j¾ndÌw¶°áðÞ¶z²NÊ:³ÁÎ/
hóÏöê¶v¸ÿ^¯¶9ä(!¢Z²ãÀWUßIL?{!Ió¬×z¾
»boQ>¿Rþ
&äWÂlìÞVûL
Ϩ_?0(¡¨È'ô/[¯JÞ=ymoGøé$lgø®rlã×
eõ½+0|ºpf¯L/TÂËjctµ
£y×~Sr$â
g
kI
Á*ùÐt¾çùËUÃY4ï·«Û PÔj¿c
Ó
fb×g`'3AG
ûë/eAU'«@ûvæIK [Oö)$¾T8s ~'KÖH ÑN=µ èB ¦ ¢)$ h
B ¦ áù\ýØ´J! DSH Ñþ¸ºAÆa²|=d®ó??½D_
±Æä¾ãªùè
`D ~UºÇD*à
ãÅb ¦ÄÆJèÉNèÌeôôÆ @ïÔÃ
0ØùVËí·ÑÀ-Ã?DZM
·3çu§ÏãdwHÈé}ko«§²åý×Kôl5Ì^Y§Õé«i($õ
NOÓ-
$â-¿§'¯Û±æí½7KÛòUn$j1"±ü
¬~2μ¤8cùüã2z±n˯0@?¶é3KÈnw¶9M.<¯-´êÀu
Üòë¯|2 lÕZ_#±ü$íÜôO7
_
Ïå«[
>úÖg,Û¹<×û=á}áWÛ«\6~ë/· VxïlB«7¡Ý
:ðܬ
öuá7?±v®[ø»{ǸAÈ¡¿®
¿»[þÔÝHµâÖH|ÞÔÏôrkÿÓ¿
jFÓv~)D±j;ütÊ8@ÃÂoò
:ùí××ûõð¤ûÓc[¦ÝaøÍÏá$¯"?ÝR~8bçÓsQEÔ,´X}ϼ¸õ±¸ðã²úaÝzå¦wØ'gI%<ý8t±ÝîosæÔÂo~ì9vÿ±÷Â_WÕÖðv³ïÔã_¯ê<çîöØg.ÉâìÃ;I~: pðózl%âY8Õ±¢.oÈ0Å%·(îîâ®ýZÅ8zÂc]{: "p¢ü
mMì)y_qؤ[
'G$®
L¸DøÌB¾^àÇ IDATV<ô¦']V{v[KÀïÃþa+Òá
§F$rLmº°ÀzbÚ
+%Î
4ß¡g`içË×gÏ)9W«Í¼ù|
uøQ=t5\òw³æ¬í/7r°ÈñüTuçýl5²å>«O:&Õf|á§ì?-'aRÛoFùcÏË· ün!a{²>qñd;
¼¡ÅfqÌñ©Má+b×0%yàq¬Ë>¿êþ>ù¯¬nþ çé«êFÌ$ýg ÷²á1vË'¢±Ï7ò¤|+wM¶Ù9ýå^£î\دIök:ÞµõÕ±-Ü
M§~ÜkvYWNMmJ¾F"ÇJ¿[Ûú§b±ò
ÙéÚzeüGíb7ʽ%Âo
çëÃ{+¶~µÌ'ÇÝEå~ûùù¹º
¤ØP`1õR M:õÔ&Øa @Ã$æÏê ô@!AFJ VY# D;õÔ& OÿÚïÛ3B IEND®B`
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 4191 bytes
Desc: not available
URL: <http://mail.triembed.org/pipermail/triembed_triembed.org/attachments/20160311/c4cb348b/attachment.png>
More information about the TriEmbed
mailing list