Skip to content

Instantly share code, notes, and snippets.

View jmvh's full-sized avatar

Jussi Hynninen jmvh

View GitHub Profile
@tdack
tdack / SharpIR.py
Last active July 20, 2022 07:55
Python object for Sharp 2Y0A21 InfraRed distance sensor (and similar). Includes calibration routine to calculate the coefficient and power for the distance equation
#!/usr/bin/python
import Adafruit_BBIO.ADC as ADC
from time import sleep
import sys
#
# For the BeagleBone Black the input voltage has to be 0-1.8V
# The easiest way is with a voltage divider
#
# Ra Rb
@wsargent
wsargent / docker_cheat.md
Last active June 29, 2024 19:32
Docker cheat sheet