Pages: [1]   Go Down
Author Topic: Using electromagnets  (Read 694 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, I'm new to the forum and pretty new to the hardware side of robotics and the like.  My question is; Would using an electromagnet be the same as using an electric motor, or would I need something else instead of a motor shield?  The electromagnet will be quickly turning on and off repeatedly and I know how to programming for it, but I don't know if I need any other hardware.  The electromagnet is 12v DC, .5A, 5.2W.

Thanks in advance for all your help!

Rano
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 212
Posts: 8975
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you don't need to reverse the polarity of the electromagnet then an NPN transistor or an N-Channel MOSFET will allow the Arduino to control it.

By "quickly turning on and off repeatedly" you may mean Pulse With Modulation.  If so, be sure to connect it to one of the PWM pins.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Johannesburg. UTC+2
Online Online
Faraday Member
**
Karma: 114
Posts: 4962
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have a squiz at this
Logged

The Elders of the Internet know who I am
I'm on LinkedIn: http://www.linkedin.com/in/jimbrownza

Offline Offline
Faraday Member
**
Karma: 69
Posts: 2872
The last thing you did is where you should start looking.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Put a flyback/snubbing diode across the electromagnet to protect your driver!
http://en.wikipedia.org/wiki/Flyback_diode
Logged

The way you have it in your schematic isn't the same as how you have it wired up! That goes for me too.

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, I do mean PWM, and I will not be reversing polarity- in fact I was using a MOSFET with a function generator, zener diode and an external power source, but it wasn't doing what I needed; I need a digital on/off signal rather than a constant analog one.  The function generator was actually causing the electromagnet to reverse its poles and generate an AC current which has been a bit frustrating to overcome.  That's why I decided to turn to using a programable microprocessor configuration to generate the on/off signal.  So far the arduino's been awesome, I've had my eye on it for simple robotics applications for a while, but I think it'll work great for this as well.

Thanks everyone for your quick responses and useful information. 
Logged

Pages: [1]   Go Up
Jump to: