Electro magnet control using arudino

Hi
plz tell if want to connect my solenoid to Arduino using motor driver than can I connect it directly to the motor driver or i need to make a circuit .

Basically I want to know that if i connect directly without using diode and resistance
would it short the motor driver ??

if i need to create a PCB circuit so a circuit diagram will be appreciated

I moved your topic to an appropriate forum category @690.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Hi
please some one help me with circuit diagram that i will need to connect my solenoid to L298N motor driver and the components i required

I've merged your two topics on the same subject. Please do not cross post, it wastes peoples time.

Electronics is not my strong point. What are the specs of the solenoid (voltage, current)?

You can have a look at any article on the web how to connect a motor and a L298 to an Arduino; there are thousands. Bounce your idea here as in those thousands 90% might be crap.

Or you can have a look at Gammon Forum : Electronics : Microprocessors : Driving motors, lights, etc. from an Arduino output pin for a schematic; you must just find the correct MOSFET for the specs of the solenoid.

1 Like

As @sterretje asked, "What are the specs of the solenoid?".

It requires 1.5 amp current and 12 volt

I am making a maglev train so to push forward the train i need this electro magnet

The L298 driver can drop the input voltage up to 3V. So if your power supply is 12V, your electromagnet may only receive 9V.

If you have not already bought the L298, a MOSFET module would provide more voltage.

Everything you need to know about the L298 is here:

https://lastminuteengineers.com/l298n-dc-stepper-driver-arduino-tutorial/

1 Like

Sir can you tell me if i connect my own solenoid simple copper winded up on nail or spool and i directly coonect it to l298 motor driver it will short circuit the motor driver . If yes then how can i prevent from it

Is your copper wire properly insulated wire?

Let's say you used AWG 18 copper wire and a 12 penny nail. That's what I used when I was a kid.
You could wrap maybe 50 turns, that would require about 46 inches of wire plus 4 inches for leads so let's say 50 inches of wire. The total resistance of the wire would be around 0.027Ω. If you put 12V on it it would draw 12/0.027 = 444A. So yes, it would be way way to much current for the L298

What you need to do is use a smaller gauge wire and wrap many many turns until you get around 8Ω of wire resistance or use a smaller voltage like 5V and 3.3Ω

2 Likes

yes its insulated

Good, Do the math to know how much of the wire to use for the magnet.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.