From: <ct...@li...> - 2015-09-24 10:31:49
|
Hello ! I can't understand why i can't use relay switch. At the end of this mail, i put my little project. With the wire named "remove" everythings is ok. But if i remove the wire everything gone bad. I try a lot of thing before posting, i don't want to borrow anyone, but now you are my last hope... ;) It's basically a water in gasoil detector, when there is water in gasoil, the relay should switch... Many thanks !!! ----------------------------------------------------------------------------- mosfet.sch ------------------------------------------------------------------------------- <Qucs Schematic 0.0.18> <Properties> <View=0,0,1348,868,1,0,0> <Grid=10,10,1> <DataSet=mosfet.dat> <DataDisplay=mosfet.dpl> <OpenDisplay=1> <Script=mosfet.m> <RunScript=0> <showFrame=0> <FrameText0=Titre> <FrameText1=Auteur :> <FrameText2=Date :> <FrameText3=Version :> </Properties> <Symbol> <.ID -20 -16 SUB> <Line -20 20 40 0 #000080 2 1> <Line 20 20 0 -40 #000080 2 1> <Line -20 -20 40 0 #000080 2 1> <Line -20 20 0 -40 #000080 2 1> </Symbol> <Components> <.DC DC1 1 60 60 0 63 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0> <Eqn Eqn1 1 1170 560 -24 15 0 0 "Pr=Vr.V*Ic.I" 1 "yes" 0> <Vdc V2 1 420 130 18 -26 0 1 "5 V" 1> <R R1 1 300 450 15 -26 0 1 "RSensor" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0> <IProbe Ic 1 370 360 -26 16 0 0> <R R2 1 640 420 15 -26 0 1 "220 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0> <VProbe Vr 1 820 420 -16 28 0 3> <GND * 1 200 740 0 0 0 0> <Lib T1 1 640 570 8 -26 0 0 "NMOSFETs" 0 "2N7000" 0> <Vdc V1 1 200 570 18 -26 0 1 "24 V" 1> <IProbe Ib 1 550 570 -26 16 0 0> <VProbe Vb 1 480 660 -16 28 0 3> <R R3 1 300 650 15 -26 0 1 "90000 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0> <VProbe Vc 1 740 570 -16 28 0 3> <Relais S1 1 510 270 -26 -65 0 1 "22 V" 0 "0.1 V" 0 "1" 0 "1e12" 0 "26.85" 0> <R R4 1 600 90 15 -26 0 1 "9 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0> <IProbe Iauto 1 600 190 -44 -26 0 3> <.SW SW1 1 900 60 0 63 0 0 "DC1" 1 "lin" 1 "RSensor" 1 "1 Ohm" 1 "1000000 Ohm" 1 "20" 1> <Diode D_1N4148_1 1 510 420 -26 13 0 0 "222p" 1 "1.65" 1 "4p" 0 "0.333" 0 "0.7" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "68.6m" 0 "5.76n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "75" 0 "1u" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "normal" 0> </Components> <Wires> <420 240 480 240 "" 0 0 0 ""> <420 160 420 240 "" 0 0 0 ""> <480 300 480 360 "" 0 0 0 ""> <300 360 300 420 "" 0 0 0 ""> <300 360 340 360 "" 0 0 0 ""> <400 360 480 360 "" 0 0 0 ""> <640 450 640 460 "" 0 0 0 ""> <640 460 800 460 "" 0 0 0 ""> <800 430 800 460 "" 0 0 0 ""> <640 360 640 380 "" 0 0 0 ""> <640 380 640 390 "" 0 0 0 ""> <640 380 800 380 "" 0 0 0 ""> <800 380 800 410 "" 0 0 0 ""> <200 360 300 360 "" 0 0 0 ""> <200 360 200 540 "" 0 0 0 ""> <200 740 300 740 "" 0 0 0 ""> <300 680 300 740 "" 0 0 0 ""> <200 600 200 740 "" 0 0 0 ""> <580 570 610 570 "" 0 0 0 ""> <300 480 300 570 "" 0 0 0 ""> <300 570 300 620 "" 0 0 0 ""> <300 570 460 570 "" 0 0 0 ""> <460 570 460 650 "" 0 0 0 ""> <300 740 460 740 "" 0 0 0 ""> <460 740 640 740 "" 0 0 0 ""> <460 670 460 740 "" 0 0 0 ""> <460 570 520 570 "" 0 0 0 ""> <640 460 640 520 "" 0 0 0 ""> <640 520 640 540 "" 0 0 0 ""> <640 520 720 520 "" 0 0 0 ""> <640 600 640 620 "" 0 0 0 ""> <640 620 640 740 "" 0 0 0 ""> <640 620 720 620 "" 0 0 0 ""> <720 580 720 620 "" 0 0 0 ""> <720 520 720 560 "" 0 0 0 ""> <540 300 540 360 "" 0 0 0 ""> <540 240 600 240 "" 0 0 0 ""> <420 40 420 100 "" 0 0 0 ""> <420 40 600 40 "" 0 0 0 ""> <600 40 600 60 "" 0 0 0 ""> <600 220 600 240 "" 0 0 0 ""> <600 120 600 160 "" 0 0 0 ""> <480 360 540 360 "remove" 600 310 23 ""> <540 360 640 360 "" 0 0 0 ""> <540 360 540 420 "" 0 0 0 ""> <480 360 480 420 "" 0 0 0 ""> </Wires> <Diagrams> </Diagrams> <Paintings> </Paintings> ----------------------------------------------------------------------------- mosfet.dpl ------------------------------------------------------------------------------- <Qucs Schematic 0.0.18> <Properties> <View=-144,-90,1523,898,1,82,0> <Grid=10,10,0> <DataSet=mosfet.dat> <DataDisplay=mosfet.sch> <OpenDisplay=1> <Script=mosfet.m> <RunScript=0> <showFrame=0> <FrameText0=Titre> <FrameText1=Auteur :> <FrameText2=Date :> <FrameText3=Version :> </Properties> <Symbol> </Symbol> <Components> </Components> <Wires> </Wires> <Diagrams> <Rect 60 660 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" ""> <"Vr.V" #ff0000 0 3 0 0 0> </Rect> <Rect 60 440 240 160 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" ""> <"Ic.I" #0000ff 0 3 0 0 0> </Rect> <Rect 60 210 240 160 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" ""> <"Vc.V" #0000ff 0 3 0 0 0> </Rect> <Rect 420 210 240 160 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" ""> <"Pr" #0000ff 0 3 0 0 0> </Rect> <Rect 420 440 240 160 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" ""> <"Iauto.I" #0000ff 0 3 0 0 0> </Rect> <Tab 750 678 416 628 3 #c0c0c0 1 00 1 0 1 1 1 0 1 1 1 0 1 20 315 0 225 "" "" ""> <"Vb.V" #0000ff 0 3 0 0 0> <"Ib.I" #0000ff 0 3 0 0 0> <"Vc.V" #0000ff 0 3 0 0 0> <"Ic.I" #0000ff 0 3 0 0 0> <"Vsw.V" #0000ff 0 3 1 0 0> </Tab> </Diagrams> <Paintings> </Paintings> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |