The Solenoid and Electromagnet
The negative and positive terminals of the battery were switched here switching the direction to flowing clockwise. When this occurred the curl of the hand is wrapping around the electromagnet in the opposite direction. Therefore this results in the poles of the