Quote:
Originally Posted by bennelson
Hey Guys,
I did go up a hill today that seemed like the Open Source controller didn't perform as well as the Curtis did.
I can't say for sure though, because my charge may have been a little low. I have been messing around with the float voltage on the charger a bit lately, so it might be that.
|
I was wondering how this would work on lower voltage controllers. If Paul left the code the same, I suspect that's the source of the problem (as he alluded to).
The way that worked well for my 144V setup was this: At zero PWM, full torque is reached at half throttle. If PWM is maxed out, only half the torque is ouputted. It sounds weird, but at 144v, I'm never using more that 60-70% PWM, so I pretty much have all the torque that I require. At lower voltage, you're probably operating at higher PWM duty cycle, so the code will behave differently.
Paul, there's this line in the code:
throttlescalar = 1085-3*OCRavg/2;
If you make that line:
throttlescalar = 1085-OCRavg;
it'll make it so that at full PWM, you still have full torque available. (the 1085 represents 2x512, plus a little buffer. So, if you subtract 512 (max PWM), and divide by 512 in one of the next lines (not shown), you'd have a scalar of 1, and thus full current. Right now, it's a scalar of 0.5, and thus less torque is available at higher speeds).
Might be worth a try - not sure how it'd affect the 'feel', but i bet it'll be fine.