Friday, February 1, 2019

GPS Tracker with Pi and UV-5R

I wanted to build a cheap, easy APRS tracker with a Raspberry Pi and a Baofeng radio. Fortunately someone already did and left a trail behind! (Thanks to "Midnight Cheese" blog for the bulk of the details. The blog appears dead, so I copied much of the info here to maintain it.)

Setting up GPS

A simple USB GPS receiver will do just fine for this project. I'm using an old Microsoft USB GPS. In order for the Pi to read the GPS data we'll install gpsd.

sudo apt-get install gpsd gpsd-clients

Setting up the local web server

The main PHP script will read the gpsd information through a JSON file. We'll need to install apache and PHP to serve the JSON file locally.
sudo apt-get install apache2 -y
sudo apt-get install php5 libapache2-mod-php5 -y
Drop this file from the gpsd project into the web server directory, /var/www/ and name it gpsd.php

Execute gpsd.php from the command line to build a needed configuration file.
cd /var/www
sudo php gpsd.php
If you open a web browser on your Pi and navigate to http://localhost/gpsd.php?

Tuesday, May 22, 2018

Building an HF-VHF Go Box

I've been wanting to build a go box with HF and VHF capabilities. I wanted something that I could use on a daily basis, but then pack and go quickly if I needed too.

After lots of research, I settled on a design similar to KC6TYD's design (which is very popular!) and got a TON of inspiration from this guy. I went with a Gator case with space 6-U.

I've decided to include a power supply but eventually will build a separate "power box" with options for battery, solar, and commercial mains.

I've included my FT-991 and FTM-400xDE (yes, the European version which I bought from a silent key). Also included a Jetstream power supply and an MFJ tuner along with a Wires-X controller. I put a 1-U drawer at the bottom and a Power-Pole distribution strip in the back.

Still tweaking but it works well and I am enjoying it!

Thursday, April 19, 2018

Compiling new version of Flmsg

When using the built-in repositories, the newest Flmsg on Ubuntu was 2.0..something. I needed at least 4.0.6 so I had to build it from the source. I followed the instructions included in the README.txt file with a couple of additions.

1. sudo apt-get install fltk1.3 - I needed the fast light kit 1.3. Some was already installed, but additional files were needed.

2. sudo apt-get install libsamplerate0 - But this was already the newest version, so I was good.

After the make and sudo make install, Flmsg worked!

Wednesday, March 14, 2018

New APRS Node up!

So I've finally deployed the APRS node for full time use at the local Sheriff's department. The node was built on a RaspberryPi 3 connected to my Icom 8000 with a Signalink Interface. It's running Direwolf 1.4 for both digipeater and iGate functions.

I sent some time getting it configured to pass traffic back and forth between the RF channel and the Internet. I used a couple of local filters to only pass items within an 80km radius of downtown Henderson.  I let the unit run 24/7 at my house for about a month just to make sure it was stable and reliable. I had good results with it.

The whole unit was going to the SO, so I wanted a package that was compact and neat looking. The Pi also including the Adafruit 2.8 touch screen which I picked up from Fry's about a year ago for $35. A trip to Lowes led me to an $11 outdoor junction box. I cut a whole for the screen and mounted the Signalink and the Pi inside so they wouldn't move around. I routed the cables through a hole I drilled in the back.

I mounted the radio on top using the stock mounting bracket. I left a USB keyboard dongle in the Pi so I can used a miniature keyboard (made for use with a TV set-top box) as an input.

The biggest hurdle was trying to find a way to log into the Pi once it was deployed. It would be behind a firewall on a guest Wifi network. I eventually found ngrok (thanks to my brother-in-law). Ngrok is a small program that facilitates the tunneling of a variety of services to ngrok's servers. Then I can connect to ngrok and track back to my Pi. The basic level of service is free and plenty for my needs.

I deployed the unit and its been working great. From my home or office I can log in, update, restart or reconfigure it as needed!

Friday, May 27, 2016

Cell phones cause cancer...Uh?

UPDATE: The Wall Street Journal has published a more balanced (although not completely hysteria-free) article on the study.

Cancer from RF? Buckle your seatbelts folks because the roller coaster is just getting started. Like an early teaser trailer for an upcoming blockbuster movie, the first few details from a new study looking for a connection between radio waves and cancer were released this week. The headline screamed the sensational claim: “'Game-Changing' Study Links Cellphone Radiation to Cancer”. However, what the study actually found may be far from settled.

First, let me say I have a great interest in this topic. Not only am I an amateur radio operator who uses relatively high powered RF devices on a frequent basis, I also lost a close friend (and former boss) to brain cancer. Although he was just 37 when he died, he had already spent many years using early model cell phones and other equipment in the broadcast radio industry where he, no doubt, was exposed to much higher levels of RF than the average citizen.

Do I want there to be link between RF exposure and cancer? No, absolutely not. However, do I want to find a away to prevent the cruel decline and death that my friend and his family endured? Absolutely. Let's be absolute in both cases.

Let's take a look at the study's report and dig through some of the findings.

First, the report is NOT a complete report on the study. According to its authors, it only “presents partial findings” of the study and notes that analysis of the complete data is still being conducted. The

Tuesday, April 26, 2016

Winlink on Raspberry PI

I've been wanting to find a way to check my Winlink using my Raspberry Pi. I was not too familiar with AX.25 and all of its workings, so this was an education process from the start.

I'm using a Pi 2 running Raspbian Jessie, along with Direwolf, a Singalink and a Baofeng UV-5R. I maintain a 1200 baud packet RMS Gateway at our our local Office of Emergency Management.  Here's the steps I took, with great thanks to Andrew's Memory Blog who was doing something similar.
  1. Connect the radio to the Pi. In my case, I had a spare Signalink which I used. I built an audio cord from half of an old Baofeng earpiece and some Cat5 cable.
  2. Update your Pi with: 'sudo apt-get update' and then 'sudo apt-get upgrade' 
  3. Download and build Direwolf. Instructions for doing so on a Pi are here. These instructions are for an iGate, but the basics of getting direwolf on the Pi come straight from the software author and as great. 
  4. Configure Direwolf with your callsign and sound card. The file to edit is direwolf.conf, found in the installation directory. VERY IMPORTANT: This tripped me up even AFTER reading this. Be sure to avoid the  “# ADEVICE – plughw:1,0” line. It looks a lot like the correct “ADEVICE  plughw:1,0” line, but takes input from stdin instead of the sound card. Uncomment the one WITHOUT the dash in the middle of it. 
  5. Install AX25. Next: sudo apt-get install ax25-tools ax25-apps libax25-dev libncurses5-dev
  6. Edit /etc/ax25/axports and set one line to:  radio  mycall 1200 255 2 VHF
  7. Make sure all the other lines in axports have # in front of them (it doesn’t like blank lines).
  8. Run “direwolf -p” to get the KISS port. It will show up as something like /dev/pts/2. Once it’s running, move to another terminal window

Wednesday, April 13, 2016

Rasp Pi crash causes outage

Well, I had a Raspberry Pi crash on me earlier today. It happened to be the one serving as a data bridge for my new weather station. This $35 computer's single purpose is to take data from the station and upload it to the Internet. Unfortunately, the boot partition on the system's SD card suddenly corrupted on me. It took a little work, but I was able to install a new OS and we are back in business!

I am now, once again, uploading data to several weather sites including: Weather Underground (KTXHENDE9), WeatherCloud (cool new site), WeatherBug and the Citizens' Weather Program (via Amateur Radio). There is also this cool display.

The whole process has been a fun experience, especially learning the ins and outs of weewx, the program that handles the weather data. It's a native Linux program and runs very well, even on a relatively old RasPi B+.

For those interested, you can view the raw APRS packets sent here as well as a nice table of weather data here.