COCKPIT SUITELIVE HUB /

Workshop / Switches, encoders and axes

Controls that behave as your cockpit needs

What matters is the action a control should trigger and the signal it actually supplies. A maintained switch, pushbutton, encoder and analogue axis need different processing. Plan physical operation, wiring and simulator function together.

What you will haveA suitable selection with documented contact behaviour, connection requirements and a check plan for each input type.

Last reviewed: 18 October 2026

Describe the intended action first

Should a brief press trigger an action, a fixed position select a state, or movement change a value? Write this down before ordering. A button often suits a menu step; a maintained switch can make a persistent operating mode visible. A guard changes access to a control, but does not automatically change its electrical function.

Check panel thickness, mounting hole, thread length, knob spacing and clearance behind the panel. An attractive switch is little use if its terminals hit the enclosure. A paper template with real knobs helps reveal whether neighbouring controls remain accessible.

Match the signal type to the task

Control types and their processing
ControlSignal suppliedWhat to check
Momentary pushbuttonContact changes while operated; normally open or normally closed according to the datasheetHandle pressing, holding and release separately
Maintained switchA retained contact positionStartup state and suitable on/off commands
Rotary selectorOne contact or contact pattern selectedPositions, common contacts and transitions
Quadrature encoderTwo offset signals indicating movementDecoder, counts per detent and speed
PotentiometerAnalogue value related to positionCircuit, ADC range, mechanical travel and wear
Hall sensorSensor-specific analogue or digital outputSensor type, magnet arrangement, interface and calibration

A Hall sensor is not automatically a drop-in replacement for a potentiometer. An analogue sensor and one using a digital interface need different connections. Check the datasheet and firmware support for the exact part.

Turn contact names into a small state table

SPST describes a simple switching contact, SPDT a changeover contact; DPDT has two linked changeover poles. ON-OFF-ON describes three positions, but alone does not tell you which are momentary. Read the manufacturer drawing instead of inferring behaviour from the lever shape or terminal count.

Record which contacts connect in every position. With a conventional centre-off SPDT switch, the middle position can be represented by neither outer contact being closed. The decoder must observe both contacts. Know the limitation if the same “no contact” indication can mean either the centre position or a disconnected wire.

Check contact continuity with power disconnected and record the viewing direction of the terminals. On illuminated switches, distinguish lamp terminals from switching contacts. The wiring guide takes this table into a labelled harness.

One operation should produce one event

Mechanical contacts can briefly change several times while opening or closing. Arduino documentation explains this bounce and time-based validation. A pull-up instead provides a defined open-input state; it is not complete debouncing. Establish a correct electrical circuit first.

In custom firmware, a new state can be accepted once it has remained stable long enough. The required interval depends on the component and operation. A long blanket delay may swallow short presses and stall other inputs. Use the documented debounce method of your board or library and check both press and release.

Try a simple acceptance check: twenty deliberate operations, twenty expected events and no extra events at rest. This is a proposed functional check, not a lifetime guarantee.

Separate detents, pulses and events

A quadrature encoder supplies A and B. Their sequence determines direction; an integrated pushbutton is another input. Two such encoders with a pushbutton each require four A/B signal lines and two button lines when wired directly. Supply or ground connections are additional, according to the circuit.

A mechanical detent does not automatically equal one count. The component and decoder determine how many transitions are counted and combined into an operation. PJRC documents fourfold edge counting, for example. Check a known sequence of detents and determine the conversion for your exact encoder.

If faster turns lose steps, examine polling frequency, blocking code and supported encoder pins. Interrupt processing may help but is not a universal cure. Extended interrupt lockouts can lose transitions too. Check slow rotation, brisk rotation and reversals before adding acceleration.

Use a matrix for a larger button set

A matrix arranges switches in rows and columns. Three rows and four columns provide twelve switch positions using seven matrix lines. This saves pins but requires suitable scanning and wiring. It is not a universal wiring plan for controller boards.

Several closed contacts can create unintended paths and apparent key presses: ghosting. Suitable diodes and matching scan logic can prevent those paths; diode direction must match the specific circuit. Also check whether the software reports several held keys. A simple function that returns only one key cannot provide that information.

Maintained switches keep contacts closed. Explicitly test the combinations your panel requires. Put encoders in a matrix only when that usage is documented for the board and firmware. Direct wiring is often easier to follow for a first small build.

Calibrate the usable axis travel

Record the raw reading at the lower stop, midpoint and upper stop. Move the mechanism through its intended travel without forcing the sensor or stops. Note direction and variation at rest. ADC resolution alone does not determine the usable accuracy of the full assembly.

Calculation example only: a measured range from 120 to 900 puts a reading of 510 at its midpoint: (510 − 120) / (900 − 120) = 0.5, or 50 %. These numbers are not settings for your board. The range must be valid, with maximum greater than minimum; values outside it are limited according to the intended processing.

A suitable small deadzone can absorb rest variation; an oversized one wastes travel. Smoothing steadies readings but may delay the response. Check wiring and mechanics first: filters should not conceal a bad contact. Then calibrate through the device and simulator path actually used.

Follow each input into the simulator

  1. Document component, state table, firmware and connections.
  2. Observe each input first in the intended device tool.
  3. Check buttons for single events, encoders for direction and counts, and axes for endpoints and midpoint.
  4. Test the simultaneous inputs and held switches you need.
  5. Assign a documented simulator command and observe its actual effect.
  6. Check startup with an already-set switch and a normal program restart, then save the result.

A toggle command can leave physical and simulated switch positions out of step after mouse operation. Explicit state commands help only when the simulator and interface provide them. The input mapping guide explains this next step; a confirming LED remains a separate output path.

Make the next step clear together

For a forum question, include exact component, board, firmware, expected behaviour and the first point of disagreement. For an encoder, detents and displayed counts are especially useful. We aim to help the same day where possible; late questions may receive a later reply.

Cockpit Suite brings supported simulators into one software environment. Suitable prepared combinations can simplify setup; your chosen switches and sensors still need careful checks. This young project grows through reproducible community builds. Whether the issue is switch logic, a printed knob or a milled panel, we help you establish the next step.

Sources and further documentation

Sources checked on 18 October 2026. The workflows and examples here are our own suggestions. Older builds help identify questions; technical decisions need current manufacturer documentation.

Continue with a practical build