Skip to content

Instantly share code, notes, and snippets.

@Tschucker
Tschucker / attiny85_fuel_gauge.ino
Created June 17, 2022 20:39
battery voltage monitor for attiny85 arduino
#define MAX_V 1023
#define STEP_V 38
int voltage = 0;
void setup() {
pinMode(0, OUTPUT); //P0
pinMode(1, OUTPUT); //P1
@Tschucker
Tschucker / aerochrome_emulation.ipynb
Created February 15, 2022 17:11
Python Aerochrome film emulation image processing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Tschucker
Tschucker / nrf24l01_badge_code.py
Created January 18, 2022 01:02
nrf24l01 CircuitPython badge test
#NRF24L01 CircuitPython Badge Test
import board
import neopixel
import time
import struct
from adafruit_pybadger import pybadger
from digitalio import DigitalInOut
from circuitpython_nrf24l01.rf24 import RF24
# set this to 0 or 1 for the two badges
@Tschucker
Tschucker / list_compression.ipynb
Created October 24, 2021 23:38
compress score list analysis
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from PIL import Image
from random import randint
import random
import os
def full_random_image():
image_name = random.choice(os.listdir("images"))
asset_image = Image.open("images/"+image_name)
@Tschucker
Tschucker / simple_topo_rf_propagation.m
Created August 15, 2021 18:24
Matlab Topographic RF Propagation Example
%% RF Propagation Simulation
%Tom Schucker
%% Set Custom Terrain
%terrain file (download from https://earthexplorer.usgs.gov/)
dtedfile = "n37_w122_1arc_v3.dt2";
%data attribution
attribution = "SRTM 3 arc-second resolution. Data available " + ...
"from the U.S. Geological Survey.";
%Tom Schucker
clear;
%%
c = 3e8; % Speed of light
M = 16; % Number of antennas in ULA
A = 2; % Amplitude of the desired signal
f = 2.4e9; % frequency in Hz
lambda = c/f; % Wavelength of desired signal
@Tschucker
Tschucker / color_scopes.ipynb
Created March 21, 2021 02:22
Color Scope plots using python and jupyter notebooks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.