Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:04 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : USB keyboard mimic

Author Message
BeagleHound
Newbie

Joined: 21/01/2022
Location: New Zealand
Posts: 3
Posted: 02:35am 21 Jan 2022
Copy link to clipboard 
Print this post

Does anyone have suggestions on how a micro/maxi/pico/arm-mite may be used to interface a panel of switches to a PC, by mimicking a USB keyboard?

To me, the most difficult part seems to be the USB interface. Many on-line solutions suggest this can be done using a small micro-controller having built-in USB HID support, such as the ATmega32u4 or the SparkFun ProMicro. If I can avoid it, I would rather not have to learn from scratch, how to use another micro-controller.
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2950
Posted: 03:37am 21 Jan 2022
Copy link to clipboard 
Print this post

Hi Beagle hound,

Grab a cheapo keyboard and hack the chip out of it, use your  push buttons to emulate keys from the keyboard by patching them where the relevant keyboard key would have been.

These are generally a matrix of X-Y and should be very easy and very cheap.

Regards,

Mick
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
BeagleHound
Newbie

Joined: 21/01/2022
Location: New Zealand
Posts: 3
Posted: 04:20am 21 Jan 2022
Copy link to clipboard 
Print this post

That's genius Mick.

Thank you.
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2640
Posted: 06:06am 21 Jan 2022
Copy link to clipboard 
Print this post

If you don't want a direct connection there are IR remotes with receiver USB dongles for PCs. Usually used with media programs. They show up in Device Manager as a HID Compliant Keyboard. The companion app allows the buttons to be assigned to whatever keyboard key combination you like. You could use Bigmick's method on that.
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2170
Posted: 08:09am 21 Jan 2022
Copy link to clipboard 
Print this post

@BeagleHound following on from Mick, see this vid: https://www.youtube.com/watch?v=gIlYJSO7lok Not precisely what you are after but the principal is identical and it shows how AS evicerated the keyboard and sussed out the chip. The goodies for you starts around 6 minutes in.
Edited 2022-01-21 18:18 by CaptainBoing
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 949
Posted: 08:42am 21 Jan 2022
Copy link to clipboard 
Print this post

Hi!
Or you get a HT82K629A and build my keyboard emulator.



I developed the part a few years ago for my MAME project.

With it you can connect any button and create any keyboard key.
You can use it on USB AND on PS/2!

Frank
 
ElectroPI
Newbie

Joined: 27/04/2012
Location: Australia
Posts: 37
Posted: 10:56am 21 Jan 2022
Copy link to clipboard 
Print this post

Hi,
If you install CircuitPython on a PICO it allows HID control so you can easily mimic a USB keyboard or mouse. There's more info here:

https://learn.adafruit.com/diy-pico-mechanical-keyboard-with-fritzing-circuitpython/code-the-pico-keyboard

Links on that page will direct you to more info on the subject.

regards
Peter
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2170
Posted: 11:42am 21 Jan 2022
Copy link to clipboard 
Print this post

  Frank N. Furter said  Hi!
Or you get a HT82K629A and build my keyboard emulator.


Nice!

I might build one just to have it - never know when that might come in handy
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5089
Posted: 12:13pm 21 Jan 2022
Copy link to clipboard 
Print this post

Before you get too excited, Farnell does not stock the chip anymore...

Volhout
PicomiteVGA PETSCII ROBOTS
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 12:33pm 21 Jan 2022
Copy link to clipboard 
Print this post

I like the CircuitPython approach. Probably cheaper than the chip was too.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2170
Posted: 02:10pm 21 Jan 2022
Copy link to clipboard 
Print this post

  Volhout said  Before you get too excited, Farnell does not stock the chip anymore...

Volhout


dozens on ebay. 2GBP each
 
BeagleHound
Newbie

Joined: 21/01/2022
Location: New Zealand
Posts: 3
Posted: 07:37am 22 Jan 2022
Copy link to clipboard 
Print this post

Thanks for all the interesting suggestions and links. I have much to ponder.

cheers,
BeagleHound
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025