Skip to content

Latest commit

 

History

History
84 lines (74 loc) · 2.7 KB

README.md

File metadata and controls

84 lines (74 loc) · 2.7 KB

SDCard-Interface-STM32

An interface between the STM32 NUCLEO F446RE and a micro-SD card for storing data from sensors of the race car's dashboard. A Data Logger for UTD's Dallas Formula Racing.


Objective:

  • Implement SDIO communications
  • Interface the micro-SD card with the MCU for storage capabilities.
  • Provide LED light indication for card detection
  • Condense the program to a callable function
  • Store the output as a CSV file
  • Build a report generator with Excel and/or MatLab, or use DFR's DataAnalyzer

Technologies:

Hardware and Equipment:

  1. STM32 Nucleo-FE446RE Micro-Controller Unit (MCU) - Equipped with the ARM Cortex M4 processor
  2. Adafruit's Micro-SD Card Breakout for SD SPI or SDIO*

STM32 Nucleo-FE446RE MCU

Adafruit's Micro-SD Card Breakout

Pinout

  • PC8 ---> DAT0
  • PC9 ---> DAT1
  • PC10 --> DAT2
  • PC11 --> DAT3
  • PC12 --> CLK
  • PD2 ---> CMD
  • PB6 ---> CD (Card Detection)

Expected Input

CAN Bus

- RPM
- TPS (Throttle Position Sensor)
- Fuel Open Time
- Ignition Angle
- Barometer
- Map (Manifold Absolute Pressure)
- Radiator Air Temp
- Radiator Coolant Temp
- AFR (Air Fuel Ratio)
- Oil Pressure
- Mass Air Flow Sensor
- Wheel Speed
- Battery Voltage

GPS

- Second, minute, hour, day, month, year
- Speed
- Latitude
- Longitude
- Ellipsoidal Height
- Sea Level Height

Analog-to-Digital Converter (ADC)

- Damper Sensing
- Steer Sensing
- Brake Sensing

Accelerometer & Gyroscope

- X, Y, & Z
- Roll
- Pitch
- Yaw

Note

In order to enable the GPS-based file naming, set the macro _USE_LFN to 2. This enables the Long File Naming Convention, and must be done everytime you make changes to the .ioc file and allow code generation. _USE_LFN can be found in FATFS > Target > ffconf.h