Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 2.53 KB

README.md

File metadata and controls

67 lines (45 loc) · 2.53 KB

Li-Ion Battery Test Bench

This is a school project aimed to build system that can automatically charge and discharge Li-ion batteries at variable load. The purpose of this system is to study different battery types by monitoring cell voltage, temperature and current.

Compiling

To build this project navigate to project directory on shell and run Makefile.

$ make -f .\Makefile

Flashing with ST-Link Utility software

  • Click on "External Loader" from the menu and select N25Q128A_STM32F746G-DISCO
  • Click on Target->Program and select "Li-Ion-Battery-Test-Bench.hex" under BUILD directory
  • Hit on "Start" button to flash internal and external memory

Pinout

STM32F746G-DISCO PIN Description
D13 LTC6811 SPI SCK
D12 LTC6811 SPI MISO
D11 LTC6811 SPI MOSI
D10 LTC6811 SPI CS
D9 Cell discharge relay 1
D8 Cell discharge relay 2
D7 Cell discharge relay 3
D6 Cell discharge relay 4
D5 Charging relay

Project pictures

  • Web interface used to control test bench

  • Test bench

Libraries used in this project

lwIP – A Lightweight TCP/IP stack

FatFS – Generic FAT Filesystem Module

FreeRTOS – RTOS Kernel

STM32 HAL Driver

Linear Technology – LTC6811-1 Multicell Battery Monitor