I need a bit of help with a weird project. Wiring an arduino to output the F key to a computer when a switch is turned on.

Currently trying to set up a switch where when the correct code is entered the video will skip to the next one. We are currently truing to use a zero delay USB joystick encoder. But the computer won’t recognise the Inputs for remapping purposes. So our next idea is to change the Input to match what’s already programmed. I have access to an arduino uno and various cables. If preferable I’d like to limit purchasing, but if there is no other way a shopping list would be appreciated.

Hi @NuzakFarnas102212

Newer Arduino boards (e.g. Leonardo, SamD) have an updated communications chip and can do this out of the box using the keyboard library.

Older boards such as the Uno and Mega need to have the firmware on the communications chip updated to do this. Please read the following article:

Please note: many newer Unos and Megas will already be running the new firmware.

If you can get your hands on a Leonardo or similar, then this article is the one to use:

If you want some idea of the cost of a Leonardo, try this:

I’d be interested in how you get on.

1 Like

Hi there
I have an interesting task to.
I want my mouse to print a character string like my email on to any computer I’m on at the time.
Like having a mini keyboard part in my mouse.
Cheers Ian

Hey Ian,

Best way to do that is to set up a script that listens on your computer for a particular input from your mouse (both buttons down, scroll up while holding down a mouse button, etc.) then have it use a virtual keyboard to type your instructions. AutoHotkey would be the best place to go for that one.


Core Electronics | Support

1 Like