gokul/macro-six-usbc

A six-key macro keyboard PCB paired with a separate physical enclosure.

Version
0.1.16
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone gokul/macro-six-usbc  # download the package files into ./macro-six-usbc
tsci add gokul/macro-six-usbc    # add it to your project as @tsci/gokul.macro-six-usbc

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

Files

README.md

# Macro Six USB-C

A six-key USB-C macro keyboard with an ATmega32U4 controller, a rotary encoder for volume and mute, six addressable RGB LEDs and a power switch.

The 110 × 68 mm PCB uses two copper layers and components placed on the top side. The schematic is arranged across two sheets.

Version 0.1.16 improves schematic readability on the same two A4 sheets: functional groups, a larger MCU symbol, vertical rail-connected passives, a centered crystal circuit, and local LED/capacitor groups. No manual schematic coordinates are used. PCB geometry, component values, connections, Gerbers, BOM and placement data are unchanged.

Version 0.1.15 shortens 39 ground routes and removes seven physical vias while preserving all pad connections. All non-ground routes, component placements, firmware and enclosure remain unchanged. The published preview displays complete trace paths by omitting pour-clipping annotations; fabrication copper is unchanged by this display adjustment. The routing-top-all-traces and routing-bottom-all-traces exports also show the complete saved paths. Hardware tests and manufacturer DFM approval remain outstanding.

Version 0.1.7 updated the enclosure: the programming-pad opening is covered, the encoder opening is circular, the power switch has a covered top with a side-operated slider, and the USB cable entrance is the original open-top notch narrowed to 12 mm, without a raised frame. Program and verify USB DFU before fitting the plate and soldering the keys: afterward, ISP access can require key desoldering to remove the plate. The validated PCB routing and application firmware are retained.

All six keys use C49234237 / CPG151101D06 switches with their linked supplier-library OBJ and STEP models. These plate-mount switches require a support plate.

The package includes the board source, Circuit JSON, schematic, PCB and assembled previews, BOM and placement file. The PCB manufacturing files target two-layer, 1.6 mm FR4 with 1 oz copper and have passed the recorded local geometry and connectivity checks. See outputs/release/VALIDATION.md and PCBA-READINESS.md for the checks and assembly requirements. Supplier DFM review and assembly approval remain required; no physical prototype is claimed.

The 3D view shows an open base and support plate with four M3 × 10 mm screws, a power-slider extension, and captive Reset/Boot pushbutton extensions, plus reference keycaps and knob. The sculpted keycaps have numbered legends, an ivory finish and a teal sixth key; the fluted charcoal knob has a metallic inset and teal indicator. These are CAD-only parts and are excluded from PCB fabrication and assembly placements. Use `<MacroKeyboard includeEnclosure={false} />` for the bare-board model. The enclosure outline and key/encoder locations are retained during the USB routing revision.

The complete open-assembly STEP, printable control-extension/support-plate STL files, switch-fit coupon and assembly instructions are in `enclosure/MACRO6-ENCLOSURE.zip` and `enclosure/README.md`. Digital checks cover component and fastener clearances, the assumed 18.5 mm keycaps and control travel. Physical switch-clip engagement and actual keycap/knob fit still require testing; no printed prototype is claimed.

Application firmware is provided in `firmware/`, with F13–F18 keys, volume/mute, brightness-limited RGB and LED power sequencing. Its HEX is a private-test build pending physical USB and power validation. See `firmware/README.md` for USB identity, build, programming and test requirements, and `manufacturing/readiness/ASSEMBLY-AND-BRINGUP.md` for the plate-first assembly sequence.

Full routing inspection images: `outputs/release/routing-top-all-traces.png` and `outputs/release/routing-bottom-all-traces.png`. These omit ground-pour shading only in the inspection image so that complete saved trace paths remain visible. Fabrication files retain the pours.