Pico Ruler

What is it?

A Raspberry Pi Pico microcontroller based ultra sonic digital tape measure with various display options.

  • Raspberry Pi Pico-W
  • 1.3" SPI Round LCD Screen (240x240)
  • Ultrasonic Sensor - HC-SR04

Piccy

How did I make it?

  1. Wiring diagram
  2. Solder the wires
  3. Design a 3D printed holder
  4. Put it together
  5. Code the microcontroller using MicroPython
  6. Try and fit everything in the 80k of free RAM

Measuring distance with sound

def measure(self) -> Distance: """Measure the distance to an object""" self.trigger.low() utime.sleep_us(2) self.trigger.high() utime.sleep_us(5) self.trigger.low() while self.echo.value() == 0: signaloff = utime.ticks_us() while self.echo.value() == 1: signalon = utime.ticks_us() timepassed = signalon - signaloff self.distance = Distance((timepassed * self.speed_of_sound_cm_per_us) / 2) return self.distance

Future development

None planned, but it does need an outer case.

Last activity
7 months ago
Created
Sep 09, 2023
Updated
Oct 04, 2023

construction Skills used

sync Loading data from Github...

Project Development

  • star 0 stars
  • visibility 0 watchers
  • Created:
  • Updated:
  • Pushed:

task Tasks

compare_arrows Pull Requests

Open

Closed