An electromagnet is a component which becomes magnetised when a current passes through it but is not magnetised otherwise.
In industry large electromagnets are used as crane hooks for lifting ferrous metal items. Smaller electromagnets can be used to hold doors open or to keep them closed.
Submit Your Own Code!
You must be logged in to submit code examples. Login now.