Skip to content

Commit

Permalink
Starting on fresh SD setup
Browse files Browse the repository at this point in the history
  • Loading branch information
brickbots committed Jan 21, 2023
1 parent 3329d12 commit 0e061cb
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 3 deletions.
Binary file modified case/Pi_mount.3mf
Binary file not shown.
36 changes: 33 additions & 3 deletions docs/software.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,43 @@
General Pi Setup
* Create Image
* Pi OS Lite 64
* Setup SSh / Wifi
![Raspberry Pi Imager settings](../images/raspi_imager_settings.png)
* Setup terminfo for kitty:
* `kitty +kitten ssh [email protected]`
* Login first time
* Update all packages
* `sudo apt update`
* `sudo apt upgrade`
* Clock stretching - https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/i2c-clock-stretching
** Maybe not needed any longer with updated firmware? Need to test

Packages
* timezonefinder
* Blinka - required to use BNO-055 circuitpython driver

* pytz-2022.7.1
* timezonefinder-6.1.9
* luma.oled-3.9.0
* skyfield-1.45
* scipy-1.10.0
* pynmea2-1.19.0
* adafruit-blinka-8.12.0
* adafruit-circuitpython-bno055
* pandas-1.5.3

Data
* Stellerium constellation data
* Hipparcos catalog - https://cdsarc.cds.unistra.fr/ftp/cats/I/239/hip_main.dat
* Yale BSA

Script
* install git (sudo apt install git)
* install pip (sudo apt install python3-pip)
* git clone pifinder repo (https)
* sudo pip install deps
* Git clone tetra3 into PiFinder/python/PiFinder
* git clone https://github.com/esa/tetra3.git
* enable spi / i2c
* `echo "dtparam=spi=on" | sudo tee -a /boot/config.txt
* `echo "dtparam=i2c_arm=on" | sudo tee -a /boot/config.txt`
* `echo "dtparam=i2c1=on" | sudo tee -a /boot/config.txt`
* Run python script to invoke enough of AstoPy so that it downloads the data files it needs. Add this to setup.py
* Setup PiFinder system service
Binary file added images/raspi_imager_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions pifinder_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! /usr/bin/bash
sudo apt install git
sudo apt install python3-pip
git clone https://github.com/brickbots/PiFinder.git
cd PiFinder
sudo pip install -r requirements.txt
cd python/PiFinder
git clone https://github.com/esa/tetra3.git
echo "dtparam=spi=on" | sudo tee -a /boot/config.txt
echo "dtparam=i2c_arm=on" | sudo tee -a /boot/config.txt
echo "dtparam=i2c1=on" | sudo tee -a /boot/config.txt
9 changes: 9 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pytz-2022.7.1
timezonefinder-6.1.9
luma.oled-3.9.0
skyfield-1.45
scipy-1.10.0
pynmea2-1.19.0
adafruit-blinka-8.12.0
adafruit-circuitpython-bno055
pandas-1.5.3

0 comments on commit 0e061cb

Please sign in to comment.