I have a setup for one of my robotics projects where a neodymium magnet is placed across from an electromagnet. I power the magnet with DC through a L298N motor controller that is connected to an Arduino.
Will my neodymium magnet attract the electromagnet across from it when there is no power being supplied to the electromagnet? I know that the electromagnet has a somewhat magnetic core.
My goal in this setup is for the neodymium magnet to not be touching the electromagnet until power is supplied to the electromagnet, then they can attract. I do not want to repel with the electromagnet, thus why I am asking this question.
Basically I have my electromagnet attached with a 3d printed stick to a gear, and a magnet (at the moment before I asked this question) positioned stationary across from that electromagnet (the angle is not straight but close to straight). What I would like to do is when the electromagnet is given power, it will attract towards the stationary magnet and turn the gear