Simple breadboard input device

Discussion in 'General Electronics Chat' started by treendy, Jan 9, 2014.

  1. treendy

    Thread Starter New Member

    Jan 9, 2014

    I would like to know how to achive the following:

    Using a breadboard, be able to press down a button that will type the character "K" on my pc screen

    I would like to connect my wires to a usb

    I understand I may need to program a chip to do this, or can this be done with basic componants

    Thank you in advance
  2. MikeML

    AAC Fanatic!

    Oct 2, 2009
    You could do this with a serial to usb dongle ($10) and an old UART chip, and Hyperterm or similar terminal program connected to COMn. Hardwire the ascii code for the character K to the parallel input pins of the UART, strobe it, and the character is transmitted as RS232 to the serial port.

    You could also use a microcontroller with built-in USB hardware, and write code for both ends: PC and micro...
  3. tshuck

    Well-Known Member

    Oct 18, 2012
    You could do this with a cheap AVR with VUSB to enumerate as a HID keyboard.
    JohnInTX likes this.