Skip to main content
Electrically operated switch.

Pins

power
Supply voltage
ground
Ground
input
Control signal (e.g. from micro-controller)
contact
Normally closed
contact
Common pin
contact
Normally open

Attributes

string
default:"npn"
“npn” (active-high) or “pnp” (active-low)

Operation

The relay is an electronic switch. When the IN pin is high / disconnected, COM is connected to NC (NC means normally closed). When the IN pin is low, COM is connected to NO (NO means normally open). Setting the “transistor” attribute to “pnp” inverts the logic: when IN is high, COM is connected to NO, and when IN is low / disconnected, COM is connected to NC.

Simulator Examples