-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Comments
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. |
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. |
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? |
"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. |
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? |
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. |
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. |
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....
The text was updated successfully, but these errors were encountered: