AI summary by TwinMind
How do Computer Keyboards Work? ๐คโจโจ๐
Branch Education
11m 9s
Cost Engineering in Basic Keyboards
- Basic computer keyboards engineered for cost reduction, not advanced functionality
- Inexpensive keyboard: only 8 critical parts inside
- Bulk cost: $0.0157 per keyboard (1.57 cents each)
- Total assembly: 148 parts (mostly keys, screws, plastic casing)
- Engineering feat: durable, functional, extremely low cost
Critical Components of Cheap Keyboard
- Rubber sheet with domes under each key
- Three plastic sheets:
- Top sheet: conductive wires printed with dots under each key
- Middle sheet: spacer with holes cut out
- Bottom sheet: conductive wires printed with dots under each key
- Two batteries
- Bracket to clamp down plastic sheets
- Small printed circuit board (PCB) containing:
- Simple microprocessor
- Crystal oscillator
- Switch
- 2.4 GHz planar antenna
- Pair of wires for battery connection
- Conductive lines connecting to printed wires on plastic sheets
Keyboard Matrix Operation
- Batteries and microprocessor apply 3 volts to all bottom sheet traces
- Top sheet traces actively monitored by PCB processor
- Key press mechanism:
- Rubber dome pushes conductive circle from top sheet
- Circle travels through air gap (created by middle sheet)
- Makes contact with bottom sheet circle
- Bridges connection between top and bottom sheets
- 3 volts travels: bottom sheet โ pressed key hole โ top sheet โ back to PCB
- Rubber dome returns key to unpressed position when released
Matrix Configuration and Scanning
- Top sheet: 12 traces (forming rows)
- Bottom sheet: 11 traces (forming columns)
- Grid organization: keyboard matrix with 11 columns ร 12 rows
- Maximum capacity: 132 keys (actual keyboard has 111 keys)
- Key identification examples:
- Y key: 3 volts sent column 4, returned row 2
- B key: 3 volts sent column 8, returned row 1
Matrix Scanning Problem and Solution
- Problem: All columns output same 3 volts simultaneously
- Solution 1: Quick scan 3 volts along each column sequentially
- Only one column active at any time
- Correlate active column with input row voltage
- Drawback: Continuous scanning drains batteries
- Solution 2 (Implemented): Pulse cycling method
- 3 volts maintained on all columns normally
- When key pressed: cycle of turning off one column at a time
- Pulse duration: 65 microseconds per column
- Pulse frequency: Every 4 milliseconds
- Voltage pattern analysis determines which key pressed
Data Transmission
- Microprocessor identifies pressed keys
- Data sent to 2.4 GHz transceiver
- Uses printed planar antennas for wireless communication
Mechanical Keyboard Comparison
- Cost: Over 50 times more expensive than basic keyboard
- Large printed circuit board with mechanical keys soldered
- LED under each key for lighting effects
- Similar keyboard matrix function but enhanced components
Mechanical Key Switch Mechanism
- Components per key:
- Keycap on top
- Stem and slider
- Top and bottom switch housing
- Spring
- Two metal contacts (metal contact leaves/Gold Cross Point contacts)
- Operation sequence:
- Key press moves stem and slider
- Slider pushes one contact away from other
- Further press moves slider out of way
- Metal contact springs outward, hits other contact
- Creates connection and clicking sound
- Spring returns key to up position on release
- Slider re-engages, separating contacts
- Tactile feedback: Slider jumps mechanism after fraction millimeter movement
- Accidental brush protection: Stem and slider separate components
Alternative Keyboard Types
- Laptop keyboards: Scissor switch mechanism with rubber domes
- Lower profile design compared to mechanical keyboards
