I would like to build an interface between a keyboard and computer. The device will have functionality that will look to the computer as a keyboard. I want to be able to re-purpose some of the keys on my keyboard for things such as recording and replaying keyboard macros.
The chips used on the Arduino board (the ATmega8 and ATmega168) have three ports: B (digital pin 8 to 13) C (analog input pins) D (digital pins 0 to 7) Each port is controlled by three registers, which are also defined variables in the arduino language. The DDR register, determines whether the. UPDATE 1/7/17: I've uploaded my code seen in the video to my GitHub. I've also uploaded my own links to the.hex firmware files because of the ongoing issues. Arduino based foot operated reconfigurable macro keypad. This is an Arduino base, preset keyboard emulation (HID-human interface device), with SD card file reader. Keyboard Macro Mat © GPL3+ Arduino based foot operated reconfigurable macro keypad. A 15-key Arduino-based, bluetooth wireless, mechanical macro keyboard. I made this to improve my workflow at work and to avoid the finger gymnastics characteristic to iOS development. It charges and can be programed on-the-fly via USB-C.
I figure that the first step in doing this is to get an Arduino (Nano at this time, maybe a ATMega328 later) to pretend to be a keyboard and to type text such as 'Hello World' to the computer. I have breadboarded the interface described at http://www.practicalarduino.com.I have the code from: github.com/practicalarduino/VirtualUsbKeyboard and http://code.rancidbacon.com/ProjectLogArduinoUSB.I have not gotten it to compile yet but I feel I am getting close.
I am not 100% certain that I know which pins to use. The schematic calls for connections to 'DIO2', 'DIO4' and 'DIO5'. My best guess is that those are the Arduino pins D2, D4 and D5, but I could be wrong there too.
Has anyone done this before?Is there a better way?
The next step will be to take input from a USB keyboard. Can someone point be toward some good examples for that?
Arduino Keyboard Emulator
Arduino Macro Pad
This is exactly what I need for a golf simulator program that runs on my Windows 10 machine (except 12 buttons for F13 through 24 is all I need). Having said that, I am a bit intimidated by the entire process because if it doesn't work, I'd be lost. Any way that I could purchase a Ardunino Uno board from you that all I'd need to do is install it inside a box and attach buttons and then plug it into my computer via USB? I'd like to build the case to house the buttons myself but the programming and updating firmware on the board may be a stretch for my skill set.