Announcement

Collapse
No announcement yet.

Luna BBSHD Ludicrous V2 controller documentation

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #61
    Marcos. 3 second ramp up is nice. Feels like a locomotive

    Comment


      #62
      I noticed that in the latest firmware update there was this feature "PAS keeps the motor spinning at minimum current to prevent chain slapping". How is this implemented as I have not noticed this behavior, Thanks

      Comment


      • marcos
        marcos commented
        Editing a comment
        after you stop pedaling the motor will be driven for 4 seconds with a very small current (18mA if you are in level 9 IIRC) so the motor doesn't go to 0 rpm right away.

      #63
      Think I hit a firmware bug. Wanna discuss here or offline?

      Comment


        #64
        I don't see the V2 mentioned as being a bit thicker. Luna included a chain ring spacer, thank you very much. I have only one bike where this will be a problem.

        The Rolhoff is sold for a 190mm dropout, but it is really a 170 with spacers. Therefor the chainline is already fat bike challenged. I fear there is not enough wiggle room.

        The V2 is bolted up to the Uzzi now, so I added to the build report:
        https://electricbike.com/forum/forum...th-bbshd/page3

        Comment


        • marcos
          marcos commented
          Editing a comment
          Nice ride! Not only you get a bit extra speed, it also makes it easier to drive full current to the motor over a wider rpm range.

          The extra thickness was a bit of an oversight in a last minute design addition. I think it comes from the added fins on the flat cooling surface, but the ludi electronics doesn't get hot at all and doesn't need the fins, so it was an aesthetic thing. The extra mm or two will be there for the first bunch of controllers, as we already made many of those fancy housings.

        #65
        The Wolf battery firmware data on page one lists 70amps as the cutoff. However my math says 4 30Q's can only do 60 amps. Is this a typo? Should we stay at level 8 with 14s4p 30Q packs?

        Comment


        • xcnick
          xcnick commented
          Editing a comment
          Does the 72 volts allow one to hold full power for longer because it runs cooler? I hill climb, it is the only way to loose the yuppies with the spandex, turbo levos, and private school dogs. Five minutes of full power would be very useful.

        • marcos
          marcos commented
          Editing a comment
          the motor only cares about phase current, so it can put out more power for longer if you run it at higher voltage. As for the battery limit, you would have to check how much current each cell is delivering and see if that's safe or not.
          I'll try to prepare a post about data logging to show how you can analyze your power draw over time with some graphs, because full throttle doesn't necessarily mean full power.

        • xcnick
          xcnick commented
          Editing a comment
          You got it. I need the controller to be smarter than the rider who just holds it wide open and hangs on. The snow bike is a hard tail so it jumps around. Watch video of early 1900 motorcycles hill climbing. I will use the steel gear for this but the controller should be ready to be unloaded and loaded as it bounces up and down. thanks so much for you help, but even more for sharing the fun we all are having out here.

        #66
        I was going to post instructions on how datalogging works in the ludi v2, but there were already written in the first post of this thread.

        So instead I'll focus on what can you get from the logs.

        Example 1:
        See how much battery current are you using over time


        This what I'm used to see in flat ground, lots of short (few seconds) bursts of power coming from the battery.

        You can zoom into the plot to take a closer look:

        If you are climbing a mountain the battery current draw will have a higher baseline and you will be able to see how much you are really asking out of that battery.
        Pro-tip: battery current is pretty much proportional to speed, so if you want lower battery current you can lower the motor speed.


        Example 2:
        You can analyze your drive unit temperatures, for instance comparing mosfet and motor winding temperatures:

        The BBSHD has the motor temperature sensor very poorly located, so there is a huge lag between the moment of maximum power and the sensed max motor temperature. In the new bikes we sell with the ludi v2 install the sensor properly and also upgrade the nylon gear.

        You can see in the plot that the mosfet temperature is snappy and the motor temp lags a lot. If someday in summer you experience a power loss, you can check in the logs if you were experiencing motor overtemperaure, which will progressively decrease motor current. The V2 controller is overbuilt and I could never hit max mosfet temp with an ebike motor, I reached its limit driving an impeller on water with a huge motor.

        Example 3:
        Its pretty difficult to get the speedo reading right, as it depends in gearing. From the logs you can compare and fine tune the gear ratio to match controller-estimated speed with the phone GPS data:
        Of course this works best when there is a single gear ratio.
        Click image for larger version

Name:	gps speed.png
Views:	112
Size:	150.5 KB
ID:	129061
        Example 4:
        Stats!

        Using GPS data you can take any segment of the logging and vesc tool integrates the data to show efficiency, average speed, distance, etc
        Click image for larger version

Name:	stats.png
Views:	104
Size:	500.3 KB
ID:	129062 Battery current is an indirect measurement, not as accurate as phase current but its still very usable. I found that logging with the phone on my pocket was okay, but GPS was more accurate when it has line of sight with the sky.
        If you would like a slow walk through the datalogging feature, in this video the VESC architect explains how to use it: https://www.youtube.com/watch?v=1dm12zB78Ic


        So all of this is already built in, running under the hood and ready to use, and its pretty fun to get to the stats of your rides. You could find ways to make your riding more efficient, compare paths, see how badly you are punishing your battery, etc.

        I'm keen to see your plots! I haven't seen a ludi working in the snow, or climbing in very hot weather, the more we know the safer it is to increase power on future firmware deployments.

        Comment


        • StvMan
          StvMan commented
          Editing a comment
          Interesting info...so taking it further....the old adage that the bbshd loves higher rpm is more of a heat prevention measure, rather than an effective use of available power to the dirt....correct?

        • marcos
          marcos commented
          Editing a comment
          Yes, it stems from the same principle. Lets say the BBSHD can take 50 phase Amps all day long. Now if you are on a 52V system lets say that would make 1500W.

          Now increase the voltage 4 times, to 200V @ the same 50 phase Amps. The motor will experience pretty much the same temp increase, driven by I²R winding losses but your power increased 4 times. Your speed also increased x4 so you will want a shorter gearing. This a pretty extreme example, so extreme that iron losses and gearing losses would start to creep in, but it helps explaining that the 72V system can sustain more power for the same motor heating.

          Similarly, power delivered at low RPM is relying on high motor currents at low motor voltage (P=V*I). Power delivered at high RPM uses high voltage and low (motor-heating) current.
          Last edited by marcos; 2 weeks ago.

        • StvMan
          StvMan commented
          Editing a comment
          Perfect...thank you.

        #67
        I have something, Here is the two temps like your example:




        Here is one of amps:



        This not how I use my bike. Normally I PAS the approach so I have power to brap around when I get there.

        Wolf setting, two mighty minis in parrallel, 14s4p of 30Q cells. Level 9, so something is capping me at 50 amps. 56volt to start

        What else should we look at? How do I tell how my battery is performing?

        csv file attached
        Attached Files

        Comment


          #68
          I can't see your images, but from the CSV I can get a ton of data.

          So first, the controller is throttling down the phase current because the motor temperature is exceeding the max limit:
          Click image for larger version  Name:	overtemp_fault.png Views:	0 Size:	104.3 KB ID:	129088 More accurately, you have 100% torque available at 100°C. At 110°C you have 0% torque available (its a linear derating). At 110.00001°C the controller asserts the overtemp fault I pointed out in the image.

          My initial thought was that you were running a too low gearing and using too much phase current, so I was going to suggest to shift gears to keep the motor at higher RPM... but then I realized the speed was very maxed out.

          I can tell speed is maxed out because the duty is near 100%, the controller can't push more volts into the motor. This made me wonder if the V2 was under field weakening, and voila, it is:

          Click image for larger version  Name:	field weakening.png Views:	0 Size:	513.7 KB ID:	129089k

          Field weakening is what makes your motor run faster than stock, but its also very punishing because those -30 Amps are heating up the motor, and don't provide any torque.
          For example, if you had a higher voltage battery, for the same speed you wouldn't need any field weakening current and those 30A could be spent providing torque.

          Right there you sustained about 70 phase amps for a minute or so at max speed, and the motor got too hot. In winter/rain/low altitude etc it would take it longer to hit temp limit, but we can't do magic with thermodynamics.


          Now... about your battery. At only 60 battery Amps the voltage is sagging down to 44V, I think it's not pushing more phase Amps because the battery can't supply them.
          Click image for larger version  Name:	droop.png Views:	0 Size:	117.9 KB ID:	129090
          The battery voltage cutoff starts at 44.2V (100% torque available) and at 40.3V it drops to 0% torque available. You are not quite reaching this, but its on the very edge.

          I think that if your battery could provide a stiff 54V you would be zapping around at 150 phase Amps. I don't know much about batteries, but I know controllers struggle to push amps when the battery voltage is low.


          So... I can't tell if your battery is underperforming because I'm not a battery expert, but I can tell that the first 60 seconds the battery was limiting your current throughput because it drooped too low, and after those 60 seconds it was the motor temperature that produced the torque reduction.
          Hope it helps!
          Last edited by marcos; 2 weeks ago.

          Comment


            #69
            Another thing I didn't notice before is the altitude, is that GPS data correct?

            Click image for larger version  Name:	climb.png Views:	0 Size:	516.1 KB ID:	129100

            You were at 2000m over sea level (6500ft), and climbed 117 meters in 130 seconds (380ft). It was a 7% incline and it was done at full speed, pretty though.
            Last edited by marcos; 2 weeks ago.

            Comment


              #70
              Wow that is some impressive data analysis. Really cool to see that is possible.

              Comment


                #71
                Altitude is correct, I am high all the time, ask anyone. But we have learned I can only be an idiot for a minute before overheating. You have opened my eyes to how these temps and field weakening information could be useful on a display.



                This is the data about my bicycle that should go with the log:

                26" wheel, 48 tooth front sprocket, 13 tooth rear cog, equals 97.5 gear inches; Then 150lb (me)+65lb (bike)=215lb load. (Sorry it is not Metric)

                https://www.sheldonbrown.com/gear-calc.html


                When the egg rider arrives, 72 volts on the exact same task!


                I haven't been on this forum in while. Is anyone seeing my pictures? In the old days I just copied a link from the picture displayed in Google Photos, but with all the changes to google photos, maybe this won't work anymore.

                Comment


                • marcos
                  marcos commented
                  Editing a comment
                  you mentioned 20s2p, go easy on that battery because the controller can crush it. At your speed it will run more efficiently I think, but with only 2p the sag is substantial so you should limit battery current to something like 30 or 40A, you can PM me and we can setup that.

                #72
                2p of Samsung 40T - high drain 21700 Li-ion cells. In theory they are 35amp cells so 70 amps are available.

                here is a test to see if they are really this good: https://www.thunderheartreviews.com/...00-li-ion.html

                The pack is made by one of our members who has posted in this thread. The web page: https://bicyclemotorworks.com/produc...ttery-72v-8ah/

                He says 80 continuous and 120 burst. Should be interesting....

                Paxtana, have they shipped my egg yet? just kidding. I will be patient, it is just a hobby.

                Comment


                • marcos
                  marcos commented
                  Editing a comment
                  Oh cool. Keen to see how that combo performs

                #73
                Try this guy's. I Flash Wolf. When I reconnect it is still Wolf. If I turn off the bike then turn the bike back on it will not show Wolf but dire wolf as the firmware. I don't think it's really dire Wolf, it's just as the 1st choice of the 3. But I am worried I have the right Flash.

                Comment


                • marcos
                  marcos commented
                  Editing a comment
                  Sure, let me check the images in the morning

                #74
                I just reproduced all your steps starting from the 72V image I sent you. After the initial USB-programming I see the controller identify itself as a 72V_POWER_WOLF:

                Click image for larger version

Name:	right_after_fw_image_restore.jpg
Views:	98
Size:	183.0 KB
ID:	129194

                Then I flashed a 52V_WOLF, and when I reconnect (and also when I powercycle the controller) the correct 52v wolf firmware is shown:

                Click image for larger version

Name:	first_flash.jpg
Views:	90
Size:	182.4 KB
ID:	129195

                I tested flashing a DIRE WOLF firmware and its also correctly displayed

                Comment


                  #75
                  Your pedal assist settings are wonderful. Is there any way I can reproduce that with a normal or version one ludicrous controller?

                  Comment


                  • marcos
                    marcos commented
                    Editing a comment
                    Nope, sorry. The bafang controller is a black box, we have no control over that firmware :/

                  • xcnick
                    xcnick commented
                    Editing a comment
                    I hope you will revisit the idea of the throttle power tied to the PAS level. I am trying to get used to it, but I have too many years the other way. Now when I blip the throttle to get over a curb, rock, etc. I don't really know what to expect. A blip of the throttle at level two is very underwhelming and over the handlebars I go.
                Working...
                X