Skip to content

Instantly share code, notes, and snippets.

View sam210723's full-sized avatar

Sam sam210723

View GitHub Profile
@sam210723
sam210723 / Makefile
Last active April 2, 2021 07:42
Install IceStorm + Yosys + NextPNR + RISC-V toolchain + TinyFPGA PicoSoC Example
upload: hardware.bin firmware.bin
tinyprog -p hardware.bin -u firmware.bin
build: hardware.bin firmware.bin
echo "Complete"
hardware.blif: hardware.v spimemio.v simpleuart.v picosoc.v picorv32.v
yosys -ql hardware.log -p 'synth_ice40 -top hardware -json hardware.json' $^
"""
false-colour.py
https://github.com/sam210723/himawari-rx
Generates false colour images from multiple grayscale channels
"""
import argparse
import colorama
from colorama import Fore, Back, Style
@sam210723
sam210723 / tsduck-himawari.sh
Last active March 23, 2022 00:17
Demodulate HimawariCast carrier with TSDuck and handle Multi-Protocol Encapsulation wrapping
tsp -I dvb --device-name /dev/dvb/adapter0:1 --lnb 5150 --delivery-system "DVB-S2" --frequency 4148000000 --modulation QPSK --symbol-rate 2586148 --fec-inner "3/5" --roll-off 0.2 --polarity "horizontal" -P mpe --pid 0x03E9 --udp-forward --log -O drop
@sam210723
sam210723 / README.md
Last active July 18, 2020 03:48
Debian systemd service for xrit-rx

Debian systemd service for xrit-rx

  1. Download xrit-rx.service
  2. Edit WorkingDirectory in xrit-rx.service to the location of xrit-rx on your system
  3. Copy xrit-rx.service to /etc/systemd/system (sudo cp xrit-rx.service /etc/systemd/system)
  4. Reload systemd daemons (sudo systemctl daemon-reload)
  5. Start xrit-rx service (sudo systemctl start xrit-rx.service)
  6. Check service is running (systemctl status xrit-rx.service)
  7. Check console output of xrit-rx (sudo journalctl -u xrit-rx.service)
  8. Enable service to run at startup (sudo systemctl enable xrit-rx.service)
<?xml version='1.0' encoding='utf-8'?>
<?grc format='1' created='3.7.13'?>
<flow_graph>
<timestamp>Mon Nov 27 10:10:51 2017</timestamp>
<block>
<key>options</key>
<param>
<key>author</key>
<value>sam210723</value>
</param>
sudo apt-get install -y git make gfortran gcc libpng-dev libx11-dev libjpeg-dev libexif-dev dos2unix pgplot5 libgsl-dev fftw3 libfftw3-dev
git clone https://github.com/cbassa/strf
cd strf
make
@sam210723
sam210723 / gk-2a-setup.sh
Last active January 6, 2021 08:17
GK-2A quick setup
# Install dependencies
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install build-essential cmake zlib1g-dev libairspy-dev rtl-sdr librtlsdr-dev
sudo reboot
# Install goesrecv
cd ~
git clone --recursive https://github.com/sam210723/goestools
cd goestools
@sam210723
sam210723 / M2_2_LRPT.grc
Created July 23, 2019 14:20
Meteor-M N2-2 LRPT OQPSK 72kSps demodulator
<?xml version='1.0' encoding='utf-8'?>
<?grc format='1' created='3.7.13'?>
<flow_graph>
<timestamp>Sat Jul 20 10:45:09 2019</timestamp>
<block>
<key>options</key>
<param>
<key>author</key>
<value></value>
</param>
@sam210723
sam210723 / install.sh
Created October 4, 2017 10:09
TVHeadend Raspberry Pi Zero Raspbian install
sudo apt-get update
sudo apt-get install unzip libcurl4-openssl-dev pkg-config git build-essential dvb-apps git build-essential debhelper gettext libssl-dev zlib1g-dev libcurl4-gnutls-dev curl cmake libavahi-client-dev liburiparser-dev
cd ~/Documents
git clone https://github.com/tvheadend/tvheadend
cd tvheadend
AUTOBUILD_CONFIGURE_EXTRA="--disable-libvpx --disable --disable-libvpx_static --disable-bintray_cache --enable-hdhomerun_client" ./Autobuild.sh
@sam210723
sam210723 / install.sh
Last active February 3, 2023 05:00
GNURadio + gr-iio + gr-osmosdr-gqrx + gqrx + SoapySDR + SoapyRemote + SoapyPlutoSDR install on fresh Ubuntu 16.04.3 LTS
# GNURadio + gr-iio setup (ADALM-PLUTO plugged in)
cd ~/Documents
mkdir PlutoSDR
cd PlutoSDR/
sudo apt-get install git python-pip
pip install --upgrade pip
pip install setuptools
sudo pip install git+https://github.com/gnuradio/pybombs.git
pybombs auto-config
pybombs recipes add-defaults