Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Table of Contents
maxLevel6
minLevel1
include
outlinetrue
indent
exclude
stylenone
typelist
printabletrue
class

Introduction

The purpose of this project is to utilize an STM32L433RC MCU to fetch data from sensors on the PCB, convert it into CAN format, and send it to the flight computercommunicate with the Pixhawk6x. This document will record the details and progress of each sensor.

...

GitHub repo: https://github.com/UWARG/efs-can-sensor-clustor https://github.com/UWARG/efs-canard

Standard Data Types: List of standard data types - DroneCAN

download.pngImage Added

nucleo_l433rc_p_pinout.jpgImage Added

Sensors

MLX90393 Magnetometer Henry Wu Yutong Zhu

...

  • Setup basic I2C transceive function(in blocking mode)

  • Setup functions for each command(refer to data sheet 15.1)

  • Setup functions to manipulate register values and data conversion(refer to data sheet 16)

  • Debugged and verified measurement read by comparing with sample Arduino code under same register settings - Nov 10, 2024

  • Test functions to change register values and switch to unblocking transfer- Nov 28, 2024

    • Write register and read register function tested and verified. Readings change according to settings. - Nov 12, 2024

    • DMA transfer ready to test - Nov 12, 2024

    • I2C interrupt transfer tested - Nov 28, 2024

  • CAN integration - Ongoing

    • Setup CAN message function for MagneticFieldStrength2, able to see txdata with logic analyzer. Need to decode data for verification.- Nov 28, 2024

    • Tx and Rx working, Ardupilot acknowledging data transferred - Jan 26, 2025

20250126_185007.jpgImage Added

20250126_182200.jpgImage Added

Notes

  • Consideration of DMA Use interrupt

  • Conversion settingRegister settings: Higher OSR and digital filter setting lead to higher accuracy and lower noise, but higher covnersion time(refer to datasheet 16.2.5). Current setting: OSR = 3, digital filter = 5, conversion time = 52.92ms. Standard deviation of noise: XY-axis = 5 mGauss, Z-axis = 7 mGauss.

image-20250202-203510.pngImage Added

image-20250202-203423.pngImage Added

  • Sensitivity setting: Gain and resolution need to be tested on breakout board(refer to datasheet 16.2.4) Current setting: Sens-XY = 1, Sens-Z = 0, Gain_Sel = 0

image-20250202-203643.pngImage Added

Barometer

Rangefinder

Datasheet: https://www.mouser.ca/datasheet/2/1126/XM125_datasheet-3133248.pdf

Reference libraries: https://github.com/UWARG/efs-can-sensor-clustor/tree/A121-rangefinder/Drivers

Breakout board: https://www.mouser.ca/ProductDetail/Acconeer/XM125?qs=amGC7iS6iy8ql%2Fsw4HBAJQ%3D%3D

Progress