Skip to content

Instantly share code, notes, and snippets.

@bminer
bminer / range_sensor.py
Created May 21, 2018 15:25
Python Script for Raspberry Pi + HC-SR04 sensor to measure water level in a sump pit
#!/usr/bin/python
# Measure distance to water level in sump pit using
# HC-SR04 ultrasonic ranging module
# Sensor info:
# 2cm - 4m. range with ~3mm. accuracy, 15 degree measuring angle
# 5VDC, 15mA working current
# Suggestion in spec to connect ground before 5VDC line when hot plugging
# Measure surface area no less than 0.5 m^2 (really?)
@mortcanty
mortcanty / s1multitempclass.ipynb
Last active February 6, 2025 18:29
S1MultitempClass.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.