What to use to measure the current.

Hello guys,
I want to create a efficiency display for an ebike with an arduino. What is the best way to measure the engery the motor is consuming?
Thanks in advance

What is the best way to measure the engery the motor is consuming?

A current sensor. Which specific sensor is up to you to determine, since you forgot to mention what voltage and current level you are attempting to read.

PaulS:
A current sensor. Which specific sensor is up to you to determine, since you forgot to mention what voltage and current level you are attempting to read.

Sorry. There is a voltage of around 36V and a current of around 10A. Can you please suggest me a sensor that can hande this specifications. I couldnt find a fitting sensor.

xmp:
Sorry. There is a voltage of around 36V and a current of around 10A

Ten amps seems very low. It may be the average or typical current but I suspect the peaks could be as high as 100 amps.

...R

Robin2:
Ten amps seems very low. It may be the average or typical current but I suspect the peaks could be as high as 100 amps.

...R

Ok to you have a suggestion for a sensor that can handle this?

Have you looked at the extensive catalogues of the big component suppliers such as RS, Farnell, Digikey or Mouser?

...R

You say you want to measure efficiency. For that you not only have to know the electrical power consumed by the motor, but the mechanical power it produces.

That's rather more difficult....

Allan

ACS712 30A
Can this sensor handle this?

Ive used these and they worked fine https://www.digikey.com/product-detail/en/tamura/L01Z050S05/MT7173-ND/529405

Lately i’ve been using these and are fine https://www.digikey.com/product-detail/en/allegro-microsystems-llc/ACS770LCB-050B-PFF-T/620-1541-5-ND/4473980

But you should understand what your peak current is and if PWM is being used and what frequency.

Voltage across a known load (very low Ohms is what I use) gives both values for power (IE).

KrisKasprzak:
Ive used these and they worked fine https://www.digikey.com/product-detail/en/tamura/L01Z050S05/MT7173-ND/529405

Lately i've been using these and are fine https://www.digikey.com/product-detail/en/allegro-microsystems-llc/ACS770LCB-050B-PFF-T/620-1541-5-ND/4473980

But you should understand what your peak current is and if PWM is being used and what frequency.

So how do I use the first one with an arudino?