Adafruit CH9328 UART to HID Keyboard Breakout

SKU: ADA5973 Brand: Adafruit
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...
$13.60 AUD, inc GST
$12.36 AUD, exc GST

Available with a lead time
Expect dispatch between Dec 30 and Jan 03

Quantity Discounts:

  • 10-25 $11.87 (exc GST)
  • 25+ $11.50 (exc GST)
- +

0 from local stock, 1 supplier stock; your order will dispatch between Dec 1 to Dec 10. And yes, stock levels and lead times are accurate!

Shipping:

  • $7+ Standard (5+ days*, tracked)
  • $11+ Express (2+ days*, tracked)
  • FREE Pickup (Newcastle only - must order online*)

Shipping costs may increase for heavy products or large orders.

Exact shipping can be calculated on the view cart page.

*Conditions apply, see shipping tab below.

Adafruit 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 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.

Adafruit 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 Adafruit's 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.

Adafruit recommend using mode 3 if possible, but you'll want to use Adafruit's 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 Adafruit's Python code and having it send UART data via a USB-to-UART converter. Either way, the CH9328 will make it easy to keeb away.

Technical Details

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

Product Weight: 2.7g / 0.1oz

RoHS 2 2011 65 EU CompliantRoHS 2 2015 863 EU Compliant

This product is listed in:

Breakouts & Modules>Others

Product Comments

Exact shipping can be calculated on the view cart page (no login required).

Products that weigh more than 0.5 KG may cost more than what's shown (for example, test equipment, machines, >500mL liquids, etc).

We deliver Australia-wide with these options (depends on the final destination - you can get a quote on the view cart page):

  • $3+ for Stamped Mail (typically 10+ business days, not tracked, only available on selected small items)
  • $7+ for Standard Post (typically 6+ business days, tracked)
  • $11+ for Express Post (typically 2+ business days, tracked)
  • Pickup - Free! Only available to customers who live in the Newcastle region (must order online and only pickup after we email to notify you the order is ready). Orders placed after 2PM may not be ready until the following business day.

Non-metro addresses in WA, NT, SA & TAS can take 2+ days in addition to the above information.

Some batteries (such as LiPo) can't be shipped by Air. During checkout, Express Post and International Methods will not be an option if you have that type of battery in your shopping cart.

International Orders - the following rates are for New Zealand and will vary for other countries:

  • $12+ for Pack and Track (3+ days, tracked)
  • $16+ for Express International (2-5 days, tracked)

If you order lots of gear, the postage amount will increase based on the weight of your order.

Our physical address (here's a PDF which includes other key business details):

Unit 18, 132 Garden Grove Parade
Adamstown
NSW, 2289
Australia

Take a look at our customer service page if you have other questions such as "do we do purchase orders" (yes!) or "are prices GST inclusive" (yes they are!). We're here to help - get in touch with us to talk shop.

Have a product question? We're here to help!

Write Your Own Review

Guides

The Maker Revolution

The Maker Revolution celebrates the creation of new devices and the modification of existing ones - ...
The Maker Revolution celebrates the creation of new devices and the modification of existing ones - ...

Projects

Pi Zero Motion Sensing Camera

The Pi Zero Motion Sensing Camera is a portable security camera using a Pi Zero 2W, Pi Zero camera,...
The Pi Zero Motion Sensing Camera is a portable security camera using a Pi Zero 2W, Pi Zero camera,...

555 Timer Step Sequencer Synthesiser

If you, like me, have been inhaling so much flux that the bronchioles of your lungs have mutated to...
If you, like me, have been inhaling so much flux that the bronchioles of your lungs have mutated to...

Wireless QI Phone Charger Powered by Raspberry Pi

I have a new phone and want the battery health to last as long as possible. Charging it to 100% ove...
I have a new phone and want the battery health to last as long as possible. Charging it to 100% ove...
Feedback

Please continue if you would like to leave feedback for any of these topics:

  • Website features/issues
  • Content errors/improvements
  • Missing products/categories
  • Product assignments to categories
  • Search results relevance

For all other inquiries (orders status, stock levels, etc), please contact our support team for quick assistance.

Note: click continue and a draft email will be opened to edit. If you don't have an email client on your device, then send a message via the chat icon on the bottom left of our website.

Makers love reviews as much as you do, please follow this link to review the products you have purchased.