Gesture Controlled HID Bluetooth Keyboard using ESP32

User Avatar RAJESH
Author
Share

Overview

In the world of do-it-yourself (DIY) electronics, the ESP32 has gained immense popularity for its versatility and power. While commonly known for its use in IoT applications, the ESP32 can also be utilized to create various human interface devices (HID), such as a mouse or keyboard. With its built-in Wi-Fi and Bluetooth capabilities, coupled with its processing power and GPIO pins, the ESP32 provides an excellent platform for creating your very own customized HID keyboard.

Designing and building your DIY ESP32-based HID Keyboard offers a unique opportunity to dive into the world of embedded systems and create a device to your specific needs. This project allows you to unleash your creativity and explore the possibilities of the ESP32 HID functionality. With the help of ESP32's Bluetooth functionality, you can wirelessly connect your HID mouse to various devices, such as computers, laptops, smartphones, or tablets, making it a versatile and convenient input device. Whether you want to enhance your gaming experience, control multimedia applications, or simply navigate your computer with a custom-made mouse.

Here by adding an adxl345 accelerometer, we can program the microcontroller to simulate keyboard actions by gestures, like left and right clicks, front and back clicks etc. This means you can navigate your computer's interface, control presentations, or interact with applications without physically touching your computer's keyboard.

Code File

Code schematics FileCode schematics download

PCB Gerber File

Gerber fileCode schematics download icon

Components Required

ValuePackageManufacturerDigikey Part NumberDatasheet LinkQuantity
0.1uf0603Samsung Electro-Mechanics1276-1935-1-ND

Datasheet

4
10uF0603Murata Electronics490-GRM188R6YA106MA73JCT-ND

Datasheet

2
10uF3216KYOCERA AVX478-1654-1-ND

Datasheet

2
1uF0603Samsung Electro-Mechanics1276-1034-1-ND

Datasheet

2
SS14SMAComchip Technology641-2115-1-ND

Datasheet

1
MAX1898EUB42+T10-uMAX/uSOPAnalog Devices Inc./Maxim IntegratedMAX1898EUB42+TCT-ND

Datasheet

1
USB C ReceptacleUSB_CGCT2073-USB4105-GF-ACT-ND - Cut Tape (CT)

Datasheet

1
AH3572-P-B3-SIPDiodes IncorporatedAH3572-P-BDI-ND

Datasheet

2
S3B-PH-SM4-TBLFSNS3B-PH-SM4-TBLFSNJST Sales America Inc.455-1750-1-ND

Datasheet

2
JST_S2B-PH-SM4-TB(LF)(SN)JST_S2B-PH-SM4-TB(LF)(SN)JST Sales America Inc.455-1734-1-ND

Datasheet

1
LED BLUELED_0603Harvatek Corporation3147-B1931NB--20C007614U1930CT-ND

Datasheet

3
LED REDLED_0603Harvatek Corporation3147-B1911USD-20D000114U1930CT-ND

Datasheet

1
AO3401ASOT-23Alpha & Omega Semiconductor Inc.785-1001-1-ND

Datasheet

1
22.1KR_0603YAGEO13-RC0603FR-1322K1LCT-ND

Datasheet

1
3.3KR_0604YAGEO13-RC0603JR-133K3LCT-ND

Datasheet

4
10kR_0605Stackpole Electronics Inc.RNCP0603FTD10K0CT-ND

Datasheet

5
5K1R_0606YAGEO13-RC0603FR-135K1LCT-ND

Datasheet

2
33RR_0607YAGEO311-33.0HRCT-ND

Datasheet

2
100KR_0608YAGEO311-100KHRCT-ND

Datasheet

4
47.5KR_0609YAGEO13-RC0603FR-1347K5LCT-ND

Datasheet

1
1KR_0610Stackpole Electronics Inc.RNCP0603FTD1K00CT-ND

Datasheet

3
JS102011SAQNK3-1280S-F1C&K401-1999-1-ND

Datasheet

1
2N7002DW-TPSOT-363_SC-70-6Micro Commercial Co2N7002DW-TPCT-ND

Datasheet

1
DMG3415U-7SOT-23Diodes IncorporatedDMG3415UDICT-ND

Datasheet

1
ADP1706ARDZ-3.3-R78-SOICAnalog Devices Inc.505-ADP1706ARDZ-3.3-R7CT-ND

Datasheet

1
ESP32-S3-WROOM-1-N16R8ESP32-S3-WROOM-1Espressif Systems1965-ESP32-S3-WROOM-1-N16R8CT-ND

Datasheet

1
ADXL345BCCZ14-VFLGAAnalog Devices Inc.505-ADXL345BCCZ-ND

Datasheet

1
Have any question related to this Article?