Skip to the content
2 layers85.6 × 41 mmHl alyx glove, the printed circuit board in 3D

Firmware and Hardware for a Half-Life: Alyx Gravity Glove Replica

Size
85.6 × 41 mm
Copper layers
2
Thickness
1.6 mm
Parts
38
Nets
86
Pads
214
Tracks, vias
494, 72
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
17 Jan 2021
Updated
27 Sep 2021

Overview

Hl alyx glove is an open-source printed circuit board by StarGate01, from the StarGate01/hl-alyx-glove repository on GitHub, published under the MIT licence. It is a 2-layer board of 85.6 × 41 mm with 38 parts on 86 nets, routed with 494 tracks and 72 vias.

It is built around the ATMEGA328P-PU, MAX7219M and 788BS. Its parts include 13 resistors, 6 diodes, 4 capacitors, 4 ICs and 4 connectors. It belongs with the lEDs and displays boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

3

README

README.md

Half-Life: Alyx Gravity Glove Replica

Firmware, Hardware and Models for a Half-Life: Alyx inspired glove cosplay prop. Based around an ATMega328p / Arduino Uno.

Also check out the other images!

Features

  • Detailed replica of the secondary-hand glove
    • Based on in-game 3D models
  • Custom printed circuit board
    • Small and compact due to SMD design
    • Three red LED matrices for hearts
    • Two individually controllable green status LEDs
    • Two orange finger attractor LEDs
    • Blue 128x64 pixel OLED screen for resin count
    • Red check engine LED light
    • Moveable attractor fingers
  • Uses standard components for power source and control
  • Microcontroller can be easily reprogrammed
  • Cosmetic parts are printable on any standard 3D printer

State of the Project

PCB Revision 1: Proof of concept - Completed
  • OLED rendering of resin count and sprite
  • Display animations on 3 LED matrices
  • Drive 2 green status LEDs
  • Drive check engine LED
  • Evaluate barebone IC
  • Evaluate display drivers
  • Manufacture board
  • Validate board
PCB Revision 2: Refinement - Completed
  • Add buttons
  • Add 0.1uF caps to driver ICs
  • Larger power traces
  • Re-think trace width in general
  • Properly lay out mounting holes
  • Optimize VCC trace
  • Move OLED connector
  • Optimize board size
  • Think about inertial measurement unit
  • Drive decorative yellow LEDs
  • Improve ground plane stitching
  • Add source info to silkscreen
  • Add component orientation to silkscreen
  • Evaluate acceleration sensor
  • Manufacture board
  • Validate board
Firmware Revision 1: Tests - Completed
  • Test sensor
  • Display resin count
  • Display blinking hearts
  • Flash LEDs
  • Read buttons
Firmware Revision 2: Demo mode - Completed
  • State management w/ buttons
  • LED control
  • Adjustable amount of hearts and resin
Firmware Revision 3: Proper functionality - In Progress
  • Wrist flick detection
Power System - Completed
  • Battery selection
  • Charging management
  • Verify power system
CAD and 3D-Printing - Completed
  • Acquire gloves
  • Export models from game
  • Design decorative parts
  • Adapt decorative parts to 3D-Printing
  • Think about paint and mounting
  • Design battery holder
  • Design PCB mount
  • Mount to glove
Final Assembly - Completed
  • Proper paintjob
  • Paint copper elements and add wires
  • LED mounting

Software

Clone this repository using git clone and open it up in the PlatformIO IDE.

Edit include/hardware_config.h if your pin layout differs.

Finally, use PlatformIO to compile and upload the program. A debug configuration for the Arduino Uno (uno) and a release configuration for the PCB (barebone) are available. To program the barebone chip, you need a ISP programmer such as a AVRISP, USBasp or Arduino as ISP.

Compiling Modified Sprites

Use GIMP to export the xcf image files into xdm files. Make sure to declare the buffers as PROGMEM.

Compiling Modified Fonts

Use a tool like bdfedit to view or edit the font.

Install bdfresize from your package manager.

Clone olikraus/u8g2 and change into the tools/font/bdfconv directory. Run make and copy or link the bdfconv executable to somewhere you can run it.

Change into the res directory of this repository. Then run ./font.sh to pre-compile the font.

Software Components

Electronics

Most parts are pretty standard, eg. THT resistors, capacitors and LEDs. Pretty much any electronics store should carry them.

The main controller is a ATMega328p, the same as the Arduino Uno uses. These ICs are cheap for what they offer and also available pretty much everywhere.

The 1.9mm LED matrices are a special part, because they are the "mini" version of the much more widely used 3.0mm/3.75mm 8x8 LED matrices. I bought them from AliExpress. The OLED is a fairly standard "Arduino-type" breakout board, and commonly available in blue, yellow and white. Amazon carries them, and so does AliExpress.

The surface mount LED is a 5050 SMT LED, which is also commonly used in LED strips and can be found at many stores, for example at Ebay.

The display drivers are MAX7219CWG ICs, available at many stores, for example Ebay. However, prices differ a lot depending on the retailer.

The Acceleration sensor is an ADXL335 IC on the GY-61 "Arduino-type" breakout PCB. These modules are so cheap that it is not worth the trouble of including components that can't be hand-soldered. These modules are available at Amazon/Ebay and other retailers.

The power system consists of a 3.7V LiPo Battery commonly used for drones and RC toys (available from e.g. Ebay), and an integrated charger/converter board, which is for example available at Amazon. For interfacing, a micro USB socket is used.

Fabricating the PCB

A KiCad project is available in the hardware directory. It requires my custom components.

Fabricate the PCB according to the Gerber files in hardware/gerber or send them to a factory. I had mine produced by JLCPCB. All SMD components are hand-solderable using a fine tip and a steady hand.

Solder the components to the PCB according to the KiCAD schematics. Pay extra attention to the orientation of the LED displays and the display drivers ICs, check the little circle markers on the PCB. Sometimes the orientation of the LED matrices is not obvious, so just put them into the holes without soldering and tilt them to jam them, in order to make electrical contact. Then you can verify the orientation if they display correctly.

The mounting holes of the PCB and the OLED module should be on top of each other, such that the modules can be screwed together using an M3 bolt. The acceleration module can be soldered onto the PCB.

Putting the Glove Together

The actual gloves are called "Half-Jab" by the company Highway 21. Available at motorcycle shops or Amazon/Ebay.

The directory models contains STL files for 3D printing. Please note that quite a lot of manual finishing is required depending on your printer. Print all the files in black plastic (I used PLA). The parts are not plug-and-play, you have to sand, cut and drill at various places. Use the parts as a starting point for your own creativity.

Refer to the photos to see how I assembled my version. I used silver metallic automotive sparypaint to color the base piece, and special copper colored paint to paint the copper elements. The rest was painted using acrylic colors.

The attractor LEDs are standard orange LEDs that were inserted into the tips of the finger pieces from above. Their power cables have been routed through a hole in the plastic and back to the PCB.

The "Check engine light" is a 3D printed frame with a piece of printed overhead foil. The frame then gets half-filled with semi-transparent hot glue to create a light diffusor. Print the document models/check_engine.pdf on overhead projection foil using a laser/toner printer and cut out one image to size. Insert the foil piece into the frame from the back, such that it rests on the small lip. Make sure the toner side faces inwards, such that it is not exposed to the outside. Then pour in some epoxy or hot glue, but make sure to not fill it up completely. Then position the lamp cover on the PCB where the frame is printed on. I attached it with some small drops of hot glue.

I used various M3 bolts and nuts, and some epoxy glue for the rest of the assembly. The whole assembly is attached to the glove without modifying the glove, instead relying on the two plastic hooks. Use some white zip-ties and some black spiral cable wrap to complete the look.

Using the PCB

Press the button SW1 to cycle through the effects, and SW2 to change / cycle the selected effect. The selection order is: LED hearts amount (initial state) - Green status LED D1 - Green status LED D2 - Red "Check engine" LED D3 - Orange attractor LEDs L1 and L2 - LCD resin count.

Licensing

All files in this repository are released under the terms of the MIT license. However the original idea and in-game design of the Half-Life: Alyx Glove was made by Valve Software. The copyright of the in-game design is of course held by Valve Software. The files in this repository however are a derivative / transformative work made by the author, and their copyright remains with the author.

Parts

38
QtyValueFootprintReferences
7180Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR5, R6, R7, R10, R11, R12, R13
4100NCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C2, C3, C4
4MountingHoleMountingHole:MountingHole_3.2mm_M3_DIN965H1, H2, H3, H4
310KResistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_HorizontalR1, R2, R3
310KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR4, R8, R9
3788BSCustomComponents:788BSLED1, LED2, LED3
3MAX7219Package_SO:SOP-24_7.5x15.4mm_P1.27mmU1, U2, U3
2GREENLED_THT:LED_D5.0mmD1, D2
2SW_PushCustomComponents:smd_switch_sunrom4388SW1, SW2
1ATmega328P-PUPackage_DIP:DIP-28_W7.62mmU4
1EXT_LEDConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_HorizontalJ4
1IMUConnector_PinSocket_2.54mm:PinSocket_1x05_P2.54mm_VerticalJ3
1OLEDConnector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_HorizontalJ1
1POWERConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_HorizontalJ2
1REDLED_SMD:LED_RGB_5050-6D3

The 37 most common of 38 parts.

Similar boards

  • 2 layers51 × 51 mmCompatible chan v0-led, the printed circuit board in 3D

    Compatible chan v0-led

    taka-tuos/compatible-chan

    M5Stack compatible module for stack-chan

    19 parts1GPL-3.0
  • 2 layers30.6 × 21 mmLb-80, the printed circuit board in 3D

    Lb-80

    maboytim/LiteBrite-80

    Memory visualization gadget for Z80 systems.

    7 parts1Unlicense
  • 2 layers181 × 97 mmOpenDeck r3.1.2, the printed circuit board in 3D

    OpenDeck r3.1.2

    shanteacontrols/OpenDeck

    A platform for building interactive control and sensing devices using MIDI and OSC built with Zephyr RTOS.

    262 parts960Apache-2.0
  • 2 layers482.6 × 35.6 mmPrecision clock, the printed circuit board in 3D

    Precision clock

    mitxela/PrecisionClock-Hardware

    PCB design for the Precision Clock Mk III

    49 parts41
  • 2 layers542.3 × 27.3 mmGlowboardng, the printed circuit board in 3D

    Glowboardng

    Eigenbaukombinat/glowboard

    The Glowboard Plotter plots images using 64 UV LEDs attached in a line moved over a 120cmx60cm glow-in-the-dark sheet by a stepper.

    69 parts6
  • 2 layers70 × 50.1 mmDoom clock, the printed circuit board in 3D

    Doom clock

    stecman/avr-doomclock

    GPS clock on an ATTiny with MAX7219 7-segment driver

    24 parts5MIT
  • 2 layers91.4 × 119.4 mmPainel pcb1, the printed circuit board in 3D

    Painel pcb1

    ArqueologiaDigital/PatinhoFeio_Painel_KICAD

    63 parts4

Questions

How big is the Hl alyx glove PCB?

It measures 85.6 × 41 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Hl alyx glove use?

38 parts, built around the ATMEGA328P-PU, MAX7219M and 788BS. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Hl alyx glove KiCad files?

From the StarGate01/hl-alyx-glove repository on GitHub, at the commit this page was made from: the board is hardware/hl-alyx-glove.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Hl alyx glove design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).