Lesson plan

Build a CubeSat flight computer lesson plan

Bring up a 1U CubeSat on the bench: sensors, a real power budget, CCSDS telemetry, beacons, safe mode and a ground pass.

3 chapters, 7 lessons, about 7 hours, on the Arduino Uno R3. Every lesson runs in the browser, with nothing to install.

The unit

Objectives and materials

By the end, students can

  • An orbit, the sensors that watch the cube, and the power that keeps it alive.
  • Frames with a sync marker and a CRC, then a beacon the ground can hear.
  • Survive an eclipse in safe mode, then bring the log down in a pass.

Materials for the whole unit

  • Arduino Uno R3 x 2
  • Battery: AA, coin cell, LiPo
  • Current monitor, INA219
  • Diode
  • Full-size breadboard
  • LED x 2
  • LoRa module, SX1278 (Ra-02) x 2
  • Nine-axis IMU, MPU-9250
  • Pressure, humidity and temperature, BME280
  • Pushbutton
  • Resistor x 3
  • Solar panel, 6 V 1 W

Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.

Chapter 1. About 3 h

The spacecraft

An orbit, the sensors that watch the cube, and the power that keeps it alive.

LessonTimeWhat students do
Mission designWake a CubeSat flight computer, find its sensors and radio on the bus, and work out an orbit from Kepler: period, speed, eclipse and how long it stays up.60 min
  1. Wake the flight computer
  2. Is the radio alive
  3. How long is an orbit
  4. Into the shadow
  5. How long it stays up
SensorsRead housekeeping register by register: the temperature inside the cube against its limits, Earth's magnetic field, and the spin that says it is tumbling.60 min
  1. Inside the cube
  2. The sunlit side
  3. The shadow side
  4. Earth's magnetic field
  5. Tumbling
Power budgetMeasure a real solar and battery circuit with an INA219, watch an eclipse, see why the blocking diode is there, and work out whether the satellite survives an orbit.60 min
  1. Sunlight in
  2. Eclipse
  3. The blocking diode
  4. The orbit budget
  5. Point it badly

Materials

  • Arduino Uno R3 x 2
  • Battery: AA, coin cell, LiPo
  • Current monitor, INA219
  • Diode
  • Full-size breadboard
  • LED x 2
  • LoRa module, SX1278 (Ra-02) x 2
  • Nine-axis IMU, MPU-9250
  • Pressure, humidity and temperature, BME280
  • Pushbutton
  • Resistor x 3
  • Solar panel, 6 V 1 W

Check for understanding

Each student finishes "Power budget" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Point it badly".

Chapter 2. About 2 h 10 min

Talking to the ground

Frames with a sync marker and a CRC, then a beacon the ground can hear.

LessonTimeWhat students do
Telemetry framesPack housekeeping into CCSDS-style frames with a sync marker, a sequence count and a CRC-16, send them down, and watch the ground station catch a flipped bit.70 min
  1. Pack a frame
  2. Count every frame
  3. The ground station checks
  4. Decode it
  5. A bit flips
  6. Notice the gap
Beacon modeKeep the 45 minutes of radio silence after deployment, unfold the antenna, beacon a callsign and health, and answer a ping from the ground.60 min
  1. Forty-five minutes of silence
  2. Heard on the ground
  3. On the air
  4. Ping
  5. Why a callsign

Materials

  • Arduino Uno R3 x 2
  • Battery: AA, coin cell, LiPo
  • Current monitor, INA219
  • Diode
  • Full-size breadboard
  • LED x 2
  • LoRa module, SX1278 (Ra-02) x 2
  • Nine-axis IMU, MPU-9250
  • Pressure, humidity and temperature, BME280
  • Pushbutton
  • Resistor x 3
  • Solar panel, 6 V 1 W

Check for understanding

Each student finishes "Beacon mode" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Why a callsign".

Chapter 3. About 2 h

Flight

Survive an eclipse in safe mode, then bring the log down in a pass.

LessonTimeWhat students do
Safe modeFly into a long eclipse until the battery sags under 3.50 V, shed the payload, and come back only above 3.80 V: a mode machine with hysteresis.60 min
  1. Nominal
  2. A long eclipse
  3. Shed the load
  4. Hysteresis
  5. More ways into safe mode
Project: a ground passFly the whole mission: deploy, beacon, log every ten minutes, ride out an eclipse in safe mode, then make contact and download the log as a pass report.60 min
  1. Launch
  2. Make contact
  3. Download the log
  4. Fly an eclipse
  5. Share your pass

Materials

  • Arduino Uno R3 x 2
  • Battery: AA, coin cell, LiPo
  • Current monitor, INA219
  • Diode
  • Full-size breadboard
  • LED x 2
  • LoRa module, SX1278 (Ra-02) x 2
  • Nine-axis IMU, MPU-9250
  • Pressure, humidity and temperature, BME280
  • Pushbutton
  • Resistor x 3
  • Solar panel, 6 V 1 W

Check for understanding

Each student finishes "Project: a ground pass" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Share your pass".

Your class

Teach this unit as a class

Start a class from this course and its 7 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.

The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.