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
3k 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. ...
4
votes
1answer
830 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
3answers
919 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
659 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
1answer
418 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.) ...
3
votes
1answer
215 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 ...
2
votes
2answers
547 views

Grab keys from an ordinary USB kyboard

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, ...
2
votes
1answer
1k 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 (...
2
votes
3answers
8k 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
2answers
8k 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 ...
2
votes
2answers
745 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
737 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
905 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
216 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 ...
1
vote
1answer
24k 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 ...
1
vote
2answers
39 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
2answers
13k views

press 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?
1
vote
2answers
176 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
2answers
4k 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 ...
1
vote
2answers
640 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
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
56 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
2k 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
350 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,...
1
vote
1answer
846 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
3k 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
784 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
40 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
63 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
4k 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> ...
1
vote
1answer
340 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
1k 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
440 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
235 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
207 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
2k 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
621 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 ...
1
vote
0answers
210 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/...
1
vote
0answers
273 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
0answers
46 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 ...
1
vote
0answers
416 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....
1
vote
2answers
490 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 ...
1
vote
0answers
83 views

Leonardo connect to keyboard on laptop [closed]

Hello i want to make an interactive dj booth. When someone touches the foil the sound appears. How do i connect the leonardo to a keyboard.press('n')? And connect the board to foil so when you touches ...
1
vote
0answers
63 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 ...
1
vote
0answers
46 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
0answers
139 views

Atmel studio 7 with Arduino Uno: Just upgraded to Atmel studio 7 and my target platform is the Arduino Uno

Atmel studio 7 with Arduino Uno: Just upgraded to Atmel studio 7 and my target platform is the Arduino Uno. I can't get past the start procedure: Firstly on starting up I get Sequence contains no ...
1
vote
0answers
115 views

YUN as BT keyboard

Sort of a follow up to Yun as bluetooth master, but this is to get the yun to act as a slave device. Specifically, I want it to be a BT keyboard. I could probably do it on my own, but I need to find ...
1
vote
0answers
732 views

Linear equation solver Arduino Calculator, printing wrong answer [closed]

I wrote a code in C to solve equations, but I don't know why some equations that I input into this calculator, give me wrong values, the algorithm is correct because I execute it in C and give me the ...
1
vote
0answers
896 views

EB - 4x4 Soft Keypad Driver Diagram from Makerstudio needed

I have found this interesting device wile looking for a cheap Arduino. It's a "driver" that converts a 4x4 Keyboard 8-PIN (8-IO) to a 4-Pin (2-IO) Device I would like to know if is Achieved by a ...