Switch editor

The Switch editor lets you define or edit a digital ON/OFF output (relay, LED, solenoid, etc.). It opens from the start window → Elements tab → New or Edit button, selecting the Switch type.

A switch corresponds to a digital pin on the controller. During playback, SWITCH segments drive it high (ON) or low (OFF). It does not support intermediate positions or speed: it is ON/OFF only.

Fields

FieldDescription
NameUnique switch identifier in the domain (e.g. "Eye LED", "Fog relay"). Required.
DescriptionFree notes about the element (optional).
PortDomain port where the controller is connected (e.g. COM5 with Arduino). Required.
PinDigital pin number on the controller the switch is connected to (1–255). Required: pin 0 is not valid.
Initial statePin state when the port is opened and when playback ends: Off (0 = LOW) or On (1 = HIGH).
ColorTrack color in the timeline. Click to change.

Common errors

MessageCause and solution
Name requiredThe name field is empty. Enter a unique name.
Pin not setThe pin is 0. Enter a value from 1 to 255 matching the digital pin on the controller.
Name already existsAn element with the same name already exists. Use a different name.
Duplicate pinAnother switch or PWM servo on the same port already uses that pin. Each pin must be assigned to one element only.

The pin is checked against the profile of the port's board: see Boards and reserved pins.

See also: Elements selection — Servo BUS editor — Servo PWM editor — Ports editor — Key concepts