How to determine if a membrane switch is equipped with a diode?
To determine whether a membrane switch is equipped with a diode, the following methods can be used:
Multimeter diode test (most accurate)
This is the most reliable method of judgment. The core principle is: Diodes have a unidirectional conduction characteristic. There is a voltage drop when conducting in the forward direction, and "OL" is displayed when cut off in the reverse direction.
Operation steps
1. Set the multimeter to the diode setting (symbol: ➡️|).
2. Locate any one COM wire and one trigger wire (corresponding to the same button).
3. Forward test: Connect the red probe to the COM terminal, and the black probe to the transmitting end. Record the reading.
4. Reverse test: Swap the probes. Connect the red probe to the transmitting end, and the black probe to the COM terminal. Record the reading.
Result determination
| Forward Test | Reverse Test | Conclusion |
| Display voltage drop (0.2 - 0.7V) | Display OL (out of range) | With diode, and direction is COM → trigger |
| Display OL | Display voltage drop (0.2 - 0.7V) | With diode, and direction is trigger → COM |
| Both times display OL | Both times display OL | Without diode, and the button is not pressed (normal open circuit) |
| Both times conduct (beep) | Both times conduct (beep) | Without diode, and the button is in pressed state (or short circuit) |
Note: During the test, the corresponding button must be pressed to close the contact; otherwise, regardless of whether there is a diode or not, the multimeter will display OL (open circuit state).
Multi-key simultaneous pressing test (no tools required)
Using the "ghosting" phenomenon to determine:
Operation method:
1. Connect the membrane switch to the circuit (such as the MCU development board).
2. Press simultaneously three keys arranged in an "L" shape or "rectangular" pattern (for example, the three keys at positions (1,1), (1,2), and (2,1) in the matrix).
3. Observe if the fourth key is triggered mistakenly (i.e., the position (2,2) is recognized as being pressed).
Result determination
- Ghost key appears: This indicates the absence of a diode. The current flows back through the parallel path, causing the unpressed key to be mistakenly recognized.
- No ghost key appears: This indicates the presence of a diode. The diode prevents the current from flowing back, eliminating the ghost key phenomenon.
Review the product specification sheet/ drawings
Membrane Switches produced by regular manufacturers will clearly indicate in the specification sheet or circuit drawings:
- Identification with diodes: On the circuit diagram, a diode symbol (triangle + vertical line) will be drawn next to each button, and the arrow direction indicates the conduction direction.
- Soldering identification: Some Membrane Switches have soldering marks indicating the diode direction (such as small arrows or "+" polarity identification) on the FPC/track.
- Product description: The specification sheet will state "with ghost-key diode" or "Diode Matrix" and so on.
Inquire of the manufacturer or supplier
If the above methods fail to confirm, the most direct approach is to contact the supplier and ask for the following information:
Is it a diode matrix (Diode Matrix) structure?
The installation direction of the diodes (anode connected to COM or cathode connected to COM)?
The specification parameters of the diodes (forward voltage drop, maximum current, etc.)?
Why is it necessary to know if there is a diode?
Determining whether a Membrane Switch has a diode directly affects wiring and software design:
- Without a diode: If the COM terminal and the trigger terminal are connected in reverse, the button can still conduct (only the scanning logic is incorrect), and the software can compensate.
- With a diode: The COM terminal and the trigger terminal must not be connected in reverse. If they are connected in reverse, the diode is in reverse cut-off state, and all buttons cannot conduct. The software cannot compensate and the hardware must be rewired.
💡Summary: The most recommended method is to use the diode档 of the multimeter to test. Press the button and measure both forward and reverse directions. If there is unidirectional conduction, it indicates the presence of a diode. If both directions are conductive, it means there is no diode. If you don't have a multimeter, you can indirectly determine it by observing the ghost key phenomenon when pressing multiple keys simultaneously. Before connecting the wires, make sure to confirm the presence and direction of the diode. If the diode is connected in reverse in the membrane switch, all keys will become ineffective.
