View Single Post
Old 05-30-2013, 12:42 AM   #6137 (permalink)
MPaulHolmes's Avatar
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,368
Thanked 1,202 Times in 765 Posts
Yes, it's just a single line of code to go up to maybe 900 amps. Well, or maybe 2 lines. I forgot...

So, you want 600 instead of 500?

For a lem 300, that's especially easy, since it's double.

Change this line:
current_fb = (loc_current_fb * 19) >> 3; // (19/8 is almost 2.4)

To this line:
current_fb = (loc_current_fb << 1);

I made a modification to the code so that the max current is programmable too, and that works. But it was for a different board, with like 2 different pin mappings. Oh well.
kits and boards
  Reply With Quote
The Following 3 Users Say Thank You to MPaulHolmes For This Useful Post:
mpgmike (01-22-2022), thingstodo (07-06-2013), z_power (05-30-2013)