Questions tagged [keyboard]

A text input device. Utilize this tag to ask programming questions regarding reading input from it or blinking the lights, etc.

Filter by
Sorted by
Tagged with
7
votes
1answer
5k views

Arduino as a real device to computer

Suppose we have a computer mouse , now when we connect it to a computer then computer understands it is a mouse which is been connected to it. Same thing happens for keyboard and many other devices. ...
6
votes
2answers
42k views

Arduino nano as HID Keyboard

I'm a bit of a noob in the Arduino area but I found an Arduino nano I bought a long time ago sitting on my shelf and collecting dust, so I taught "why not make a project". I game a lot of racing ...
4
votes
1answer
22k views

Keyboard.h not found

I keep getting this error message: "'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?" ... when I have already included Keyboard.h. #include <Keyboard.h> ...
4
votes
1answer
1k views

Arduino Uno as keyboard

I am trying to make Arduino Uno to act as a keyboard. I have successfully flashed the USB-HID firmware in it using this link also and programmed it like this. uint8_t buf[8] = { 0 }; int inpin1 = 7;...
3
votes
4answers
12k views

Send Keyboard Media Keys with Keyboard Library

I have an Arduino Pro Micro (ATMega32u4) that I want to use as an IR receiver for a media PC and need to send codes like Volume Up, Media Home, Play, etc. But when I look up the scan codes for those ...
3
votes
3answers
1k views

Arduino Leonardo as keyboard for an iPad

I'm trying to make a Arduino Leonardo as a Keyboard for an iPad. I was successful with an Arduino UNO. However I'm hoping to use an ATmega 32U4 because of the better HID functionalities and smaller ...
3
votes
2answers
2k views

Keyboard.print() skips keys

I'm playing with the Arduino Leonardo Keyboard.print() command, but I'm facing a annoying problem: When I print a double quote, it will not appear and also will make to disappear the next character (...
3
votes
2answers
6k views

Typing into ESP8266 with a USB keyboard

I need to be able to connect a USB keyboard, like a tiny Xbox keyboard, or a nice wireless one, into an ESP8266-based thing to type passwords into the MCU. Adapting the PS2 lib for AVRs (PS2==USB ...
3
votes
2answers
857 views

Grab keys from an ordinary USB keyboard

Arduino USB I want to write an Arduino Sketch (if there is no other possibility it can also be plain c) , to grab keyboard inputs from my ordinary USB keyboard. Preferably without expensive hardware, ...
3
votes
2answers
817 views

How can a USB keyboard emulator (TrinketKeyboard) type Unicode characters?

I've got an Adafruit Trinket microcontroller set up using this USB keyboard tutorial, and it works great. I'd like to set up my project to type a shruggie ( ¯\_(ツ)_/¯ ) when I press a hardware button....
3
votes
2answers
383 views

Can I use arduino pro micro rx tx as digital pins

I'm using arduino pro micro Atmega32u4 5v 16Mhz I want to use it to make a HID Keyboard and Mouse but I ran out of pins so I was wondering if I can use the RX and TX pins as digital input pins. Will ...
3
votes
1answer
257 views

How to reprogram Arduino if USB port is already in use?

I'm developing a keyboard emulator using Digispark Pro (based on Arduino) which uses USB port as the keyboard interface. I haven't programmed it yet because I doubt how should I recognize the chip to ...
3
votes
1answer
681 views

sending ctrl-z in a struct?

I have a set of buttons wired to an arduino leonardo that are meant to send either single keystrokes to a computer "a, b, c..." etc, or a key sequence like ctrl+z (to perform an undo command.) ...
2
votes
1answer
664 views

65 hall effect sensors as switches to be used as a keyboard with a teensy

I'm trying to wire up a silly little keyboard using hall effect sensors and magnets in a glove. The idea being only I can use the keyboard since I'll have the glove. The sensors are 3 pin, (vcc, gnd,...
2
votes
3answers
13k views

Digispark / DigiKeyboard change keyboard layout

I'm trying to use the Digispark as a Rubber Ducky but the Digispark is only usable with the US laylout. German keyboard layout is QWERTZ. Some keys can be changed, like y and z, but if there are [ or ]...
2
votes
1answer
3k views

Possible to create IP-to-USB HID (keyboard) device using Arduino?

Is it possible to create an IP-to-USB HID (keyboard) using Arduino? I'd like to connect an Arduino to my network using Ethernet, and then send it commands using TCP/IP and have those commands ...
2
votes
2answers
846 views

Library for DIY Keyboard

I'm planning on making my own Bluetooth mechanical keyboard using the Adafruit Feather 32u4 Bluetooth LE. Something that I haven't really figured out is the programming side of things. I was wondering ...
2
votes
1answer
855 views

Arduino sending keystrokes via push-buttons. Proper bouncing and manually setting buttons?

I have a simple set of 8 push buttons wired to a Teensy 3.2 board (which uses Arduino via Teensyduino plugin). The 8 buttons are on pins 1-8 and their common ground line (one line soldered to each of ...
2
votes
1answer
1k views

Uno as a composite USB HID keyboard

I'm looking to create a USB device that would be basically a HID keyboard. I am able to do that with Uno. I flash new firmware with a HID keyboard descriptor and on the arduino side I loop and check ...
2
votes
2answers
226 views

Using C# Program to Interpret Keystrokes

I am in the process of developing an Arduino application that can read keystrokes from a PS/2 keyboard. I was wondering if it would be possible to upload a C# program onto the Arduino to interpret the ...
2
votes
0answers
78 views

Problems with Arduino Uno Usb 2.0 shield when using a keyboard

I have an Arduino Uno and a usb 2.0 shield in which I connected a keyboard to. I have all the necessary libraries installed but what I am trying to figure out is how to light an led when I press a ...
2
votes
0answers
449 views

Making '*' key on keypad a backspace key

Using a 4x3 membrane keypad and I want to make the '*' key a backspace if the wrong number is entered. I am a newbie and having a hard time trying to figure out how to code that, any help would be ...
2
votes
0answers
53 views

Why is my keypad requiring a double-click only on the first row to register?

I have a keypad that is connected to my Arduino and each time a key is pressed, the number should be outputted to an LCD screen. The issue is that after the screen is cleared, and a new ID is being ...
2
votes
0answers
510 views

PS2 Keyboard and sending keystrokes between a Leonardo and several pro micros

I am working on a project where I am taking the the key presses from a PS/2 keyboard and passing them to several pro micro boards so I can type the same commands on multiple computers at the same time....
2
votes
0answers
77 views

Arduino Leonardo based h keyboard

I just want to configure my laptops keyboard buttons a,s,d,f,g,h and j. I wrote this code and it works for only a but I couldn't configure other buttons. Code is: #include "Keyboard.h" const int ...
2
votes
0answers
52 views

Arduino micro window focus troubles

I'm currently attempting to use an Arduino Micro as a ducky USB for penetration testing, and currently when I attempt to open a command prompt (or any other window) the window loses focus which ...
1
vote
2answers
51 views

Emit region-neutral keyboard signals

The Keyboard API allows the Arduino boards such as the Micro or Leonardo to emit USB signals mimicking a physical keyboard. However, the signal seems to transmit key strokes and not characters which ...
1
vote
1answer
92 views

Save highlighted text as int variable

I build a macro keyboard and one thing I do alot is add a set amount to numbers mostly in 3d modeling programs. I add and remove 0.25 and 0.125 all the time. I want to make a macro that copies ...
1
vote
2answers
400 views

Arduino Micro draws too much power from iPhone. How can I change that?

I'm building a USB keyboard that has two buttons - space and enter. The plan is to use this USB keyboard (with an Apple Lightning connector to USB) with the built in iOS switch control. I bought the ...
1
vote
3answers
4k views

How can I use a BlueSMIRF Silver (RN-42) as a HID Keyboard (on IOS)?

I've got a BlueSMIRF Silver (RN-42) Bluetooth module. I am trying to create a basic keyboard I can play with on an iPad Air. At the moment barely manage to get the module to pair with OSX but only ...
1
vote
2answers
788 views

How to send volume +/- on Mac/OSX from Leonardo

I saw this answer but I can't find the analog for Mac. I've tried cycling thru keycodes from 0x01 thru maybe 0x500, and I went thru ascii a few times, also found brightness up/down, and F11, F12, but ...
1
vote
1answer
288 views

Controlling keyboard LEDs with USB Host Shield

I've got a USB keyboard connected to my Arduino Uno with a USB Host Shield. I'm reading keystrokes using this example from the USB Host Shield library. I need to toggle the LEDs in the keyboard (that ...
1
vote
2answers
79 views

Is Arduino Keyboard in Single User Mode Possible?

Has anyone had success using the keyboard functionality of any arduino in single user mode of mac computers? I would like to inject keystrokes in single user mode, and have been unsuccessful with the ...
1
vote
1answer
4k views

NodeMCU capable of key injection?

Short version: Is the NodeMCU capable of key injection in the same way that an Arduino Teensy can be programmed with Duckuino script to function as a HID? Long version: Recently, my 7+ year old iMac ...
1
vote
1answer
941 views

Enabling keyboard feature on Arduino with CH340G

I've seen here that it is possible to enable keyboard feature on Arduino Uno so it can emulate a keyboard (send keystrokes to computer) like the Leonardo. They do it by updating ATmega16U2 firmware. ...
1
vote
1answer
4k views

Can't get Arduino Leonardo working as a USB keyboard in Windows 7

I can't believe I am stumped by this, but this is my issue and I can't see any other solution for this anywhere. I have an official Arduino Leonardo loaded up with the following code: void setup() { ...
1
vote
1answer
1k views

Using Arduino To Control Boot Sequence of PC

I want to know if it is possible to use an arduino to tell a pc which os to boot to. I know It is possible to turn on the pc by wiring it to the motherboard pins with the power switch, and I know the ...
1
vote
1answer
19 views

Arduino Uno R3 HID with HC-06 BT module

Im trying to make a macro pad using Arduino Uno r3 and 4x4 matrix (cherry blue clone) . I know using a pro micro is better than uno cause there isn't HID compatibility in uno but since i already have ...
1
vote
1answer
54 views

Using Leonardo as keyboard: add wake and sleep functions

I want to use a Leonardo with USB chip to emit some commands via USB port to a digital piano computer (running Windows 7) for various functions. I've gotten the Leonardo to emit page up and page down ...
1
vote
1answer
48 views

Problems Sending Signals to the Arduino-Uno via Keyboard

I have an Arduino Uno and a usb 2.0 shield in which I connected a keyboard to. I have all the necessary libraries installed but what I am trying to figure out is how to light an led when I press a ...
1
vote
2answers
4k views

Which kind of diodes I should use in buttons/keys matrix input? (Making gaming keyboard)

When making matrix input of NxM columns/rows with push buttons, there should be a diode next to each button to prevent "ghosting" and able read many keys pressed together correctly. There is a lot of ...
1
vote
1answer
241 views

Help with Arduino Micro Keypress Algorithm

Greeting, first time Arduino user here. So I am using the Arduino Micro as an HID keyboard device. It accepts arbitrary input from a Node-JavaScript program I am running (so I have full freedom in in ...
1
vote
2answers
97 views

Matrix keyboard and 7segment display countdown combination

I'm working on an escape room for my university with an Arduino Mega. The last part consists of a 7segment display representing a time countdown, and the participants have to introduce the correct ...
1
vote
1answer
738 views

Wake up a PC from an Uno

I want to wake up a PC via a USB-connected Arduino. When using a Pro Micro (Leonardo) I can do it, as its HID interface can wake up a PC. That is, in the Device Manager, under "Keyboards", the ...
1
vote
2answers
2k views

Uno r3 - Can't get USB Keyboards to work with an USB Host Shield

I'm a day 1 beginner to Arduino, and I am trying to obtain input from a USB keyboard. I've connected the USB keyboard to an Arduino USB host shield attached to an Arduino Uno r3, and I am using the ...
1
vote
1answer
524 views

Arduino Leonardo - disabling the debugger port

My Sketch program is working perfectly as a specialized keyboard application on the Leonardo. I want to disable the development tools drivers from the USB, (COM PORT) leaving only the HID Keyboard ...
1
vote
1answer
273 views

Emulate non-standard keyboard from Arduino

I want to emulate keyboard presses in an old C64 microcomputer using an Arduino. The keyboard connection is a non-standard 20-pin port (i.e. the Arduino keyboard libraries won't be useful) which, as ...
1
vote
1answer
1k views

Arduino Keyboard - print() works but println() does not

I am recently seeing strange behavior in my Arduino Yun. Just using the microcontroller, I enter the following: #include <stdlib.h> #include <string.h> // For string operations. #include ...
1
vote
1answer
306 views

Keyboard input arduino speed

I have an Arduino clone of a Leonardo and I was just wondering how many keyboard commands I can send to the computer per second via USB. I'm not talking about the delay between send and receive (...
1
vote
1answer
744 views

Arduino keypad matrix example? ( teensyduino )

I'm a beginner using Arduino with a Teensy 3.2 board and programming it as a usb keyboard. I have two 4 button membrane switches. Their button contacts are on pins 1-8, and the 9th pin holds a ...