{"title":"Adafruit CH9328 UART to HID Keyboard Breakout","handle":"adafruit-ch9328-uart-to-hid-keyboard-breakout-ada5973","url":"/products/adafruit-ch9328-uart-to-hid-keyboard-breakout-ada5973","description":"The Adafruit CH9328 UART to HID Keyboard Breakout lets any microcontroller or single-board computer emulate a USB keyboard — even without native USB support. Simply send ASCII characters or raw HID reports over a 9600-baud serial connection, and the CH9328 converts them into real keypresses on the connected computer, laptop, or mobile device.\n\nThe breakout includes a USB Type-C port for easy plug-and-play connection to a host device, plus a JST SH connector for solderless wiring to your microcontroller. Four on-board DIP switches configure the operating mode before power-up.\n\nKey Features\n\n\nUART to USB HID Keyboard – Converts serial data into standard USB keyboard keypresses\n\nUSB Type-C Output – Plug directly into any computer, laptop, phone, or tablet\n\n9600 Baud 3V UART Input – Works with hardware or software serial from any microcontroller or SBC\n\n4 DIP Switches – Configure operating mode before power-up\n\nJST SH Connector – Solderless connection option (5V, GND, data in)\n\n5V Power Output – Power your microcontroller from the USB host via the 5V and GND pads\n\nReset Line – Hardware reset input for reliable operation\n\n\nDIP Switch Modes\n\n\nMode 0 (SW 2, 3, 4 ON) – ASCII characters sent as-is; 0x1B triggers Enter key\n\nMode 1 (SW 2, 4 ON; SW 3 OFF) – ASCII characters sent as-is, no special key mapping\n\nMode 2 (SW 2, 3 ON; SW 4 OFF) – ASCII characters sent as-is; 0x28 triggers Enter key\n\nMode 3 (SW 3, 4 ON; SW 2 OFF) – Raw 8-byte HID reports for full control over keypresses, key holds, and non-US keyboard layouts\n\n\n\nTip: Mode 3 is recommended for most applications as it gives you full control over keypresses and supports non-US keyboard layouts. Use the Adafruit CH9328 library for easy Mode 3 integration.\n\n\nIdeal For\n\nAdding keyboard emulation to boards without native USB (ATmega328, ESP32, ESP8266)\nAutomating keyboard input from a Raspberry Pi or other SBC\nBuilding custom macro keyboards or input devices\nCross-device typing — have one computer type into another\n\n\nPackage Contents\n\n1× Adafruit CH9328 UART to HID Keyboard Breakout\n","vendor":"Adafruit","product_type":"physical","in_stock":true,"options":[],"variants":[{"id":990,"title":"Default Title","sku":"AF-5973","mpn":"ADA5973","price":13.46,"compare_at_price":0.0,"on_sale":false,"in_stock":true,"available_quantity":1,"option1":"Default Title"}]}