Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add MQTT Input frame usable external Current-Sensor #267

Open
Bingo2023 opened this issue Jan 3, 2024 · 7 comments
Open

add MQTT Input frame usable external Current-Sensor #267

Bingo2023 opened this issue Jan 3, 2024 · 7 comments
Labels
enhancement New feature or request

Comments

@Bingo2023
Copy link

I want to experiment in using the bat data from the Charger to "simulate" the current sensor from the BMS.

I'd like to send via MQTT values like:
current, charged-Ah, discharged-Ah, SOC, Voltage

What are the thought on that?
I started already adding fuctions to the code... but seem more difficult as I first expected as we do not have any input functionality at the moment....

@stuartpittaway
Copy link
Owner

Hi @Bingo2023 what are you trying to achieve by using the chargers values?

The BMS only really uses these values to control an external charger (via CANBUS etc.) or to trigger relay rules etc.

@stuartpittaway stuartpittaway added the enhancement New feature or request label Jan 8, 2024
@Bingo2023
Copy link
Author

You have developed the "diyBMS-CurrentShunt" to create these number/measurements.

I don't like the idea of cutting&adding HW to the big power lines of the battery.

I try to create a simpler solution as we have all the sensors and measurements already in our systems.
Unfortunately the Pylontech CAN expects data like SOC coming from the BMS....
So the idea is to take these values from the charger and send them via MQTT to the BMS. The BMS sends it via CAN to the charger.

@Bingo2023 Bingo2023 changed the title add MQTT Input frame usable external Current-Sensor - enhancement add MQTT Input frame usable external Current-Sensor Jan 8, 2024
@stuartpittaway
Copy link
Owner

But the whole point of the independent current sense on the BMS is to instruct the charger or inverter on what to do.

If you are just going to feed data back into the inverter/charger - what will that achieve?

@Bingo2023
Copy link
Author

"diyBMS-CurrentShunt" sends its data intern/RS485/Modebus to the BMS.

I'd like to experiment with the same idea, using the current sensor from the inverter and sending the values thru MQTT. The currentsensor of the inv will measure exact same as the "diyBMS-CurrentShunt" because it is in the same power-circuit.

@stuartpittaway
Copy link
Owner

The state of charge isn't a simple calculation, as you need to accurately measure the energy flow in realtime (thousands of samples per second) - does your charger perform this function?

@Bingo2023
Copy link
Author

some inv send the Ah or even mAh, so the calc is done over there and only high level signals are transferred.

But that is just the theory, I want to check how precise is that approach - may it is sufficient for our use case.

@stuartpittaway
Copy link
Owner

If you have already started messing with the code, you will need to add a lot of MQTT client/input parameters into the controller.

I would also take a look at the on-board current monitoring code and use that as a template for the MQTT logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants