-1

I am trying to make a launch controller, which will turn on with a key. Like the one in this photo below:

Switch Controller

closed as off-topic by jsotola, sempaiscuba, VE7JRO, Greenonline, Juraj Oct 24 '18 at 8:12

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be about Arduino, within the scope defined in the help center." – jsotola, sempaiscuba, VE7JRO, Juraj
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    this is not an arduino related question and shopping questions are frowned upon here – jsotola Oct 24 '18 at 0:50
1

Check for example here for a key switch (see picture below).

As you can see it has two pins. If the pins are connected the switch is closed (same like a normal switch). So you can just connect one wire to VCC / 5V and the other via a high value resistor to a GPIO pin and check for LOW or HIGH.

(note: in practice it's possible to use almost any (electric/mechanical) component as long as the number of pins is not too high to be reasonably used by an Arduino).

enter image description here

  • 1
    Re “one wire to VCC / 5V and the other [...] to a GPIO pin”: for reading the state of the switch, you will need either a pullup or a pulldown resistor. You can use the internal pullup if you connect the other end of the switch to GND. – Edgar Bonet Oct 24 '18 at 8:01
1

A key switch is just a normal switch. What you do with it depends on how you wire it and code for it.

  • Sorry I wasn't clear enough. I meant where can I find one and buy it. – FA95 Oct 23 '18 at 23:41
  • Not really well seen to provide buy link here. Any shop that cRry switches should also stock there. Ask your favorite local or online shop. – Andre Courchesne Oct 24 '18 at 0:14

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