Skip to content

Ground Station

The ground station is a raspberry pi with an HC-12.

Connect the HC-12 to pins in the image below no need for the set pin, set the channel using the flight computer. Screenshot 2024-04-24 at 11 18 13 PM

Raspberry Pi Set Up

Flash and Connect to Raspberry Pi

  1. Download Raspberry Pi Imager
  2. Select RASPBERRY PI OS LITE (64-BIT)
  3. Click the gear icon in the bottom right. Set hostname to your team name. Set password, and send it to your team's Discord chat on the Mars competition server. Enable SSH. Everything else is optional.
  4. Plug in SD card, select it, click write.
  5. Plug in Pi to network, and connect computer to same network
  6. Connect to your pi by running this in the termnial pi: ssh username@hostname.local

Enable the pins on the raspberry pi

sudo raspi-config You should see this Screenshot 2024-04-24 at 11 32 10 PM Select 3 Interface options Screenshot 2024-04-24 at 11 33 03 PM select I5 Serial Port Screenshot 2024-04-24 at 11 33 38 PM Select No dont enable ssh over serial Screenshot 2024-04-24 at 11 33 55 PM Select yes enable serial port hardware to be enabled

It should look like this Screenshot 2024-04-24 at 11 34 24 PM

Select finish, and reboot it now, you'll have to ssh into it again Screenshot 2024-04-24 at 11 34 49 PM

Install a few things in Linux

  1. First familiarize youself with ls, ls -al, cd, mkdir, rm, rm -r, sudo
  2. Install git sudo apt install git
  3. Clone repo git clone https://github.com/marstmu/groundstation.git
  4. Install python library sudo apt install python3-serial
  5. cd into groundstation cd groundstation
  6. Run gs.py with python python gs.py

Tips

If it says something like this while trying to SSH: ssh-remote-host-identification-has-changed Delete the known_hosts file your .ssh folder