Code Monkey home page Code Monkey logo

Comments (2)

DieBieEngineering avatar DieBieEngineering commented on June 11, 2024

This is a system to disable the out and input when the watchdog triggers of the LTC (the LTC resets also its GPIO on WDT overflow). I use an GPIO on the LTC because over SPI I tell the LTC to pull the wire low (low being the charge / discharge are allowed to become high). So this is exactly as you have understood it operates.

The drawback of using the WDT is that it works the other way around, and you dont have a clear understanding of why the pin is asserted (any communication that is valid will reset the WDT if I recall correctly), where in the GPIO approach you have the uC deliberately ask the pin to go low.

( I actually first build it with the use of the WDT pin, but then moved to using the GPIO because of the added features described )

from diebiems.

DanieGieb avatar DanieGieb commented on June 11, 2024

This is a system to disable the out and input when the watchdog triggers of the LTC (the LTC resets also its GPIO on WDT overflow). I use an GPIO on the LTC because over SPI I tell the LTC to pull the wire low (low being the charge / discharge are allowed to become high). So this is exactly as you have understood it operates.

The drawback of using the WDT is that it works the other way around, and you dont have a clear understanding of why the pin is asserted (any communication that is valid will reset the WDT if I recall correctly), where in the GPIO approach you have the uC deliberately ask the pin to go low.

( I actually first build it with the use of the WDT pin, but then moved to using the GPIO because of the added features described )

That clearly makes sense to me! You are right - any valid communication will reset the WDT!
Thank you for your explanation!
I will use GPIO2. Because i don't have space for the SD card i will connect the WDT pin to the uC.
The ISL Interrupt signal is open drain, so i will connect it over 0R to the Safety signal.
So the ISL can also disable the charge and discharge FETs.
I think this will add another good safety feature to the device, because after the ISL is successfully configured, the software can stuck and overcurrent over- and undervoltage cutoff is still possible by hardware.

Another short question:
Is there a UART left on the STM? I plan to implement a connector for a serial bluetooth interface module like the cheap HC05, because the SPI wireless module is not available in germany :/
Could the mobile app of the BMS tool use this bluetooth connection or is connection only possible with your implemented wireless module?
I think this should work!?

from diebiems.

Related Issues (16)

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.