Controller shunt mods

Get all your technical information about electric bikes here.
User avatar
fechter   100 GW

100 GW
Posts: 13251
Joined: Dec 31 2006 3:23pm
Location: California Bay Area, USA

Re: Controller shunt mods

Post by fechter » Dec 27 2018 12:48pm

newbiehere wrote:
Dec 27 2018 12:59am
oh ok cool got it about the shunt resistor, but I still need to break the trace for the wiper connect, correct?

Ive seen complicated work arounds for measuring current with an arduino, seems this type of shunt could do the same thing?
Yes, you need to cut the trace to insert the divider.

An Arduino A/D input would not have very good resolution at the voltage level on the shunt. It would work better if the signal was first amplified about 10x. Typical circuits I've seen use an LM358 or similar op amp to boost the signal ahead of the Arduino.

Another option is to get an inexpensive power meter. There are several out there. I use a TK15 coulomb meter on one of my bikes and like it other than the screen is pretty small. I use it mainly to keep track of my battery level.
"One test is worth a thousand opinions"

newbiehere   100 mW

100 mW
Posts: 46
Joined: Oct 08 2018 2:25am

Re: Controller shunt mods

Post by newbiehere » Dec 30 2018 3:20am

for the pot in parallel, how does it not take on the a large current, like the shunt is doing?

User avatar
fechter   100 GW

100 GW
Posts: 13251
Joined: Dec 31 2006 3:23pm
Location: California Bay Area, USA

Re: Controller shunt mods

Post by fechter » Dec 30 2018 12:43pm

The shunt resistance is about 1milliohm. The pot can be somewhere between 1 ohm and 100 ohms and it will take about 1/1000 of the current if it's 1 ohm. Another way to look at it is the voltage across the shunt at 100 Amps would be around 100mV. This is nothing for the pot. I used a 10 ohm pot.
"One test is worth a thousand opinions"

newbiehere   100 mW

100 mW
Posts: 46
Joined: Oct 08 2018 2:25am

Re: Controller shunt mods

Post by newbiehere » Dec 30 2018 6:27pm

oh ok cool, got it

newbiehere   100 mW

100 mW
Posts: 46
Joined: Oct 08 2018 2:25am

Re: Controller shunt mods

Post by newbiehere » Jan 04 2019 7:27am

so if the voltage is very low, then a pot can be used? in the other post, it was mentioned that I would need a huge pot or rheostat to control the current. here we are not controlling the current (fixed) but instead the voltage so a large current can still move across the pot?

User avatar
fechter   100 GW

100 GW
Posts: 13251
Joined: Dec 31 2006 3:23pm
Location: California Bay Area, USA

Re: Controller shunt mods

Post by fechter » Jan 04 2019 9:26am

The big shunt resistor on the controller board has to carry the full current. But at the rated current, the voltage across it is still very small. The pot is only carrying a tiny amount of current and is just changing the voltage that the MCU "sees".

If you wanted to make the shunt resistor on the board variable, that's where it would get difficult.
"One test is worth a thousand opinions"

newbiehere   100 mW

100 mW
Posts: 46
Joined: Oct 08 2018 2:25am

Re: Controller shunt mods

Post by newbiehere » Jan 07 2019 2:36am

Oh I see, thanks

Post Reply