Access at last ……

Aprilia Caponord ETV1000 Rally-Raid ECU connection OBD-II TuneECU It has been a long time coming … and I mean a looooong time. Think a decade! Back before we had TuneECU a few Capo owners pooled thoughts on how to get access to the ECU and read its contents, but we all gave up when TuneECU came along because it did it all for us – for (almost) free. Now however there is a real need for that access if the new dashboard display is to do what it is supposed to, and that has been the hurdle of hurdles to get across. If I am totally honest this problem alone was guaranteed to bring the project to a grinding halt if nothing was. So for the past few weeks, I put the display to one side and concentrated on cracking the ECU.

Well I’m not only chuffed, I am totally blown over backwards because as of this afternoon, I can finally access and interrogate the ECU independently of anyone elses equipment or software – ECU serial number, map number and all the sensor parameters plus self test functions and TPS reset! I’ve still got work to do interpreting some of the data, but that is not such a big issue and should be finished tomorrow.

Tonight though, I think a cold beer or two are in order!

g this is fun!

Aprilia Caponord ETV1000 Rally-Raid Dynamic Brake Light SystemI’m not really enthusiastic about the constant onslaught of technology on motorcycles …. the cynic in me sees mostly a revenue-earning exercise whereby the benefits to you and me are far outweighed by the locked-out, take-it-to-the-dealer and be fleeced mentality of the manufacturers.

But occasionally I do spot something that tweaks the nose of my flagging interest …. this time it’s been the BMW Dynamic Brake Light system. Trying to get the myopic, half-asleep nit-wit to notice the difference between my normal braking and HARD BRAKING is sometimes a real issue. There’s nothing worse than gliding to a halt only to hear some plank with full ABS active about to kiss my back wheel! Hmmm so how hard can it be to make a box of tricks to do the same as the BMW system and fit it on the Capo …..

Well a tad more difficult than I first thought that’s for sure! The BMW system seems to work as follows:

  • At speeds over 50Kmh(31mph) when braking HARD the brake light pulses at 5Hz*
  • When the speed drops below 14Kmh(9mph) while still braking hard, the hazard lights are activated.
  • When the speed rises back above 20Kmh(12mph) the hazards are turned off.
  • At all other times the brake light functions as normal.

*EU rules quote a rate of 4Hz (±1Hz) for LED’s and 4Hz (-1Hz) for incandescent bulbs.

Aprilia Caponord ETV1000 Rally-Raid accelerometer dataSo how to replicate this on the Capo? Enter one test-box to get things started …… a microcontroller that measures acceleration in three axis and has inputs/outputs to the brake light, hazard lights and speedometer. The box of tricks is designed to allow normal brake/hazard light function in case of power or hardware failure … all in the name of safety don’t ya know.

Getting usable data from the accelerometer was harder than I thought ….. the thing is VERY sensitive and has needed a lot of filtering and data-smoothing to get usable info from it. But after a couple of days and quit a few emergency stops (all good practice!) the data is starting to look good.

Aprilia Caponord ETV1000 Rally Raid Dynamic Brake Light SystemNext up, I need to input the Capo’s speed to the microcontroller. For this I’ll use the speed output pin directly from the dashboard – I knew it would come in handy one day! All the inputs are buffered with opto-isolators to make sure the system is as well protected from the noisy fluctuating voltage in the Capo’s loom as is possible. Now with the prototype well under way, it just remains to find answers to some other  questions ….. such as what about braking on wet, loose, icy surfaces where deceleration will be significantly less, but the dynamic brake light might still be useful. My guess is the BMW system has some integration with the ABS system to shift the triggering point, but I don’t have ABS! This one I’ll have to ponder on a while longer.

One things for sure …. you learn a lot about braking forces, motorcycle dynamics and breaking code doing this malarkey! Oh and I’ve found out that a warm front tyre breaks grip at about 1.1g …… 😳

 

Cam chain tensioner – part 1

Aprilia Caponord ETV1000 Rally Raid airboxYesterday I spent a lazy morning installing a couple of sensors inside the airbox (more in another post) and with the tank propped back in place, fired the Capo up to check the fuel lines…….

…… and just for a second or so after she fired up there was a distinct rattle from the rear cylinder and frankly it didn’t sound too special as the bike warmed up. To be honest, I’d heard it before on a couple of occasions but couldn’t pin down which cylinder it was. With the tank lifted and stood in just the right position, it was obviously the Aprilia Caponord ETV1000 Rally Raid cam chain tensioner AP0236253rear. As it was lunch time, I decided to have a look a bit later – and promptly forgot! Well I got back to it in the evening and pulled the cam chain tensioner out. Soggy as a knackered bed spring! 🙁

So it had a thorough flush out and re-charge with fresh 15/50w oil and firmed up nicely (phew!) …. it looked as though contamination had built up in/around the ball that seals the oil in, in this case letting it out just as easy. Buttoned it all back together, fired the motor into life and revelled in a quiet(ish) Capo motor – just in time for a cold beer and MotoGP on the box, bliss! As I sat watching the race I kept having a niggling thought … what if the front one is the same?

Tomorrow feels like a let’s-check-the-front-one day ……….. 😕 

TuneECU (Android) update to V2.1

TuneECU Andriod app V2.1 - Aprilia Caponord ETV1000 Rally-Raid Sagem ECUTuneECU app for the Android was updated again  last week to V2.1 – Google store says bug fixes and adding the Ducati 848/1098 & 1198 are the reason. Time then to give it a whirl on the old Capo and see if the experience has improved from last time. So with the sun shining brightly and making the barn a nice cosey sun trap to work in, and the road devoid of the sound of machinery and promised workmen, I rummaged around for the cables charged the phone and set about pulling the seats off.

Bluetooth (ELM327 V1.5)

elm327Connection was the same as before and data is still slow to update – tacho and TPS seem quick enough but the side-stand takes a whopping 5 seconds to change state. Still no side-stand or Fan status indicator like the PC version. The datalog facility worked, but seems to have a bug, more on this later.

Cable (Samsung Note 3)

Connection is now very poor, taking 2, 3 or 4 attempts to get it to connect. Each time I get a flashing red indicator, sometimes going orange then back to red followed by a dialog box telling me to recycle the ignition. The connection worked fine with version 1 and 2 so something has definitely happened in the latest release. Oh and the Samsung was tried with two cables and both cables tried with old faithful – the Asus EEPC901 and they worked just fine with the PC version. Once connected however, the data seems to be displayed quicker than Bluetooth and the connection was stable even when starting the engine.

Datalog

TuneECU app datalog via cable not Bluetooth on Samsung Galaxy Note 3 from Aprilia Caponord ETV1000 Rally-RaidGetting this to work took a bit of time, simply because it turns out I have to touch the ‘REC’ icon in the bottom left hand corner of the Diagnostics screen for something like 4 or 5 seconds for it to toggle to orange and begin recording. Once recording I can’t change screens, but if I swipe left or right as though trying to get to ‘Adjustments’ or ‘Map’ then data on the screen freezes and you wonder what the hell is going on …… but the data is still being logged in the background. Swipe in the opposite direction, as though going back to ‘Diagnostics’ and the screen starts working again.

Disconnect from the ECU and ‘Datalog’ now appears at the bottom of the ‘ECU’ drop down menu, click and select the log file to open and a new window opens with the data displayed as a graph. TPS, RPM and Engine Temp are logged, but apparently no way of selecting other data to log other than TuneECU app datalog data file diasplay on Samsung Galaxy Note 3 from an Aprilia Caponord ETV1000 Rally-Raidthese three. The TPS and RPM are a nice distinct line with good contrast to the background, however the Engine Temp is dark blue dots on black background …….. difficult to read clearly in bright light. The data is stored in CSV format so it’s easy to bring the files into your PC and use something like Microsoft Excel to display it. Incidentally the screenshot of a data file on the TuneECU (Google) page shows additional information – Speed / MAP (Manifold Air Pressure) and what looks like gear position …… so there is certainly scope to allow more (bike model specific) information to be logged and displayed.

Conclusion

I so want to like this software. Building in the datalogger is great but in the light of the connection issues and slow performance when in operation, I’m reluctant to use it at the moment preferring to stick to the old PC version and my TuneBoy based datalogger. Of course this is only one persons view with a specific combination of bike/phone, but if others are experiencing the same or similar problems, then maybe addressing these issues to make a solid and robust platform before adding any more new bikes or functionality would be the way forward …… just my six cents worth. Let’s see what V3 brings.

Reading the current situation

©Lockwood International 2014 - UK Futura inlay with voltmeter, L&R indicators and sidestand lightWith the new inlay nearly complete and sufficient testing of the modified dashboard to prove its reliability in day-to-day use, it’s now time to move on and complete the next stage of miniaturising the circuit board. The big grey box and wiring loom holding the Arduino Uno stays for the time being, but now it will house the smaller circuit board and Arduino Nano. Once thoroughly tested, the box and loom will disappear as the board finally gets mounted inside the case.

Aduino Nano and Pololu 1300 programmerThis time around the microcontroller will be programmed differently to speed up the start time and free up more memory space. For that I’m using a Pololu 1300 programming device ….. Something I’ve never done before, let’s hope I don’t fry it! If all goes well, that then leaves me an Arduino Uno spare and it would be rude not to find another Caponord related little job for it! So here’s the next project…..

I’ll be installing the Uno and three of these naughty little puppies along with and LCD screen into the redundant grey case. Self-powered, it will measure current flow through the 30A rec/reg fuse and the two main 30A fuses simultaneously. The screen will Pololu ACS714then display measured and calculated data as well as storing the data onto an SD card mounted into the display. So it’ll be a data-logger as well!

The idea is to have the three ACS714 devices, wiring loom and a single multi-pole connector under the saddle. The unit will then simply plug into the connector and merrily measure away. A decent battery and memory card should make data logging for 2hrs + pretty straight forward. So watch this space ………

 

Making connections

Aprilia Caponord ETV1000 Rally-Raid ASL 606-05PC-HE connectorHooking up the netbook to the ECU when datalogging has always been a pain. Seats off, fumble around for the Molex connector, run the cable under the seats, refit the seats …… and away we go. So when I saw a neat little MIL style connector that Andy has fitted to his Capo, I couldn’t help asking about it.

Turns out it’s made by Deutsch Autosport and they make a whole range of high quality connectors specifically for the motorsport industry. Here’s a link to the catalogue. Anyway, all-round nice guy that he is, Andy made me a chassis socket and plug assembly with 300mm of loom at each end. Not only that, he popped them in the post to Italy … and they arrived a couple of days ago. And I must say ….. WOW! ….. beautifully machined and fully waterproof with a nice machined cap to keep the greeblies out.

So now I’ve reworked my old TuneBoy cable and installed the connector on the dash. I’ve used shielded cable back to the original molex plug to reduce interference on the data lines and it all works fine.

So it only remains to say a big thank you to Andy for doing this for me. I owe you one! Now if you’re thinking of hot-footing it over to the AF1 forum to send Andy a PM – don’t. This was a one-off kindness and he won’t be making any more, so please don’t ask.

Sagem coil failure ….. inevitable really

It’s official …. Moto-Abruzzo has been bitten by the infamousAprilia Caponord ETV1000 Rally-Raid Sagem coils Caponord coil failure syndrome. It was a lovely day so a spin round the block was on the cards, the Capo fired up sweet enough before starting to flash the dreaded ‘EFI‘ warning lamp. Oh deary me.

Turned out to be a rear coil (Code 36) that had died, no worries I thought, I’ve got a couple of spares on the shelf – although of unknown history. Turns out one was toast and the other intermittent, so both are useless.

Aprilia Caponord ETV1000 Rally-Raid - data logging coil dwell - with intermittent coilThis morning I adapted the mighty Moto-Logger to display the coil ‘Dwell’ data in real-time so I could have a look at the intermittent coil in operation. Interesting – but wholly depressing on a nice sunny day when I’d rather be riding the damn thing. Rather strangely, the coil began to work OK once it got hot …. very peculiar! Anyway, new coils are on order so it won’t be long.

Moto-logger update

Scroll down for the video!

It’s been a couple of months since I posted an update on the ‘Moto-logger’, mainly because other than using it, I didn’t update it! During that time notes and thoughts of improvements to the layout, function or stability were scribbled on bits of paper and sprinkled around the PC, waiting for a rainy day.

Last week it rained.

So here’s a screen shot of V1.7, now with a left-hand side bar and two selectable displays. One for the raw GPS data being received and the other ( a bit of a gimmick admittedly) is a ‘fuel calculator’. The Capo doesn’t register road speed in the ECU unlike the Triumph’s … so it made me wonder if it were possible to calculate fuel usage and tank contents from GPS data and the pulse width of the injectors – the duration the injector is open and passing fuel to the engine.

So here it is .. and it works. Well the needles move, the numbers jump around and the LED blinks with 5 litres remaining, so hey, it’s a runner! Clicking either gauge resets the calculators and ‘fills’ the tank to 25 litres. Turning off the bike/software doesn’t lose the calculations either, so taking a quick road-side slurp of coffee doesn’t mess up the figures. Happy days indeed!

V1.7 Improvements

  • Calculate MPG and tank volume remaining
  • Calculate Air Density
  • Calculate corrected EC80/1269 power output based on barometric pressure and air temperature.
  • Display received GPS sentences 
  • Display and log GPS time
  • Cleaned up the code (ish!)
  • Took out some bugs and improved stability.

Still to do …

  • Learn more and improve the code efficiency!
  • Add better file handling to prevent overwrites and crashes when calling a missing data file
  • Add a ‘Range’ …. miles to go, to the calculator (yes another gimmick!) – Done!
  • Temporarily log pulse width. I want to see a snapshot of what its range is. – Done!
  • Real-time plot display? – And done!!

[kml_flashembed publishmethod=”static” fversion=”8.0.0″ movie=”https://www.moto-abruzzo.net/wp-content/uploads/2011/11/Moto-logger5_controller.swf” width=”640″ height=”378″ targetclass=”flashmovie” quality=”best” base=”https://www.moto-abruzzo.net/wp-content/uploads/2011/11/” fvars=”autostart=false;thumb=FirstFrame.png;thumbscale=45;color=0x1A1A1A,0x1A1A1A”]

Get Adobe Flash player

[/kml_flashembed]

Reasons to be cheerful ….. pt3

A tickle round the mountain, five logged files and two and a half hours of logging later …. it’s no longer a work in progress, it’s a runner!

It may only be a couple of weeks ago that this little project kicked off, but for the life of me, I can’t quite remember why I started, or in fact where I really thought it would lead. So I guess this is most definitely a natural end to this part in the development cycle. It starts, stops, logs and displays more than I originally intended. I guess there’s nothing more to do except get logging!

As for the other stuff on my wish list ….. well the aquisition of external info such as speed (measured not GPS), brake line pressure and gear position may well be handled by this little device. 8 x 5v analogue inputs should be fine … all looks fairly straight forward in the instruction book anyway. We’ll see!

So what have I learned from the data so far? Firstly, the air intake temperature is a fairly consistent 15ºC above the ambient air temp at all times – higher when the bike’s in stop-start traffic ….. all very power-sapping. Secondly … truthfully there isn’t a secondly just yet, but what I’m interested in looking at on the next couple of runs, is the barometric (air pressure) data. It’s measured in the airbox and with the restrictive ‘snorkel’ in place I’m expecting to see a drop in pressure at high RPM/throttle opening …. but will the data bear this out? And how much will it fluctuate by?

Caponord Datalogger Pt2

Wow what a whirlwind learning curve the last two days have been. Thanks to a Brain that (unusually) suffered the minimum of ‘Blue Screens’ and a patient wife who put up with all the muttering, mumbling and furtive running to and fro I now have a datalogger that is receiving info from the GPS and adding it to the log.

No doubt, chicken feed – a mere stroll in the park to any reading programmers …. me, I’ve taken out a lifelong subscription for Anadin! So, deep breath, sink a beer and pencil out the next step ……. I’m starting to get a liking for this digital-crochet lark!

I’ll try and get a snippet of video to post up so you can see it working ….. or crashing, whatever it decides!