Author Topic: Cycle Analyst Issues  (Read 8200 times)

Offline truly_bent

  • Confirmed
  • Bachelor of Magic
  • ****
  • Posts: 159
Cycle Analyst Issues
« on: May 10, 2012, 10:59:27 AM »
Oy! (that's Jewish for Yo, which I'm pretty sure means Hello)

I had a Cycle Analyst (CA) issue on startup and couldn't find a related thread to tag onto. Thought maybe i'd start one.

My CA is a direct connect version (CA-DP rev 2.25) into a Lyen controller. What was happening was that the bike would accelerate for a second or two and then immediately cut out. When I disconnected the CA the bike would run normally. The CA will override a controller for any number of reasons and I had no idea why this was happening. I actually had to stick my nose into the manual.

The CA comes from the factory with default parameter values, of course, and one of those was "Set # Poles" (section 8.6 in the manual), which was set to 1. That couldn't be right. So, how many poles does a MP have? Anybody? I found that info here: http://tinyurl.com/c2bh9e5. Apparently it has 56, because when I plugged that info into the CA the bike ran as it should.

The good folks at ebikes.ca (http://www.ebikes.ca/drainbrain.shtml) suggested that I calibrate the Rshunt value (section 8.3 "Set Rshunt") for more accurate power reporting. Before I had to resort to actually figuring out how to do that, Edward Lyen supplied the shunt resistance as 1.333 milliohms.

So now we're running, calibrated, and ready for the next bug to strike. Can't wait to start playing around with those PI parameters...
:)
« Last Edit: May 10, 2012, 11:07:41 AM by truly_bent »
Burley Canto recumbent w/ MP II, Lyen 18FET controller, 48V 20AH LiFeP04, Cycle Analyst, and 4 pounds of zip-ties

Offline truly_bent

  • Confirmed
  • Bachelor of Magic
  • ****
  • Posts: 159
Re: Cycle Analyst Issues
« Reply #1 on: May 12, 2012, 01:03:07 PM »
Question to Bikemad: Do the MPs in fact have 56 poles?

The reason I ask is that my CA seems to be reporting a lower velocity than expected. The direct connect CA apparently picks up the hall effect pulses per rotation and factors in the diameter of the wheel (actually the circumference) to calculate the speed. I haven't measured the circumference of the Marathon Plus 26 x 1.75, but at 2100mm it can't be that far off.

That only leaves the pole count in question - or i'm getting old and 22kph feels a lot faster than it used too...
8)
Burley Canto recumbent w/ MP II, Lyen 18FET controller, 48V 20AH LiFeP04, Cycle Analyst, and 4 pounds of zip-ties

Offline Bikemad

  • Global Moderator
  • Professor
  • PhD. Magic
  • ******
  • Posts: 5,553
Re: Cycle Analyst Issues
« Reply #2 on: May 12, 2012, 10:23:09 PM »
Answer from Bikemad: Yes, the MPs do have 56 poles:




Please note that there will only be 28 high/low pulses per revolution because there are 28 North Poles and 28 South Poles positioned alternately around the motor ring.
Try setting the value to 28 and it should hopefully read correctly, and the resultant 44kph should then feel just like it used to, but without all the tiresome pedalling! ;)

Alan
 
« Last Edit: October 10, 2020, 07:35:08 PM by Bikemad »

Offline truly_bent

  • Confirmed
  • Bachelor of Magic
  • ****
  • Posts: 159
Re: Cycle Analyst Issues
« Reply #3 on: May 13, 2012, 07:17:21 PM »
Reply to Bikemad: Okay. I set the number of poles to 28 and all is hunky dory, thanks. Runs just as well and top speed on the flats is showing about 45 kph, which feels pretty bloody fast no matter how old you are.

I was trying to limit the top end to 32 kph, for the benefit of our local gendarmes. I set the Speed Limit in the CA and could tell it was trying to work, but there were wide oscillations - between 36 and 28. I guess i'll need to play with the PI parameters after all.

There's a lot of slop in the throttle as well...
8)
Burley Canto recumbent w/ MP II, Lyen 18FET controller, 48V 20AH LiFeP04, Cycle Analyst, and 4 pounds of zip-ties

Offline truly_bent

  • Confirmed
  • Bachelor of Magic
  • ****
  • Posts: 159
Re: Cycle Analyst Issues
« Reply #4 on: May 26, 2012, 10:05:04 AM »
A helpful gnome, named Justin, at ebikes.ca got back to me about the speed regulation hunting (oscillating) issue. Actually, he got back to me almost immediately. I just forgot to post it until now.

He agrees that the necessary parameters to play with are IntSGain and PSGain, but goes on to say:
Quote
The reality is that it's hard to achieve a good smooth speed control with a PI control algorithm. Once it settles it will be OK but whenever there are disturbances like changes in the grade or pedal effort that can start another small oscillation. A smoother but less stiff approach would be to just set MaxThrottle to a value that gives you around the desired top end cruising speed

I'm not sure how "smoother" can also be "less stiff", but I think the general idea is clear enough. I haven't implemented this suggestion because I ordered my (Lyen) controller with a 3 speed range option, which does pretty much the same thing. For the rest of you (:P) changing the MaxThrottle parameter to a predetermined setting, before entering a suspected kill zone (radar perhaps?), could save legal hassles... maybe.
:)
Burley Canto recumbent w/ MP II, Lyen 18FET controller, 48V 20AH LiFeP04, Cycle Analyst, and 4 pounds of zip-ties