Skip to content
This repository was archived by the owner on Feb 20, 2024. It is now read-only.
/ vcu Public archive

Vehicle Control Unit STM32 project for 2022-2023

Notifications You must be signed in to change notification settings

Purdue-Solar/vcu

Repository files navigation

VCU

Vehicle Control Unit STM32 Project for 2022-2023

  • Uses an STM32F072 dev board
  • Uses an AM223b optical encoder over SPI to read the pedal position
  • Connects over CAN to the motor controller

Setting up the STM32F072 Boards

This image was taken from CUI Electronics Guide

The image above shows the pins for the ardunio microcontroller, however, the STM32F072 board includes arduino pins. This means connectiong to the STM32 board instead of the arduino is just as simple as translating pinouts.

The IOC file within this projects includes the pins that will be utilized by SPI. For this project SPI will use PA6 - SCK, PA7 - MISO, PA8 - MOSI.

AMT223-b datasheet can be found here

Connecting to a Can Line

The IOC file within this projects includes the pins that will be utilized by CAN. For this project it is PA11 - RX and PA12 - TX.

The full CAN Documentation can be found here


Reading and Displaying Data

About

Vehicle Control Unit STM32 project for 2022-2023

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages