Skip to content

Instantly share code, notes, and snippets.

View tstellanova's full-sized avatar
💭
growing excited

Todd Stellanova tstellanova

💭
growing excited
View GitHub Profile
@tstellanova
tstellanova / bbb_boot_service_instructions.md
Last active September 26, 2023 09:43
How to setup a service to automatically run a python script when the BeagleBone Black (BBB) reboots. These instructions allow you to setup a python script to automatically start when the BeagleBone (running Angstrom linux with systemd) restarts.

Creating a service to startup at BeagleBone Black boot time:

  • Create a shell script such as /usr/bin/myFancyBash.sh:

      #!/bin/bash
    
      # this could be any runnable code or shell script, really
      /usr/bin/myFancyPython.py 
    

Note that the first line is critical.

@tstellanova
tstellanova / panfrost_build_rockpi4b.md
Last active August 19, 2023 18:03
Building panfrost natively on armv8 (rockpi4b / RK3399) on Debian "buster"
  • sudo apt install python3-pip
  • Install python3 packages:
pip3 install  setuptools mako
  • Install many, many packages not included with armbian "buster":
@tstellanova
tstellanova / stlink-raspi.md
Last active August 12, 2023 13:27
Install st-link on raspberry pi
@tstellanova
tstellanova / piaware_rpi0.md
Last active July 23, 2023 04:07
Setup FlightAware piaware on rpi0

You can install FlightAware's piaware on a Raspberry Pi Zero - W This allows you to create a very inexpensive air traffic monitor for your local region.

Hardware Required

@tstellanova
tstellanova / grub_arm64_debian.md
Last active July 20, 2023 19:12
Installing and running grub on rock64 (rk3328) arm64

Starting with Rock64, u-boot installed to SPI flash, Debian stretch installed to eMMC or micro SD card.

Setup /boot

Add things like dtb and any images you want to eventually load with grub

install grub

From Debian:

sudo apt-get -y install grub2-common efivar grub-efi-arm64
@tstellanova
tstellanova / start_ssh_agent.sh
Created September 7, 2014 15:54
Start ssh-agent at startup on ubuntu
# typically you'd add this at the end of eg .bashrc
# setup ssh-agent
SSH_ENV=$HOME/.ssh/environment
# start the ssh-agent
function start_agent {
echo "Initializing new SSH agent..."
# spawn ssh-agent
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
@tstellanova
tstellanova / esp32_s2_rgb_led_micropython.md
Last active January 2, 2023 16:48
Notes on driving onboard RGB LEDs on various ESP32 S2 dev boards with micropython or circuitpython
@tstellanova
tstellanova / config_3dr_telem_radios.md
Last active December 30, 2022 18:27
Configure SiK / HopeRF /Holybro telemetry radios using command line interface via USB

How to configure ordinary telemetry radio via usb cable.

  • Connect USB micro cable from laptop to telemetry modem
  • Connect at 57600 8N1 to radio (using eg screen or picocom)
    • eg picocom -b57600 /dev/cu.usbserial-DN01307U (the serial port can be found with eg ls /dev/cu* on macOS)
  • Wait a few seconds
  • Type +++ and wait -- should respond with OK. If not, wait a few seconds and try again
  • Type AT<return> -- should repond with OK
  • Type ATI5<return> to see list of settings
  • Type eg ATS3=93 and return to set the network ID used by the radio
@tstellanova
tstellanova / video_rec_python_rpi3.md
Last active September 9, 2022 20:06
Capture video and stills from python using a USB webcam and python on the rpi3 or similar

Setup: Install pyuvc

This is a wrapper around libuvc the USB video class, for USB-connected cameras.

Install pyuvc and all its dependencies:

  • sudo apt-get install libusb-1.0 cython
  • Install libturbojpeg from source (there are some related packages available, but not the one libuvc depends on)
wget -O libjpeg-turbo.tar.gz https://sourceforge.net/projects/libjpeg-turbo/files/1.5.1/libjpeg-turbo-1.5.1.tar.gz/download
tar xvzf libjpeg-turbo.tar.gz
cd libjpeg-turbo-1.5.1
@tstellanova
tstellanova / install-docker-arm64.sh
Last active July 31, 2022 18:00
Install docker CE for arm64
#!/bin/bash
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -