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
-1 votes
0 answers
17 views

Arduino Uno USB Host Shield Keyboard not responding [closed]

I have and arduino uno board with a USB Host Shield attached to it and I am taking inputs from a keyboard attached to the USB host shield. My code is properly running on one board but when I switch to ...
berto's user avatar
  • 1
0 votes
0 answers
48 views

Arduino MKRZero "This device cannot start" (Code 10), and Keyboard.h

I have bought my brand new Arduino MKRZero to emulate a keyboard. When I plug it in, I get the following on COM6, which is listed as "Arduino MKRZero". "This device cannot start" (...
HFOrangefish's user avatar
-3 votes
1 answer
66 views

How to use Arduino Uno as PS/2 to USB converter for typical keyboard usages?

I'm beginner in Arduino and recently programmed an Arduino uno board with various PS/2 to USB converters. They work when typing in Serial Monitor of Arduino IDE, but not in the other programs such as ...
Khabarkhaan's user avatar
1 vote
1 answer
57 views

Intercepting Keyboard Data on a Micro Controller

Recently I have purchased male and female USB-C breakout boards. I intend to connect the male breakout to a keyboard and the female end to my computer using a USB-C cable and wire the breakouts ...
Maxwell's user avatar
  • 11
2 votes
2 answers
140 views

With reference to Arduino Keyboard library, it does not have a keymap for UK keyboard, has anyone created a KeyboardLayout_en_UK.cpp file for this?

With reference to the Arduino Keyboard library, it does not have a keymap for the UK keyboard. I have tried to find a keyboard map that shows the hex value for the UK keyboard but I didn't have any ...
Susan's user avatar
  • 123
2 votes
0 answers
74 views

How to connect a ps/2 keyboard to an arduino?

I want to connect an old hp ps/2 keyboard to my arduino (nucleo 64 F303RE). The keyboard has a power rating of 5v and 50mA, I guess this is milliamps. The ps/2 connector has 4 connecting cables: GND ...
Davy Vos's user avatar
1 vote
1 answer
186 views

Will an Arduino Nano work instead of Teensy 3.2?

I hope this is ok to post here and I appreciate any suggestions or help and opinions/facts to make this work. First off I’ve Never programmed an Arduino device! I was looking at this project: https://...
Sundrop's user avatar
  • 19
1 vote
2 answers
454 views

Arduino keyboard Input language problem

I need my Arduino (Leonardo) to open cmd, but if keyboard input language isn’t English it prints another language letters. ——— code ——— Keyboard.begin(); Keyboard.press(KEY_LEFT_GUI); Keyboard.press('...
Mapagmataas's user avatar
0 votes
1 answer
125 views

Why does keyboard.h add 136 to each key?

I want to create a custom keyboard mapping in the official arduino keyboard library Why do the key definitions add 136 to each number? See Keyboard_es_ES.h on github #define KEY_MASCULINE_ORDINAL (...
spuder's user avatar
  • 111
1 vote
1 answer
620 views

Mouse.move: how do I move the mouse to the center of a screen?

I have a program operating in full screen mode. I would like to move the mouse to the center of the screen. Is this something I can do with the functionality of Mouse.h? https://www.arduino.cc/...
j0h's user avatar
  • 882
4 votes
2 answers
304 views

How to cut down size of imported DigiKeyboard library

I'm working on a project with a Digispark ATTiny85, that performs keystrokes using the DigisparkKeyboard library (https://github.com/digistump/DigisparkArduinoIntegration/tree/master/libraries/...
emma.makes's user avatar
0 votes
1 answer
212 views

Adjusting Threshold for Digital Pins

I am working on a project using Force Sensors to build a keyboard for MD patients. I have connected the sensors (each with 4 input pins) to digital pins to Arduino Due. I want to adjust the threshold ...
baraah baryhe's user avatar
0 votes
1 answer
278 views

Arduino Nano BLE 33 default example sketch `USBHID>Keyboard` makes the Arduino unusable

How the problem started I was playing around with using the Arduino Nano BLE 33 as a keyboard, and stumbled upon the USBHID>Keyboard sketch which I got via the default suggestion from the Board ...
beyarkay's user avatar
  • 111
1 vote
1 answer
401 views

Can't type backslash (\) with Keyboard library

I'm trying to make a macro keyboard, where I can press a single button and it will open programs for me. I'm trying to type this, for example: "c:\windows" but it gets typed out like this: ...
Tomy Gaspar's user avatar
0 votes
1 answer
1k views

Matrix Keyboard

I'm trying to program a mechanical keyboard running on the Arduino Pro Micro (5V/16MHz). I'm using a matrix approach (4x12), and while I believe the code and the wiring (both of which I've checked ...
sesonab's user avatar
1 vote
0 answers
42 views

Keyboard commands not working? [duplicate]

So I've been trying to use Mouse.move(); and Keyboard.press();. Every time I try to send it to my Arduino(mega 2560) it says keyboard or mouse was not declared. Any solutions? #include <Keyboard....
yesimaperson55665's user avatar
1 vote
1 answer
1k views

Keyboard.h not found on Arduino nano

I am trying to use keyboard on my Arduino nano, but i get this error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'? As per the answer in Keyboard.h not found, ...
Johan Jomy's user avatar
1 vote
1 answer
110 views

Peculiar behaviour of arduino pro micro

I am working with an arduino pro micro and I am facing a peculiar problem. The project I am working with includes arduino MKR NB 1500 as well. I am transferring data from MKR NB 1500 to arduino pro ...
sud.ng7's user avatar
  • 31
1 vote
1 answer
511 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 ...
Ikari Shinji's user avatar
0 votes
1 answer
206 views

Can i use PL2303 USB to TTL Serial Converter Module send keystrokes using Arduino nano?

If I can, which library to use (an example code will be great). Here is the module:
WHITE_DEVIL's user avatar
0 votes
1 answer
26 views

Change character sequence

I turn on the transmission of one key that works to open the door, but after a certain time I need to close the door, and for this I need to use the second key. I want to do without additional buttons,...
Антон's user avatar
1 vote
0 answers
60 views

Can ESP32 used for mobile game controller?

I have a term project: I need to develop a mobile game(Guitar Hero Like rhythm game) probably on Unity and I need to develop a custom controller for this game that works on android device. There will ...
Levent Kaya's user avatar
1 vote
1 answer
95 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 ...
Ben Crawford's user avatar
1 vote
1 answer
5k views

ESP8266: #include <Keyboard.h> causes fatal error: HID.h: No such file or directory

OS: Mac Arduino: 1.8.13 Keyboard Library: 1.0.2 I have a generic ESP8266 board, and I have the following code void setup() { // put your setup code here, to run once: pinMode(LED_BUILTIN, OUTPUT);...
Quintin Balsdon's user avatar
1 vote
1 answer
247 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 ...
Jack O'Flaherty's user avatar
1 vote
2 answers
983 views

Using Keyboard library for ISO-UK layout

I am creating a keyboard and the PC I use it with is configured for UK so the keyboard layout it expects is this I've highlighted the ISO-UK vs ANSI-US differences but the only key I am having real ...
RedGrittyBrick's user avatar
0 votes
2 answers
560 views

Button and twist knob to send keystroke to PC

As a novice, I would like to create a small breadboard with 5 items on it. 3 toggle buttons, and two constant spin (ie. no stop at 360 degrees) knobs. Is then like the bottoms to send what ever key ...
Craig's user avatar
  • 113
3 votes
2 answers
2k 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 ...
Keima-kun's user avatar
0 votes
1 answer
176 views

Arduino Keyboard starts lower case (but it shouldn't)

So I flashed the KeyboardMessage example to my Arduino SS Micro ATmega32U4. When I open an editor and push the button, I would assume the output to be Zou pressed the button XX times. (The "Z&...
speendo's user avatar
  • 127
1 vote
1 answer
71 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 ...
CyClone's user avatar
  • 31
2 votes
0 answers
130 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 ...
CyClone's user avatar
  • 31
0 votes
1 answer
589 views

Holding buttons (keyboard)

I made a wireless keyboard, but I just need 4 button for my project: left control, left shift, F1, F2. The problem: When I hold button - it acts like many key presses and releases, but I need, that ...
Amin Abbasi's user avatar
0 votes
2 answers
1k views

How can I make my Arduino Uno press Space on my laptop keyboard?

So I wanna build something which, when it receives a remote signal, presses the spacebar on my laptop keyboard. I tried using the Keyboard.press() but it is available only for Leonardo. Is there any ...
DeathVenom's user avatar
0 votes
1 answer
230 views

Why can the Xbox360 not detect the Arduino Leonardo as keyboard?

Arduino Leonardo as keyboard in the computer works! But not with the Xbox360. The Teensy works perfectly on the PC but how to emulate a keyboard device for the Xbox360. I know the Xbox360 has ...
eolandro's user avatar
  • 121
0 votes
2 answers
258 views

Can a video game potentially detect arduino leonardo?

If I automated an action in a video game through arduino leonardo, can it be detected? Things like autohotkey can be easily detected, however i would expect an arduino would be far more difficult. How ...
Gappy Hilmore's user avatar
0 votes
1 answer
62 views

What are the applicable processor for the ATmega32u4? And what are higher versions of ATmega32u4?

Can arduino uno smd r3 version handle a Keyboard.h library? it is not applicable for that arduino?
mattiskdi's user avatar
0 votes
1 answer
810 views

Can't get keypad to use Keyboard.write on an Arduino Uno

I've tried to use Keypad.h and Keyboard.h libraries to get my Arduino to use my Keypad for Keyboard input. I'll start with working keypad code (which is pretty easy but it's my first post so I want ...
Atlantic's user avatar
-1 votes
1 answer
381 views

Keyboard.write writing ASCII integer value as a String

I have the following code: #include <SoftwareSerial.h> #include <Keyboard.h> SoftwareSerial ttySerial(10, 11); // RX, TX void setup() { // Open serial communications and wait for port ...
Sterling Butters's user avatar
0 votes
1 answer
108 views

Does Keyboard.begin() and Keyboard.end() make my code slower?

I'm making an IR Macro keyboard, and about 10% of the code is dedicated to the Keyboard commands, would having Keyboard.begin() and Keyboard.end() in the method responsible for typing make any ...
TheNerdLog's user avatar
1 vote
0 answers
616 views

How to create real-time WASD control over an Arduino Uno?

I am trying to figure out how to use the WASD keys on my computer, to go through the USB cable and then spin the Arduino servos in real-time. So if I press the “a” key, it should start to move left ...
Andrew's user avatar
  • 11
0 votes
1 answer
1k views

STM32 as keyboard

I would like to use a STM32F105xx to build my own computer keyboard. That MCU has support to USB OTG (FS). So, I have 2 questions: Can I flash microcontroller with usb or I need a external programer? ...
Amparo's user avatar
  • 103
0 votes
1 answer
212 views

How can I clear the memory of my Arduino in this case?

I have made a code using involving HID control. But it seems that I messed up, but I can't upload a new sketch(nor edit the wrong code), because my Arduino is constantly doing things like Ctrl+Alt+...
NumberTWO's user avatar
0 votes
2 answers
743 views

Arduino HID keyboard does not work

I'm using a ItsyBitsy 32u4, Adafruit says it can act as a USB HID keyboard. The mc is based on the 32u4 which the Keyboard docs say are supported. I have a simple sketch that prints "A" every second ...
everett1992's user avatar
3 votes
2 answers
10k 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 ...
gilhad's user avatar
  • 1,380
1 vote
1 answer
331 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 ...
Sterling Butters's user avatar
2 votes
0 answers
677 views

(Arduino Uno reflashed as USB HID) How to send Scroll Lock key?

I am having a hard time finding documentation on how to properly use USB HID buffers, so the issue may lie there instead of with my code. To get 0x47, I used this table: https://www.usb.org/sites/...
mold's user avatar
  • 21
1 vote
1 answer
562 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 ...
Joe Malt's user avatar
  • 111
1 vote
2 answers
193 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 ...
Javier Romero.'s user avatar
1 vote
3 answers
4k views

Digispark ATtiny 85 - not recognised as HID device

I am trying to create auto-username-writer with Digispark ATtiny 85. I have a pretty simple sketch: #include <DigiKeyboard.h> void setup() { } void loop() { DigiKeyboard....
Jakub Zacek's user avatar
1 vote
2 answers
66 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 ...
Philipp's user avatar
  • 111