Skip to content

A Raspberry pi pico(rp2040) kmk keyboard with analog WASD input. Still work in progress.

Notifications You must be signed in to change notification settings

LennartEd/Analog-WASD-Keyboard-kmk-pi-pico-rp2040

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Analog-WASD-Keyboard-kmk-pi-pico-rp2040

A Raspberry pi pico(rp2040) kmk keyboard with analog WASD input.

OVERVIEW

This is a kmk keyboard using an RP2040 with analog WASD keys.

As kmk is circuitpython based this should work on any circuitpython compatible boards with 4 analog inputs. The WASD keys use linear Hall effect sensors and magnetic keys. The rest of the keys use normal mechanical keys. This is just the base code for the analog keys. I added a normal 4x3 key matrix as an example but you can add how many your desired layout needs.

As i will be building a fully analog keyboard i only build a WASD prototype. Everything should be working though. If you have questions or find errors please let me know.

COMPONENTS

  • 1 RP2040 or Circuitpython compatible board (IMPORTANT: you need one with 4 analog inputs which the original pipico does not have. I used PR2040-Zero and yd-rp2040

  • 4 Linear Hall effect sensors (any should work but i used HUAXIN HX6659IUA-Bor GH39FKSW)

  • 4 magnetic key switches (I used wooting lekker

  • (capacitors 100nF-10000nF ) not strictly nececary but reduces noise. 10000nF gave me the best results.

  • Normal mechanical keys

  • Diodes

  • (rotary encoders)

BUILDING NOTES

As i have only build a prototype and not a full keyboard you'll have to make your own case or use someone elses from the internet.

CODE

When circuitpython is installed move the content of the code folder into the RP2040.

Added module: analog.py which handles the analog key presses.

Basic variables for the analog keys can be changed in the main code.py file so this file does not have to be touched.

If you're getting ghost presses when using rapid Trigger use the "maxChangeInVal.py"+ 300 to find a siutable value for your keyboard.

Pin assignment for analog keys can be done in: code.py -> ana.pins =()

The key map for analog keys can be defined it code.py -> ana.map = []

About

A Raspberry pi pico(rp2040) kmk keyboard with analog WASD input. Still work in progress.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages