stanford-ssi / PyGS

Simple wifi ground station running circuitpython

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyGS

Simple wifi ground station running circuitpython

MQTT Bot and Communication

If you want to see how to communicate with the PyGs and send commands Click here

Example Hardware Setup

As opposed to using an antenna+rotator for receiving satellites moving across the sky, another option is to use multiple antennas like this:

attached to multiple low-cost radios.

Detailed Instructions

To replicate the above example, you'll need the following:

Items Required

Hardware Setup

Antennas

  1. 3D print the antenna spacer:
  2. Connect your coax and tape at the base. Ensure the coax runs on top of the center trace of the LP antenna.

Radios & MCU

The hardware from Adafruit needs to be assembled as described below. Keep in mind you can always adapt the pin definitions in radio_helpers.py to meet a different hardware configuration.

  1. Assemble the radio boards with stacking headers and your edge-mount SMA connectors. Use Adafruit's guide as a reference.
  2. Solder wires for the radio CS, RST, and IRQ signals as described below:

Radio CS RST IRQ
1 "C" "B" See pic
2 "E" "D" See pic
3 See pic See pic See pic
  1. Now assemble the FeatherS2 with stacking headers
  2. In order to monitor battery voltage, we need to add a voltage divider. Solder your two 100kΩ resistors as shown below.

image

Software

  1. Update the FeatherS2 firmware using the .UF2 file in this repo's firmware directory. This can be done by putting the board into bootloader mode (plug into computer, click reset button, then click boot button) and then dragging the UF2 file onto the FeatherS2 drive that should mount shortly. It will likely have an error while copying the file. Don't worry about it.
  2. Unplug and plug the board back into your computer
  3. Copy the contents of the code directory from this repo to the CIRCUITPY drive
  4. On the CIRCUITPY drive, open the RENAME_ME.py file in the lib folder and update the mqtt broker info and save
  5. Now rename the RENAME_ME.py file to: secrets.py
  6. Open code.py and edit line 32 to your respective WiFi SSID

About

Simple wifi ground station running circuitpython


Languages

Language:Python 100.0%