Skip to content

Instantly share code, notes, and snippets.

View NT7S's full-sized avatar

Jason Milldrum NT7S

View GitHub Profile
@NT7S
NT7S / therm.py
Created May 18, 2014 09:45
Thermal Chamber
import usbtmc
import serial
import time
import sys
import math
temperature = 0.0
def printparams():
# Get the elapsed time
#include "si5351.h"
#include "Wire.h"
Si5351 si5351;
long a;
int inData;
void setup()
{
// Start serial and initialize the Si5351
@NT7S
NT7S / varicode.ino
Created March 11, 2015 18:48
Parse varicode
uint16_t varicode[] = {
0b1010101011000000, // 0 NUL
0b1011011011000000, // 1 SOH
0b1011101101000000, // 2 STX
0b1101110111000000, // 3 ETX
0b1011101011000000, // 4 EOT
0b1101011111000000, // 5 ENQ
0b1011101111000000, // 6 ACK
0b1011111101000000, // 7 BEL
0b1011111111000000, // 8 BS
@NT7S
NT7S / Si5351_LCD_VFO.ino
Created April 25, 2015 17:55
Basic Si5351 VFO for LCD
/*
Si5351 VFO
By LA3PNA 27 March 2015
This version uses the new version of the Si5351 library from NT7S.
see: http://arduino.cc/en/Reference/AttachInterrupt for what pins that have interrupts.
UNO and 328 boards: Encoder on pin 2 and 3. Center pin to GND.
Leonardo: Encoder on pin 0 and 1. Center pin to GND.
@NT7S
NT7S / si5351_test_jig.ino
Last active August 29, 2015 14:22
Si5351A Breakout Board Test Code
/*
* si5351example.ino - Simple example of using Si5351Arduino library
*
* Copyright (C) 2015 Jason Milldrum <milldrum@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
@NT7S
NT7S / k7qo-challenge.txt
Created June 20, 2015 23:14
K7QO issues a QRP kit challenge
Gang,
I am teaching a live CW course using my CD. Two weeks into the course.
About to get to the sending part. So, looking for several ways to get 27
students on the same page. Has to be cheap, they only paid $10 for the
course which goes into the club treasury and I don't charge a dime, as
I don't want to lose any one due to placing a hardship on their budget.
In 2002, Dave Benson K1SWL, came out with the Rock Mite. What?
@NT7S
NT7S / compile.txt
Last active September 29, 2015 17:52
JT65 Encoder in C
gcc jt65_encode.c encode_rs_int.c init_rs_int.c -o jt65_encode
@NT7S
NT7S / si5351abb_test.py
Created October 6, 2015 19:40
Si5351A Breakout Board test script
import socket
import serial
import time
import sys
import math
import phant
from datetime import datetime
import calendar
# ANSI escape codes for pretty printing
@NT7S
NT7S / pilife.py
Last active December 13, 2015 17:59
Very rudimentary Conway's Game of Life implementation. Now sets out a Life playing area 64 x 64 cells in the center of the world, along with a fancy retaining wall. Updates quite a bit faster than the last version since we are now only working on a small section of the whole world.
# pilife.py
#
# Jason Milldrum
# 18 Feb 2013
#
# www.nt7s.com/blog
import minecraft.minecraft as minecraft
import minecraft.block as block
import numpy
@NT7S
NT7S / hamqth.py
Last active January 3, 2016 14:59
Class to query HamQTH
import urllib
import urllib2
import xml.etree.ElementTree as ET
import datetime
class hamqth:
username = None
password = None
session_id = None
session_id_timestamp = datetime.datetime.now()