Terrapin-Rocket-Team / SRAD-Avionics

Code and PCBs for the avionics subteam for the SRAD flight computer and side projects
6 stars 2 forks source link

Trace through Arduino Library Code for BMP390 #25

Closed varun-un closed 6 months ago

varun-un commented 11 months ago

As we look to eventually transition from a Teensy 4.1 microcontroller, which uses the Arduino Framework, to an STM32-based ARM chip, which is lower-level, we'll have to change much of the code for individual sensors to fit the new architecture of the computer's main chip. This means that the original code that we currently have, which uses the sensor's Arduino libraries, will no longer work.

What we'll have to do is now go inside the library's code, and start to try to understand how it works, and how this library can be modified for use with the STM32 chip. The tasks for this are:

BMP390 Datasheet BMP390 Library STM32 Datasheet

varun-un commented 11 months ago

Look at possibly using this library: https://github.com/BoschSensortec/BMP3-Sensor-API and modifying the wrapper common.c to work with STM32F103

Forum Posts about it: Post 1, Post 2