A reed switch is an electromagnetic switch operated by an applied magnetic field. It consists of a pair of flexible, magnetizable metal contacts (reeds) hermetically sealed inside a protective glass envelope. In Open Maker Studio, reed switches are commonly used to detect doors opening/closing, wind speed anemometers, and proximity sensing.
1. Schematic Symbol
A normally-open switch sealed inside a glass envelope, actuated by an external magnet (not part of the schematic symbol itself — shown here for context, since OMS's own component draws the magnet right on the canvas rather than as a separate part):
2. Normally Open (NO) vs. Normally Closed (NC) Mechanics
- Normally Open (NO — the only type OMS models):
- The contacts remain physically separated in the absence of a magnetic field.
- When a magnet is brought close, the reeds magnetize with opposing poles and pull together, closing the circuit.
- Normally Closed (NC): real reed switches exist in this variant too, but OMS's component is NO-only — there's no prop or variant to model NC behavior, so don't wire a circuit expecting NC-style logic to work in the simulator.
3. Wiring & Pin Configuration
A reed switch has two non-polarized terminals:
- Pin A and Pin B: Wire one pin to a microcontroller digital input GPIO, and the other to VCC (3.3V or 5V).
- Logic Pull-Down Requirement: OMS's reed switch blocks are wired for pull-down logic, not
pull-up — the GPIO idles LOW via an internal pull-down resistor, and reads HIGH once the reed
contacts close and bridge the pin to VCC. On ESP32/ESP8266/Pico this is
INPUT_PULLDOWN(real hardware support); Arduino Uno/Nano has no hardware pull-down at all, so OMS falls back to plainINPUTand expects a physical pull-down resistor to GND on that board instead (see the board note in Section 5).
4. Component Properties (Property Inspector)
When you select a Reed Switch on the canvas, you can modify the following parameter in the Property Inspector panel:
- Magnet Distance (
magnetDistance): A range slider that simulates dragging the activation magnet closer or further from the glass tube.- Default:
40mm (contacts open — the farthest setting) - Range:
0mm (magnet touching the glass) to40mm (step size1mm) - Contacts snap shut once the magnet comes within 15mm — a single hard distance cutoff, not
a gradual sensor reading. There's no separate "Detection Radius" prop; 15mm is a fixed internal
constant (
TRIGGER_DIST_MM), not user-adjustable. This is a known, deliberate simplification — real reed switches have a pull-in/drop-out hysteresis gap (they close and open at slightly different distances); OMS models one single threshold for both directions.
- Default:

