petitdoigt

Optical switches: how an optical keyboard senses a key press

An optical switch registers a key press when the stem interrupts or changes a beam of light read by a sensor on the circuit board, so no metal contact closes. Razer, Corsair, Gateron, Logitech, A4Tech and Flaretech all make them. Most designs fire at one fixed point, shallow ones around 1.0 to 1.5 mm, and they fit only boards built for them.

updated 6 min readDrill with finger-coded words in the browser

on this page
  1. How do optical switches work?
  2. Who makes optical switches?
  3. How do measured forces compare with the claims?
  4. Can optical switches go in a hot-swap keyboard?
  5. What are analog optical switches?
  6. Are optical keyboards good for typing?

Optical switches replace the metal contact of a mechanical switch with a beam of light. A sensor on the circuit board watches the light, and the stem changes what the sensor sees as the key goes down. Razer, Corsair, Gateron, Logitech, A4Tech and Flaretech all build optical switches, and each design ties you to the boards its maker supports. For the other sensing families see the overview of keyboard switches.

How do optical switches work?

An optical switch actuates when the stem of the switch changes a light beam that a sensor reads. Razer's page for its optical switch says actuation happens through a light beam that passes through the stem when you press. Corsair says OPX switches use a beam of light, and a key actuates when its movement interrupts the beam. Wooting's explanation of Flaretech adds that the switch uses a sensor and light to read the position of the keypress rather than relying on conductivity.

The parts differ by design. Wooting says the LED sits on the PCB, not in the switch, and its light reaches the switch through a light tunnel on top. For the A4Tech Light Strike line, the petitdoigt switch database notes a crystal prism that spreads light from the LED on the PCB, and each switch carries its own stabilizer bar. The switch itself holds no electronics in these designs, which is why a Flaretech switch cannot turn an ordinary keyboard into an optical one.

Without a contact there is nothing to bounce. Razer says there is no contact bounce with light actuation, so the signal goes out as soon as the key actuates. Wooting's comparison table lists a debounce of 0.03 ms for Flaretech against 5 ms for Cherry MX, with a warning that its own data is subject to errors.

Who makes optical switches?

Several brands sell them, each with its own mount. Figures are the maker's own, in the maker's unit.

Optical switches by maker, as each maker states them
SwitchTypeActuationForceTotal travelRated life
Razer Linear OpticalLinear1.2 mm45 gNot listed100 million
Razer Clicky OpticalClicky1.5 mm45 gNot listed100 million
Corsair OPXLinear1.0 mm45 g3.2 mm150 million
Corsair OPX Low-ProfileLinear1.5 mm45 g2.5 mm80 million
Gateron KS-15 Optical YellowLinear1.0 mm35 gf3.2 mmNot listed
Gateron KS-15 Optical RedLinear2.0 mm45 gf4.0 mmNot listed
A4Tech LK Libra OrangeClicky1.5 mm40 gf3.0 mm100 million
Flaretech Linear55 Red (Adomax)Linear1.5 to 3.6 mm on analog boards55 gf4.0 mm100 million
ASUS ROG RX RedLinear1.5 mm45 gfNot listed100 million

The Gateron range includes yellow, white, red, silver, black, brown and blue variants in its KS-15 and KS-22 families, so linear, tactile and clicky options all exist. Logitech's GX Optical Linear and Tactile switches ship in the PRO X 60, and the Logitech page lists no force or travel figures. SteelSeries' older OptiPoint optical switches list an actuation between 1.0 and 1.5 mm and 35 to 55 gf depending on colour, and Turtle Beach's Titan II Optical Red appears in the Vulcan II line, rated at 200 million keystrokes in the petitdoigt switch database.

The petitdoigt switch database records 42 optical switches: 26 linear, 11 clicky, 4 tactile and 1 silent linear. The guide to linear, tactile and clicky switches covers how those types differ.

How do measured forces compare with the claims?

A4Tech lists the LK Libra Orange at 40 gf, and TechPowerUp's review of the Bloody B945 measured about 49 gf average actuation over 20 switches. One switch in one review shows that listed and measured forces can differ and says nothing about how often. The guide to switch specs explains how makers quote force and why figures vary.

Lifespan figures are the makers' ratings. Razer compares its 100 million clicks with an industry standard of 50 million keystrokes and says optical actuation with less physical contact should eliminate switch degradation almost completely. The sources include no durability test.

Can optical switches go in a hot-swap keyboard?

Only in a board designed for the same optical switch. The sensor and the light source live on the PCB, so the board and the switch have to agree on geometry and light path. Razer's optical switches fit only Razer optical boards, per the petitdoigt switch database. Gateron's switches fit only keyboards built for Gateron optical switches. Wooting warns that installing a Flaretech switch on an ordinary mechanical keyboard does not make it analog, and that analog capability comes from the keyboard's PCB sensors working with the switch. Flaretech has the same MX stem as Cherry MX per Wooting, so standard keycaps fit the stem, and its sockets are hot-swappable.

Of the 44 boards in the petitdoigt keyboard database with optical switches, 26 are not hot-swappable, 6 have another socket type, 4 list optical hot-swap, 3 take 5-pin switches, 1 is hot-swappable with no socket stated and 4 do not say. NZXT's Function 2 is an example with hot-swappable optical switches: PC Gamer called it a quiet, fairly priced full-size optical keyboard with dual actuation and hot-swappable switches, and Tom's Hardware also noted the hot-swappable optical switches. TechRadar's review of the Roccat Vulcan II Mini noted that its switches are still not hot-swappable.

The practical consequence is that the keyboard decides your switch choice. If you want to swap switch types freely, read the hot-swappable keyboard guide first and check whether the board takes standard MX-footprint switches.

What are analog optical switches?

An analog optical switch reports how far the key is down, so the actuation point can be moved in software. Razer's page says its analog optical switch can measure the exact amount of light that goes through the switch stem, giving an actuation range of 0.1 to 4.0 mm adjusted in Razer Synapse. It also lists Rapid Trigger, dual-step actuation and analog input. The Gen-2 switch is used in the Huntsman V3 Pro line, and a low-profile analog version in the Huntsman V3 Pro Low-profile Tenkeyless lists 0.1 to 2.8 mm.

Wooting's Flaretech Lens B does the same job on Wooting's own boards. The Wooting post says the switch mechanically blocks all light until 1.3 to 1.5 mm, so the usable analog range is limited, and Tom's Hardware lists the range as 1.6 to 3.6 mm. Wooting has since moved to Hall effect sensing, covered in the Hall effect switch guide, where the magnet's position replaces the light beam.

Reviewers of analog optical boards give mixed marks for feel. Tom's Hardware rated the Huntsman V3 Pro TKL 4.5/5 and said customizable actuation and Rapid Trigger Mode work well together, with good typing but a high price. TechRadar's Huntsman V3 Tenkeyless 8KHz review called the board very tweakable and said its switches give little feedback.

Are optical keyboards good for typing?

The sources hold no typing test of optical switches. PC Gamer's review of Corsair's Vanguard Air 99 Wireless, which uses OPX Low Profile switches, rated it 70/100 and focused on the price of its 99% layout.

Optical switches come in linear, tactile and clicky versions, and low-profile variants change key height and travel; see the guide to low-profile switches. The quiet switches guide covers silent designs. The trainer offers finger-coded drills in the browser, with key sounds recorded from 13 real switches that you choose from a dropdown in its settings, and makes no claim that a switch type changes how fast you learn.

Questions people ask

What is an optical keyboard?

A keyboard whose switches use light to detect a press. Razer states that its optical switch actuates when a light beam passes through the stem, and Corsair says OPX switches trigger when the key's movement interrupts a beam. No metal contact closes, so the signal arrives without contact bounce.

Are optical switches faster than mechanical switches?

Makers claim faster actuation: Razer lists 1.2 mm for its linear optical switch and Corsair 1.0 mm for OPX, against about 2.0 mm for a typical mechanical switch in Corsair's article. Those are shorter pre-travel distances. Whether you notice the difference when typing is not shown by the sources.

Can I put optical switches in a hot-swap keyboard?

Only a board made for that optical design. Razer's optical switches fit only Razer optical boards, Gateron's fit only boards built for Gateron optical switches, and Flaretech needs a Flaretech socket. In the petitdoigt keyboard database, 26 of the 44 boards with optical switches are not hot-swappable.

Do optical switches last longer?

Makers rate them higher: Razer lists 100 million keystrokes against an industry figure of 50 million, and Corsair lists 150 million for OPX. These are the makers' own ratings, and the sources opened give no independent test of them.

What is an analog optical switch?

An optical switch that reports how far the key is pressed, so the actuation point can be set in software. Razer's Gen-2 analog optical switch lists a range of 0.1 to 4.0 mm and supports Rapid Trigger. Wooting's Flaretech Lens B reads analog travel between 1.5 and 3.6 mm.

Sources

  1. Razer: Razer Optical Switch
  2. Razer: Razer Analog Optical Switch
  3. Razer: Razer Low-Profile Optical Switch
  4. Razer: Razer Low-Profile Analog Optical Switch
  5. Corsair: key switches compared
  6. Gateron: KS-15 Optical Switch Set
  7. Gateron: KS-22 Optical Switch Set
  8. Logitech G: PRO X 60 wireless keyboard
  9. Wooting: Flaretech, the optical keyboard switch
  10. Deskthority wiki: Adomax Flaretech
  11. Tom's Hardware: Wooting One review
  12. TechPowerUp: Bloody B945 review, measurements
  13. TechPowerUp: Bloody B945 review, switches
  14. SteelSeries: keyboard gaming switches
  15. ASUS ROG: keyboard switches
  16. Turtle Beach: Vulcan II Max keyboard
  17. Tom's Hardware: Razer Huntsman V3 Pro TKL review
  18. PC Gamer: NZXT Function 2 review
  19. Tom's Hardware: NZXT Function 2 review
  20. TechRadar: Roccat Vulcan II Mini review
  21. PC Gamer: Corsair Vanguard Air 99 Wireless review
  22. TechRadar: Razer Huntsman V3 Tenkeyless 8KHz review