Can I Use PWM to Control My Electromagnet with a MOSFET and 12V Battery?

In summary,You should use a current limiting resistor between Vcc and the transistor, and a Zener diode between the tranny and the magnet connecting to ground. You also need a diode across the coil for back EMF protection. You should use a MOSFET buffer IC to reduce transition time between on/off states and reduce power dissipation. The PWM frequency should be carefully selected.
  • #1
EagleOnePro
11
2
Hi, I need help with my electro magnet pulse with modulation PWM. I have a Velleman® IR Light Barrier Kit from Radio Shack and this kit is ment to turn on and off a 9V buzzer. But instead of soldering in the buzzer I tried to hook it up to a MOSFET transistor NTE2984 so that I could use it with my 12V 3.6A battery to turn on/off my electro magnet. When I get it all hooked up it burns out my transistor every time. And the reason why I can't just use a solenoid is because I need this to PWM for a few thousand times an hour and no 9V solenoid that I know of can hold up to that much use. Do you think that I am inductively spiking my MOSFET? Should I use a flyback diode? Is my transistor choice good enough? How would you use a 12V 3.6A battery to get signals from a passive IR switch like my 9V IR Light Barrier Kit? Is there something that I can do with an Arduino Uno. Basically If you have any idea I would be very happy to know how you think I should approach this PWM problem.
 
Engineering news on Phys.org
  • #2
MOSFET and electromagnet

Hi,

Without seeing schematics of exactly what you have done it's hard to be sure but you are almost certainly doing two bad things to the transistor - when you switch it on it is sinking more current than it can handle and when you switch it off a whopping great back emf from the collapsing magnetic field is sending charge racing backwards through it.

So I would recommend a current limiting resistor between Vcc and the transistor and a Zener diode between the tranny and the magnet connecting to ground, again via a sensible sized resistor. Remember to get the Zener pointing the right way.

Check the data sheet for the transistor and use Ohm's Law to work out the values of the current limiting resistors. I know the MOSFET can sink a big current for a long time, but it won't take kindly to huge spikes.
 
Last edited:
  • #3
Definitely need a diode across the coil for back EMF protection. Not usually a zener, just something like a 1N4004. See here:

http://www.winpicprog.co.uk/graphics/relay_example.gif

The MOSFET you spec'ed is rated 17A at 60V so should handle the current with a proper heatsink. (68 amp pulsed.) Make sure you're not overdriving the gate and that it's wired correctly. Also that your magnet has sufficient windings to limit current to an appropriate value. A battery can provide a very high current in a short circuit condition, even though it might be rated 3.6 amp/hour. 50 amps plus is easily possible if you don't have enough wire or the wire gauge is too heavy in your coil. Check it with an ammeter in series with the coil hooked straight to the battery without the rest of the circuit in play...

Also, I looked at the schematic for the receiver you mentioned--from what I see you can't just remove the buzzer and put a MOSFET in its place. That seems like it would have the MOSFET in the ON state all the time, only turning OFF when the original output LED and transistor turns on, triggering the original buzzer. Needs to be a bit of a modification to the circuit.
 
Last edited:
  • #4
Several notes:

1. For PWM it is better to drive gate not via resistor but with special MOSFET buffer IC ( low impedance, high speed, high current driver). This way you reduce transition time between on/off stete and power dissipation.
2. The diode is a must. It should be rated for high enough current and be fast to avoid voltage spike. For this low voltage some few Amp Schottky should be good.
3.The electromagnet likely will have strong eddy currents in the core thus wasting PWM energy and causing excessive currents in transistor. One should consider adding few tens uH , several Amps ferrite inductor in series.
4. The PWM frequency should be carefully selected, likely should be 10 Khz or so.
 
  • #5
Thanks for the help guys, you clearly know more then I do and it is very helpful to learn from you all.
 

Related to Can I Use PWM to Control My Electromagnet with a MOSFET and 12V Battery?

What is PWM and how does it relate to my electromagnet?

PWM stands for Pulse Width Modulation and it is a technique used to control the amount of power being supplied to an electrical device, such as an electromagnet. It works by rapidly switching the power on and off at a fixed frequency, varying the width of the pulses to adjust the average amount of power being delivered.

Why do I need to use PWM for my electromagnet?

Using PWM allows for precise control over the strength of the magnetic field produced by the electromagnet. This is especially important when trying to control the movement or holding force of the object being manipulated by the magnet.

How do I calculate the PWM frequency and duty cycle for my electromagnet?

The appropriate PWM frequency and duty cycle for your electromagnet will depend on factors such as the power supply voltage, the strength of the magnet, and the object being manipulated. It is recommended to consult a PWM calculator or seek advice from an expert in electromagnetics to determine the optimal settings.

Can I use any PWM controller for my electromagnet?

While most PWM controllers can be used for controlling an electromagnet, it is important to ensure that the controller is rated for the appropriate voltage and current levels required by your magnet. It is also recommended to choose a controller that allows for precise adjustments to the frequency and duty cycle.

Are there any safety precautions I should take when using PWM for my electromagnet?

Yes, it is important to follow proper safety protocols when working with electromagnets, as they can produce strong magnetic fields. Always use appropriate protective gear and make sure to handle the magnet with care to avoid injury or damage to surrounding objects.

Similar threads

  • Electrical Engineering
Replies
4
Views
2K
  • Electrical Engineering
Replies
1
Views
5K
Replies
10
Views
2K
  • Electrical Engineering
Replies
7
Views
13K
Replies
4
Views
3K
Replies
4
Views
2K
Replies
3
Views
2K
  • Electrical Engineering
Replies
8
Views
1K
Replies
22
Views
2K
  • Electrical Engineering
Replies
10
Views
11K
Back
Top