-
Notifications
You must be signed in to change notification settings - Fork 90
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
[Feature] get battery_level in % #55
Comments
You can get a battery percentage estimate using this code:
|
Is this the same calculation as the vesc software? At the moment I use a battery drain curve and interpolate the percentage |
I don't know but this isn't the most accurate because it assumes the discharge is linear but for me it works fine. |
May I ask how you use a battery drain curve on an arduino? |
https://github.com/n3roGit/DPVControl/tree/mytest/DPVController Look into the battery function in the mytest branch :) |
Oh great thanks for the feedback! I hope someone implement to get it directly from the vest because the vesc has some filter and extra logic to get besser results |
Yes, but the battery percentage the vesc shows me is also weird, my battery is at 3.7v per cell and 7 out of 16Ah drained and the vesc says its at 35% or below 30 with sag. |
That doesn't sound optimal either. Unfortunately, I don't have any comparison values here yet. My project is still relatively at the beginning. May I ask what you have implemented with VESCUart? |
Its a bit weird but heres the vesc function:
|
I'm building an e-bike and want to view speed, power consumption, temperatures etc. without the need for a phone. |
oh very nice. for me it's a scooter for diving. feel free to look at content in the code if it helps you. but the webinterface and logging into a database will follow. |
Cool project! How fast and far are you planning to go? |
Yesterday I have already tested the part in the lake. Currently I'm at about 60m/minute, which is already quite fast in the water. Here I will still have to do some software sided tuning. Such devices are also rather long runners. I think I should be able to drive 4-6 hours. |
Cool, keep it up! |
Could you please implement to get battery_level in % from serial?
The text was updated successfully, but these errors were encountered: