Skip to content

Instantly share code, notes, and snippets.

View la3pna's full-sized avatar

Thomas S. Knutsen la3pna

  • HBV / HIVE
  • Drammen, NORWAY
View GitHub Profile
exp(-((x-4)^2+(y-4)^2)^2/1000) + exp(-((x+4)^2+(y+4)^2)^2/1000) + 0.1exp(-((x+4)^2+(y+4)^2)^2)+0.1exp(-((x-4)^2+(y-4)^2)^2)
@la3pna
la3pna / Si5351_VFO
Last active November 17, 2019 06:17
Si5351 generic VFO
/*
Si5351 VFO
By LA3PNA 27 March 2015
Modified 14 February 2017
Modified 28 November 2018
This code is licenced with GNU GPL v2. Please read: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
This version uses the new version (v2) of the Si5351 library from NT7S.
@la3pna
la3pna / i2c_Si_VFO
Last active May 7, 2024 11:23
Si5351 VFO with I2C display
/*
VFO program for Si5351
Using I2C LCD from:
http://www.amazon.com/Huhushop-TM-Serial-Display-Arduino/dp/B00JM88A94/
Si5351 library from NT7S.
Uses the updated version of the library (master).
Display library is avaible from:
https://code.google.com/p/u8glib/
1 1.000000E+06
2 2.000000E+06
3 3.000000E+06
4 4.000001E+06
5 5.000001E+06
6 6.000001E+06
7 6.934126E+06
8 8.000001E+06
9 9.000001E+06
10 1.0000001E+07
Parts for the arduino course / nice to have in a starter kit
Arduino Leonardo (1)
Arduino UNO SMD (1)
Breadboard (1)http://www.ebay.com/itm/251335522739 or
Wires M/M (100?) http://www.ebay.com/itm/271520365327
Wires M/F (100?)
@la3pna
la3pna / Si5351_i2c_mod
Last active January 16, 2019 08:31
Si5351 VFO I2C
/*
VFO program for Si5351
Using I2C LCD from:
http://www.amazon.com/Huhushop-TM-Serial-Display-Arduino/dp/B00JM88A94/
Si5351 library from NT7S.
Uses the updated version of the library (master).
Updated with the format_freq routine from Tom AK2B
This code is licenced with GNU GPL v2. Please read: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Serial.println(u8g.getMode());
u8g.setRGB(255,255,255);
u8g.drawStr( 66, 0, "white?");
u8g.setRGB(0,0,0);
u8g.drawStr( 100, 0, "Invert?");
/*
VFO program for Si5351
Using I2C LCD from:
http://www.amazon.com/Huhushop-TM-Serial-Display-Arduino/dp/B00JM88A94/
Si5351 library from NT7S.
Uses the updated version of the library (master).
Updated with the format_freq routine from Tom AK2B
Display library is avaible from:
https://code.google.com/p/u8glib/
//U8GLIB_SSD1306_128X64 u8g(13, 11, 10, 9); // SW SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9
//U8GLIB_SSD1306_128X64 u8g(4, 5, 6, 7); // SW SPI Com: SCK = 4, MOSI = 5, CS = 6, A0 = 7 (new white HalTec OLED)
//U8GLIB_SSD1306_128X64 u8g(10, 9); // HW SPI Com: CS = 10, A0 = 9 (Hardware Pins are SCK = 13 and MOSI = 11)
//U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE|U8G_I2C_OPT_DEV_0); // I2C / TWI
//U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_DEV_0|U8G_I2C_OPT_NO_ACK|U8G_I2C_OPT_FAST); // Fast I2C / TWI
//U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NO_ACK); // Display which does not send AC
//U8GLIB_SSD1306_ADAFRUIT_128X64 u8g(13, 11, 10, 9); // SW SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9
//U8GLIB_SSD1306_ADAFRUIT_128X64 u8g(10, 9); // HW SPI Com: CS = 10, A0 = 9 (Hardware Pins are SCK = 13 and MOSI = 11)
//U8GLIB_SSD1306_128X32 u8g(13, 11, 10, 9); // SW SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9
//U8GLIB_SSD1306_128X32 u8g(10, 9); // HW SPI Co
@la3pna
la3pna / books.txt
Last active November 8, 2015 17:49
Technical bookshelf content
From top, left to rigth.
shelf A:
MIT RAD-LAB 23 Microwave receivers
MIT RAD-LAB 21 Electronic instruments
MIT RAD-LAB 16 Microwave mixers
MIT RAD-LAB 10 Waveguide handbook
Tekniske Regnetabeller 1949 (Smeby)
Tekniske Regnetabeller 1961 (Smeby og kobberstad)