N channel MOSFET not working properly

Thread Starter

zazas321

Joined Nov 29, 2015
936
I was under impression that everything should be connected to a common ground? Where should I connect the negative side of +12V supply?
 

bertus

Joined Apr 5, 2008
22,930
Hello,

When you want to switch the lamp X1, then it should be in series with the mosfet.
Place the lamp X1 between de Drain of the mosfet and the +12 Volts.

Bertus
 

Thread Starter

zazas321

Joined Nov 29, 2015
936
Please note another odd thing I have come across.
upload_2019-6-14_11-9-41.png

upload_2019-6-14_11-9-56.png

Note the voltages after the switch. How can I have 2.5V after the switch if the switch is open? Shouldnt it be 0V?
 

Thread Starter

zazas321

Joined Nov 29, 2015
936
By placing the light bulb in series with the mosfet as bertus suggested, the bulb is permamently off despite the switch status.
upload_2019-6-14_11-14-29.png
upload_2019-6-14_11-14-37.png
 

Thread Starter

zazas321

Joined Nov 29, 2015
936
What is the difference between using a single MOSFET to drive a higher voltage and the following circuit? :

upload_2019-6-14_11-30-1.png

I think this simulation software is a bit shit
I am adding a picture of MOSFET specs - it doesnt help me much.
upload_2019-6-14_11-31-48.png
 

Thread Starter

zazas321

Joined Nov 29, 2015
936
That is not a part of any assignment. I am trying to build a DALI controller for lightning and I require to control 18V with 3.3V logic. My apologies, let me upload the pictures again:
upload_2019-6-14_11-40-10.png

upload_2019-6-14_11-41-23.png
With this configuration, the lightbulb is also constantly ON and doesnt change if I press the switch
 

Thread Starter

zazas321

Joined Nov 29, 2015
936
upload_2019-6-14_12-11-15.png
Please see the specifications on the left if you can see it. Also, this is the only N type mosfet available on this application.
 

Thread Starter

zazas321

Joined Nov 29, 2015
936
Im not actually using IRF530 , im just trying to simulate any basic MOSFET switch.
upload_2019-6-14_13-0-1.png

upload_2019-6-14_13-0-16.png

I have swapped the first MOSFET with the BJT transistor and im trying to switch P type MOSFET. I have put loads on both sides as I was not sure which side do I need to use but it does not show any signs of life
 

ScottWang

Joined Aug 23, 2012
7,501
For a P MOSFET that you should in series the load with D pin, and R1 can be higher as 4.7K, the Ic of npn bjt only needs less <10mA at here, Ib = Ic/10, so the Ib can be <=1mA.

Edit : You missed the Rbe, if there is no Rbe, when the S1 switch is OFF then the input will be as a floating status, the noise will be generates as a AC signal.
 
Top