Hi,
I am going to use a Bluetooth module to control the Arduino nano gate which is to control the electromagnet charge and discharge via MOSFET. the circuit below is my design. Now I have a question, how to choose the addition supply for my electromagnet when I need to energize that.
Read the data sheet for the electromagnets, what voltage they need and how much current they need.
Then go for a power supply giving 50 - 100% more current.
Complete the schematic, showing power supply(s) and all power, ground and interconnections. I expect you may have problems with the MOSFETs frying, post a link to there data sheet. Also post a link to the magnetics where the power requirements are specified.
The MOSFETs need pull-down resistors on the gate, to ensure they're off while the Arduino is starting up.
Your schematic appears to show one n-channel and one p-channel MOSFET. Both should be n-channel. Pick a logic level type, e.g. IRLZ44N or IRL540, just to name two popular ones.
appreciate your response!!
yes, actually i am using both N channels which allows 60v 500mA. and my electromagne is 5v and 300ma. I am using MOSFET as a switch when I want to run the electromagnet, I will give the signal to Arduino nano then the gate should be changed. My question is how to give the electromagnet power supply so they can be energized?
i am new to Arduino!! really appreciate your help!!
Hi,
Please read post #4.....
Is this your solenoid?
Specification:
Material: Metal
Input Voltage: 5V DC
Peak Force :50N
Holding Force :37N
Duty-cycle (ED%) : 50%
Electric time:Less than 7 minutes ;
Overall Size : 25 x 20 mm / 1 x 0.8 inch(Dia. *T)
Thread DIA : 4mm
Lead Length : 24cm/9. 5 inch
I am so sorry for the late reply because I can only reply once within 30 minutes.
reply #7 Thanks for your response, the datasheet which is listed in #8 is correct!
reply #8 sorry I wanted to respond to you yesterday but I did other things later. yes, they are the same project actually and the same electromagnet
reply #9 the MOSFET is the BS170! and it is N channel! i got this from my school lab, so they only have this type!
Actually, i am thinking of another question, should I have to use MOSFET to energize the electromagnet? can I directly control them with the charge and discharge by arduino nano? and How can i charge the arduino nano with a button holder. Because i bought several button holders and then i found a question, the arduino is charged by the USB so how can i directly power Arduino nano with button batteries?
ruiwen:
Because i bought several button holders and then i found a question, the arduino is charged by the USB so how can i directly power Arduino nano with button batteries?
You cannot power an Arduino Nano with button batteries. Why would you want to?
reply #11 thanks for your response.
I'd like to use batteries because for my project, i hope to achieve the remote control for this device which means no connection with the computer when this device could be finished. i looked up some information said the Vin of nano could be connected to 6-20v so that powering the nano. I am wondering if that could achieve if i connect Vin with a switch and battery holder?
reply #12 thanks for your response. i am sorry, i donnot understand what's solenid. is that referring to the electromagnet? if yes, it should be 400 mA current required.
ruiwen:
reply #12 thanks for your response. i am sorry, i donnot understand what's solenid. is that referring to the electromagnet? if yes, it should be 400 mA current required.
Solenoid or electromagnet, pretty much the same, only that a true electromagnet calls for even more care due to the electromagnetic energy stored in it. Switching it off, that energy must be disposed safely.
Okey, 400 mA. That is too much for the controller and a, preferably a logic level N channel MOSFET, transistor is needed.
ruiwen:
reply #9 the MOSFET is the BS170! and it is N channel! i got this from my school lab, so they only have this type!
The datasheet says it is logic level; will switch fine with 4-5V but not below that. Rated up to 500 mA so it will switch your electromagnet.
A Nano may be able to run from a pack of 3xLR44 button cells (not a good idea, it won't last long), but no way those cells can supply the power for that magnet. You need a battery pack of 3xAA. You also can't connect the Nano to higher voltage and hope to power the magnet through its 5V pin, that's too much current for the Nano's regulator.
Remember to add a flyback diode to dissipate the energy when switching off the magnet.