How to Make a Wireless Mechanical Keyboard

by Cheney Cheung in Circuits > Computers

40494 Views, 38 Favorites, 0 Comments

How to Make a Wireless Mechanical Keyboard

32.jpg
33.jpg

Hi all,I am a engineer and I come form China.

Now,I will teach you how to DIY a wireless mechanical keyboard.

sorry my bad English :(

Let's go!

Buy a Used Mechanical Keyboard and a Logitech Wireless Keyboard

0.png

First, I spent about 20$ to buy a used mechanical keyboard form Alibaba,It's make up of Cherry switch, and then, I spent about 5$ to buy a used Logitech wireless.

Dismantle Keyboard and Clear Keyboard

2.jpg
3.jpg
4.jpg
5.jpg
9.jpg
11.jpg
1.jpg
10.jpg

I dismantled the keyboard and clear it because used keyboard is so dirty.It's very important that you must use the hot wind to blow dry the key board.

And then,I cut off the routes of every key on keyboard PCB and remove the diode.

Dismantle the Logitech Wireless Keyboard

6.jpg
7.jpg
8.jpg
12-a.png

And then I dismantle the Logitech wireless keyboard,because of I want to get a Logitech wireless keyboard control board.

I spent few days to test the relation of key and wireless keyboard control board.

Add Background Light and Connect the Key to Logitech Keyboard Control

8-1.png
12.jpg
13.jpg
14.jpg
16.jpg
15.jpg
18.jpg
16-b.jpg

I spend $2 to buy about 104 LEDs form Taobao.com,and welded 330 Ohm resistance to keyboard PCB background light circuit.

I remove the mechanical keyboard MCU and connect the key to Logitech keyboard control board,when I push some key,the Logitech keyboard control board will send this key value to PC by 2.4GHz.

Add Li-battery and Battery Charge Circuit

19.jpg
20.jpg
21.jpg

I find a Li-battery on my old mobile phone,so I add this battery and battery charge circuit to my keyboard,it's can be charge by MicroUSB.battery charge circuit is make by TP4067,TP4067 is a Li-battery charge IC,500mA charge circuit.

Add STM8 MCU to Control Background Light and Check Battery Voltage

23.jpg
22.jpg
24.jpg
16-c.png
17.jpg
25.jpg
26.jpg
27.jpg

In order to control the keyboard background light and check the quantity of Li-battery,I use the STM8F003 TIMER2_CH2 to output a PWM wave to control LED brightness,and use the ADC to sample the Li-battery voltage,if battery voltage drop down to 3.5V,it's means low battery,Low Battery LED will be flash every 3 secounds.

because of the K230 keboard don't have the Print key ,Scoll Lock key,and Break key,so I connet this key to STM8,I use the Scoll Lock key to adjust keyboard background light,and the Break key to open or close the keyboard background light.

if the battery dorp down to 3.3V,the keyboard background light will be force close.

if I connet the MicroUSB to keyboard charge port,the charge LED will be turn on when battrey is charging and will be turn off if battery is full.

I spent $4 to buy a new keycap to replace old keycap.

Finish!

28.jpg
29.jpg
30.jpg
32.jpg
34.jpg
31.jpg

When I push the Break key,the STM8 MCU will turn on the keyboard background light,and I push the Scoll Lock key,the brightness will be adjust form 1% to 100, 100% to 1%,if I release the Scoll Lock key, the brightness will be lock.

it's STM8 source code,and project development on IAR Embedded Workbench.

sorry for my bad English so much!

Thanks!

Downloads