Hans Christian Ørsted observed that when a current-carrying wire was brought near a compass, the compass needle moved.
In Ørsted’s observation, the current-carrying wire acted like a (generator magnet motor) . Michael Faraday based his first invention, the ( electromagnet generator motor) , on Ørsted s observation.