Coder Social home page Coder Social logo

zzfd97 / smart-battery-management-system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kjfelix/smart-battery-management-system

0.0 0.0 0.0 6.93 MB

Using machine learning to estimate the state of charge of lithium ion batteries for electric vehicles

C 97.66% C++ 2.01% Makefile 0.12% Assembly 0.22%

smart-battery-management-system's Introduction

smart-battery-management-system

Using machine learning to estimate the state of charge of lithium ion batteries for electric vehicles

Code is for the STM32 F334 module.

Programming has only been tested in Mac OSX. It will mostly likely work on Linux with no problems (yay for Unix based OS) but sorry Windows people, you're on your own.

Steps to build Makefile

  1. Generate the make file using the STM32 Cube generator for the STM32 F334 chip

  2. Install gcc-arm-embedded library

brew install Caskroom/cask/gcc-arm-embedded
  1. Edit the Makefile generated to ensure BINPATH points to the location of gcc-arm-embedded

  2. Compile the files with

make
  1. Install st-link
brew install stlink
  1. Add a flash command to Makefile that programs STM32
flash: $(BUILD_DIR)/$(TARGET).bin
	st-flash --reset write $< 0x8000000
  1. Program the STM32 with
make flash 

If all goes well then everything is set up correctly!

To program STM32f334

  1. First clean up any old build files with
make clean
  1. Then run the build
make
  1. Then you can program the chip using
make flash

Then all should work, yay!

smart-battery-management-system's People

Contributors

kanocarra avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.