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
How did I make it?
- Wiring diagram
- Solder the wires
- Design a 3D printed holder
- Put it together
- Code the microcontroller using MicroPython
- 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
1 year 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: