Electromagnet

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.

Related Commands:

Print Page

Share

Schematic

PCB

Activate an electromagnet

This program will activate an electromagnet connected to output pin B.1 for a second every five seconds.

Code Example:
main:	high B.1	; Activate the electromagnet
	pause 1000	; Keep activated for a second

	low B.1		; Deactivate the smart wire
	pause 5000	; Wait five seconds

	goto main	; Repeat
Copy Code Submit an Example

Create Module

Bill of Materials

DescriptionCodeQty
Electromagnet ? 1 Buy Now
FET ? 1 Buy Now
10k resistor (pack 100) RES10K 1 Buy Now
1N4001 diode RES041 1 Buy Now

Simulation

No Image Selected

Submit Your Own Code!

You must be logged in to submit code examples. Login now.