Skip to content

Input and Output devices

Sebastian edited this page Aug 1, 2021 · 23 revisions

The following device types are currently supported by the MobiFlight firmware:

Input devices

Input devices are all kinds of devices that allow a user to trigger an input event through a hardware device.

Buttons and Switches

You can use any kind of buttons and switches. There are many forms and shapes:

  • Push buttons
  • Tactile switches
  • Micro switches
  • Toggle switches
  • Kill switches

Switches comes as momentary buttons (push button), latch buttons (they stay pressed) or switches that have a handle that you can flip, where the position also can be momentary (ON), or stays ON. There are typical configurations for such switches:

  • ON-OFF - These switches require one input pin. The handle can be moved in ON position or in OFF position providing a low or high signal to the MobiFlight Board.
  • ON-ON - These switches require two input pins. The handle can be set to two different positions (on and off) but both have their own high signal.
  • (ON)-OFF - Switch requires one input pin. On position is only momentarily as long as user holds the switch in the ON-position. On releasing the handle, the switch will go back to the OFF position.
  • ON-OFF-ON - These switches require two input pins. The handle can be set to three different positions ("on" on one side, off in the middle, "on" to other side).
  • (ON)-OFF-ON -These switches require two input pins. One On position is momentarily only as long as the user holds the switch. On release the switch snaps back to the OFF (middle) position. The opposite ON-position is a permanent position.

Encoders

Encoders are important for building cockpits because many avionics use them.

Events

Encoders support the following events

  • onLeft - triggered on every detent when encoders turns left
  • onLeftFast - triggered when encoders is turned left fast (multiple detents per second)
  • onRight - triggered on every detent when encoders turns right
  • onRightFast - triggered when encoders is turned right fast (multiple detents per second)

Devices

  • Single Shaft Encoders
  • Dual Shaft Encoders

Analog inputs

Analog input devices can be connected to the analog pins of your MobiFlight Board. An analog input device will vary the voltage between 0-5V at the respective pin which will translated into a value between 0 and 1024.

Events

Analog input devices provide the following events

  • onChange - is triggered when the input value changes (depending on sensitivity setting) and you can reference the current value by using the @-Symbol.

Devices

  • Potentiometers are the typical device that you can connect via an analog input.

Outputs

Simple output such as LEDs

7 segments modules base on MAX7219 chip only

Servos motors

Stepper motors

LCD displays

PWM output (since 8.2.0.5)

Installation

User Interface

Examples and tutorials

MSFS2020

X-Plane

Workshops

Community Boards & Devices

Additional Information

Firmware

Clone this wiki locally