Skip to content

UWCubeSat/phat3_code

Repository files navigation

phat3_code

This Arduino code will run on the Heltec ESP32 LoRA V3 (915 MHz) aboard the PHAT-3 mainboard. It will save data from PCB-mounted sensors to a micro SD card, as well as transmitting it over LoRA.

Sensor purchase requests:

ESP 32 Pinout

ESP 32 Pinout

Libraries

  • <Arduino.h>
  • <Wire.h>
  • <SPI.h>
  • <SD.h>

I2C Bus

  • SCL - schematic pin 11 - GPIO 41
  • SDA - schematic pin 12 - GPIO 42

Sensors Documentation

U1: AHT21

Temperature and humidity sensor

U3: GY-68 BMP180

Temperature and pressure sensor

U4: GY-521 MPU-6050

Accelerometer

U6: GT-U7

GPS

U7: SCD41

CO2, temperature, humidity

U8: UCAM-III

Camera

  • Documentation
  • ESP -> UCAM - schematic pin 9 (U1TXD) - GPIO 39
  • UCAM -> ESP - schematic pin 10 (U1RXD) - GPIO 40

U9: SD Card Adapter

  • Purchase link
  • SPI SD Card Reader
  • MISO (sub -> main) - schematic pin 29 - GPIO 34
  • CLK (clock) - schematic pin 30 - GPIO 33
  • MOSI (main -> sub) - schematic pin 31 - GPIO 47
  • CS (chip select) - schematic pin 32 - GPIO 48

About

ESP32 firmware for the PHAT-3 Mainboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published