I plan to use two electromagnets (With a magnetic core) to make a magnet move back and forth on a rail. I plan to place the two electromagnets on the both the ends of the rail. The travel length of the magnet is 0.5 inch.
Then depending on the direction of movement of the magnet, I plan to...