[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself


View post   

File: 11 KB, 483x329, 38f7c4f4da.png [View same] [iqdb] [saucenao] [google]
656597 No.656597[DELETED]  [Reply] [Original]

Hey everyone !
So i want to interface a non-logic-level mosfet with the arduino.
I have some NPN transistors et few PNP.
Is this correct ?
Any suggestions ?

>> No.656605
File: 7 KB, 483x329, 1403436744236.png [View same] [iqdb] [saucenao] [google]
656605

>>656597
That will be worse than driving it direct.

>> No.656633

>>656605
This, you're are going to have to use a common emitter design.

>> No.656704

>>656605
Can't it act as a simple switch ?
So i should use a PNP transistor ?

>> No.656722

>>656704
Ideally, you'll need a charge pump circuit, or buy a gate drive IC, or just buy logic level MOSFET.

If you're out of option >>656633 will work.
Add a resistor to pull up the gate to 12V and transistor to pull down the gate.

>> No.656733
File: 11 KB, 593x406, interface.png [View same] [iqdb] [saucenao] [google]
656733

>>656597
Quick and dirty. The inductor is actually the lightbulb. I couldn't be bothered to make a lightbulb schematic.
The resistor in series with the MOSFET gate is to prevent oscillations.

>> No.656735

>>656733
That has (almost) the same problem as OP's circuit.
Use an NPN instead.

>> No.656737

>>656735
An NPN would only pull up to the Arduino's output voltage, minus .6 volts. The PNP is turned on when the Arduino's output is off. When the PNP is turned on, it shorts the gate voltage to ground. When the Arduino's output goes high, the PNP turns off allowing the gate voltage to float high (about 10V from a 12V power supply).

>> No.656745

Just get an IRF640 and connect the output directly to gate, no resistor.

>> No.656746

>>656737
You have an emitter follower. If you feed 5V to the base, the emitter will sit at 5.6V. The transistor is never off.

>> No.656748
File: 29 KB, 1667x890, npn-mosfet.png [View same] [iqdb] [saucenao] [google]
656748

Simulated with LTSpice
Green is Vin at NPN base.
Red is Vout at mosfet drain.

>> No.656749

>>656748
*Red = blue

>> No.656754

>>656633
>>656733
>>656735
>>656737
>>656745
>>656746
This is why i hate engineering