5. Common Peripherals¶
Beyond printers, a few device types show up constantly in offices, schools, and stores.
| Peripheral | What it does |
|---|---|
| Scanner | Converts a physical document into a digital image or searchable text (via OCR) |
| Barcode reader | Reads a barcode's pattern and sends the encoded data as if it were typed on a keyboard |
| Signature pad | Captures a handwritten signature digitally, common at checkout counters |
| Receipt printer | A specialized thermal printer (Lesson 1) built for narrow, fast, cheap printing |
| Card reader | Reads payment or ID cards — magnetic stripe, chip, or contactless/NFC |
The "it types into whatever's focused" pattern¶
Barcode readers (and many card readers) are often HID devices — to the computer, they look exactly like a keyboard. Scan a barcode, and its data "types" wherever the cursor currently is. This explains a very specific, confusing bug: a barcode scanned into the wrong text field just looks like garbage typed into that box, with no error at all.
Try it
Explain why a barcode scanner "typing into the wrong field" isn't a hardware problem, and what you'd actually check instead (hint: it's about where the cursor was, not the scanner).
Tip
Most barcode scanners add an Enter keystroke automatically after each scan — useful to know when a form seems to "submit itself" right after someone scans something into it.
Play it
Open the Printers and Peripherals Lab and use the Peripherals tab.