🪔 Diwali Break: Orders placed now will ship from 25th November 2026. Place your order today — we'll get it to you right after we're back!
Project Hub /Test & Measurement Instrumentation/Sensors & Signal Measurement Tools/How to Make a Portable Ultrasonic Digital Ruler using ATtiny85
How to Make a Portable Ultrasonic Digital Ruler using ATtiny85
Advanced
ATTINY85
Project Specific
3 – 6 Hours
Partial Kit

How to Make a Portable Ultrasonic Digital Ruler using ATtiny85

Build a compact, portable digital measuring device using an ATtiny85 microcontroller, HC-SR04 ultrasonic sensor, and an I2C OLED display on a custom PCB.

Originally published on CircuitDigest
View original tutorial

Parts You'll Need

This project is sourced from another site, not written by us — this list is our best match of their components against what we stock, not a verified bill of materials. Always check the original blog (linked above) for the actual parts list before buying.

This list includes a generic resistor set as a placeholder — it is not matched to the exact value or part number this circuit needs. The correct one is specified on the original source page linked above; check it before buying.

We don't carry yet: ATtiny
Capacitors
9V Battery + Snap
Custom PCB / PCB Fab

Browse all components

How It Works

Why Build This

Design and deploy a custom PCB integrating power regulation, sensor interfacing, and low-pin-count microcontroller programming.
Implement I2C communication protocols on a resource-constrained ATtiny85 architecture using specialized libraries.
Develop practical contactless measurement systems applicable to undergraduate robotics, automation, and assistive technology engineering.

Real-World Application

Distance measurement, robotic obstacle avoidance, contactless automated measurement tools, and assistive technology aids like blind walking sticks.

Skills You'll Learn

Microcontroller firmware development
I2C serial communication
ultrasonic time-of-flight distance calculation
linear voltage regulation
custom PCB design and integration

Safety Precautions

No specific precautions noted for this build — always follow general electronics safety practices.

Technology Tags

ATTINY85
HC-SR04
ULTRASONIC SENSOR
OLED DISPLAY
PCB DESIGN
I2C
ARDUINO IDE
C++
EMBEDDED SYSTEMS

Frequently Asked Questions

No, the ATtiny85 lacks native USB communication hardware, so you will need an external programmer or an Arduino configured as an ISP to upload your code through the Arduino IDE.
The 9V battery provides a voltage higher than the maximum rating of the ATtiny85, HC-SR04, and OLED display, so the regulator safely steps it down to a stable 5V to protect the components.
The ATtiny85 does not have built-in hardware TWI/I2C pins in the same way standard Arduino boards do, so TinyWireM provides a specialized USI-based implementation for I2C communication on the ATtiny.

Gallery

This page is part of Kitkraft's Project Hub — a curated collection of electronics & robotics projects gathered from the maker community to help students and hobbyists discover and learn to build. Kitkraft does not claim authorship of the original project, and makes no representation as to the accuracy, completeness or safety of third-party source material. The summary and "How It Works" explanation above are AI-generated, rewritten with reference to the original tutorial — not a reproduction of it. Full credit and a direct link to the original source are provided above. If you're the original creator and have a concern about how your work is represented here, please contact us and we'll address it promptly.

Kitkraft Project Hub — curated from the maker community, credited at the source.
PRJ-00422