Skip to content

twosixlabs/macrocoaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Macrocoaster

Thank you for picking up a macrocoaster from TwoSix Technologies!

GIF of spinning knob changing the layers

If you weren't able to pick one up in person, this repo contains mainufacturing files to order your own board (through JLCPCB, PCBWAY, etc.)

Why this?

We wanted to give you something useful, fun, and memorable, whether it's a neat circuit board coaster, a fun beginner-friendly soldering kit, or a powerful productivity tool :)

Usage

The Macrocoaster has two main uses: as a coaster, and as a macropad!

Coaster:

back of board

  • Coaster 👍

Macropad:

front of board

  • A "macropad" is a (usually) small keyboard used to add functionality to or automate your regular keyboard. Each key's function is programmable, so on a press it can type entire paragraphs, change your computer volume, or hit a combination of keys together.

  • The macrocoaster is unique in that there is a knob that lets you scroll through layers, allowing for "pages" of macro keys, instead of just 11. You can think of this like how your SHIFT key changes certain keyboard keys to something else, but instead of one modifier key (SHIFT), you have a dial!

Feature Overview

Hardware

  • Ruler
    • Inch and mm ruler
    • Common trace widths
    • Common hole diameters
  • Header references
    • Common header pitches for reference
  • Cross-microcontroller compatibility
  • ENIG finish - there's gold on this board! 😱

Software

  • Scrollable layers
    • The left rotary encoder scrolls through defined keyboard layers (displayed on the OLED) for a theoretical maximum of (32 layers) * (11 keys) = 352 custom macro keys!
  • Bindable rotary encoder
    • By default, the right rotary encoder functions as a volume knob, but can be rebound to send any keycode! (for example, scrolling the grid size in KiCAD)
  • Caps-lock indicator via OLED

BoM (Bill of Materials)

See the interactive BoM :)

Required:

Optional: (but highly recommended)

  • Keycaps
    • Entirely your preference :)
      • This site is a great starting point
        • Check if there is a "numpad" set, if you don't want the whole keyboard
        • Sites such as this offer per-key pricing, some other sites can even print custom designs on keys!
  • Rotary encoder knobs
    • There are many, many options, just make sure they fit your encoder shaft (some are semi-circles, some have knurling, etc.)
  • Rubber "feet"
    • This keeps the bottom of the board (with the solder blobs/THT components) from scratching up or shorting on whatever surface you have.

Assembly

  1. Liberally apply flux to the back of the board (the side with all the graphics)
  2. Place your key switches (SW1 - SW11) in (on the side without the rules), and solder them
  3. Diodes (technically optional, if you don't care about ghosting)
    • If using diodes, solder down D1 - D11 (in any order). Make sure the polarity is correct.
    • If not using diodes, short D1 - D11 with solder, wires, or leads
  4. Solder both rotary encoders (SW13, SW14)
  5. Solder down your controller
    • You can use the castellated pads if your controller has them, or simply use traditional headers
  6. Head down to the Programming guide before soldering the OLED
  7. Apply some kapton (or other non-conductive tape) to the bottom of the OLED
    • This prevents the OLED from shorting microcontroller pins
  8. Solder down the OLED so it covers your controller
    • Note: if using headers (instead of castellated pads) to solder down your controller, you made need tall headers or female headers to clear the board.
      • In the case of the kb2040, the stemma connector causes the OLED to sit at a bit of an angle, which personally I find kind of convenient.

Programming

  1. Install qmk
    • QMK install guide
      • Note: Merging the macrocoaster into qmk is underway.
      • For now
        • Define a new keyboard qmk new-keyboard
        • Choose last option none of the above
        • Choose your chip, although it doesn't matter. I selected kb2040
  2. Download the code
    • git clone https://github.com/twosixtech/macrocoaster && cd macrocoaster/firmware
  3. Compile and flash for your microcontroller
    • You will need to press the Flash/boot/etc. button down when loading the code for the first time (QMK will prompt you )
    • delete everything in the macrocoaster dir defined with qmk new-keyboard above
    • copy macrocoaster/firmware into your qmk home dir and difined firmware for macrocoaster qmk_firmware/keyboards/macrocoaster. Like this cp -r * ~/qmk_firmware/keyboards/macrocoaster or similar.
    • Elite-C/Pro-micro
      • qmk compile -kb macrocoaster -km default && qmk flash -bl dfu -km default -kb macrocoaster
    • kb2040
      • qmk compile -kb macrocoaster -km default && qmk flash -km default -kb macrocoaster -e CONVERT_TO=kb2040

Macropad Usage

By default, the macropad comes with (roughly) this layout:

Notes

To put the KB2040 into programming mode, with the USB port oriented up, hold the bottom left button down, and then press the right and release the left. As documented here

Customization (WIP)

Almost all customization will be done in the keymap.c file.

See the QMK docs and QMK code for instructions/guidance, as well as the comments in keymap.c.

  • If you toss the code, with its existing comments into ChatGPT, it does a pretty good job at helping explain :)

The bootloader can be entered by holding down the SW4 key while the board is powered on

  • Note: with the kb2040, entering the bootloader make take a few attempts (make sure to wait ~5s on each attempt)

Note: Unfortunately because of QMK is architected with macros and #define's, values for things like layer #'s must be known at compile-time and not runtime, making things like automatically calculating the next/prev layer very difficult :( For example,

#define NUMBER_OF_LAYERS (sizeof(keymaps) / sizeof(keymaps[0]))

int get_next_layer(int currlayer) {
    return (currlayer + 1) % NUMBER_OF_LAYERS;
}
int get_prev_layer(int currlayer) {
    return (currlayer - 1 + NUMBER_OF_LAYERS) % NUMBER_OF_LAYERS;
}

is not possible. :pensive_cowboy:

Cases

STL/3MF files for 3D-printable cases can be found in the cases folder :)

Builds

If you feel inclined, it would be amazing if if/after you complete a macrocoaster build, you post it in the builds folder! I posted my build(s) there, feel free to copy that folder and use it as a template :)

If you want to share your build, please open a PR with your setup in its own subfolder in the builds folder!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published