Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan

Project Name: ESP32C3 Single Mode Bluetooth Keyboard ZY-17

Project Author: WSMALL_DA

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
{
Introduction
}

This open-source project looks like a keyboard, but it really is a keyboardBuild a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan… but it is not ordinary, and it is low-cost, suitable for DIY!

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan

I absolutely love its touch slider function!! Let’s take a look together!

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
{
Project Description
}

I spent 80 yuan to make a single-mode Bluetooth keyboard based on ESP32C3.

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan

The keyboard includes numeric area keys, light control knobs, and multimedia control sliders.

Supports hot-swapping, RGB lighting effects, full key anti-ghosting, and low power mode.

This article mainly introduces the keyboard’s: functions, DIY materials, installation process, program, design diagrams, and open-source materials.

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
{
Function Introduction
}

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan

01
Key Function

Single-mode Bluetooth keyboard, compatible with Windows systems, the key area supports Num Lock mode switching, currently does not support remapping.

02
Knob Function

The knob is used to adjust the RGB lighting effects of the keyboard, including: on/off, brightness switching, and lighting mode switching functions.

03
Touch Slider Function

The touch slider is used for multimedia control, including: volume up, volume down, previous track, next track, pause/play, mute/unmute, and disable/enable slider function.

04
Low Power Mode Function

If the keyboard is inactive for 20 minutes, it will automatically enter low power mode, and it takes 2-3 seconds to reconnect Bluetooth upon reactivation.

When the switch on the back of the keyboard is set to ON, it can also directly enter low power mode.

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
OK! After understanding the basic functions of the Bluetooth keyboard, let’s take a look at its production process!
Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
{
DIY Material Preparation
}

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan

Name Description
Core Board Haozhao ESP32C3 Simple Version
Lithium Battery Size: 90x55x6mm (length x width x height)
Other Electronic Components See BOM table
Keyboard Components

Keyboard switch x1

2U satellite switch x3

Keycap set for numeric keypad

Knob cap x1

Shell 3D printed, printing files see attachment
Screws

Flat-head screws

Diameter x length: 2x4mm, quantity: 4

Diameter x length: 2x14mm, quantity: 4

PCB Direct export, DRC check without errors
Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
{
Installation Process
}

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan

01
Component Soldering

Refer to the following image to solder components and install the lithium battery.

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
02
Burn Program

Use Arduino IDE to burn the program, and test the keyboard function.

03
Install Bottom Shell

Use 2x4mm screws to fix the PCB to the bottom shell.

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan

04
Install Top Shell

Use 2x14mm screws to fix the top shell to the bottom shell.

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
05
Install Switches, Keycaps, and Knob Caps

Refer to the following image to install the switches, keycaps, and knob caps, and paint the shell as needed. This requires 3 2U satellite switches.

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
At this point, the installation is complete!
Next, we will explain the program part of the Bluetooth keyboard and share its circuit design.
Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
{
Program Description
}

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan

01
Compilation Environment Support

This keyboard is developed based on Arduino IDE, so you need to install the corresponding esp32 development board package.

The configuration for the device is as follows.

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan

Since the simplified version of the ESP32C3 core board is used, the download method is set to “Internal USB”.

02
Using Libraries

To achieve keyboard functionality, the following libraries need to be added in Arduino:

① WS2812FX library, to achieve RGB effects.

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan

② NimBLE-Arduino library, to make BLE implementation more lightweight.

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan

③ ESP32-BLE-Keyboard library, to achieve Bluetooth keyboard functionality.

Note: You need to add #define USE_NIMBLE at the beginning to enable NimBLE.

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan

④ TaskScheduler library, to achieve multitasking.

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan

03
Compile and Download

After successful compilation, connect the development board using a USB data cable to download.

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
{
Circuit Design Diagram
}
Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
Schematic Diagram
Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
PCB Diagram
Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
{
Open Source Materials Download
}

All materials for this project are open source. If you need 【3D shell, circuit, program】 source files for DIY learning, please scan the QR code to go to the original project to get them.

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
Go to the original project
to obtain 3D shell, circuit, program source files

You can also click the end of the article “Read the original text” to enter the original project.

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan

01
Get Circuit Source Files_Illustration

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan

Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan

PS: Please open the 【Open Source Page】 and 【Circuit Source File】 on a computer~

*This article is a reprint of user creations from the “Lichuang Open Source Hardware Platform”. If there is any infringement, please contact to delete.

If you like it, please give me a thumbs up!
Build a Bluetooth Keyboard with ESP32C3 for Just 80 Yuan
Click here to view the original project

Leave a Comment

×