Oersted’s Experiment :
Set up the apparatus as shown in fig. when switch is in open circuit
magnetic needle points in north direction. Showing there is no magnetic field around it. Now when switch is closed and current flows through the wire, the magnetic needle gets deflected from north. This shows that conductor carrying current produces magnetic field around it and deflects the magnetic needle.