Switch connection tutorial

From Sim Innovations Wiki
Revision as of 08:55, 10 December 2018 by Admin (talk | contribs) (Switch explanation)
Jump to navigation Jump to search

Description

Switches have multiple (at least two) positions. The callback returns the position of the switch as a number from 0 to whatever positions the switch has.

An example of a switch is the master battery switch, which turns the battery power on and off. Another example is the magnetos/starter switch, which usually has 5 positions. In the examples below we will show you how these can be made.

Examples

Master battery switch

The first example will be the battery switch. This is a single switch with two positions: Off (0) and On (1). In this case you can either have a switch with three pins, from which two go to the I/O and one to ground. Or a switch with two pins, from which one goes to the I/O pin and one to ground. Both situations are drawn below.