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
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 ...
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
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 ...
0
votes
1answer
31 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:
0
votes
2answers
442 views

Fio Keyboard program out of control, how to reset?

My question involves a Sparkfun Fio v3, similar to the Arduino Fio. I had a student who was testing his understanding of the Keyboard library. He uploaded a sketch that continuously sends output, ...
0
votes
1answer
845 views

Bluesmirf Mate Silver (RN-42) enter command mode when in HID mode

I am having problems getting the Bluesmirf Mate Silver (RN-42) into command mode once I have switched to HID mode. I have bought a second new Bluesmirf Mate Silver to confirm my issue. I soldered the ...
0
votes
1answer
19 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,...
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 ...
0
votes
0answers
29 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 ...
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
votes
2answers
249 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);...
0
votes
0answers
24 views

An Input device to enter ssid and password NodeMCU

I'm doing a Node MCU based project to control small leds and stuff like that the problem is i neet to take it to many places and i cannot change the network ssid and password through the Arduino IDE ...
1
vote
0answers
77 views

Arduino escape characters not working when not defined in code [closed]

I am making an Arduino ethernet and serial communication program. The point of my program is to "SendKeys" the received message from Arduino that received the message from HTTP request query,...
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 ...
0
votes
2answers
72 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 ...
1
vote
0answers
59 views

Arduino mega reads ps/2 keyboard in C without arduino library [closed]

I want to read the input of an ps/2 keyboard. I connect the keyboard by a connector to arduino mega 2560. Clk to pin 2 and data to 30. Now my question how can i program in C that when I click any key ...
0
votes
2answers
153 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 ...
3
votes
2answers
381 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 ...
0
votes
1answer
77 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&...
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 ...
0
votes
1answer
174 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 ...
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 ...
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 ...
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> ...
0
votes
2answers
251 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 ...
0
votes
1answer
66 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 ...
1
vote
0answers
431 views

Audrino as hid bluetooth adapter

I am trying to create a bluetooth adapter which allows me to connect my keyboard + mouse via bluetooth and act as an HID device on my computer via USB. I want to be able to switch between operating ...
0
votes
2answers
95 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 ...
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 (...
0
votes
2answers
19k views

Press the Windows key using “keyboard.press();”

Is it possible to allow an Arduino Leonardo to simulate pressing the Windows key using the keyboard.press(......); command? If so, what is the required value?
0
votes
1answer
32 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?
0
votes
1answer
305 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 ...
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 ...
-1
votes
1answer
176 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 ...
0
votes
1answer
44 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 ...
1
vote
0answers
282 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 ...
0
votes
2answers
737 views

Using ATiny102 as HID device(emulating mouse)

I am trying to make my own mouse/keyboard from an attiny (it doesn't have to be attiny102 as the title suggests). I have read many articles on this subject: some are using v-usb library.But I ...
0
votes
1answer
940 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? ...
0
votes
1answer
89 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+...
0
votes
2answers
2k 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....
0
votes
1answer
86 views

Arduino Leonardo keyboard.print keeps printing equal sign

I am currently working on a DIY controller for Train Sim World. I am relatively new to the Arduino and the C programming language. My code is structured to look for button presses or PS2 joystick ...
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 ...
0
votes
2answers
333 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 ...
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 ...
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
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
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
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 ...
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 ...