GithubHelp home page GithubHelp logo

tgjohnst / dna-keyboard Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 308 KB

Documentation for building a simple 4-key USB Keyboard that has ACGT to act as the equivalent of a tenkey for bioinformatics

dna-keyboard's Introduction

DNA-Keyboard

Documentation for building a simple 4-key USB Keyboard that has ACGT to act as the equivalent of a tenkey for bioinformatics

Keyboard

Rationale

DNA Sequence entry is a pretty common task when dealing with informatic stuff. The letters CGT all use the same finger on a QWERTY layout, which makes them slower to type in sequence. What if we had a keyboard to do just that?

Parts

The first build will be based on the 4Pack macropad

Parts

Tools

  • Soldering iron + Solder + Solder wick + Third hand + Ventilation

Firmware

Installing QMK

Install QMK (using conda within WSL, because I prefer a unix environment)

conda create -n qmk python=3
conda activate qmk
pip install qmk
qmk setup # Answer y to prompts

Compiling the firmware

qmk compile -kb 40percentclub/4pack
qmk config user.keyboard=40percentclub/4pack
qmk config user.keymap=tgjohnst
qmk new-keymap

Changing the Keymap

Edit the created keymap.c (to open /home/lotus/qmk_firmware/keyboards/40percentclub/4pack/keymaps/tgjohnst in explorer just cd there and do explorer.exe .) in a text editor. Change the layout to:

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
    [0] = LAYOUT( /* Base */
        KC_T, KC_G, KC_C, KC_A
    ),
};

Then, compile the new keymap (assuming the defaults were set with qmk config above

qmk compile

Flashing the firmware

You cannot flash directly from WSL, so install QMK Toolbox https://github.com/qmk/qmk_toolbox .

Load up QMK toolbox and select the .hex file you created in the last compile step. Select Auto-Flash.

Connect your keyboard to a USB 2.0 port (3.0 has issues). short out the ground and reset pin twice in quick succession to initiate a reset. QMK toolbox should detect the device and start flashing.

dna-keyboard's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.