Skip to content

Instantly share code, notes, and snippets.

View sdp8483's full-sized avatar

Sam Perry sdp8483

View GitHub Profile
@sdp8483
sdp8483 / vase_box.scad
Created April 27, 2021 22:43
3d printed box with textured side for strength when printing in vase mode
$fn=50;
x_dim = (5.625 * 25.4) / 2;
y_dim = 2.365 * 25.4;
height = 1.625 * 25.4;
radius = 0.375 * 25.4;
corrugated_width = 4.5;
corrugated_depth = 1.5;
@sdp8483
sdp8483 / train_horn_hold.c
Created March 3, 2018 18:34
train horn project code for embedding into website. See github repo for up to date code.
//******************************************************************************
// MSP430FR2000 - Train Horn Hold To Play
//
// Description: Toggle pins at multiple frequencies using only TimerB,
// mimic train horn for silly reasons.
// P1.5 toggles using CRR0 and software. P2.0 and P2.1 toggle using CCR1 and CCR2
// Button on P1.1 enables frequency generation while held low
// 1.2 VREF+ output on pin 1.7 to connect to external comparator for LiPo voltage monitor,
// could not get MSP430 internal comparator to work
//