Passive Switch for NPN or MOSFET Ideas?

Click For Summary

Discussion Overview

The discussion revolves around the design of a passive switch for controlling an NPN or MOSFET transistor to modulate an electromagnet using PWM (Pulse Width Modulation). Participants explore various interpretations of what constitutes a passive switch and the implications for circuit design, particularly in relation to controlling current through the electromagnet.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant seeks advice on using a passive switch for PWM control of an electromagnet, expressing uncertainty about connections and circuit design.
  • Another participant questions the definition of a "passive" switch and asks for clarification on how it will be controlled, highlighting the complexities of switching inductive loads.
  • A later reply clarifies that the intention is to manually turn the electromagnet on and off using a passive switch, possibly a photo-interrupter.
  • Further discussion includes defining "passive" in the context of the circuit, with some participants suggesting that stopping the PWM input would suffice to turn off the circuit.
  • One participant proposes using an enhancement mode N-channel MOSFET rated for at least 30V, detailing the importance of a flyback diode to protect the MOSFET from voltage spikes caused by the inductive load.
  • This participant also describes a circuit involving a Schmitt trigger using an LM555 timer IC to convert an analog signal into a digital signal for controlling the MOSFET gate, emphasizing the need for proper voltage thresholds and component values.
  • Finally, there is a suggestion to experiment with a photo-interrupter as part of the control mechanism, including specific resistor values for circuit testing.

Areas of Agreement / Disagreement

Participants express differing interpretations of what a passive switch entails and how it should function within the circuit. There is no consensus on the definition of "passive" or the best approach to implement the switching mechanism.

Contextual Notes

Participants note the complexity of switching inductive loads and the need for protective components like diodes. The discussion includes various assumptions about circuit behavior and the requirements for controlling the MOSFET effectively.

EagleOnePro
Messages
11
Reaction score
2
Hi I would like some advice on what you think I should use as a passive switch for my NPN or MOSFET transistor. I am trying to PWM pulse with modulate an electromagnet with a 12V 3.6A battery and I want to have a passive switch. I have tried to use photo interrupters in the past but I am not smart enough to know how to make all the connections. If you have any ideas I would very much like to know, Thanks.
 
Engineering news on Phys.org
What do you mean by “passive” switch?
How will the passive switch be controlled?

You have an electromagnet and you efficiently regulate it's DC current by using a PWM current regulator. What decides the pulse width?

Do you want the “passive” switch to switch the magnet between off and regulated on?
Or does the passive switch produce the pulsing gate signal to the current switch?

You can use PWM to regulate the DC current through an electromagnet, but it is very difficult to produce sharp magnetic transitions by switching the current on and off because the energy stored by the inductive circuit must be rapidly removed and replaced.

There are too many interpretations of your question.
Maybe your circuit diagram would help.
 
sorry about my poor clarity.

when I sed PWM I ment to manually turn on/off the electromagnet with a passive switch. Perhaps photo electric like a photo-interrupter. If you have any ideas of a beater switch for the mosfet or the npn I would be thankful.
 
Define Passive? Automatic, electronic, not mechanical ?

Otherwise stopping the PWM input will turn off the circuit, so I do not know what you mean.
 
I believe the term Passive and PWM have been misleading. This circuit should protect the MOSFET from your input experimentation.

Use almost any enhancement mode N-channel MOSFET in a TO220 case. It needs to be rated at 30V or better. Like the power diode above it, the MOSFET need only carry the electromagnet current.

When the switch turns off, a positive voltage spike from the inductance of the electromagnet is clamped by the power diode across the magnet coil. The diode prevents the flyback spike from destroying the MOSFET.

The MOSFET should be turned fully on or fully off. Then there will be either low voltage across it, or low current through it, so there will be low V*A = low power dissipated in the MOSFET. A heatsink should not be needed, check it does not get hot in use.

In order to safely control the MOSFET gate you must convert a slowly changing analog voltage into a digital signal that has sufficient current available to drive the MOSFET gate quickly through it's transition zone. That circuit is called a schmitt-trigger.

The LM555 is a very common 8 pin timer IC, but it is being used here only as a simple schmitt-trigger. The input thresholds are at Vcc/3 and Vcc*2/3. For Vcc=12V, when the input voltage on pin 6 rises above 8V the output goes low and the MOSFET turns off. When the input voltage on pin 2 falls below 4V the output goes high, turning on the MOSFET and electromagnet. The input impedance of pins 2 and 6 is high, so easy to drive.

The 47 ohm resistor limits the transition current from the LM555 into the gate capacitance of the MOSFET when switching. It also prevents parasitic oscillations of the gate structure.

The two 0.1uF ceramic bypass capacitors are there to keep switching spikes out of the system when used with long cables or a tired battery.

Start with say a 10k or 100k potentiometer on the input. Check the thresholds are 1/3 and 2/3 of Vcc. Then insert the MOSFET and check the electromagnet is controlled by the pot.

Next you can experiment with a photo-interrupter. Connect the detector between + and in, and a resistor of say 22k between in and -. That makes a voltage divider to replace the potentiometer you used during testing. You will need a light source, maybe powered between B+ and B- through a series resistor, try 470 ohms if it is a LED.
 

Attachments

  • LM555_MOSFET.jpg
    LM555_MOSFET.jpg
    41 KB · Views: 625
  • Like
Likes   Reactions: 1 person

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
Replies
8
Views
2K
Replies
39
Views
6K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 49 ·
2
Replies
49
Views
4K
Replies
11
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
Replies
4
Views
6K
  • · Replies 28 ·
Replies
28
Views
6K
  • · Replies 14 ·
Replies
14
Views
1K