GithubHelp home page GithubHelp logo

Comments (6)

dalathegreat avatar dalathegreat commented on August 15, 2024 2

Battery agnostic precharge/contactor closing has been added to the software. https://github.com/dalathegreat/BYD-Battery-Emulator-For-Gen24/blob/main/Software/Software.ino#L206

Still needs to be tested and documented!

from battery-emulator.

cyberjunky avatar cyberjunky commented on August 15, 2024

Just what I wanted to suggest, let the LilyGo handle the startup too!

from battery-emulator.

bobbo3 avatar bobbo3 commented on August 15, 2024

We did some testing and on the battery we used the bit for LB_MainRelayOn_flag is always 0.
I changed the code temporarily so batteryAllowsContactorClosing = 1; and the precharge worked fine.
This was on an 30kWh battery.
Here is an screenshot on the relevant byte (3) from a log file.
image
I am not very familiar with Leaf battery and will appreciate if anyone has any ideas on what to test.

Edit:
The battery is reported as LEAF battery gen: 2
Here is some log of values:
__ OK __
Nissan LEAF battery selected
WAITING_FOR_BATTERY...
WAITING_FOR_BATTERY...
Precharge...
Negative...
Positive...
Precharge OFF...
BMS Status (3=OK): 3
Battery Idle
Power: 0
Max discharge power: 30000
Max charge power: 19000
SOH%: 9100
SOC% to Fronius: 4530
Temperature Min: 50
Temperature Max: 60
GIDS: 189
LEAF battery gen: 2
Min cell voltage: 0
Max cell voltage: 0
Cell deviation: 0
BMS Status (3=OK): 3
Battery Idle
Power: 0

from battery-emulator.

dalathegreat avatar dalathegreat commented on August 15, 2024

Thanks for testing @bobbo3 , you beat me to it! LB_MainRelayOn_flag wont be set to 1 unless both HV connectors are seated. Do you have both the big and the small seated?

from battery-emulator.

bobbo3 avatar bobbo3 commented on August 15, 2024

Thank you! I think we shorted both interlocks - the drive one and the heater one... but it is possible that we may have missed something. I will double check.

from battery-emulator.

dalathegreat avatar dalathegreat commented on August 15, 2024

Closing this issue as completed, many are using automatic contactor control already! 🥳

from battery-emulator.

Related Issues (20)

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.