Using an Electro-permanent magnet with an Arduino

Hi!

I'm pretty much a newbie but I'll try my best. In my project I'd use an electro-permanent magnet, and I'd like to control it with an Arduino, while the magnet is using its own power-source, a 9V battery with a voltage divider as the magnet itself needs only 6V DC.

Now other than this, I'm not quite sure how I'd handle this, connecting it to the Arduino and such, can someone guide me? Or is this idea even feasable at all.

Andry25:
Hi!

I'm pretty much a newbie but I'll try my best. In my project I'd use an electro-permanent magnet, and I'd like to control it with an Arduino, while the magnet is using its own power-source, a 9V battery with a voltage divider as the magnet itself needs only 6V DC.

Now other than this, I'm not quite sure how I'd handle this, connecting it to the Arduino and such, can someone guide me? Or is this idea even feasable at all.

Electro magnets of any kind use electrical current to create the magnetism. Remember your science study? So a voltage divider is absolutely the wrong circuit. Us a resistor in SERIES with the magnet to reduce the current to what you want.

Now, you did not define what "control" you want. Is it strictly on/off or do you want to vary the magnetic field or perhaps reverse it?

IF just off/on, then use a relay that is able to carry the magnet current and control the relay with your Arduino.

Paul

Use a 6 volt voltage regulator or an adjustable regulator like an lm317.

To control the electromagnet with an arduino you need an electronic switch that works with the arduino's 0-5V pins. You have several options here. You could use a MOSFET, BJT (transistor), or a relay. If you just want to turn the electromagnent on and off relatively slowly you could use a cheap relay board made specifically for 0-5V signals.

One like this would suffice: