This repository contains all (Python 3) code and libraries required for the 2022-2023 Notre Dame Rocketry Team (NDRT) Apogee Control System (ACS). It also contains sensor/actuator example code and flight data. This year's target apogee was 4600 feet. On our 03/26/2023 Vehicle Demonstration Flight, the ACS deployed and successfully reduced apogee from around 5250 feet to 4547 feet, which was only about 50 feet below the 4600 feet target. All flight data was also logged successfully.
SSH:
- Connect to
ND-guest
(or hotspot) - Open a terminal
- Type
ssh pi@mulberry
(orssh [email protected]
if using hotspot) - Enter password
ACS_2023
- Always use
git pull
before pushing changes to avoid merge conflicts (git status
is also useful)
VNC Viewer (Remote Desktop):
- Connect to the Raspberry Pi via SSH
- Run
vncserver
and copy the IP address (same as wlan0 IPv4 from runningifconfig
) - Open RealVNC VNC Viewer and enter the copied IP address (with username: pi and password: ACS_2023)
- When finished, disconnect the VNC Viewer and run `vncserver -kill :1' to kill connection 1 (check ~/.vnc to make sure no .pid process files exist)
- YDL PL 115659 3.7V LiPo (5000mAh Logic Circuit Battery)
- 7.4V 2S 3000mAh LiPo (Servo Motor Battery)
Sensor Type | Sensor Model |
---|---|
Accelerometer | ADXL343 |
Altimeter 1 | MPL3115A2 |
Altimeter 2 | BMP390 |
IMU | BNO055 |
Raspberry Pi 4 Model B (4GB RAM)
DSSERVO DS5180 80kg High-Torque Standard Servo Motor
- Data Logger Initialization
- Check for existing data files and find new filename (to prevent overwriting)
- Create new CSV file with new filename
- Add Header Row
- Initialize sensors
- Read sensor data
- Add sensor data to new row in CSV file
- Loop indefinitely
- Command:
ssh pi@mulberry
- Error:
ssh: Could not resolve hostname [hostname]: nodename nor servname provided, or not known
- Solution: Run
sudo killall -HUP mDNSResponder
and then tryssh pi@mulberry
again
- Error:
- Command:
ssh pi@mulberry
- Error:
ssh: connect to host mulberry port 22: Undefined error: 0
- Solution: Make sure you run
ssh [email protected]
if using a hotspot connection
- Error:
sudo raspi-config
iwgetid -r
to find out what Wi-Fi you are connected to