0
\$\begingroup\$

Is there a microcontroller equivalent of a DPDT Switch? I am trying to develop a product that requires remote reversal of polarity by incorporation some sort of an equivalent of the mechanism exhibited by a DPDT switch.

\$\endgroup\$
2

1 Answer 1

0
\$\begingroup\$

enter image description here

Figure 1. A very simple polarity reversal circuit using two GPIOs. GPIO tricks.

GPIO1 GPIO2  LED
----- -----  -----
  0     0    Off
  1     0    Green
  0     1    Red
  1     1    Off
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.