We love using chips with 'native USB' peripherals - that's the magic silicon that lets a microcontroller act like an HID keyboard or mouse or disk drive or MIDI synth. It's a standard addition on SAMD21, RP2040, and even the latest ESP32-S2 and ESP32-S3 boards. But what about when you have a classic ATmega328 Uno? or an original ESP32 or ESP8266? Maybe even a single-board computer like a Raspberry Pi? We would say "sorry...that's not possible"  UNTIL NOW!

The CH9328 is a funky chip that is basically a programmed microcontroller that enumerates as an every-day HID keyboard and can convert ASCII or 8-byte raw reports, read over a standard serial port UART, into keypresses. So, you can emulate a keyboard even if your chip doesn't have native USB! You do need a hardware or software serial port: some way to generate 9600 baud 3V-logic signal that the CH9328 can read.

We added all the support circuitry to make this chip easy to use, you may not even need to do any soldering. The CH9328 is connected to a USB Type C port so it's easy to plug into any computer, laptop or even phone/tablet. Then, you can get 5V power from the 5V and Ground pads. There's a UART RX receive input plus a reset line if you want to perform a hard reset. If you want 'solderless' functionality, grab one of our JST SH cables: the red line will provide 5V, black is Ground, and the white wire is data in. 

You can configure the 'Mode' using the 4 on-board switches, do that before powering it up:

  • Switch #1 is used to configure the "Upload speed" - for most cases it doesn't matter which way its set
  • If Switch #2, #3 and #4 are all 'ON' the chip is in Mode 0:

Visible ASCII characters are sent as-is: if you send ASCII "A", an "A" is typed. If 0x1B is received, it is converted to the Enter key

  • If Switch #2 and #4 are 'ON' and Switch #3 is 'OFF' the chip is in Mode 1:

Visible ASCII characters are sent as-is: if you send ASCII "A", an "A" is typed

  • If Switch #2 and #3 are 'ON' and Switch #4 is 'OFF' the chip is in Mode 2:

Visible ASCII characters are sent as-is: if you send ASCII "A", an "A" is typed. If 0x28 is received, it is converted to the Enter key

  • If Switch #3 and #4 are 'ON' and Switch #2 is 'OFF' the chip is in Mode 3:

This is the mode for sending raw 8-byte HID reports. This is also good if you want more control over the keypresses, or keyholds, or to mimic a non-US keyboard because you can control exactly what control codes are sent and when.

We recommend using mode 3 if possible, but you'll want to use our CH9328 library to do so.

This is a nice and easy way to emulate a keyboard without having to worry about native USB support, gadget mode, or maybe you just want to emulate more than one kind of device. You can also do 'funky' things like have one desktop or single-board computer 'type' into a device such as a computer or mobile device by running our Python code and having it send UART data via a USB-to-UART converter. Either way, the CH9328 will make it easy to keep away.

Technical Details:

  • Product Dimensions: 26.4mm x 20.3mm x 4.6mm / 1.0" x 0.8" x 0.2"

Package Includes:

  • 1 x Adafruit 5973 CH9328 UART to HID Keyboard Breakout 

Write a review

Please login or register to review

Adafruit 5973 CH9328 UART to HID Keyboard Breakout

  • Brand: Adafruit
  • Product Code:NR-Ada-5973-CH9328-UART
  • Reward Points:7
  • Availability:In Stock
  • रo 750.00

  • Price in reward points:791

  • 45 or more रo 657.00
  • 205 or more रo 654.00

Related Products

Adafruit 5405 QT Py ESP32-C3 WiFi Dev Board with STEMMA QT

Adafruit 5405 QT Py ESP32-C3 WiFi Dev Board with STEMMA QT

What's life without a little RISC? This miniature dev board is perfect for small projects: it comes ..

रo 1,075.00

Adafruit 2479 Bluefruit LE UART Friend - Bluetooth Low Energy (BLE)

Adafruit 2479 Bluefruit LE UART Friend - Bluetooth Low Energy (BLE)

Would you like to add powerful and easy-to-use Bluetooth Low Energy to your robot, art or other elec..

रo 1,889.00

Adafruit 2488 METRO 328 ATmega328

Adafruit 2488 METRO 328 ATmega328

This is the Adafruit METRO with headers. It comes with headers soldered on. It's a fully assembled a..

रo 1,889.00

Adafruit 4600 QT Py - SAMD21 Dev Board with STEMMA QT

Adafruit 4600 QT Py - SAMD21 Dev Board with STEMMA QT

What a cutie pie! Or is it... a QT Py? This diminutive dev board comes with our favorite lil chip, t..

रo 896.00 रo 1,012.00

Adafruit 5302 KB2040 - RP2040 Kee Boar Driver

Adafruit 5302 KB2040 - RP2040 Kee Boar Driver

A wild Kee Boar appears! It’s a shiny KB2040! An Arduino Pro Micro-shaped board for Keebs with RP204..

रo 966.00

Adafruit 5128 MacroPad RP2040 Starter Kit - 3x4 Keys + Encoder + OLED - ADABOX019 Essentials

Adafruit 5128 MacroPad RP2040 Starter Kit - 3x4 Keys + Encoder + OLED - ADABOX019 Essentials

Strap yourself in, we're launching in T-minus 10 seconds...Destination? A new Class M planet called ..

रo 5,391.00

Adafruit 5335 CP2102N Friend - USB to Serial Converter

Adafruit 5335 CP2102N Friend - USB to Serial Converter

Long gone are the days of parallel ports and serial ports. Now the USB port reigns supreme! But USB ..

रo 642.00

Adafruit 5900 ESP32 Feather V2 with Headers - 8MB Flash + 2 MB PSRAM - STEMMA QT

Adafruit 5900 ESP32 Feather V2 with Headers - 8MB Flash + 2 MB PSRAM - STEMMA QT

One of our star Feathers is the Adafruit HUZZAH32 ESP32 Feather. With the fabulous ESP32 WROOM modul..

रo 2,261.00

Adafruit 5987 RS232 Pal - Two Channel UART to RS-232 Level Shifters - MAX3232E

Adafruit 5987 RS232 Pal - Two Channel UART to RS-232 Level Shifters - MAX3232E

If you're looking to interface with telco, retro or industrial equipment you'll probably run into RS..

रo 426.00

Adafruit 5988 RS-232 Full Pinout Level-Shifter Breakout

Adafruit 5988 RS-232 Full Pinout Level-Shifter Breakout

If you want to interface with telco, retro, or industrial equipment, you'll probably run into RS-232..

रo 750.00

Tags: Adafruit, UART, Keyboard, Breakout

The product is currently Out-of-Stock. Enter your email address below and we will notify you as soon as the product is available.

Name
Email
Phone
Comments