We will be having Diwali Festival holidays from 18th October to 24th October. Any orders placed during that time will ship from 25th October onwards. Good Wishes for a joyous Diwali and a Happy New Year with plenty of Peace and Prosperity.
SUNROM ELECTRONICS
Back to USB Host (7)

USB Keyboard Decoder - Serial Output

Accepts any USB Keyboard and outputs serial data for every keypress

Sunrom Part# 1305

Available We dispatch same day if ordered by 4PM (excluding holidays), then courier usually takes 2-5 days.
Quantity Pricing
Quantity :
Price (Discount%)
1-4 :
Rs.1,200/- (0%)
5-9 :
Rs.1,164/- (3%)
10-24 :
Rs.1,116/- (7%)
25-49 :
Rs.1,080/- (10%)
50-74 :
Rs.1,056/- (12%)
75-99 :
Rs.1,020/- (15%)
100-249 :
Rs.984/- (18%)
250-499 :
Rs.960/- (20%)
500-999 :
Rs.936/- (22%)
1000+ :
Rs.900/- (25%)

Downloads

Terminal-PC

The product is a USB Host which accepts any USB Keyboard at its USB port and decodes the button presses. The data is output as serial TTL UART at 9600 baud rate for easy interfacing with various applications. The output is suitable for 3V or 5V level microcontroller applications.

Features

  • Easy to Use with variety of keyboard types (including wireless keyboard but excluding gaming type composite keyboard)
  • Keyboard status LEDs supported
  • Multicolor Status LEDs for Error, Activity and Power
  • Simple output can work with any type of microcontroller
  • Also accepts Wireless Keyboard also by inserting its RF receiver into USB host port
  • Also accepts simple 17 key USB Keypad
  • All keys including multimedia,windows keys supported
  • Full support for Caps Lock, Num Lock, Alt+CTRL+<Key>

Various Keyboard with USB Interface Supported

Apart from standard full size keyboard, The decoder also supports custom made or small numeric keypads.

Pinouts

  • TX-OUT - Transmit output, usually goes to your microcontroller receive pin RXD
  • +5V - Regulated +5V power input
  • GND - Common Ground
  • DET - Idle Low, Goes High when keyboard activity happens. Goes low again after data transfer at TX pin is finished. Useful for input to external microcontroller for polling or interrupt to process the data from board.

Note: RX-IN pin and other pins are not used in this application, leave it floating. Below you can see, we have provided holes for mounting header of 2.54mm pitch if required.

Status LEDs

  • Board has three LEDs
  • PWR - Green LED indicate that board is getting power
  • STS - Yellow LED indicate any keyboard activity
  • ERR - Red LED indicate any error like keyboard not detected

Output Data Format

  • 9600 bps - 8 - N - 1 (No parity)
  • Output voltage level 3.3V TTL UART (Can also connect to 5V operated MCU RX pin directly.)
  • Data is sent out only when any button is pressed.

There can be three type of key types by user

Case#1: Simple ASCII keys - Single Byte Output

The output is simple ASCII values for each key as shown below. If Caps lock is ON, all values are capital and if Shift+key is pressed the character is upper case just like in PC. For enter key, its CR+LF type two byte output like shown below, else all output keys are of single byte.

Case#2: ALT+<KEY> or CTRL+<KEY> or Special Keys

See below on pressing
CTRL+C gives out 0x02 and 0x043 where 0x02 is code for Control Key followed by Key value 0x43 for ASCII 'C'.
ALT+C gives out 0x01 and 0x43 where 0x01 is code fr Alter Key followed by Key value 0x43 for ASCII 'C'.
If any special keys except ASCII Key on keyboard like arrow key is pressed it gives out value as 0x00 following by key value like below arrow key value of 0x52. If same arrow key was combined with CTRL then the output would be 0x02+0x52 or with ALT would be 0x01+0x52.

Case #3 CTRL+ALT+DEL - Key Combinations

Decoder supports 3 key combination also just like windows. You can combine the third key with any other key on keyboard. So output would be 0x01+0x02+<KEY CODE>, Also windows GUI key is supported, it always gives out 0x03 value which cannot be combined with any other key.

Bestselling Products

Sunrom Electronics & Sunrom Technologies are two companies, that are the foremost online e-commerce stores since 2004, providing innovative embedded systems, components & services. Our aim is to empower you to Make In India. We work closely with electronics manufacturing companies & individuals to understand & solve the challenges faced during production. We do not just sell things, We use them ourselves in our products, and provide you with high quality tested components for trouble free experience.

Sunrom Electronics GSTIN: 24AFBPT4632H1ZJ
Handles Online Payment by CCAvenue
Sunrom Technologies GSTIN: 24AJLPP4029L1ZW
Handles Offline Bank Payments / NEFT / P.O. / Telr