Giter VIP home page Giter VIP logo

noronhadaniel / acs_2023 Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 1.0 103.5 MB

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.

Shell 6.18% Vim Script 0.18% Python 93.64%
control-algorithm data-filtering data-logging sensor servo pcb-design

acs_2023's Introduction

ACS 2023

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.

Interfacing with the Microcontroller

SSH:

  1. Connect to ND-guest (or hotspot)
  2. Open a terminal
  3. Type ssh pi@mulberry (or ssh [email protected] if using hotspot)
  4. Enter password ACS_2023
  5. Always use git pull before pushing changes to avoid merge conflicts (git status is also useful)

VNC Viewer (Remote Desktop):

  1. Connect to the Raspberry Pi via SSH
  2. Run vncserver and copy the IP address (same as wlan0 IPv4 from running ifconfig)
  3. Open RealVNC VNC Viewer and enter the copied IP address (with username: pi and password: ACS_2023)
  4. 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)

Batteries

  • YDL PL 115659 3.7V LiPo (5000mAh Logic Circuit Battery)
  • 7.4V 2S 3000mAh LiPo (Servo Motor Battery)

Sensors

Sensor Type Sensor Model
Accelerometer ADXL343
Altimeter 1 MPL3115A2
Altimeter 2 BMP390
IMU BNO055

Microcontroller

Raspberry Pi 4 Model B (4GB RAM)

Actuator

DSSERVO DS5180 80kg High-Torque Standard Servo Motor

Subscale Workflow

  • 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

Fullscale Workflow (Control Code Flowchart)

image

Electrical System Images

image

image

ACS_PCB copy

7 4 2 ACS_PCB_Active-min copy

Mechanical System Images

image

Screenshot 2023-04-27 at 21 39 23

Screenshot 2023-04-27 at 21 38 52

Miscellaneous Notes/Troubleshooting

  • 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 try ssh pi@mulberry again
  • 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
  • sudo raspi-config
  • iwgetid -r to find out what Wi-Fi you are connected to

acs_2023's People

Contributors

eamontracey avatar noronhadaniel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

spacelegosfan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.