Tag Archives: programming

Amateur Radio VK callsign lookup

With a friends (thx darkrose) help last night you’ll have noticed that there is a ‘VK callsign lookup‘ search bar widget to the right. All it does is to make looking up callsigns from the ACMA websign little faster and lot less confusing. Anyways here is a copy of the code if you like to add it to your site.

HTML version:
With the HTML version you can type in the url bar for example search.html?callsign

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
<!--
function popupform(myform, windowname)
{
if (! window.focus)return true;
window.open('', windowname, 'height=480,width=800,toolbar=no,statusbar=no,scrollbars=yes');
myform.target=windowname;
return true;
}
//-->
</script>
</head>
<body>
<form action="http://web.acma.gov.au/pls/radcom/register_search.search_dispatcher" onSubmit="popupform(this, 'join')" method="POST">
	<input type="hidden" name="pSEARCH_TYPE" value="Licences" />
	<input type="text" name="pQRY" id="pQRY" />
	<input type="submit" value="Search" />
</form>
<script type="application/x-javascript">
window.onload = function() {
	var l = window.location.toString();
	var v = l.indexOf('?');
	if (v < 0)
		return;
	l = l.substr(v+1);
	if (l && l.length) {
		var v = document.getElementById('pQRY');
		v.value = l;
		v.parentNode.submit();
	}
}
</script>
</form>
</body>
</html>

WordPress version:

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
<!--
function popupform(myform, windowname)
{
if (! window.focus)return true;
window.open('', windowname, 'height=480,width=800,toolbar=no,statusbar=no,scrollbars=yes');
myform.target=windowname;
return true;
}
//-->
</script>
</head>
<body>
<form action="http://web.acma.gov.au/pls/radcom/register_search.search_dispatcher" onSubmit="popupform(this, 'join')" method="get">
        <input type="hidden" name="pSEARCH_TYPE" value="Licences" />
        <input type="text" name="pQRY" id="pQRY" />
	<input type="submit" value="Search" />
</form>
</body>
</html>

Wouxun KG-UVD1P Dual Band HT

I bought one of theses Wouxun dual band HT off of eBay a month back for bit over 100USD which amounted to around 99AUD. The unit didn’t come with any extras like 1700mA battery or USB programming cable as sold by others on eBay.

Down side is the HT is pita to program off of the keypad till you get used to it, altering power setting etc to a channel already saved is a pain as you have to delete the channel and re enter it. I ended up buying a USB programming cable off of eBay for the HT and it makes the programming of the HT a lot easier and faster. The other is the SMA Female antenna connection, as if you want to use a external antenna you have to make or buy SMA female to BNC female adapter, which are also sold on eBay for couple dollars each.

As I use Linux, I have been lucky as there is a Linux program called OWX, which is a command-line program for programming the KG-UVD1P and others. As I didn’t do the make install part of the compile/install of the OWX program, here is an example of how I use the program to do what is explained in the OWX documentation.

./owx -c check -p /dev/ttyUSB0
./owx -c get -p /dev/ttyUSB0 -o radio/original.bin
cp radio/original.bin radio/backup.bin
./owx -c export -i radio/original.bin -o vk5-repeater-list.csv
cp radio/original.bin radio/vk5-repeater-list.bin
./owx -c import -i radio/vk5-repeater-list.csv -o radio/vk5-repeater-list.bin
./owx -c put -p /dev/ttyUSB0 -i radio/vk5-repeater-list.bin -r radio/backup.bin

Overall the Wouxun KG-UVD1P is a rather good and not bad for the monies, feels sturdy and comfortable to use, it be a good starting out HT for beginners to Amateur Radio. I would also recommend if getting this HT to get it with the USB cable and the 1700mA battery.

References:
Programming the Wouxun KG-UVD1P – this make programming the from the keypad a lot easier to understand well worth the read.
Open Wouxun (OWX) – Linux command-line program
VK5 2M/70CM repeater list for KG-UVD1P – CVS file to used with OWX

Arduino powered weather station

This is the starting of my Arduino powered weather station. Thus far we using a Freetronics Eleven (Arduino Uno Compatible) from Jaycars, DFRobot LCD Keypad Shield(Clone off of eBay), and DFRobot LM35 Temperature sensor from Little Bird Electronics. I also have a SDcard module to add for data logging so that can be output to a webpage via gnuplot.

I am going to be adding more to it as I can afford to get items needed, like Humidity, barometric/temperature sensors, bigger LCD and RTC.

Here is some of the current code

// include the library code:
#include <LiquidCrystal.h>
#define aref_voltage 3.3

// initialize the library with the numbers of the interface pins of the DFRobot LCD Keypad shield
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
//Connect LM35 on Analog
int sensorPin = 1;
int sensorTemp;

void setup() {
  // set up the LCD's number of columns and rows
  lcd.begin(16, 2);
  // initialize the serial communications
  Serial.begin(9600);
  analogReference(EXTERNAL);
}

void loop() {
  sensorTemp = analogRead(sensorPin);
  float volt = sensorTemp * aref_voltage;
  volt /= 1024.0;
  float tempC = volt * 1000;
  //Display the temperature on Serial monitor
  Serial.print("Temp:");
  Serial.print(tempC);
  Serial.println("°C");
  delay(500);
  //Display the temperature on LCD   
  lcd.clear(); //clear LCD screen
  lcd.setCursor(0,0);
  lcd.print("Current Temp.");
  lcd.setCursor(0,1);
  lcd.print((long)tempC / 10); //value from analog corresponding to temperature
  lcd.print(".");
  lcd.print((long)tempC % 10);
  lcd.print((char)223); //magic char. # for °
  lcd.print("C");
  delay(1000);
}

If you like my work check out my current wish list @ Sparkfun ;-)