School project electric golf cart monitor

Hi everyone

I've been working on school project that is rebuilt electric golf cart by using Arduino to control which is not a problems. The real deal is about monitoring that I stuck with. the problems is how do calculate power(kW) while I hitting accelerator then store that data to calculate how much power has been used for knowing how much distance left can this golf cart run.

This is list of what I want to monitor on Nextion screen.

  1. Km/h (and how much distance has it been running )
  2. Average speed (km)
  3. Top speed (km)
  4. Battery capacity in %
  5. Power while using. (kW)
  6. Power has been used .(kW)
  7. Average power. (kW)
  8. Power peak. (kW)
  9. Distance left to run (km)

Can anyone help me coding this. Only example similar to this would be great :slight_smile:

Thank you

Screenshot_20200203_003609_com.huawei.himovie.overseas[490].jpg

If you want to calculate power manually, how would you do that? What current and voltage sensors do you have?

I am guessing, but won't all the power be turned off when the cart is stopped? Won't that clear all the accumulated information you are trying to get?

Paul

"to calculate how much power has been used for knowing how much distance left can this golf cart run."

Is the cart always on flat ground? Might be better to develop a battery discharge map for battery voltage and reference that to calculate the remaining battery capacity.