Cycle Analyst V3 preview and first beta release

Get real world experience and user feedback on the electric bicycle products.
User avatar
justin_le   10 MW

10 MW
Posts: 2233
Joined: May 28 2007 3:27am
Location: Vancouver
Contact:

Re: Cycle Analyst V3 preview and first beta release

Post by justin_le » Mar 23 2013 1:29am

izeman wrote:i have another concern: i use regen braking with a directly connected brake switch to the controller brake pads. so i'm not using the brake's connector of the ca, which can imho not be used for regen, but for cutting the throttle only. correct?
if i don't release the throttle and pull the brake, the throttle is cut and the wheel is in generator mode. one could "forget" to release the throttle completely when braking, and as soon as the brake is released, full throttle is applied from 0-100% in 0 seconds.
how can this be avoided?
This is a tricky situation since the CA has no idea that you are doing regen by squeezing the brakes, as opposed to say going fast on a downhill and getting regen currents that way. The best solution right now if you have the ebrake going to the controller is to also splice your brake signal up the CA's ebrake input too. Then it will disable the cruise and cutout the throttle etc. while the basic regen functionality of the ebrake signal going to the controller is unaffected.

The better solution will be to install a mini break-out board on the 6-pin connector that senses when the CA's throttle output goes to 0V (as opposed to the MinOutput value), and then triggers the controller ebrake input from that. I alluded to the fact that we'd be making such a mini 'interface' board last year and we've finally got them just about ready. Then you'll be able to get actual regen from the one CA-DP cable without an additional set of wires from the ebrakes to the controller.

-Justin
Previously competed in the Suntrip race on a back to back tandem solar powered row/cycle trike. 550 watt solar roof, dual Grin All Axle hub motors, dual Phaserunner controllers, 12 LiGo batteries, and a whole wack of gear.

Now back in Vancouver learning to be a dad with my Big Dummy Frame (yes This One, thanks ES!) with GMAC 10T rear hub motor, Phaserunner controller, and 52V 19Ah EM3EV pack
My website: http://www.ebikes.ca
Please contact via email, info@ebikes.ca, rather than PMs, which are disabled

User avatar
justin_le   10 MW

10 MW
Posts: 2233
Joined: May 28 2007 3:27am
Location: Vancouver
Contact:

Prelim V3.0 Firmware

Post by justin_le » Mar 23 2013 2:03am

Hey guys, so this is the final day. At Teklektik's suggestion the firmware is called "V3.0 Prelim" just because we haven't had any widespread field testing, so just in case there are some silly things that slipped in with the recent changes we'll have a chance to fix that. But hopefully it'll be nothing and we drop the "prelim" qualifier pretty quick!
V3.0 Prelim.jpg
V3.0 Prelim.jpg (28.98 KiB) Viewed 5914 times
rscamp wrote:To paraphrase very briefly his words, a firmware change was made to make the throttle output go to 0V to activate regen on a future product. With the PPM output, this makes for a 0ms pulse rather than Min Throttle so the R/C controller thinks it isn't getting any signal. A change will be made so the PPM output will go to minimum throttle when the brake is pulled which should cure the issue.
So what I decided to do here is add one more parameter in the Throttle Output menu, called "Ebrake Out". By default, this is 0V (or 0mS), but you can change it so that when the brakes are squeezed the CA's throttle output signal goes to any other voltage or pulse width.
Ebrake Out.jpg
Ebrake Out.jpg (18.65 KiB) Viewed 5914 times
So in the case of an RC controller that looses receiver sync, you would set this like so:
Ebrake Out mS.jpg
Ebrake Out mS.jpg (18.42 KiB) Viewed 5914 times
At the moment there isn't anything stopping you from setting the output _higher_ than the min throttle output if you want. So you could set the Ebrake Out to like 3.0V if you wanted, and then use it as a more general purpose button that drives the the output signal high rather than low.
Previously competed in the Suntrip race on a back to back tandem solar powered row/cycle trike. 550 watt solar roof, dual Grin All Axle hub motors, dual Phaserunner controllers, 12 LiGo batteries, and a whole wack of gear.

Now back in Vancouver learning to be a dad with my Big Dummy Frame (yes This One, thanks ES!) with GMAC 10T rear hub motor, Phaserunner controller, and 52V 19Ah EM3EV pack
My website: http://www.ebikes.ca
Please contact via email, info@ebikes.ca, rather than PMs, which are disabled

User avatar
justin_le   10 MW

10 MW
Posts: 2233
Joined: May 28 2007 3:27am
Location: Vancouver
Contact:

V3 Battery SOC curves

Post by justin_le » Mar 23 2013 2:27am

Unfortunately I didn't get a chance to add a customizable cell voltage range for the battery state of charge graphic, but I did tweak the range of the stock lookup tables and also added a new chemistry choice called "RCLiP" for the high rate RC LiPo packs based on the discharge data that Merlin posted from his Turnigy battery.
RC LiPo.jpg
RC LiPo.jpg (20.37 KiB) Viewed 5930 times
So for those who are curious, this is the internal lookup tables for the 6 different cell voltage profiles available:
SOC Curves.png
SOC Curves.png (10.21 KiB) Viewed 5930 times
Previously competed in the Suntrip race on a back to back tandem solar powered row/cycle trike. 550 watt solar roof, dual Grin All Axle hub motors, dual Phaserunner controllers, 12 LiGo batteries, and a whole wack of gear.

Now back in Vancouver learning to be a dad with my Big Dummy Frame (yes This One, thanks ES!) with GMAC 10T rear hub motor, Phaserunner controller, and 52V 19Ah EM3EV pack
My website: http://www.ebikes.ca
Please contact via email, info@ebikes.ca, rather than PMs, which are disabled

User avatar
justin_le   10 MW

10 MW
Posts: 2233
Joined: May 28 2007 3:27am
Location: Vancouver
Contact:

Re: Cycle Analyst V3 preview and first beta release

Post by justin_le » Mar 23 2013 3:15am

mrbill wrote: Today I rode for the first time since I updated to Beta23 on a ride longer than 99.9 miles. What happened to the tenths in the display when trip distance units roll past 99.9? I am fairly certain that tenths were displayed for mileages over 99.9 in Beta22, or I would have noticed their absence earlier. Are we already hard-up for memory that only 3 significant digits can be displayed for mileage (or "kilometerage")? I hope not.
Hey Bill, it's been like this in the V3 code for some time. Nothing to do with memory just with available display real estate on the screen. The addition of the throttle slider/ebrake graphic and human power meter meant that had to take one digit off the distance and Ah display, otherwise there would be no gap following the "W" or "A" symbol. However, if you go over to the 9th screen with the trip and total odometer stats, you can see the trip distance right do the 3rd decimal place.
Trip Dist.jpg
Trip Dist.jpg (23.29 KiB) Viewed 5973 times
-Justin
Previously competed in the Suntrip race on a back to back tandem solar powered row/cycle trike. 550 watt solar roof, dual Grin All Axle hub motors, dual Phaserunner controllers, 12 LiGo batteries, and a whole wack of gear.

Now back in Vancouver learning to be a dad with my Big Dummy Frame (yes This One, thanks ES!) with GMAC 10T rear hub motor, Phaserunner controller, and 52V 19Ah EM3EV pack
My website: http://www.ebikes.ca
Please contact via email, info@ebikes.ca, rather than PMs, which are disabled

User avatar
mrbill   10 kW

10 kW
Posts: 512
Joined: Jun 10 2008 6:47pm
Location: Silicon Valley, California
Contact:

Re: Cycle Analyst V3 preview and first beta release

Post by mrbill » Mar 23 2013 1:13pm

justin_le wrote:
mrbill wrote: Today I rode for the first time since I updated to Beta23 on a ride longer than 99.9 miles. What happened to the tenths in the display when trip distance units roll past 99.9? I am fairly certain that tenths were displayed for mileages over 99.9 in Beta22, or I would have noticed their absence earlier. Are we already hard-up for memory that only 3 significant digits can be displayed for mileage (or "kilometerage")? I hope not.
Hey Bill, it's been like this in the V3 code for some time. Nothing to do with memory just with available display real estate on the screen. The addition of the throttle slider/ebrake graphic and human power meter meant that had to take one digit off the distance and Ah display, otherwise there would be no gap following the "W" or "A" symbol. However, if you go over to the 9th screen with the trip and total odometer stats, you can see the trip distance right do the 3rd decimal place.
Trip Dist.jpg
-Justin
OK, I found the 9th screen. And to the thousandth, too. I had suppressed it while moving.

That said, I think I'd rather see the tenths displayed on the main screen when distance rolls over 99.9 than to preserve the gap between the digits and the units (mi or km). When following a route sheet that has many turns at the end of a long ride, tenths may be significant, and having to click through to the ninth screen while moving is inconvenient. The loss of the gap between the numbers and the units bothers me less, especially since the units would abut the least significant digit only when trip distance rolls over 99.9. I suspect this accommodation would go unnoticed by most users but would be greatly appreciated by a few.
Bill Bushnell
http://mrbill.homeip.net/
Bike build thread can be seen here.

User avatar
Kepler   1 GW

1 GW
Posts: 3228
Joined: Nov 08 2009 9:22pm
Location: Eastern suburbs Melbourne Australia

Re: V3 Battery SOC curves

Post by Kepler » Mar 23 2013 3:32pm

justin_le wrote:Unfortunately I didn't get a chance to add a customizable cell voltage range for the battery state of charge graphic, but I did tweak the range of the stock lookup tables and also added a new chemistry choice called "RCLiP" for the high rate RC LiPo packs based on the discharge data that Merlin posted from his Turnigy battery.
RC LiPo.jpg
So for those who are curious, this is the internal lookup tables for the 6 different cell voltage profiles available:
SOC Curves.png
Massive difference between the ebike LiPo and RC LiPo. I suspect the "C" rating of the ebike LiPo is much lower than the RC LiPo.

Nice addition to the ebrake option screens. Make this feature far more versatile.

When do you expect this release to be available?
Current Rides

Lightest true ebike on the planet: ON ROAD viewtopic.php?f=6&t=74269
eBoost on facebook: http://www.facebook.com/pages/Eboost/200306283342024/

User avatar
Kepler   1 GW

1 GW
Posts: 3228
Joined: Nov 08 2009 9:22pm
Location: Eastern suburbs Melbourne Australia

Re: Cycle Analyst V3 preview and first beta release

Post by Kepler » Mar 24 2013 10:10pm

I have setup an adjustable 3 way switch as per teklektik's drawings which works perfectly. However, I have added a small addition by fitting a remote adjustable pot to the high speed switch setting. This way I have 2 presets and one setting that can be adjusted on the fly. So I now have one preset to 250W (low), a second preset to 450W (Med) and a third setting that can be adjusted at the handle bars from zero to 750W. Gives me the best of both worlds. If I am running with PAS activated, I tend to set the adjustable setting to zero so I can switch the PAS off and still pedal. However when using the throttle I tend to leave it at 750W for max boost when I need it.

I am also using a button for throttle rather then a treditional throttle. The button provides a 4V signal with the CA's ramps keeping transitions nice and smooth. For a low powered setup, I am finding this really effective.

Below are a few pictures of the result plus the modified wiring diagram and the veroboard layouts.
IMG_2013.jpg
IMG_2013.jpg (54.57 KiB) Viewed 5830 times
IMG_2019.jpg
IMG_2019.jpg (53.99 KiB) Viewed 5830 times
IMG_2022.jpg
IMG_2022.jpg (59.13 KiB) Viewed 5830 times
IMG_2027.jpg
IMG_2027.jpg (45.09 KiB) Viewed 5830 times
IMG_2028.jpg
IMG_2028.jpg (49.47 KiB) Viewed 5830 times
adjustable 3 speed switch.JPG
adjustable 3 speed switch.JPG (34.83 KiB) Viewed 5830 times
adjustable 3 speed switch extended.JPG
adjustable 3 speed switch extended.JPG (50.93 KiB) Viewed 5830 times
Current Rides

Lightest true ebike on the planet: ON ROAD viewtopic.php?f=6&t=74269
eBoost on facebook: http://www.facebook.com/pages/Eboost/200306283342024/

User avatar
teklektik   10 GW

10 GW
Posts: 4020
Joined: Mar 26 2011 1:15pm
Location: CT, USA

Re: Cycle Analyst V3 preview and first beta release

Post by teklektik » Mar 25 2013 7:37am

Kepler wrote:... I have added a small addition by fitting a remote adjustable pot to the high speed switch setting.
First - thanks to you and others for the kind words a few posts back - very much appreciated! :D

A slick and stealthy installation - very much in keeping with the rest of the build. I particularly like the idea to add the adjustable pot to the High position of the switch - this lets throttle mode (non-PAS) operation be restored easily by setting the pot to the extreme position. This gives much better ease of use than my suggestion to replace one of the existing the Med or Low trimpots - which requires fiddling the pot to a proper midrange value to correctly restore throttle mode. Very nice!
Visit Grin Technologies at www.ebikes.ca
Build Thread: 2WD Yuba Mundo V4

User avatar
justin_le   10 MW

10 MW
Posts: 2233
Joined: May 28 2007 3:27am
Location: Vancouver
Contact:

Re: V3 Battery SOC curves

Post by justin_le » Mar 25 2013 11:30pm

Kepler wrote: Massive difference between the ebike LiPo and RC LiPo. I suspect the "C" rating of the ebike LiPo is much lower than the RC LiPo.
That is definitely the case, but in theory a higher 'C' rating would mean less internal resistance, but it doesn't necessarily mean that the open circuit voltage profile should be any different. It just illustrates how much more there is to a battery than the nominal chemistry though, that's for sure.
When do you expect this release to be available?
So I've had a few days with it and haven't gotten any glitches of note so will post it here. The firmware file says B23 but the boot-up screen says V3 Prelim. In addition to the previously mention changes of a programmable "ebrake output" voltage, and the addition of an RCLiPo battery option, I've also made the following smaller updates:
  • Temperature Signal Filtering: People were commenting on the jitter in the last digit of the temperature reading, so now the temp signal is averaged and filtered just like the volts and amps, in accordance with the "averaging" value selected in the preferences menu.
  • PAS Modes: Now all 4 PAS modes make use of the MaxThrotSpeed, so in each of the RPM|Throt, RPM&Throt, Trq|Throt, or Trq&Throt, if you are travelling below the MaxThrotSpeed, then you can use the throttle without pedalling, but above MaxThrotSpeed you must be pedaling for the throttle to have an effect. Hopefully this will finally satisfy the various interpretations of the legal requirements for European riders.
Happy flashing, let me know your RC LiPo folks if the new profile is fitting you SOC expectations, and please let me know if anyone sees any anomalous behavior so that I can make sure that is fixed before dropping the "prelim".
Attachments
CA3_B23_NoCal.zip
V3.0 Prelim CA firmware file
(46.72 KiB) Downloaded 111 times
Previously competed in the Suntrip race on a back to back tandem solar powered row/cycle trike. 550 watt solar roof, dual Grin All Axle hub motors, dual Phaserunner controllers, 12 LiGo batteries, and a whole wack of gear.

Now back in Vancouver learning to be a dad with my Big Dummy Frame (yes This One, thanks ES!) with GMAC 10T rear hub motor, Phaserunner controller, and 52V 19Ah EM3EV pack
My website: http://www.ebikes.ca
Please contact via email, info@ebikes.ca, rather than PMs, which are disabled

User avatar
justin_le   10 MW

10 MW
Posts: 2233
Joined: May 28 2007 3:27am
Location: Vancouver
Contact:

Re: Cycle Analyst V3 preview and first beta release

Post by justin_le » Mar 25 2013 11:49pm

Kepler wrote:I have setup an adjustable 3 way switch as per teklektik's drawings which works perfectly. However, I have added a small addition.... Gives me the best of both worlds.
I am also using a button for throttle rather then a treditional throttle. The button provides a 4V signal with the CA's ramps keeping transitions nice and smooth. For a low powered setup, I am finding this really effective.
Hey Kepler, super nice work. This is _exactly_ the kind of customized input hacking that I was hoping to see people dial in via the Aux In and CA3 settings. I'm really glad that this worked out and helped you make such a streamlined ebike setup.

-Justin
Previously competed in the Suntrip race on a back to back tandem solar powered row/cycle trike. 550 watt solar roof, dual Grin All Axle hub motors, dual Phaserunner controllers, 12 LiGo batteries, and a whole wack of gear.

Now back in Vancouver learning to be a dad with my Big Dummy Frame (yes This One, thanks ES!) with GMAC 10T rear hub motor, Phaserunner controller, and 52V 19Ah EM3EV pack
My website: http://www.ebikes.ca
Please contact via email, info@ebikes.ca, rather than PMs, which are disabled

User avatar
mrbill   10 kW

10 kW
Posts: 512
Joined: Jun 10 2008 6:47pm
Location: Silicon Valley, California
Contact:

Re: V3 Battery SOC curves

Post by mrbill » Mar 25 2013 11:50pm

justin_le wrote:Happy flashing, let me know your RC LiPo folks if the new profile is fitting you SOC expectations, and please let me know if anyone sees any anomalous behavior so that I can make sure that is fixed before dropping the "prelim".
Hi Justin:

Thanks for issuing a new release and for tweaking the software to an improved state.

Did you make any changes to the cruise control locking behavior in connection with your testing with a thumb throttle?

I still have a hard time getting it to lock at 3 seconds and 0.15 volts. Hit and miss. Sometimes it locks the first time, but others I get the flashing box on the slider, only to have the lock fail when I release the throttle.

Thanks.
Bill Bushnell
http://mrbill.homeip.net/
Bike build thread can be seen here.

User avatar
justin_le   10 MW

10 MW
Posts: 2233
Joined: May 28 2007 3:27am
Location: Vancouver
Contact:

Steer Tube Mounting Bracket,

Post by justin_le » Mar 26 2013 12:19am

Weehoo, also just got delivery of a new stainless steel mount for the CA that fits around the steer tube of a bike. So for those wanting a more permanent and central mount of the CA3 on their handlebars this looks like it will do the trick quite nice! with less clutter than the conventional bracket around the stem
Steer Mount.jpg
Steer Tube Bracket for CA Enclosure
Steer Mount.jpg (17.26 KiB) Viewed 5775 times
And mounted on the bike:
Steer Mounted.jpg
Steer Mounted.jpg (41.61 KiB) Viewed 5775 times
Previously competed in the Suntrip race on a back to back tandem solar powered row/cycle trike. 550 watt solar roof, dual Grin All Axle hub motors, dual Phaserunner controllers, 12 LiGo batteries, and a whole wack of gear.

Now back in Vancouver learning to be a dad with my Big Dummy Frame (yes This One, thanks ES!) with GMAC 10T rear hub motor, Phaserunner controller, and 52V 19Ah EM3EV pack
My website: http://www.ebikes.ca
Please contact via email, info@ebikes.ca, rather than PMs, which are disabled

User avatar
teklektik   10 GW

10 GW
Posts: 4020
Joined: Mar 26 2011 1:15pm
Location: CT, USA

Re: Cycle Analyst V3 preview and first beta release

Post by teklektik » Mar 26 2013 10:08am

Printable Setup Summary for CA v3.0 Prelim1 (aka B23Prelim1)

The setting summary for the newer v3.0 Prelim5 release is available here.
The setting summary for the previous v3B22 release is available here.
Unofficial User Guide is available here.
Please see the Grin Tech Site for a detailed explanation of Setup Parameters.

Distinguishes global from preset-specific parameters.
Printable versions for saving settings - tabular format for multiple presets (1UP.PDF, 2UP.PDF, XLS):
CA_V3-0Prelim_ConfigSettings.zip
(143.6 KiB) Downloaded 130 times
Last edited by teklektik on Apr 18 2013 9:49am, edited 1 time in total.
Visit Grin Technologies at www.ebikes.ca
Build Thread: 2WD Yuba Mundo V4

User avatar
rscamp   1 kW

1 kW
Posts: 363
Joined: May 24 2009 2:24pm
Location: Ontario Canada

Re: Prelim V3.0 Firmware

Post by rscamp » Mar 26 2013 6:06pm

justin_le wrote:So what I decided to do here is add one more parameter in the Throttle Output menu, called "Ebrake Out". By default, this is 0V (or 0mS), but you can change it so that when the brakes are squeezed the CA's throttle output signal goes to any other voltage or pulse width.
I tried this update just now and set Ebrake Out the same as the minimum throttle pulse width. Problem solved. Cheers!

Thanks also for adding the "RC" LiPo algorithm...
Rob
Trice QNT with Astro 3215 8T & V4 Drive
Trice Q with Bafang BBS02 at 48V with "500W" limit
Astro 3210-12T + Neugart PLQE60 20:1 Chain-Puller Spring '17

User avatar
izeman   10 GW

10 GW
Posts: 4929
Joined: Jun 21 2011 8:25am
Location: vienna, austria
Contact:

Re: V3 Battery SOC curves

Post by izeman » Mar 27 2013 2:28am

justin_le wrote:
  • Temperature Signal Filtering: People were commenting on the jitter in the last digit of the temperature reading, so now the temp signal is averaged and filtered just like the volts and amps, in accordance with the "averaging" value selected in the preferences menu.
reminds me of how it's done with car's temp gauges. nail them to 100°C and just let them move when something REALLY strange happens. under normal circumstances water temp varies quite a lot, and ppl would drive to the garage complaining all the time. before someone replies that the CA doesn't behave like that. i know that - just wanted to say that this is common practice everywhere.
i welcome averaging the values. if this value changes one or twice a second it's much easier to read, and still accurate enough to see a trend.

User avatar
izeman   10 GW

10 GW
Posts: 4929
Joined: Jun 21 2011 8:25am
Location: vienna, austria
Contact:

Re: Cycle Analyst V3 preview and first beta release

Post by izeman » Mar 27 2013 2:36am

justin_le wrote:
izeman wrote:i have another concern: i use regen braking with a directly connected brake switch to the controller brake pads. so i'm not using the brake's connector of the ca, which can imho not be used for regen, but for cutting the throttle only. correct?
if i don't release the throttle and pull the brake, the throttle is cut and the wheel is in generator mode. one could "forget" to release the throttle completely when braking, and as soon as the brake is released, full throttle is applied from 0-100% in 0 seconds.
how can this be avoided?
This is a tricky situation since the CA has no idea that you are doing regen by squeezing the brakes, as opposed to say going fast on a downhill and getting regen currents that way. The best solution right now if you have the ebrake going to the controller is to also splice your brake signal up the CA's ebrake input too. Then it will disable the cruise and cutout the throttle etc. while the basic regen functionality of the ebrake signal going to the controller is unaffected.

The better solution will be to install a mini break-out board on the 6-pin connector that senses when the CA's throttle output goes to 0V (as opposed to the MinOutput value), and then triggers the controller ebrake input from that. I alluded to the fact that we'd be making such a mini 'interface' board last year and we've finally got them just about ready. Then you'll be able to get actual regen from the one CA-DP cable without an additional set of wires from the ebrakes to the controller.

-Justin
thanks! i'd like to try the "better than best solution" ;). do you have a layout / part list available so i can build one and try it out? if it's not public yet please PM me, and i'll be happy to beta test. if this is a no-go, i'll start with splitting the brake wire and feeding it to CA and controller.

User avatar
hjns   100 kW

100 kW
Posts: 1273
Joined: Aug 20 2011 11:05pm
Location: Basel, Switzerland

Re: V3 Battery SOC curves

Post by hjns » Mar 27 2013 3:00am

izeman wrote:
justin_le wrote:
  • Temperature Signal Filtering: People were commenting on the jitter in the last digit of the temperature reading, so now the temp signal is averaged and filtered just like the volts and amps, in accordance with the "averaging" value selected in the preferences menu.
reminds me of how it's done with car's temp gauges. nail them to 100°C and just let them move when something REALLY strange happens. under normal circumstances water temp varies quite a lot, and ppl would drive to the garage complaining all the time. before someone replies that the CA doesn't behave like that. i know that - just wanted to say that this is common practice everywhere.
i welcome averaging the values. if this value changes one or twice a second it's much easier to read, and still accurate enough to see a trend.

Funny. Ever since I have the CA - temp limiting in place, I only look at the temperature if I have the feeling the bike is less powerful than it should be. Usually, after climbing a big mountain or so, and then I pretty much know what to expect.

In other words, Justin designed the CA so damn well, that I don't care anymore about "jittering" or "averaging" of my temps..... But it is nice to look at after the ride, anyway.
Henk


All men dream: but not equally. Those who dream by night in the dusty recesses of their minds wake in the day to find that it was vanity: but the dreamers of the day are dangerous men, for they may act their dreams with open eyes, to make it possible. T.E. Lawrence

User avatar
Kepler   1 GW

1 GW
Posts: 3228
Joined: Nov 08 2009 9:22pm
Location: Eastern suburbs Melbourne Australia

Re: Cycle Analyst V3 preview and first beta release

Post by Kepler » Mar 29 2013 3:47am

I have installed a Thun Torque sensor today. Generally quite pleased with the results. Few questions though even after a good search through this thread.

Firstly, I noticed that setting the number of poles not only has an effect on the measured cadence but also how smoothly the torque sensor controls. A higher count smooths out the operation but gives an incorrect cadence reading. I am a bit confused why this setting even has an effect on a torque sensor. I thought it would be a fixed number.

Other issue is voltage. I run 18S LiPo (75V hot off the charger.) No good for running a Thun and have dropped down to 12S which is still on the edge. I need a easy solution to use my 18S and Thun Setup. Something that is nice and compact that I can hopefully fit inside the CA.

Any suggestions greatly appreciated.
Attachments
IMG_2038.jpg
IMG_2038.jpg (54.73 KiB) Viewed 5623 times
Current Rides

Lightest true ebike on the planet: ON ROAD viewtopic.php?f=6&t=74269
eBoost on facebook: http://www.facebook.com/pages/Eboost/200306283342024/

Diamondback   10 kW

10 kW
Posts: 532
Joined: Dec 15 2008 3:52am
Location: Sydney, Australia

Re: Cycle Analyst V3 preview and first beta release

Post by Diamondback » Mar 29 2013 4:44am

Try a small 12v dc-dc converter. It does not have to be big, because current draw on the thun is so little.

I'm running 12S with my thun and ca v3. Justin has told me that the thun is ok up to about 54v.

Just updated my ca to the latest FW today. All went well.

Jason.
Ignorance can be solved, stupid is forever

User avatar
justin_le   10 MW

10 MW
Posts: 2233
Joined: May 28 2007 3:27am
Location: Vancouver
Contact:

Re: Cycle Analyst V3 preview and first beta release

Post by justin_le » Mar 29 2013 2:49pm

Kepler wrote: Firstly, I noticed that setting the number of poles not only has an effect on the measured cadence but also how smoothly the torque sensor controls. A higher count smooths out the operation but gives an incorrect cadence reading. I am a bit confused why this setting even has an effect on a torque sensor. I thought it would be a fixed number.
That is correct. What the CA does is average the torque signal over the previous complete pedal rotation. Or more precisely, it time averages the torque between each PAS sensor pulse, and then does a spacial average of these to cover one full pedal turn based on the #poles setting. That way in theory the averaging is perfectly aliased to your pedal cadence, and you don't get any undulations in the power output. However, there is enough variation between one pedal stroke to the next that I agree it's not as smooth as ideal, and I often end up using the ramp rate settings to keep it steadier still. If you have it set to say 16 poles, but use an 8 pole sensor (like the THUN), then it would be averaging the last two complete pedal strokes and that would help the smoothness a lot. But if say you set it to 12 poles, then your average signal would be much worse than with 8 because you could be alternating between two down strokes and one up stroke, then two up strokes and one down stroke etc.
Torque Sensor Averaging.gif
Torque Sensor Averaging.gif (59.81 KiB) Viewed 5596 times
If you simply time average the torque signal, then there would always be pulsations in power at your cadence frequency.
Other issue is voltage. I run 18S LiPo (75V hot off the charger.) No good for running a Thun and have dropped down to 12S which is still on the edge. I need a easy solution to use my 18S and Thun Setup. Something that is nice and compact that I can hopefully fit inside the CA.
It's quite possible to make a tiny DC-DC that fits in the casing, but most off-the-shelf ones are too tall in their form factor to fit in the box OK. For the simplist and most compact approach that would fit in the casing, one possibility is to use a resistor inline with the V+ signal to drop the voltage going into the CA's power mosfet. With the THUN sensor and throttle plugged in, you would have a total draw of about 32 mA, so if you have a 1K resistor, of at least a 1 or 2 watt rating, then that would drop 32V between your pack and the CA's power input.

Then in order to sense the correct voltage on the CA you'd wire up a pack voltage divider to the Vex input. There are a few circuitboard hacks you could do to decouple the onboard voltage divider from the V+ power input so that you don't even need to hook up a pack voltage sense to Vex, but I'd need to go over the layout a bit to see what would be easiest.

-Justin
Previously competed in the Suntrip race on a back to back tandem solar powered row/cycle trike. 550 watt solar roof, dual Grin All Axle hub motors, dual Phaserunner controllers, 12 LiGo batteries, and a whole wack of gear.

Now back in Vancouver learning to be a dad with my Big Dummy Frame (yes This One, thanks ES!) with GMAC 10T rear hub motor, Phaserunner controller, and 52V 19Ah EM3EV pack
My website: http://www.ebikes.ca
Please contact via email, info@ebikes.ca, rather than PMs, which are disabled

chroot   100 kW

100 kW
Posts: 1284
Joined: Nov 29 2009 4:03pm

Re: V3 Battery SOC curves

Post by chroot » Mar 29 2013 3:26pm

Hi Justin, I am wondering, How the CA 3.x detect battery SOC fall down, and Do they automatically shut off the controller to prevent the battery reach to the death zone?
Thank you Justin Lemire-Elmore - You are a HERO!

Tidalforce, Yuba Mundo V4 Cargo bike, Juiced Riders ODK V1 Cargo bike
English is my secondary language - ASL (American Sign Language) is my primary.

chroot   100 kW

100 kW
Posts: 1284
Joined: Nov 29 2009 4:03pm

Re: Steer Tube Mounting Bracket,

Post by chroot » Mar 29 2013 4:01pm

Will this support the adjustment stem? What I looked this picture seems only fixed stem without adjustment.

Let me know thanks.
justin_le wrote:Weehoo, also just got delivery of a new stainless steel mount for the CA that fits around the steer tube of a bike. So for those wanting a more permanent and central mount of the CA3 on their handlebars this looks like it will do the trick quite nice! with less clutter than the conventional bracket around the stem
Steer Mount.jpg
And mounted on the bike:
Steer Mounted.jpg
Thank you Justin Lemire-Elmore - You are a HERO!

Tidalforce, Yuba Mundo V4 Cargo bike, Juiced Riders ODK V1 Cargo bike
English is my secondary language - ASL (American Sign Language) is my primary.

User avatar
Kepler   1 GW

1 GW
Posts: 3228
Joined: Nov 08 2009 9:22pm
Location: Eastern suburbs Melbourne Australia

Re: Cycle Analyst V3 preview and first beta release

Post by Kepler » Mar 29 2013 8:47pm

justin_le wrote:
Kepler wrote: Firstly, I noticed that setting the number of poles not only has an effect on the measured cadence but also how smoothly the torque sensor controls. A higher count smooths out the operation but gives an incorrect cadence reading. I am a bit confused why this setting even has an effect on a torque sensor. I thought it would be a fixed number.
That is correct. What the CA does is average the torque signal over the previous complete pedal rotation. Or more precisely, it time averages the torque between each PAS sensor pulse, and then does a spacial average of these to cover one full pedal turn based on the #poles setting. That way in theory the averaging is perfectly aliased to your pedal cadence, and you don't get any undulations in the power output. However, there is enough variation between one pedal stroke to the next that I agree it's not as smooth as ideal, and I often end up using the ramp rate settings to keep it steadier still. If you have it set to say 16 poles, but use an 8 pole sensor (like the THUN), then it would be averaging the last two complete pedal strokes and that would help the smoothness a lot. But if say you set it to 12 poles, then your average signal would be much worse than with 8 because you could be alternating between two down strokes and one up stroke, then two up strokes and one down stroke etc.
The attachment Torque Sensor Averaging.gif is no longer available
If you simply time average the torque signal, then there would always be pulsations in power at your cadence frequency.


Other issue is voltage. I run 18S LiPo (75V hot off the charger.) No good for running a Thun and have dropped down to 12S which is still on the edge. I need a easy solution to use my 18S and Thun Setup. Something that is nice and compact that I can hopefully fit inside the CA.
It's quite possible to make a tiny DC-DC that fits in the casing, but most off-the-shelf ones are too tall in their form factor to fit in the box OK. For the simplist and most compact approach that would fit in the casing, one possibility is to use a resistor inline with the V+ signal to drop the voltage going into the CA's power mosfet. With the THUN sensor and throttle plugged in, you would have a total draw of about 32 mA, so if you have a 1K resistor, of at least a 1 or 2 watt rating, then that would drop 32V between your pack and the CA's power input.

Then in order to sense the correct voltage on the CA you'd wire up a pack voltage divider to the Vex input. There are a few circuitboard hacks you could do to decouple the onboard voltage divider from the V+ power input so that you don't even need to hook up a pack voltage sense to Vex, but I'd need to go over the layout a bit to see what would be easiest.

-Justin
Thanks for that Justin.

So just to be perfectly clear with using a resistor and the Vex input to get around the HV issue, I presume the drawing below is what you mean. Basically I am turning it into a HV setup but using a dropdown resistor rather then a DC-DC converter, correct?
Attachments
CA3 HV.jpg
CA3 HV.jpg (18.07 KiB) Viewed 4028 times
Current Rides

Lightest true ebike on the planet: ON ROAD viewtopic.php?f=6&t=74269
eBoost on facebook: http://www.facebook.com/pages/Eboost/200306283342024/

User avatar
justin_le   10 MW

10 MW
Posts: 2233
Joined: May 28 2007 3:27am
Location: Vancouver
Contact:

Re: Cycle Analyst V3 preview and first beta release

Post by justin_le » Mar 29 2013 9:09pm

Kepler wrote: Thanks for that Justin.
So just to be perfectly clear with using a resistor and the Vex input to get around the HV issue, I presume the drawing below is what you mean. Basically I am turning it into a HV setup but using a dropdown resistor rather then a DC-DC converter, correct?
Yes, that is it exactly. If the resistor is going inside the casing, I would try to locate off to the far side of the enclosure just to spread out the location of hot spots in the device and better help with the heat dissipation. I'd use 5K for R2, and 100K for R1, and your calibrated V/V setting will be around 21.

-Justin
Previously competed in the Suntrip race on a back to back tandem solar powered row/cycle trike. 550 watt solar roof, dual Grin All Axle hub motors, dual Phaserunner controllers, 12 LiGo batteries, and a whole wack of gear.

Now back in Vancouver learning to be a dad with my Big Dummy Frame (yes This One, thanks ES!) with GMAC 10T rear hub motor, Phaserunner controller, and 52V 19Ah EM3EV pack
My website: http://www.ebikes.ca
Please contact via email, info@ebikes.ca, rather than PMs, which are disabled

User avatar
justin_le   10 MW

10 MW
Posts: 2233
Joined: May 28 2007 3:27am
Location: Vancouver
Contact:

Re: Cycle Analyst V3 preview and first beta release

Post by justin_le » Mar 29 2013 9:19pm

izeman wrote:
The better solution will be to install a mini break-out board on the 6-pin connector that senses when the CA's throttle output goes to 0V (as opposed to the MinOutput value), and then triggers the controller ebrake input from that. I alluded to the fact that we'd be making such a mini 'interface' board last year and we've finally got them just about ready.
thanks! i'd like to try the "better than best solution" ;). do you have a layout / part list available so i can build one and try it out? if it's not public yet please PM me, and i'll be happy to beta test. if this is a no-go, i'll start with splitting the brake wire and feeding it to CA and controller.
It's really just a single comparator IC that compares the throttle signal to a 0.5V reference, and if the CA's throttle is less than 0.5V then the output of the comparator gets asserted low, turning on the regen input of the controller. The boards are done with SMT parts that don't have a thru-hole equivalent, so if you want to build one I'd find any readily available single supply comparator available in an 8-DIP package, like the LM393, and breadboard around that.
Previously competed in the Suntrip race on a back to back tandem solar powered row/cycle trike. 550 watt solar roof, dual Grin All Axle hub motors, dual Phaserunner controllers, 12 LiGo batteries, and a whole wack of gear.

Now back in Vancouver learning to be a dad with my Big Dummy Frame (yes This One, thanks ES!) with GMAC 10T rear hub motor, Phaserunner controller, and 52V 19Ah EM3EV pack
My website: http://www.ebikes.ca
Please contact via email, info@ebikes.ca, rather than PMs, which are disabled

Post Reply