How do Computer Keyboards Work? šŸ¤”āŒØāŒØšŸ› 

Branch Education
10 May 202311:09

Summary

TLDRThis video script explores the engineering marvels behind basic computer keyboards, focusing on cost reduction. It dissects an inexpensive keyboard with only 8 critical parts, costing as low as $1.57 each, and explains how it functions using a simple matrix system. The script contrasts this with a high-end mechanical keyboard, costing over 50 times more, revealing the intricate mechanisms behind its tactile feedback and clicking sound. The video also touches on laptop keyboards and emphasizes the importance of engineering education.

Takeaways

  • šŸ˜² Basic computer keyboards have surprisingly impressive engineering, particularly in cost reduction.
  • šŸ’° The inexpensive keyboard is made up of only 8 critical parts, allowing for bulk purchases as low as $1.57 each.
  • šŸ” Inside the cheap keyboard: a rubber sheet with domes, three plastic sheets with conductive wires, and a simple circuit board with components.
  • āš™ļø The keyboard's functionality relies on a matrix system where keys press domes to bridge conductive traces on plastic sheets.
  • šŸ”‹ The keyboard matrix uses a method of scanning columns with 3 volts and detecting row inputs to identify key presses.
  • šŸ”Œ The microprocessor sends key data to a 2.4 GHz transceiver, utilizing printed planar antennas for wireless communication.
  • šŸ’” Mechanical keyboards, costing over 50 times more, have a different internal mechanism, including a spring and metal contacts for each key.
  • šŸŽ‰ The clicking sound in mechanical keys comes from the metal contacts hitting each other when the key is pressed.
  • šŸ› ļø Mechanical keyboards offer a more tactile feel due to their intricate internal components, which also contribute to their higher cost.
  • šŸ“± Laptop keyboards use a scissor switch mechanism with rubber domes for a lower profile, differentiating them from desktop keyboards.

Q & A

  • How many critical parts are inside the inexpensive keyboard mentioned in the script?

    -The inexpensive keyboard has only 8 critical parts inside.

  • What are the main components of the inexpensive keyboard's key mechanism?

    -The main components of the key mechanism in the inexpensive keyboard are a rubber sheet with domes under each key and three plastic sheets, with conductive wires printed on the top and bottom sheets.

  • How does the inexpensive keyboard detect which key has been pressed?

    -The inexpensive keyboard detects which key has been pressed by bridging the connection between the top and bottom plastic sheets when a key is pressed, allowing a 3-volt signal to travel from the bottom sheet, through the pressed key, to the top sheet, and back to the microprocessor.

  • What is a keyboard matrix and how does it relate to the inexpensive keyboard?

    -A keyboard matrix is a grid-like organization of the keyboard's traces, with the bottom traces forming columns and the top traces forming rows. The inexpensive keyboard uses this matrix to determine which key is pressed by correlating the active column with the input row.

  • How does the inexpensive keyboard solve the problem of identifying which key is pressed when multiple keys are pressed simultaneously?

    -The inexpensive keyboard solves this problem by sending a cycle of pulses that turn off one column at a time to determine which key in a row is pressed, with these pulses sent for 65 microseconds to each column, once every 4 milliseconds.

  • What is the purpose of the 2.4 gigahertz transceiver in the inexpensive keyboard?

    -The 2.4 gigahertz transceiver in the inexpensive keyboard is used to send the data about which keys are pressed to the connected device using the printed planar antennas.

  • What is the main difference between the inexpensive keyboard and the mechanical keyboard discussed in the script?

    -The main difference is that the mechanical keyboard has a more complex and durable key mechanism with a tactile feel and a clicking sound, whereas the inexpensive keyboard uses a simpler and less expensive mechanism with rubber domes.

  • What is the function of the stem and slider in the mechanical keyboard's key mechanism?

    -In the mechanical keyboard's key mechanism, the stem and slider work together to move one of the metal contacts away from the other when a key is pressed, creating a connection and causing a click sound. When the key is released, the spring pushes everything back up, separating the metal contacts.

  • Why are mechanical keyboards more expensive than the inexpensive keyboards?

    -Mechanical keyboards are more expensive due to the larger printed circuit board and the intricate mechanism inside each key, which provides a more tactile feel and a clicking sound when pressed.

  • What is the purpose of the scissor switch mechanism in laptop keyboards?

    -The scissor switch mechanism in laptop keyboards allows for a lower profile while still providing a key mechanism with rubber domes, making it suitable for the thinner design of laptops.

  • How does the inexpensive keyboard's design highlight the importance of engineering in cost reduction?

    -The inexpensive keyboard's design highlights the importance of engineering in cost reduction by using only 8 critical parts and a simple key mechanism, allowing the keyboard to be produced and sold at a very low cost while still being functional and durable.

Outlines

00:00

šŸ” Inside the Inexpensive Keyboard: Engineering for Cost Reduction

This paragraph delves into the engineering marvels of a basic computer keyboard, focusing on cost reduction rather than high-tech features. The keyboard is composed of only 8 critical parts, which allows for mass production at an incredibly low cost of $1.57 each. The components include a rubber sheet with domes, three plastic sheets with conductive wires, and a few additional parts like batteries and a printed circuit board (PCB) with a microprocessor. The operation is based on a simple mechanism where key presses create a connection between the conductive layers, allowing the microprocessor to detect which key was pressed. The paragraph also introduces the concept of a keyboard matrix, explaining how the microprocessor uses a grid system to determine the exact key pressed, and discusses the energy-efficient method of scanning columns to identify key presses.

05:02

šŸŽ„ Exploring the High-End Mechanical Keyboard: A World of Difference

The second paragraph contrasts the inexpensive keyboard with a high-end mechanical keyboard, which costs over 50 times more. It describes the internal components of the mechanical keyboard, which include a large PCB with mechanical keys, LEDs for lighting, and a unique tactile and auditory feedback mechanism. Each key in a mechanical keyboard contains a stem, slider, switch housing, spring, and metal contacts that create a clicking sound when pressed. The paragraph explains how the key press engages the slider, causing the metal contacts to connect and create a click, and how the spring mechanism resets the key. It also touches on the practicality and preferences that justify the higher cost of mechanical keyboards and briefly mentions laptop keyboards with scissor switch mechanisms.

10:02

šŸ“š Engineering Education: The Backbone of Technological Advancement

The final paragraph serves as a conclusion and a call to action for engineering education. It emphasizes the importance of understanding the cost differences and engineering behind everyday technologies like keyboards. The paragraph also acknowledges the support from Patreon and YouTube Membership Sponsors, which enables the creation of educational content. It encourages viewers to subscribe, like, and share the video, and provides a prompt to watch more videos by Branch Education, which produces 3D animations to explore the technology behind modern innovations.

Mindmap

Keywords

šŸ’”Engineering

Engineering refers to the application of scientific principles to design, build, and maintain structures, machines, devices, systems, materials, and processes. In the context of the video, engineering is discussed in terms of cost reduction and the design of a basic computer keyboard that is both durable and functional at a minimal cost. The video highlights how engineering has made it possible to produce keyboards with only 8 critical parts, significantly reducing production costs.

šŸ’”Cost Reduction

Cost reduction is the process of minimizing expenses or production costs while maintaining quality. The video emphasizes the impressive engineering feat of cost reduction in keyboard manufacturing, where the number of components has been minimized to produce keyboards at a very low cost, as low as $1.57 each. This is achieved by reducing the number of parts and simplifying the design.

šŸ’”Critical Parts

Critical parts are essential components that are vital for the functioning of a device. The video mentions that the inexpensive keyboard has only 8 critical parts, including a rubber sheet with domes, three plastic sheets with conductive wires, batteries, a clamping bracket, and a printed circuit board with a microprocessor. These parts are crucial for the keyboard's functionality and are highlighted as the core of the engineering that allows for cost reduction.

šŸ’”Mechanical Keyboard

A mechanical keyboard is a type of keyboard that uses mechanical switches to provide tactile feedback and audible clicks when keys are pressed. In the video, a comparison is made between the inexpensive keyboard and a mechanical keyboard that costs over 50 times more. The mechanical keyboard is shown to have a more complex internal mechanism, including a keycap, stem, slider, switch housing, spring, and metal contacts, which contribute to its higher cost and different tactile feel.

šŸ’”Rubber Dome

A rubber dome is a flexible membrane that, when pressed, completes an electrical circuit, triggering a keypress. The video explains that the inexpensive keyboard uses a rubber sheet with domes under each key, which, when pressed, pushes a conductive circle from the top sheet into the bottom sheet, creating a connection that signals a keypress to the microprocessor.

šŸ’”Conductive Wires

Conductive wires are wires that allow the flow of electric current. In the video, conductive wires are printed onto the top and bottom plastic sheets of the keyboard. These wires, along with the rubber domes and the microprocessor, form a circuit that detects when a key is pressed and sends the corresponding signal.

šŸ’”Microprocessor

A microprocessor is a small computer on a single integrated circuit that processes data and controls operations in electronic devices. The video describes how the microprocessor in the keyboard's printed circuit board applies voltage to the traces on the bottom sheet and monitors the top sheet for keypresses. It plays a central role in detecting which key is pressed and sending that information to the computer.

šŸ’”Keyboard Matrix

A keyboard matrix is a grid layout of the keyboard's keys, with rows and columns that correspond to the electrical connections for each key. The video uses the concept of a keyboard matrix to explain how the microprocessor can determine which key is pressed by monitoring the voltage along the columns and rows. This grid system allows for a compact and cost-effective design.

šŸ’”2.4 Gigahertz Transceiver

A 2.4 gigahertz transceiver is a device that sends and receives signals in the 2.4 GHz frequency band, commonly used for wireless communication. The video mentions that the microprocessor sends keypress data to the 2.4 GHz transceiver, which then communicates wirelessly with the computer. This component is part of what allows the keyboard to function without physical connections to the computer.

šŸ’”Scissor Switch Mechanism

A scissor switch mechanism is a type of keyswitch used in some laptop keyboards that provides a stable and low-profile keystroke. The video briefly mentions this mechanism in the context of laptop keyboards, which, along with rubber domes, allows for a thinner keyboard design. This mechanism is different from the mechanical switches found in mechanical keyboards and contributes to the lower profile and cost of laptop keyboards.

Highlights

Basic computer keyboards have surprisingly impressive engineering for cost reduction.

A cost-effective keyboard has only 8 critical parts inside.

These keyboards can be bought in bulk for as little as $1.57 each.

The engineering feat is creating durable, functional keyboards at nearly zero cost.

The keyboard consists of 148 parts, with 8 being critical.

Components include a rubber sheet with domes, three plastic sheets, and a few electronic parts.

The top and bottom plastic sheets have conductive wires printed on them.

The middle sheet acts as a spacer with holes cut out.

The remaining components are batteries, a clamping bracket, and a small printed circuit board.

The microprocessor applies 3 volts to the traces on the bottom sheet.

When a key is pressed, it bridges the connection between the top and bottom sheets.

The keyboard matrix is visualized as a grid with columns and rows.

The microprocessor uses a scanning method to determine which key is pressed.

The mechanical keyboard is opened to compare with the inexpensive keyboard.

Mechanical keyboards have a different tactile feel and make a clicking sound.

Inside mechanical keys, there's a stem, slider, switch housing, spring, and metal contacts.

The slider's unique shape pushes one contact away from the other when a key is pressed.

The stem and slider allow for a small distance of travel before engagement.

Laptop keyboards use a scissor switch mechanism with rubber domes.

The video highlights the cost difference and engineering in two similar items.

Transcripts

play00:00

You might not think it, but basic computerĀ  keyboards have a surprisingly impressiveĀ Ā 

play00:05

amount of engineering inside. Weā€™re notĀ  talking about incredible engineeringĀ Ā 

play00:10

like a rocket that can land itself or aĀ  stealth aircraft that can evade radar;Ā Ā 

play00:15

rather, weā€™re talking about the engineering ofĀ  cost reduction. Specifically, this keyboard hasĀ Ā 

play00:22

only 8 critical parts inside, essentially removingĀ  all the componentsā€™ costs so that you can buy themĀ Ā 

play00:30

in bulk for as little as 1 dollar and 57 centsĀ  each! Engineering something that is durable,Ā Ā 

play00:36

functional, and costing next to nothing isĀ  indeed a feat on its own. So, letā€™s look insideĀ Ā 

play00:44

this dirt-cheap keyboard and see how only a fewĀ  critical components enables it to work. After thatĀ Ā 

play00:51

weā€™ll open a mechanical keyboard that costs overĀ  50 times as much and see the difference as well asĀ Ā 

play00:59

find out what causes that clicking sound insideĀ  the mechanical keys. So, letā€™s jump right in.Ā 

play01:06

This inexpensive keyboard is assembled from 148Ā  parts, and almost all the parts are the keys,Ā Ā 

play01:14

screws, and the top and bottom plastic casing,Ā  leaving us only 8 critical parts inside. TheseĀ Ā 

play01:22

components are a rubber sheet with domes underĀ  each key and three plastic sheets. The top andĀ Ā 

play01:29

bottom sheets have conductive wires printedĀ  onto them, with dots under each key, and theĀ Ā 

play01:35

middle sheet acts as a spacer with holes cut outĀ  of it. The remaining 4 components are 2 batteries,Ā Ā 

play01:41

a bracket to clamp down the plastic sheets,Ā  and a small printed circuit board which has aĀ Ā 

play01:47

simple microprocessor, a crystal oscillator,Ā  a switch, a 2.4 gigahertz planar antenna,Ā Ā 

play01:54

a pair of wires to connect to the batteries, andĀ  a set of conductive lines to connect to the wiresĀ Ā 

play02:01

printed on the top and bottom plastic sheets. So now that weā€™ve seen the few components inside,Ā Ā 

play02:06

how do they work? Well, the main idea is thatĀ  the batteries and microprocessor apply 3 voltsĀ Ā 

play02:14

to all the traces on the bottom sheet, whileĀ  all the traces on the top sheet are activelyĀ Ā 

play02:20

being monitored by the processor on the PCB. WhenĀ  a key is pressed, it presses on the rubber dome,Ā Ā 

play02:26

which pushes the conductive circle from the topĀ  sheet down through the air gap created by theĀ Ā 

play02:33

middle sheet and into the circle on the bottomĀ  sheet, thereby bridging the connection betweenĀ Ā 

play02:38

top and bottom plastic sheets. The 3 volts thenĀ  travels along the conductive trace of the bottomĀ Ā 

play02:45

sheet through the hole of the key that has beenĀ  pressed, and into the top sheetā€™s trace, and thenĀ Ā 

play02:50

returns back to the PCB and microprocessor whereĀ  itā€™s sensed. When you let your finger off the key,Ā Ā 

play02:57

the rubber dome returns the key to the un-pressedĀ  position thereby opening the connection.Ā 

play03:04

On the top sheet of plastic are 12 tracesĀ  and on the bottom sheet are 11 traces,Ā Ā 

play03:10

with each trace traveling to a different set ofĀ  keys. Itā€™s visually hard to see here, so letā€™sĀ Ā 

play03:17

reorganize these traces into a grid, also calledĀ  a keyboard matrix, with the bottom traces formingĀ Ā 

play03:24

the columns and the top traces forming the rows.Ā  Just as before the microprocessor outputs 3 voltsĀ Ā 

play03:31

along each column while actively monitoring theĀ  in-puts along each row. With this reorganization,Ā Ā 

play03:38

you can more easily see that, as you press theĀ  Y key, 3 volts is sent out along the 4th column,Ā Ā 

play03:46

and returned along the 2nd row, and thus theĀ  processor can tell that the Y key was pressed.Ā Ā 

play03:52

Or with the B key, 3 volts is output alongĀ  the 8th column, and input through the 1stĀ Ā 

play03:58

row. With 11 columns and 12 rows, we can haveĀ  a maximum of 132 keys, which works out well,Ā Ā 

play04:07

because the keyboard has only 111 keys. However, if you havenā€™t noticed, thereā€™sĀ Ā 

play04:14

actually a major problem with this keyboardĀ  matrix. That is: if we have 3 volts runningĀ Ā 

play04:20

along all these columns and we press a key, 3Ā  volts will return along a row. However, becauseĀ Ā 

play04:28

each of these columns output the same 3 volts, howĀ  do we know which key in the row was pressed? Well,Ā Ā 

play04:35

there are a few solutions to this problem. OneĀ  solution is to quickly scan 3 volts along eachĀ Ā 

play04:42

of the 11 columns, so that at any given timeĀ  only one column is active. By correlating theĀ Ā 

play04:48

active column with when voltage is received on theĀ  input row, we can determine the exact intersectionĀ Ā 

play04:54

of column and row and thus which key is pressed.Ā  However, with this solution, weā€™re continuouslyĀ Ā 

play05:01

scanning 3 volts across the columns, which takesĀ  power thereby draining the batteries. So instead,Ā Ā 

play05:09

we found that itā€™s more practical to have 3 voltsĀ  on each column, and when a key is pressed, a cycleĀ Ā 

play05:16

of pulses of turning off one column at a time isĀ  sent to determine which key in a row is pressed.Ā Ā 

play05:22

These pulses are sent for 65 microseconds to eachĀ  column, once every 4 milliseconds. Therefore, ifĀ Ā 

play05:31

the G key were pressed, then the 3rd row would seeĀ  an input that looks like this. Whereas if the T,Ā Ā 

play05:38

L, and A key were pressed, then the 2nd and 6thĀ  row inputs would see a voltage that looks likeĀ Ā 

play05:46

this, and all the other rows would see nothing. Now that the microprocessor knows which keys areĀ Ā 

play05:53

pressed, it sends the data to the 2.4 gigahertzĀ  transceiver using these printed planar antennas.Ā 

play06:00

Weā€™ll cover these antennas as well as theĀ  oscillator in another video, but for now letā€™sĀ Ā 

play06:06

close this inexpensive keyboard and look inside aĀ  mechanical keyboard that costs over 50 times more.Ā 

play06:13

But before exploring mechanical keyboards,Ā  the next portion of this video is sponsoredĀ Ā 

play06:19

by Keysightā€™s virtual event, Keysight World:Ā  Live from the Lab. In this livestream, KeysightĀ Ā 

play06:26

will be exploring batteries, DC to DC converters,Ā  and a wide range of IoT devices through hands-onĀ Ā 

play06:34

design analysis and Q and A sessions with industryĀ  experts. Sign up quickly because the next KeysightĀ Ā 

play06:41

Live event is May 16th, and by attending this liveĀ  stream youā€™ll be entered to win an oscilloscopeĀ Ā 

play06:48

in their test gear giveaway. In fact, the only wayĀ  we were able to reverse engineer this keyboard wasĀ Ā 

play06:54

with an oscilloscope just like this one, whereĀ  we could easily see the cycling of OFF pulsesĀ Ā 

play07:00

whenever a key is pressed. At Keysightā€™s upcomingĀ  Live from the Lab event, youā€™ll learn many usefulĀ Ā 

play07:06

tools such as how temperature can affect batteryĀ  and device life as well as techniques and tricksĀ Ā 

play07:12

for using DC to DC converters in your designs. Whether youā€™re an expert engineer or electronicsĀ Ā 

play07:19

newbie, thereā€™ll be plenty of opportunities toĀ  learn new things. Hurry up and register for theĀ Ā 

play07:24

May 16th Keysight World livestream usingĀ  the Branch Education link, and youā€™ll getĀ Ā 

play07:29

an extra entry into Keysightā€™s huge test gearĀ  giveaway. Go check it out! But now letā€™s getĀ Ā 

play07:36

back to the inside of this mechanical keyboard. Instead of seeing plastic sheets, we find a ratherĀ Ā 

play07:43

large, printed circuit board, with mechanical keysĀ  soldered to it. This PCB functions similarly toĀ Ā 

play07:51

the keyboard matrix, but now we have an LED underĀ  each key to create attractive designs. However,Ā Ā 

play07:58

quite noticeable with the mechanical keyboardĀ  is that these keys have a different tactile feelĀ Ā 

play08:05

and make a clicking sound when pressed. So, letā€™s look inside one of these keys whereĀ Ā 

play08:11

we find a keycap on top, the stem and sliderĀ  below that, a top and bottom switch housing,Ā Ā 

play08:18

and inside are a spring and two metalĀ  contacts which are also called metalĀ Ā 

play08:24

contact leaves or gold crosspoint contacts. The main mechanism is that when you press aĀ Ā 

play08:31

key down, it moves the stem and slider. TheĀ  slider is uniquely shaped such that it pushesĀ Ā 

play08:38

one of the contacts away from the other, and, whenĀ  pressed down, the slider moves out of the way,Ā Ā 

play08:44

allowing for one of the metal contacts to springĀ  outwards and hit the other, thus creating aĀ Ā 

play08:51

connection between the two pieces of metal andĀ  causing a click sound when they hit. When youĀ Ā 

play08:56

release the key, the spring pushes the slider,Ā  the stem, and key back up and the slider reengagesĀ Ā 

play09:03

the metal contact, thus separating the two metalĀ  contacts and opening the connection between them.Ā 

play09:10

The stem and slider are separate components, soĀ  that if you accidentally brush a key, the keycapĀ Ā 

play09:17

and stem can travel a small distance down beforeĀ  the slider is engaged. However, once the slider isĀ Ā 

play09:24

pushed a frac-tion of a millimeter down, the metalĀ  contact quickly forces the slider to jump out ofĀ Ā 

play09:30

the way allowing the metal contacts to engage. By having such a mechanism, each key has a moreĀ Ā 

play09:37

tactile feel when pressed, different fromĀ  the key hitting the rubber dome. That said,Ā Ā 

play09:43

having a large PCB such as this, as well as anĀ  intricate mechanism inside each key, causes thisĀ Ā 

play09:50

keyboard to be significantly more expensive, butĀ  depending on your preferences, it can be worth it.Ā 

play09:56

Finally, there are laptop keyboards whichĀ  have a scissor switch mechanism along withĀ Ā 

play10:02

rubber domes to allow it to have a lowerĀ  profile, but letā€™s wrap it up for now.Ā 

play10:08

This topic is moderately simple, but we thinkĀ  it properly highlights the cost difference andĀ Ā 

play10:14

engineering in two similar items. Weā€™re working onĀ  more videos that dive deeper into the engineeringĀ Ā 

play10:20

inside computer architecture and other complexĀ  technologies, so be sure to subscribe, hit thatĀ Ā 

play10:28

like button, and share this video with others. We believe the future will require a strongĀ Ā 

play10:34

emphasis on engineering education and weā€™reĀ  thankful to all our Patreon and YouTube MembershipĀ Ā 

play10:40

Sponsors for supporting this dream. If you wantĀ  to support us on YouTube Memberships, or Patreon,Ā Ā 

play10:46

you can find the links in the description. This is Branch Education, and we create 3DĀ Ā 

play10:53

animations that dive deeply into the technologyĀ  that drives our modern world. Watch another BranchĀ Ā 

play10:59

video by clicking one of these cards or clickĀ  here to subscribe. Thanks for watching to the end!

Rate This
ā˜…
ā˜…
ā˜…
ā˜…
ā˜…

5.0 / 5 (0 votes)

Related Tags
Keyboard EngineeringCost ReductionMechanical KeysElectronic ComponentsInnovationTechnologyDIY ElectronicsEngineering EducationProduct DesignTactile Feedback