Skip to content

Instantly share code, notes, and snippets.

View darksidelemm's full-sized avatar

Mark Jessop darksidelemm

View GitHub Profile
@darksidelemm
darksidelemm / iq_transmit.grc
Created October 6, 2014 07:59
IQ Playback Flowgraph
<?xml version='1.0' encoding='ASCII'?>
<?grc format='1' created='3.7.5'?>
<flow_graph>
<timestamp>Mon Oct 6 18:28:35 2014</timestamp>
<block>
<key>variable</key>
<param>
<key>id</key>
<value>samp_rate</value>
</param>
@darksidelemm
darksidelemm / gist:4c4053fa83e58b7fb4d3ffc2c84b6dfc
Created August 24, 2017 10:19
Vaisala RS41 to STLINK/V2 Programmer
RS41 10-way 2mm pitch header
----------------------------
______________________| |______________________
| |
| 9 7 5 3 1 |
| |
| 10 8 6 4 2 |
|_______________________________________________________|
Running a 2m SatNOGS Ground Station? How about turning it into an APRS SatGate!
The idea is we tap off audio received by the fm_demod.grc flowgraph (compiled to satnogs_fm_demod.py) and feed this into Direwolf (an AFSK soundmodem). Direwolf runs constantly, and attempts to process received data whenever the FM demod flowgraph runs (which is basically for all observations except BPSK, APT, and CW). The CPU overhead of direwolf is minimal - I've been able to run it on a RPi3 without overruns.
MODIFICATIONS TO fm_demod.grc
-----------------------------
Edit fm_demod.grc in gnuradio-companion. If you're feeling masochistic, you can X-forward this from the ground station machine.
Add in a Float-to-Short Block, and a UDP sink.
Set the Float-to-Short block to have a scaling factor of 32767.
@darksidelemm
darksidelemm / gist:2a1fb385f6fc18566f3bcf29b4929053
Last active November 20, 2017 07:27
fake rigctld, for recording sat frequency data.
#!/usr/bin/env python
#
# Fake rigctld listener.
# Hacked together in 10 minutes.
#
# Mark Jessop <vk5qi@rfhead.net>
#
import socket
import datetime
@darksidelemm
darksidelemm / gist:d95a444a66268cb4e954c7982a60393a
Last active December 29, 2017 20:12
Setting up SatNOGS under Raspbian Stretch
UPGRADING RPI3 TO RASPBIAN STRETCH
-----------------------------------
Follow guide to upgrade from Raspbian Jessie to stretch:
https://linuxconfig.org/raspbian-gnu-linux-upgrade-from-jessie-to-raspbian-stretch-9
As of July 2017, Wifi will break when you upgrade.
Revert to an older wifi firmware using:
> wget http://archive.raspberrypi.org/debian/pool/main/f/firmware-nonfree/firmware-brcm80211_0.43+rpi4_all.deb
#!/usr/bin/env python
#
# FreeDV Sync Notification Script
#
from __future__ import print_function
import argparse
import smtplib
import socket
import sys
import time
@darksidelemm
darksidelemm / log_to_kml_fix.py
Created August 31, 2018 13:03
Test fix for log_to_kml.py from radiosonde_auto_rx
#!/usr/bin/env python
#
# Radiosonde Auto RX Tools
# Log-to-KML Utilities
#
# 2018-02 Mark Jessop <vk5qi@rfhead.net>
#
# Note: This utility requires the fastkml and shapely libraries, which can be installed using:
# sudo pip install fastkml shapely
#
@darksidelemm
darksidelemm / habitat_rs_search.py
Created November 3, 2018 08:26
Find Radiosonde-Related Payload Configuration documents within the Habitat DB.
#!/usr/bin/env python
#
# Habitat Radiosonde Cleanup Utility
#
# Mark Jessop 2018-11
#
# Search for payload configuration documents which have been automatically generated by
# radiosonde_auto_rx. Eventually, delete the ones that are older than X weeks.
#
import couchdb
#!/bin/bash
# STRF Cronjob Script
# Run with:
# rtl_capture.sh 437e6 10m
# Settings
FREQ=$1
RATE=2048e3
GAIN=32.8
WORKINGDIR=/home/pi/satobs
#include "Mouse.h"
#include <Encoder.h>
// Change these two numbers to the pins connected to your encoder.
// Best Performance: both pins have interrupt capability
// Good Performance: only the first pin has interrupt capability
// Low Performance: neither pin has interrupt capability
Encoder myEnc(2, 3);
// avoid using pins with LEDs attached