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.
Raspberry Pi Set Up
Flash and Connect to Raspberry Pi
- Download Raspberry Pi Imager
- Select RASPBERRY PI OS LITE (64-BIT)
- 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.
- Plug in SD card, select it, click write.
- Plug in Pi to network, and connect computer to same network
- 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
Select 3 Interface options
select I5 Serial Port
Select No dont enable ssh over serial
Select yes enable serial port hardware to be enabled
It should look like this
Select finish, and reboot it now, you'll have to ssh into it again
Install a few things in Linux
- First familiarize youself with
ls
,ls -al
,cd
,mkdir
,rm
,rm -r
,sudo
- Install git
sudo apt install git
- Clone repo
git clone https://github.com/marstmu/groundstation.git
- Install python library
sudo apt install python3-serial
- cd into groundstation
cd groundstation
- Run gs.py with python
python gs.py
Tips
If it says something like this while trying to SSH: Delete the known_hosts file your .ssh folder