SPST rocker switches are commonly found in the automobile industry as a standard switch for various dashboard functionality such as windshield wipers. Usually, SPST switches are accompanied by an LED light to indicate when the switch is on.
There are many YouTube videos that demonstrate the usage of SPST rocker switches, however, there are very few indications on how these switches are wired internally. For the hobbyist, three terminals instead of a typical passthrough (2 terminals) can be rather confusing.
The circuit consists in a switch between the positive terminal (+
) and the LED terminal (-
) - although the later is counter-intuitively indicated with a LED symbol rather than using the (-
) symbol.
Ved=5V + // \ R=? .-. + +---+\\\+--+(->|)+ | | `-' | | | | | | | + --- --- Vin=12V - -
When the switch is toggled, the current flows from the terminal (marked with the
+
symbol) to the terminal marked with the LED symbol. This is sufficient to use the SPST just as a common switch. However, to make the LED glow, the additional ground terminal (marked with the ground symbol on the switch) must be grounded as well. Only then will the switch emit light as well as working as an interruptor.
LEDs are commonly rated at and draw about
(
) but this may vary between the LED type. Since automobile SPST switches usually draw power from a car battery, the input voltage is rated at
such that the voltage must be lowered to
using the resistor marked in the schematic with
R
.
Using Ohms law, it follows that:
Since the circuit is a serial circuit, then the sum of individual voltage drops must be equal to the voltage applied to the circuit, such that:
It is known that:
such that all values can be substituted to find out the rating of resistor R
. For the ratings enumerated above, the calculations would reduce to: