Cycle Analyst Trip Analysis Software (now Online Sharing!)

Talk about anything and everything here within reason.
User avatar
justin_le   10 MW

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

Cycle Analyst Trip Analysis Software (now Online Sharing!)

Post by justin_le » Apr 14 2014 5:42am

-EDIT- This thread started off for the creating of a stand alone tool to open and view CA trip data inside google earth, but it evolved instead into an online web application that runs inside your browser, with nothing to download and install. This web app is available from here:
http://www.ebikes.ca/tools/trip-analyzer.html


********************************
Just a very preliminary release but I thought some people might like to play with this in the current state. Unzip the attached software package and launch the executable, then load both a CA log file and a corresponding GPS file in the file dialogs. If you have a GPS analogger then these files will created and saved with each trip, but you could also have CA data that is logged on a computer and GPS data that comes from any device that saves location data at 1Hz in a NMEA format.
CALoggerToKMZ.jpg
CALoggerToKMZ.jpg (41.59 KiB) Viewed 5326 times
This will generate a .kmz file, which you can then open with Google Earth. Once you do, it should zoom in to show your trip route, along with a 3D line bar graph for your speed, voltage, current, and watts:
Trip Route Summay.jpg
Trip Route Summay.jpg (60.75 KiB) Viewed 5326 times
Where it gets fun though is if you right click on the "All CA and GPS Data" in the places sidebar and select the option to show elevation profile:
Show Elevation Profile.jpg
Show Elevation Profile.jpg (77.75 KiB) Viewed 5326 times
Then you will see a 2D graph appear under the map, along with options to simultaneously show any two of the logged CA parameters. There is a live cursor which you can scroll back and forth to see the numeric data, and which will highlight the corresponding location on the map with a large arrow. Here for instance is this trip above showing the motor amps and vehicle speed:
Amps and Speed.jpg
Here is the plot of motor temperature and trip elevation. You can easily see the periods of motor temperature increase corresponding more or less to sections of the trip that involved hill climbs
Temp and Elevation, Cropped.jpg
Temp and Elevation, Cropped.jpg (160.72 KiB) Viewed 5326 times
There's still a lot more work to do but at this point it's at least fairly usable for people who want to play a bit with their ebike data sets, so download and play :D
Attachments
CALoggerToKMZ(RenameToZIP).pdf
Windows Software for generating KMZ from CA and GPS Data
(7.89 MiB) Downloaded 116 times
Last edited by justin_le on Aug 07 2015 6:14pm, edited 3 times in total.
Reason: Making subject more relevant to overall thread
Currently recovering from 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 with my Big Dummy Frame (yes This One, thanks ES!) with Grin all-axle front hub, Phaserunner controller, and 52V 19Ah Cellman triangle 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: 2152
Joined: May 28 2007 3:27am
Location: Vancouver
Contact:

Re: Cycle Analyst To Google Earth Software

Post by justin_le » Apr 14 2014 5:47am

Also, attached are the python script files for people who want to play with the .kmz generating code and tweak it to their needs.
Attachments
AnaloggerToKMZ_PythonScripts.RenameToZip.pdf
Python Code for generating google earth .kmz output from CA and GPS data files
(6.45 KiB) Downloaded 85 times
Currently recovering from 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 with my Big Dummy Frame (yes This One, thanks ES!) with Grin all-axle front hub, Phaserunner controller, and 52V 19Ah Cellman triangle pack
My website: http://www.ebikes.ca
Please contact via email, info@ebikes.ca, rather than PMs, which are disabled

80for20   10 W

10 W
Posts: 67
Joined: Sep 26 2013 12:36am
Location: Vancouver, BC

Cycle Analyst To Google Earth Software

Post by 80for20 » Apr 14 2014 6:01am

Thanks, again, Justin. This. Is. Wicked.

Sgm

Frank   100 W

100 W
Posts: 135
Joined: Dec 10 2007 11:57am
Location: Maine

Re: Cycle Analyst To Google Earth Software

Post by Frank » Apr 14 2014 6:14am

Wow!
Frank

drew12345   10 kW

10 kW
Posts: 899
Joined: Oct 16 2013 8:34pm
Location: MD, USA

Re: Cycle Analyst To Google Earth Software

Post by drew12345 » Apr 14 2014 6:20am

Very Cool! Will play with this today. Thanks!

User avatar
teslanv   100 MW

100 MW
Posts: 2656
Joined: Nov 03 2013 8:42pm
Location: Bellevue, WA - USA
Contact:

Re: Cycle Analyst To Google Earth Software

Post by teslanv » Apr 14 2014 7:48am

That looks really cool, Justin.
Do you know of any Android apps that would output the proper data for this? Hoping I can use my phone as the GPS...

[edit] Looks like there are some options on android to output GPX or KML files. - Would they be compatible?

https://play.google.com/store/apps/deta ... .gpslogger
DD Hubs, Batteries, Controllers & Custom Ebikes.
http://westcoastelectrics.com
West Coast Electric Cycles
Bellevue, WA
USA

User avatar
justin_le   10 MW

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

Re: Cycle Analyst To Google Earth Software

Post by justin_le » Apr 14 2014 6:11pm

teslanv wrote: [edit] Looks like there are some options on android to output GPX or KML files. - Would they be compatible?
The GPS file needs to be in the NMEA text format, but there are lots of programs to convert GPX into the NMEA standard. I haven't tried it yet but imagine this would do the job handily regardless of what you are using on the android:
http://www.gpsbabel.org/

The important thing is that the CA to KMZ software assumes that there is either a 1:1 or 1:5 data mapping between each GPS point and CA data row (depending on if you are at 1Hz or 5Hz on the CA), so you want to make sure that your track data points are recorded at 1Hz. I presume this is the default for most cell phone GPS units but there are some higher rate 10Hz GPS devices out there too.

-Justin
Currently recovering from 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 with my Big Dummy Frame (yes This One, thanks ES!) with Grin all-axle front hub, Phaserunner controller, and 52V 19Ah Cellman triangle pack
My website: http://www.ebikes.ca
Please contact via email, info@ebikes.ca, rather than PMs, which are disabled

User avatar
liveforphysics   100 GW

100 GW
Posts: 13990
Joined: Oct 29 2008 1:48am
Location: Santa Cruz, CA, USA

Re: Cycle Analyst To Google Earth Software

Post by liveforphysics » Apr 14 2014 6:50pm

Exceptional! I'm excited to try it!
Each carcinogen vapor exposure includes a dice roll for cancer.

Each mutagen vapor exposure includes a dice roll for reproductive genetic defects in your children.

Each engine start sprays them into a shared atmosphere which includes beings not offered an opportunity to consent accepting these cancer experiences and defective genetics life experiences.

Every post is a free gift to the collective of minds composing the living bleeding edge of LEV development on our spaceship.

User avatar
spinningmagnets   100 GW

100 GW
Posts: 10730
Joined: Dec 21 2007 10:27pm
Location: Ft Riley, NE Kansas

Re: Cycle Analyst To Google Earth Software

Post by spinningmagnets » Apr 14 2014 7:05pm

Justin, I'll buy a V3 Cycle Analyst if you autograph it, I'll even throw in an extra $20 to pay for a light-colored paint pen. If yes, give me a code word to put in the order?...

User avatar
justin_le   10 MW

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

Re: Cycle Analyst To Google Earth Software

Post by justin_le » Apr 15 2014 2:20pm

spinningmagnets wrote:Justin, I'll buy a V3 Cycle Analyst if you autograph it, I'll even throw in an extra $20 to pay for a light-colored paint pen. If yes, give me a code word to put in the order?...
Give me a reason to travel to Kansas spinningmagnets and I'll hand deliver this to you in person! :mrgreen:

But really, it could be quite fun when doing your comparison writeups between different ebike drives systems to present performance data visualized this way. There doesn't seem to be a limit on how many .kmz files you can have simultaneously imported so you can see power usage of the several trips side by side in the 3-D line graphs. But when you click the "show elevation profile" to get the 2D graph underneath, that would be just for one trip at a time.

Has anyone else had tried the software yet?
Currently recovering from 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 with my Big Dummy Frame (yes This One, thanks ES!) with Grin all-axle front hub, Phaserunner controller, and 52V 19Ah Cellman triangle pack
My website: http://www.ebikes.ca
Please contact via email, info@ebikes.ca, rather than PMs, which are disabled

User avatar
MattyCiii   100 kW

100 kW
Posts: 1367
Joined: May 05 2007 2:06pm
Location: Boston, MA, USA

Re: Cycle Analyst To Google Earth Software

Post by MattyCiii » Apr 15 2014 2:52pm

justin_le wrote:Has anyone else had tried the software yet?
Gonna have to quit work early and rush home to try this!
1st build: Dahon Jetstream folding bike. Quick, reliable, capable of 32mph. Light enough to lift, folds for easy transport by car/bus/train.
2nd build: RC powered 2009 Norco A-Line. Top speed 39mph. Built like a tank, it's resistant to Boston potholes, can stop on a dime, easily goes up/down curbs when necessary.
3rd build (just started): Scratch build ultimate utility bike. Based on a common power module using a NuVinci left side freewheel.

User avatar
snellemin   10 kW

10 kW
Posts: 837
Joined: Apr 03 2011 12:24am
Location: Spring TX

Re: Cycle Analyst To Google Earth Software

Post by snellemin » Apr 15 2014 5:32pm

Pretty cool. Its now like the Eagletree datalogger I used a when I first started using my ebike. Going to get me the analogger now for the higher voltage limit for my projects.



Same as the Eagletree

Image
Silent speed Racer

User avatar
spinningmagnets   100 GW

100 GW
Posts: 10730
Joined: Dec 21 2007 10:27pm
Location: Ft Riley, NE Kansas

Re: Cycle Analyst To Google Earth Software

Post by spinningmagnets » Apr 15 2014 5:58pm

Give me a reason to travel to Kansas
I am surrounded by cattle, and also farms that grow cattle food. I have travelled a lot, and this is one of the most boring places I have ever been (I came for a job and to be near my kids/grandkids). I like you too much to subject you to even one day here...will you be at the Interbike meet in Las Vegas in Sept?
Last edited by spinningmagnets on Apr 15 2014 6:24pm, edited 1 time in total.

User avatar
fechter   100 GW

100 GW
Posts: 13082
Joined: Dec 31 2006 3:23pm
Location: California Bay Area, USA

Re: Cycle Analyst To Google Earth Software

Post by fechter » Apr 15 2014 6:10pm

Pretty cool.
How much memory does the CA have for logging?
"One test is worth a thousand opinions"

User avatar
justin_le   10 MW

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

Re: Cycle Analyst To Google Earth Software

Post by justin_le » Apr 15 2014 6:32pm

fechter wrote:Pretty cool.
How much memory does the CA have for logging?
The CA itself doesn't have any onboard memory, it just streams it out continuously via the data port so you need to capture and save this with another device. We make the Analogger for that:
http://www.ebikes.ca/documents/Analogger_Manual_Web.pdf
But you can also save it to a laptop using the TTL->USB cable, or in principle install a serial->bluetooth wireless module and save it wireless with a smart phone.

-Justin
Currently recovering from 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 with my Big Dummy Frame (yes This One, thanks ES!) with Grin all-axle front hub, Phaserunner controller, and 52V 19Ah Cellman triangle pack
My website: http://www.ebikes.ca
Please contact via email, info@ebikes.ca, rather than PMs, which are disabled

User avatar
teslanv   100 MW

100 MW
Posts: 2656
Joined: Nov 03 2013 8:42pm
Location: Bellevue, WA - USA
Contact:

Re: Cycle Analyst To Google Earth Software

Post by teslanv » Apr 15 2014 8:43pm

Justin,

Can you point us to an example of a compatible bluetooth module that can connect to the CA3?
DD Hubs, Batteries, Controllers & Custom Ebikes.
http://westcoastelectrics.com
West Coast Electric Cycles
Bellevue, WA
USA

User avatar
justin_le   10 MW

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

Re: Cycle Analyst To Google Earth Software

Post by justin_le » Apr 15 2014 10:40pm

teslanv wrote:Justin,

Can you point us to an example of a compatible bluetooth module that can connect to the CA3?
Almost any serial->bluetooth device that takes a 0-5V logic level rather than strictly a 0-3.3V level should work OK. The main challenge is the power draw, most of them need like 20-30mA of current when transmitting, and the CA can't supply that from it's 5V bus so you need a separate DC-DC converter or a small onboard battery to energize it.

https://www.sparkfun.com/products/12580
http://www.sunrom.com/200
etc.

-Justin
Currently recovering from 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 with my Big Dummy Frame (yes This One, thanks ES!) with Grin all-axle front hub, Phaserunner controller, and 52V 19Ah Cellman triangle pack
My website: http://www.ebikes.ca
Please contact via email, info@ebikes.ca, rather than PMs, which are disabled

User avatar
MattyCiii   100 kW

100 kW
Posts: 1367
Joined: May 05 2007 2:06pm
Location: Boston, MA, USA

Re: Cycle Analyst To Google Earth Software

Post by MattyCiii » Apr 17 2014 9:30pm

Using Windows 7 professional (32 bit) service pack 1, the app runs in that I can choose the CA file and the GPS file, and "Generate". It creates a 0 kb KMZ file. Then nothing happens, even after running for an hour on a < 1MB file.

Image

Is there a debugging mode I can look at to try to diagnose?
1st build: Dahon Jetstream folding bike. Quick, reliable, capable of 32mph. Light enough to lift, folds for easy transport by car/bus/train.
2nd build: RC powered 2009 Norco A-Line. Top speed 39mph. Built like a tank, it's resistant to Boston potholes, can stop on a dime, easily goes up/down curbs when necessary.
3rd build (just started): Scratch build ultimate utility bike. Based on a common power module using a NuVinci left side freewheel.

User avatar
Ken Taylor   100 W

100 W
Posts: 243
Joined: Nov 28 2012 7:05pm
Location: Canberra
Contact:

Re: Cycle Analyst To Google Earth Software

Post by Ken Taylor » Apr 20 2014 6:29am

justin_le wrote:Just a very preliminary release but I thought some people might like to play with this in the current state.
You can do some interesting things overlaying bicycle data on to Google Earth. It gets more interesting with multiple riders. This is a visualisation of a training ride with Green Edge and includes overlaying heart rate and power data.

A few different techniques are used in this Women's Tour of New Zealand video.

Perhaps there is something there you can use.
Pursue minimalism, then remove weight.

drew12345   10 kW

10 kW
Posts: 899
Joined: Oct 16 2013 8:34pm
Location: MD, USA

Re: Cycle Analyst To Google Earth Software

Post by drew12345 » May 04 2014 3:21pm

Justin, tried this out today on Windows 7 64 bit and got same issue as Matticiii. It should generate the file quickly, right? Let me know what OS's this is supported on? I would like to play around with this. Thanks.

User avatar
justin_le   10 MW

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

Re: Cycle Analyst To Google Earth Software

Post by justin_le » May 16 2014 1:42am

drew12345 wrote:Justin, tried this out today on Windows 7 64 bit and got same issue as Matticiii. It should generate the file quickly, right? Let me know what OS's this is supported on? I would like to play around with this. Thanks.
Hmm, it should work fine on any version of windows, but it looks like something is missing or got corrupted in the attached archive since since I'm having the same issue running it from the download while my local copy works fine. The main developer is away at the moment but I'll follow up on this soon.

We're switchng our efforts a bit to make this more of a web-app rather than a stand alone application so that we can make it a lot more platform independent. In the meantime though, if you can upload the GPS and CA log files here I can run the conversion for you.
-Justin
Currently recovering from 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 with my Big Dummy Frame (yes This One, thanks ES!) with Grin all-axle front hub, Phaserunner controller, and 52V 19Ah Cellman triangle 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: 2152
Joined: May 28 2007 3:27am
Location: Vancouver
Contact:

Re: Cycle Analyst To Google Earth Software

Post by justin_le » May 23 2014 11:20pm

justin_le wrote: We're switchng our efforts a bit to make this more of a web-app rather than a stand alone application so that we can make it a lot more platform independent. In the meantime though..
Alright everyone, here's a proof of concept on that:
http://www.ebikes.ca/tripanalyzer/index.html

It should be fairly self explanatory. Upload your CA file and GPS files then hit Submit. At the moment, it assumes that the CA is at a 5Hz data rate, but it will autodetermine whether this is 1Hz or 5Hz in the final version.
TripAnalyzerUpload.jpg
TripAnalyzerUpload.jpg (20.71 KiB) Viewed 4688 times
Once submitted, you'll have an embedded trip map on the top, and a 2-D graph on the bottom for plotting all the variables. As you move the mouse along the graph, then a cursor balloon shows the corresponding point on the map:
TripAnalyzerResults.jpg
TripAnalyzerResults.jpg (81.19 KiB) Viewed 4688 times
The graph scaling can be adjusted with the two sliders to zone in on a certain region. And the plan will then be to have all the computed statistic for this selected region (Wh/km, %regen, average power, net elevation gain, etc.) in a data box on the right, and the selected region will have a different colour on the route map.

Unlike the google earth implementation we can't show the data as a 3D bar graph super-imposed on the top route map, but it does give us full control over the data analytics.
Currently recovering from 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 with my Big Dummy Frame (yes This One, thanks ES!) with Grin all-axle front hub, Phaserunner controller, and 52V 19Ah Cellman triangle pack
My website: http://www.ebikes.ca
Please contact via email, info@ebikes.ca, rather than PMs, which are disabled

John in CR   100 GW

100 GW
Posts: 13525
Joined: May 20 2008 12:58am
Location: Paradise

Re: Cycle Analyst To Google Earth Software

Post by John in CR » May 24 2014 11:22am

Great work Justin. It looks like you cured my anxiety about being able to really use my Analogger.

BTW, the Analogger is difficult to find on your website. I had to go to CA accessories to find info. It deserves a more direct route and it's own product listing.

John

User avatar
Ypedal   100 GW

100 GW
Posts: 12520
Joined: Dec 27 2006 12:55pm
Location: Moncton NB, Canada
Contact:

Re: Cycle Analyst To Google Earth Software

Post by Ypedal » May 24 2014 11:36am

Subbed. .... how did I miss this..
ES site status page:
http://www.ypedal.com/ES/ES.htm
----------------
http://www.ypedal.com

bart1006   10 W

10 W
Posts: 76
Joined: Sep 24 2012 11:10am
Location: Zwolle

Re: Cycle Analyst To Google Earth Software

Post by bart1006 » May 24 2014 1:46pm

Nice work Justin!

I will give it a try to adjust the output of the android/iphone app to this formats.

Post Reply