Skip to the content
PCBKitNew board
2 layers22.2 × 49.5 mmAccelerometerGunV2, the printed circuit board in 3D

AccelerometerGunV2

VCRchitect/HatRat

An inexpensive, easy to use hat-mounted mouse for people with little use of their arms and hands.

Size
22.2 × 49.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
4
Nets
35
Pads
47
Tracks, vias
43, 0
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
22 Mar 2025
Updated
6 Jul 2025

Overview

AccelerometerGunV2 is an open-source printed circuit board by VCRchitect, from the VCRchitect/HatRat repository on GitHub. It is a 2-layer board of 22.2 × 49.5 mm with 4 parts on 35 nets, routed with 43 tracks and 0 vias.

It is built around the BOB-12009. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

1

README

README.md

HatRat, the Mouse For Your Hat!

This project is an attempt to make an inexpensive, easy-to-use head mouse. The shell is 3D printed and features a clip to put it on a hat, visor, or maybe even a glasses frame.

To use the device, clip it onto something with the USB C port facing outward toward the screen. Connect a USB cable and the device will automatically turn on. Move your head up, down, left, or right to move the mouse accordingly.

How to Use the HatRat

If you hold still (or even just relatively still) for 3 seconds, the mouse will enter a gesture mode:

  1. Tilt left then back to center to left-click the mouse.
  2. Tilt right then back to center to right-click the mouse.
  3. To left-click and drag, tilt to the left and keep tilted. Move your head in the direction you want to drag while keeping your head tilted. When you're done, tilt your head back to the center.
  4. To right-click and drag, tilt to the right and keep tilted. Move your head in the direction you want to drag while keeping your head tilted. When you're done, tilt your head back to the center.

If you need to reset the orientation of the mouse, look to the edge of the screen. Like, if your head is too far turned to the left, just turn all the way to the right until you're about where you want "right" to be. The same holds true for up, down, left, and right.

If you're clicking and dragging and need to drop something with precision, hold your head still for the 3 seconds to freeze the mouse in place before you tilt the opposite direction to release the click.

In the repository is the Arduino sketch, 3D print files, and KiCAD files needed to build the thing.

Bill of Materials

Other than the circuit board, you will need:

  • 1x Arduino Pro Micro USB C
  • 1x Bidirectional Logic Level Converter
  • 1x AMS1117-3.3V Voltage Regulator
  • 1x MPU6050 Accelerometer
  • 2x Female Headers - 12 Pins - 2.54mm Pitch

You should be able to print the thing with about 25g of filament, making the entire thing cost about $15, versus the hundreds of dollars that other solutions cost.

Parts

4
QtyValueFootprintReferences
1BOB-12009Logic Converter:CONV_BOB-12009U3
1ProMicroProMicroFootprint:ARDUINO_PRO_MICROU1
1~Library:MPU6050 AccelerometerMPU1
1~Library:3.3v InOutGnd Voltage RegulatorU2

Questions

How big is the AccelerometerGunV2 PCB?

It measures 22.2 × 49.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the AccelerometerGunV2 use?

4 parts, built around the BOB-12009. 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 AccelerometerGunV2 KiCad files?

From the VCRchitect/HatRat repository on GitHub, at the commit this page was made from: the board is KiCAD Files/PCB Layout Files/AccelerometerGunV2.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the AccelerometerGunV2 design in my own project?

Its repository states no licence, so its author keeps all rights: ask VCRchitect before reusing the design.

Similar boards

  • 2 layers85.6 × 26 mmGame boy pico link board, the printed circuit board in 3D

    Game boy pico link board

    agtbaskara/game-boy-pico-link-board

    An Open-Source USB to Gameboy Link Cable Adapter for Raspberry Pi Pico

    6 parts51MIT
  • 2 layers70 × 90 mmShawazu gb dumper, the printed circuit board in 3D

    Shawazu gb dumper

    tihmstar/shawazu-gb-dumper-hardware

    Shawazu GB Dumper hardware

    17 parts14
  • 2 layers76.7 × 35.1 mmWeather station, the printed circuit board in 3D

    Weather station

    VincentKobz/diy-weather-station

    The goal is to build from scratch a small intelligent weather station that can be connected to IOT networks.

    14 parts2MIT
  • 2 layers39.5 × 30.5 mmVC Adapter, the printed circuit board in 3D

    VC Adapter

    Gr3nSkyDragon/VC-Adapter

    Firmware and PCB for GB to 3DS communication

    10 parts1GPL-3.0
  • 2 layers60 × 30 mmGPIO circuit, the printed circuit board in 3D

    GPIO circuit

    JhouLab/Pi5WebcamRecorder

    Records MV4 AVI video files from up to 4 simultaneous USB webcams on Raspberry Pi 5

    7 parts1
  • 16 layers566.8 × 155.3 mmTotal, the printed circuit board in 3D

    Total

    michelkeijzers/fraxis

    This project's personal goal is to learn more about ESP32 with ESP-IDF programming.

    106 parts1MIT