Skip to content

About

Open-Source DIY Laser Angle Meter (Laser Level) — Arduino Nano, MPU6050 & OLED Display | Humanix AL100

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Humanix LA100 — Laser Angle Meter

A handheld digital inclinometer with an integrated laser alignment reference.

Status Platform License

📺 Watch the build

🎥 Watch the Complete Build Video

Watch on YouTube

Click the thumbnail above to watch on YouTube.


Project Overview

The Humanix LA100 is a handheld digital laser angle meter: a laser alignment tool combined with a real-time digital inclinometer. It measures tilt using an MPU6050 accelerometer, projects a cross-shaped laser line for physical alignment, and displays the angle, a moving pointer graphic, battery percentage, and internal temperature on a 1.3" I2C OLED.

It's built entirely from off-the-shelf modules (Arduino Nano, MPU6050, OLED, laser module, 18650 LiPo cell), but is deliberately engineered and finished — via a hand-applied vinyl skin over a hand-cut PVC enclosure — to look and behave like a manufactured instrument rather than a breadboard project.

Who it's for: DIY makers, students, and hobbyist engineers — and, by application, civil engineers, mechanical engineers, and industrial maintenance technicians who need a fast, visual way to check or transfer an angle.

What problem it solves: checking or transferring an angle normally means choosing between an analog bubble level (fast, cheap, but imprecise, no beam reference) and a laser level or digital inclinometer (precise, but rarely combining a laser reference and a digital angle readout in one affordable handheld unit). The LA100 puts both in a single low-cost tool.


Key Features

  • 📐 Real-time digital angle readout (MPU6050 accelerometer)
  • ✚ Cross-shaped laser alignment reference
  • 🔒 One-button, three-behavior UI — single press to hold/lock, double press to toggle whole-degree/decimal precision, long press to recalibrate
  • 🧮 13-point guided factory calibration wizard (Welford's running mean/variance, per-point stability retry)
  • 💾 EEPROM-persisted calibration — survives power cycles, no re-zeroing on every boot
  • 🔋 Battery percentage via a two-resistor voltage divider
  • 🌡️ Internal temperature readout (MPU6050's onboard sensor)
  • 🖥️ Custom-drawn OLED icons (lock, level-check, thermometer, direction chevrons) and a boot sequence styled like a product power-on
  • 🛡️ Graceful "NO SENSOR" degradation instead of freezing if the MPU6050 fails to respond
  • 🎨 Hand-applied vinyl eco-print skin over a PVC enclosure — a "manufactured instrument" look without 3D printing

Why This Project Exists

Most DIY MPU6050-based angle-meter projects are functionally complete but visually and procedurally unfinished — bare PCBs, exposed wiring, single-sample "calibration," and no enclosure. The LA100 tests how close a maker without access to a 3D printer or professional fabrication tools can get to a "real product" experience, using only low-cost, widely available materials and disciplined process.

The underlying argument: process and finish are engineering, not decoration. Splitting calibration from firmware, persisting calibration properly, restraining the UI to one button, and treating enclosure finish as a design problem are what closes the gap between "DIY project" and "product" — not more expensive components.


Demo

Watch the Humanix LA100 build video

Unit — laser active, level Unit — live angle reading
Unit — front, level display Internal assembly

⚠️ Laser safety: never point the beam at eyes or into a camera sensor.


Hardware Used

Component Purpose Reason Selected
Arduino Nano Main controller Small footprint, widely available, enough flash/RAM once firmware was trimmed
MPU6050 Angle sensing + internal temperature Cheap, well documented; accelerometer alone is sufficient for a static/quasi-static reading; removes need for a separate thermometer
1.3" I2C OLED Display Low cost, low power, enough resolution for a large angle readout plus icons; shares the I2C bus with the MPU6050
Grid-type (cross) laser module Physical alignment reference The project's core differentiator vs. a plain digital inclinometer
TP4056 (Type-C) LiPo charging Off-the-shelf, standard safe charging, modern connector
18650 2500mAh LiPo cell Power source Reusable, high capacity-per-cost for extended handheld sessions
XL6009E1 boost converter Steps ~3.7V battery up to ~5.5V 5V-rail parts need more than raw LiPo voltage; 5.5V gives deliberate headroom as the battery sags under load
2× 100kΩ resistors Battery voltage divider → A7 Battery percentage without a dedicated fuel-gauge IC
Pushbutton (mode) Single multi-behavior control One button, three behaviors — avoids a multi-button/menu UI
On/off switch Power control Simple, reliable, no reliance on firmware sleep states

Full BOM with approximate pricing: Hardware/README.md. Full alternatives/limitations/future-improvement detail: Documentation/Humanix_LA100_Master_Documentation.md, Section 8.


Software

  • Language: C++ (Arduino)
  • IDE: Arduino IDE
  • Libraries used by the sketches: Wire.h, U8g2lib.h, math.h (MPU6050 communication is done via raw Wire register access rather than the MPU6050/I2Cdev libraries — see below)
  • Firmware: two synced sketches — see Firmware/

How It Works

  1. The MPU6050's accelerometer measures gravity direction relative to the device.
  2. That reading is compared against a stored calibration reference to compute a tilt angle.
  3. The angle passes through an adaptive three-tier smoothing filter (fast filtering for large jumps, medium for mid-range jumps, slow/steady for jitter under 2°) with a small deadband that snaps near-zero noise to a clean 0°.
  4. The result is drawn on the OLED alongside a moving pointer graphic, battery percentage, and internal temperature, while the laser module projects a physical cross-reference line.
  5. A single button covers all interaction: single press holds/locks the current reading, double press toggles whole-degree vs. one-decimal precision, and a long press (5s) triggers Smart Calibration, which is written to EEPROM immediately and reloaded automatically on every future boot.

Engineering Decisions

Why this hardware? Every component was chosen to solve a stated constraint rather than for convenience — e.g., the MPU6050's internal temperature sensor removes the need for a separate thermometer, and the two-resistor divider replaces a dedicated battery-gauge IC. Full component-by-component rationale, including rejected alternatives: Master Documentation, Section 8.

Why this firmware architecture? The project ships two synced sketches (calibration wizard + production firmware) instead of one, so hardware bring-up (I2C address discovery, axis orientation, noise characterization) is never repeated per build. Fitting the feature set into the Nano's 32KB flash / 2KB SRAM required removing the MPU6050/I2Cdev libraries for raw Wire register access, moving all labels to PROGMEM, and running the OLED driver in page-buffer mode. Full detail: Master Documentation, Section 9.

Why this manufacturing method? No 3D printer was available, so the enclosure is hand-cut PVC sheet, finished with a custom-designed, hand-applied vinyl eco-print skin rather than left bare or spray-painted. Full detail, including honestly-reported finish limitations: Master Documentation, Section 12.

Why this user interface? A single multi-behavior button (single/double/long press) was chosen over multiple buttons or a menu system to keep both the enclosure and the interaction model simple. Full detail: Master Documentation, Section 13.


Project Structure

Humanix-LA100/
├── Firmware/          # Two synced Arduino sketches (calibration wizard + production firmware)
├── Hardware/           # Wiring diagram, BOM, enclosure dimensions
├── Documentation/       # Master engineering documentation + project analysis report
├── Images/             # Circuit diagram, internal assembly, unit photos
├── CAD/                 # No CAD files in this revision — see CAD/README.md
└── Calibration/          # Calibration workflow documentation

Installation

Hardware setup

  1. Wire the components according to Hardware/circuit_diagram.png and the pin summary in Hardware/README.md.
  2. Double-check the MPU6050 and OLED are both on the shared I2C bus (SDA → A4, SCL → A5).

Software setup

  1. Install the Arduino IDE.
  2. Install the U8g2 library via the Arduino Library Manager (Sketch → Include Library → Manage Libraries → search "U8g2").
  3. Select Arduino Nano as the board and the correct COM port.

Uploading firmware

  1. Open and upload Firmware/Humanix_AL100_FactoryCalibration.ino first, and complete the 13-point calibration wizard.
  2. Open and upload Firmware/Humanix_AL100_Firmware.ino for normal use.

Full step-by-step rationale: Firmware/README.md.


Usage

  • Power on: the device shows a boot/loading sequence, then automatically loads a saved calibration (or runs a first-boot flat-surface quick average if none exists yet).
  • Reading the angle: aim the laser cross at your reference; the OLED shows the live angle, a center "+"-mark and pulse ring at dead-level (0°), and a moving dot/pointer when off-level.
  • Hold a reading: single press the mode button (lock icon appears).
  • Toggle precision: double press the mode button (whole-degree ↔ one-decimal display).
  • Recalibrate (Smart Calibration): long press the mode button (5s) — the new zero reference is saved to EEPROM immediately.
  • Charging: connect a Type-C cable to the TP4056 module.
  • Safety: never point the laser beam at eyes or into a camera sensor.

Testing

  • Calibration accuracy: validated through the 13-point wizard (3 flat/neutral references, 5 right-tilt, 5 left-tilt), each point averaging 150–200 samples with running mean/variance rather than single-sample capture; unstable points are automatically discarded and retried.
  • Power/battery: battery percentage derived from the voltage divider, averaged over multiple ADC samples to reduce power-on noise.
  • Real-world testing: demonstrated in both a dark room (laser cross visibility) and normal lighting; the angle screen was tested live while tilting the handheld unit.
  • Known limitations:
    • No long-term or comparative field-accuracy data has been collected yet.
    • A long press aborts an in-progress 13-point calibration session with no confirmation or resume — see Calibration/README.md.
    • Hand-applied vinyl skin shows visible imperfections at corners/edges/joints up close, despite a good result at typical viewing distance (5–10m).

Future Improvements

  • Version 2 hardware: access to a 3D printer for tighter tolerances and a smaller enclosure.
  • Version 2 firmware: a guarded/confirmation-based abort for the calibration wizard, to prevent accidental loss of an in-progress session.
  • Possible future firmware: using the MPU6050's onboard gyro channel for short-term motion smoothing; further reducing accidental long-press aborts.
  • Future AI integration: the calibration wizard's Serial config-block output is already designed to be handed to an AI assistant for merging into the firmware — a workflow the project intends to build on further.

Contributing

This is an open-source hardware/firmware project from Humanix Tech Lab. Contributions, issues, and pull requests are welcome — particularly around the documented known issues (calibration-abort guard, field-accuracy data, enclosure fixturing). Please open an issue before submitting a large change so it can be discussed first.


License

Information not yet available. A license has not yet been selected for this repository — check back, or open an issue if you'd like clarity before building on this project.


Author

Humanix Tech Lab


Support

  • GitHub Issues: open an issue in this repository for bugs or hardware questions.
  • Discussions: use the repository's Discussions tab for general questions and build variations.
  • Email: placeholder — not yet published

Acknowledgements

Enclosure finish designed with AI-assisted iteration across 100+ prompt refinements for symbols, icons, branding text, and model naming (see Master Documentation, Section 12).


⚠️ Laser safety notice: this device contains an active laser module. Never point the beam at eyes or into a camera sensor. This warning applies to all use, demonstration, and photography of the device.

About

Open-Source DIY Laser Angle Meter (Laser Level) — Arduino Nano, MPU6050 & OLED Display | Humanix AL100

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages