ABOUT, HISTORY BARON 58 COMMUNITY TERMS YOUTUBE BLOG

ON/OFF Position Indication for Single-Pole Switch


As described on this page, using toggle switches (including Korry-type switches) with more than one "pole" terminal (DPST or DPDT) allows you to use the first contact group for the input signal control, and the second group for LEDs on/off control.

But if you have a single-pole (SPST, SPDT) switch, you can still use a LED to indicate its current position when using it with SimVimCockpit. All possible options are described below.


1. SPST switch

For this switch type you can easily implement the "ON" status indication. To do this, you need to connect the LED's cathode to the same terminal that is used as the input signal, and the anode must be connected to the +5 bus with the appropriate resistor in series. The value of the resistor should be chosen based on the LED brightness that you want to get, but preferably not less than 1 kOhm. From my experience, even if you use a resistor of 2-3 kOhm the LED brightness is quite enough to indicate that the switch is ON.

As all inputs are configured in SimVimCockpit firmware as default high-level state with pull-up resistors, connecting a LED this way will not affect the digital inputs in any way. Throwing the switch will short the circuit to the ground, activating both the input and the LED connected to it.



2. SPDT ON-ON switch

For this switch type you can implement the "OFF" status indication by using the second signal line. You need to connect the LED's cathode to the terminal that is NOT used as the input signal, and the anode to the +5 bus with the appropriate resistor in series.

The difference from the SPST switch is that you can use any resistor value that you need for your LED brightness, and you can even use any VLED voltage to power the LED, because in this case it doesn't interfere with the signal line.


At the same time, you can still use the signal side for the ON state indication LED as described for the SPST switch above. Or, you can use both position LEDs as shown in the picture below. Note that the two LEDs used here are powered from +5V and have a single resistor (only one LED can be powered at the same time). As an option you can use two power lines and two resistors.



3. SPDT ON-OFF-ON switch

For this switch type you can make the indication for both "ON1" and "ON2" position using the signal lines. You need to connect the LED's cathode to the same terminal that is used as the input signal, and the anode must be connected to the +5 bus with the appropriate resistor in series. Again, the resistor value is chosen based on the LED brightness required, and preferably not less than 1 kOhm.



4. Rotary Switch with a single group of position terminals

A multi-position rotary switch (here is an example with 5 positions) that has only one pole and only one group of 5 throws is used like 5 separate SPST switches that can not be in the ON state at the same time.

Connect the LED's cathode to the same terminals that is used as the input signals, and all the LEDs anode must be connected to the +5 bus with one resistor in series. The value of the resistor should be chosen based on needed LED brightness as described above for SPST switch.

.




© Copyright 2012-2018 - SimVim