Finger on the pulse

Aprilia Caponord ETV1000 Rally-Raid. Speedometer pulse from the rear-wheel sensorWhile the wrist is healing nicely on light-duties and (thankfully) out of the heavy and restrictive cast, I’ve had a chance to play with the idea of an active cruise control for the Capo. An active system will adjust the throttle automatically to maintain a given speed even as the road rises and falls unlike a passive system which is nothing more than some form of throttle locking mechanism.

Arduino cruise control sketchThe system I’m thinking about will, when all parameters are met (speed, revs etc) lock onto the chosen speed when the ‘Set’ button is pressed. The microcontroller will then look at the error between the chosen speed and actual speed and adjust the throttle as neccessary to try and maintain the error at zero – this is done using PID (proportional-integral-derivative) in the controller. If cruise is stopped (operation of brake or clutch) or the PID error goes beyond a pre-determined maximum (high gear on a steep hill for example) the requested speed is stored and can be re-activated by pressing the ‘Res’ume button. And while in cruise, the speed can be adjusted in 1Kmh increments by using the same two buttons, now working as ‘Acc’elerate and ‘Dec’elerate. That’s the theory anyway!

Aprilia Caponord ETV1000 Rally-Raid. Opto-isolated and cleaned Speedometer input signalInputs

  • Power – 12v on/off switch
  • ‘Set/Acc’ &Resume/Dec’ buttons – 12v
  • Front and rear brake light switches – 12v
  • Clutch lever switch – 12v
  • Speedometer signal from the dashboard (output on pin 14 of the 16-pin connector) -12v square wave 85% duty cycle frequency modulated
  • Tachometer signal -12v square wave 50% duty cycle frequency modulated.

Honda GL1800 Cruise ServoOutputs

  • Two colour LED for power, cruise engaged & error codes – 5v
  • Motor drive signal – 5v PWM to motor control board.

To date the inputs and safety stuff has been written and from the tacho/speedo signals it’s calculating what gear the bike is in pretty quickly, but I’m sure it can be speeded up …… I just need to learn more programming! The operating parameters I’ve decided on are:

  • Cruise enabled between 50Kmh and 160Kmh (30mph – 100mph)
  • Cruise enabled between 2,750rpm and 6,000rpm but might change the lower limit to 3,250rpm in 6th gear
  • Cruise enabled in 4th, 5th and 6th gears only.

At the end of the day, I just want a system that will give my old worn out wrist a rest at motorway speeds on the run between Italy and the UK, taking into account the (very!) variable speed limits and ascents/decents especially through Switzerland. If it can do that I’ll be a very happy bunny indeed.

Of course this is all well and good, but I’ve got to get all the bits talking to each other first and make it robust enough for long-term and safe use on a motorbike ….. the problem is that in amongst all this enthusiasm my wrist still has a way of letting me know who’s really in control while swanning around on light duties!

 

Roll camera …….

gimbalAprilia Caponord ETV1000 Rally-Raid Tarot 2D gimbal mounted to left-hand crash bar

Pronunciation: /ˈdʒɪmb(ə)l

Noun:    A device for keeping an instrument such as a compass or chronometer horizontal in a moving vessel or aircraft, typically consisting of rings pivoted at right angles.

Origin:   Late 16th century (used in the plural denoting connecting parts in machinery): variant of earlier gimmal, itself a variant of late Middle English gemel ‘twin, hinge, finger ring which can be divided into two rings’, from Old French gemel ‘twin’, from Latin gemellus, diminutive of geminus.

Aprilia Caponord ETV1000 Rally-Raid Tarot 2D gimbal & GoPro Hero 3+ BlackAh …. don’t ya just love a bit of ed-u-cation! Yes folks, the word of today is ‘gimbal’ and after a bit of thought yesterday morning, I got mine out and played with it. 😀

So what does this gimbal-thingy do then? Well, in a nutshell, it holds a GoPro camera perfectly steady in pitch and roll while the mounting point is moving around. These things are intended for use on drones, those multi-rotor helicopters that you see flying around, but one look and the old grey matter kicked in …… wouldn’t that be fun on a bike!

And that brings me to yesterday morning, a half-hour blitz in the barn had a mounting plate made and another half-hour had the whole thing fitted, wired up and tested on the left hand crash-bar – which isn’t too bad given that the gimbal has sat in its box since delivery two months ago.

At lunch time the start-up routine was well under way …… pat down the pockets ‘testicles, spectacles, wallet’n watch’check, key-on and wait for the dash to finish its self-test – check, fire up the motor and before the gloves go on – camera to record! And this m’dear Smurfletts is an edited video of ‘Tarot Gimbal Test 1’ – I like the sound the front disks make at the end of the video!

Now the keen eyed among you will notice that in bends – especially constant radius bends – the camera begins to roll in the same direction, and this had me stumped for a while. I thought it might just be settings in software, but not being sure I decided to sleep on it.

In the end I think it’s to do with the fact that ‘verticle’ changes when the bike is in equilibrium in a turn (the whole ‘leaning’ thing) and this tricks the sensor into believing that ‘up’ and ‘down’ have moved – so the camera begins to tilt into the turn. Anyway I hope you enjoyed watching some or all of the video as much as I did filming it!

On the right wavelength? (Part 2)

Waiting at the Post Office today were a couple of type-380 60 red LED tail/brake light bulbs to have a play with. I got these from Autobulbs.co.uk in preference to the 92 LED version that needs modifying to fit into the Caponord reflector/socket (thanks for the info Andy!).

To recap  on the conclusion of  ‘On the right wavelength? (Part 1)’ – In my opinion it would be unwise to fit WHITE LED tail/stop bulbs in the Capo UNLESS you first have definitive proof of the red light output and even then, there is the subject of the legality of fitting them in the first place!

What follows then is a laymans point-of-view of the alternative red LED bulbs after a fun-filled afternoon tinkering in the barn …….Aprilia Caponord ETV1000 Rally-Raid - 5/21w incandescent & Type-380 60 red LED bulbSo ……. off with the lens cap, pop out a bulb and in with the new …. Easy to fit with no modification, they are certainly brighter than the standard 5w tail lights, while the brake lights are definitely on a par, if not a tad brighter than the standard 21w filament, most importantly the change in output when the brake is activated/deactivated is crisp and very obvious. Of course the one thing you notice electrically, is the wayyyyy lower drain on the battery when braking! Here’s a table comparing the power usage:-

Difference in power consumption

One additional point I noted in favour of the LED’s is actually based on their construction …. the filament bulb relies heavily on the reflector/lens diffusion to spread the light because it only has one fairly focused source of illumination, whereas the LED has 60 independent sources that reflect and refract far better giving the appearance of a much brighter output from ALL of the lens, a more uniform glow if you will!Aprilia Caponord ETV1000 Rally-Raid - Both bulb types with lens in place

Oh and one thing I almost forgot to mention about the LED bulb is that all 60 LED’s are illuminated at all times, the activation of the brake light simply intensifies their output, rather than switching on/off additional LED’s as I’ve seen in some bulbs. I think this maintains a much more even and balanced spread of light.

Conclusion …. yes the RED bulbs work as well if not better than the incandescent and of course the power saving is incredible. How they perform when hot and after several hundred hours of use has to be seen. In the end though I do have to wonder about two things; the logic of selling white LED bulbs for use at the rear of a vehicle and the woefully outdated UK/EU legislation in use – for example, using a bulbs power consumption as a measure of its output is unbelievably outdated. Technological change is here and seemingly faster with each passing year, legislators need to move out of the 20th century if they have any hope of keeping pace.

Me? …… I’ll leave them in for a while, just for evaluation off-road you understand. 😉

Caveat: Using LED tail/stop bulbs on the Caponord in the UK is illegal and as such karlb/moto-abruzzo cannot condone their use. They don’t carry an approval marking nor do they meet the brake light power requirements (15-36w) as set down in the The Road Vehicles Lighting Regulations 1989′ ….round in a circle we go …. the very thing we’re trying to save (power) it turns out we can’t!!

Dimmer and dimmer

Aprilia Caponord ETV1000 Rally-Raid Evening over the Gran Sasso ....I switched on the fog-lights to better illuminate the mud and stone strewn road ahead; when it dawned on me that I hadn’t taken the Capo out in the dark for ages, months  probably. And here I was winding a path along our troubled road and hopefully onward for a nice little night-time ride all in the name of testing the auto-dimming backlighting!

After getting the set-up working nicely with the old thumb-over-the-sensor routine, it was time to take the old girl out for a spin and see what the illumination was like both in unlit rural and street-lit urban riding. I took the netbook and cable along so that changes to the code could hopefully be done at the roadside.

Aprilia Caponord ETV1000 Rally-Raid .... and over the Maiella.In the end I was really pleased with how the lighting worked anyway, the only change I made was to the minimum brightness – dropping it slightly – so that it’s totally readable without putting stress on my tender night-time vision. Daytime backlighting is, as you would expect fully-on at 100% while the night-time drops to 30%, which with the higher output LED’s (blue & green) is just about spot on.

But ……

And there’s  always a ‘but’ …… the two LED’s in the binnacle (Autoswitch & Battery monitor) now stand out as being overly bright compared to the dashboard at night, so, time to work out how to take these signals and pass them through the Arduino and subject them to the auto-dimming code as well, then the whole cockpit area will be sorted at last!  😉

On the right wavelength? (Part 1)

Aprilia Caponord ETV1000 Rally-Raid. Tail-lightsWhat colour is your tail/brake light? Red I’d hope…. or is it really? Take the Capo’s lens cover off and it’s just a pair of common old yellowish 5/21W incandescent bulbs, the red is of course provided by the light passing through the red lens. In fact since time immemorial the only way simple incandescent bulbs were coloured was either by a coloured cover or380 60 LED bulb being dipped in a coloured dye. Why? Simply that the humble incandescent bulb fires out light at all different wavelengths from infra-red to ultraviolet, so a simple filter is all that’s needed to allow the required wavelengths to pass through.

Now of course we have LED’s…. and these little puppies don’t work the same way. A red LED will generate light in the 610-760nm wavelength – red …… a blue LED in the 450-500nm wavelength, you’ve guessed it – blue! But what about white LED’s? Well they produce red, blue and green light BUT they are dominant in the blue wavelengths and actually very poor emitters in the red – the very colour we need for our taillight!

So here’s the next question….. Do you change out your ‘so yesterday’ incandescent tail/stop bulbs with ultra-trick, smack-up-to-date LED’s? And if so red or white? Well here are a couple of photographs that I hope will help with that dilemma.

Using my old but trusty Nikon D200 I took the first picture with the Capo tail light and an LED torch for comparison. The second picture is exactly the same except this time I added an infra-red filter to the camera. Now the camera is only picking up light in the red wavelengths ……… look at the torch, I think you’ll agree that in the 2nd picture the torch is most certainly dimmer than the two puny 5w tail bulbs, yet overpowering in the 1st photo – quite a dramatic difference me thinks!

Now OK, this is just a torch not a pukka LED tail/stop bulb, and yes I concede that not all white LED’s will output the same amount of red light – but how do you KNOW what the output of that bulb you’re eyeing up on Fleabay really is?

Bottom line?

Don’t fit white LED tail bulbs into the Capo, stick with ordinary bulbs. Bummer on the power-drain, but better on the safety side – nobody likes a rear-end shunt……..

…….but what about the red LED version? Stay tuned for next weeks thrilling roller-coaster episode – ‘On the right wavelength (part 2)’.  😉

Caveat: Using LED tail/stop bulbs on the Caponord in the UK is illegal and as such karlb/moto-abruzzo cannot condone their use. They don’t carry an approval marking nor do they meet the brake light power requirements (15-36w) as set down in the The Road Vehicles Lighting Regulations 1989′ ….round in a circle we go …. the very thing we’re trying to save (power) it turns out we can’t!!

Almost made it to 100K Km

Code 33 - front coilYesterday was a great day, warm and a smooth running Capo to zip about on …… not so today, no siree Bob. Started her up this morning and that dreaded little EFI light started flashing away. Front coil #1 (code 33) had shuffled off to the great coil playground in the sky.

Before swapping it out, I plugged TuneECU in to get a screenshot of the dwell – reading 0.420 in the picture – definitely dead as a Dodo. Not to worry though, a spare was on the Coil #1 reading 0.420 ...... deader than a dead thing.shelf and an hour later the job was well and truly jobbed. Just two things to mention really ….. one, changing that rubber sleeve is a right pain in the proverbial and two, getting the HT lead onto the Amrish coils is even harder! Note to self …. make sure the next spare coil on the shelf is already fitted into a sleeve and has a HT lead attached, that’ll save at least 15 minutes and a book full of swear words! So after 92,413Km the second Sagem coil has been replaced, the first went a couple of years ago, so will the last two make it to the big 100K Km?

Here’s a graphic I keep (laminated) on top of the airbox lid – it just makes it easier to locate the right coil without consulting the manuals. Click for a bigger version.

Coil location, colour and numbering

New ‘Lockwood’ inlay fitted at last

Right indicator repeaterOn 4th February Jan came back home with a suitcase fair groaning with all manner of goodies. The most eagerly awaited though, was the pair of new inlays from Lockwood International Ltd. So first impressions?

Excellent! From the textured material to the bleed-free printing, from the fit to the light-transmission …. everything was exactly as I’d hoped. The first thing I did was pop one onto a waiting chassis/board and turn on the lighting – did the text and colour match the light channels? Again, perfectly. Now I could relax, prepare the new chassis and get ready to fit one permanently to the dashboard. To fix it in place I decided to use a general-purpose spray adhesive and did a trial run on an old chassis/inlay to make sure it would be suitable. Everything seemed fine and it was certainly good experience to do a dummy run.

Making sure the chassis was grease and dust free was essential, then masking off the light-channels, mounting pegs and anywhere else I didn’t want spray glue to go! A couple of thin coats of adhesive were applied and the inlay fitted 10 minutes later to allow time for the solvents to evaporate. Perfect! It was now ready to be fitted to the circuit board, but first a couple of modifications to the board/processor circuits.

First the eeprom file needed to be updated for the Futura speedo/tacho, then the code in the microcontroller needed updating for the different (voltmeter) needle calibration. At the same time a couple of modifications were made to the circuits based on insights I’d picked up about Arduino boards from the Internet, also the auto-dimming circuit was finally added for the variable back-lighting, a bit of tweaking with the code – and it was all ready to be refitted to the Capo.

So there I was …. on a wind-swept but warm Sunday morning, dashboard in hand and about to see the fruits of a few months work finally come together on the bike. No doubt the code for the auto-dimming will need fine-tuning, but that can be done without removing the dashboard again – and that’s the line in the sand, right there. Once fitted, I shouldn’t have to remove them again anytime soon …. and that’s a great feeling!

I think that about now would be a great time to pause and say thanks to a few folks who have helped me keep the momentum in this little project. Firstly Jan for her patience and for lugging stuff across the continent for me, to Andy (beasthonda) for bouncing ideas around with me and his interest in the project, to Arvdee in the USA without who’s generous donation of a Futura inlay I wouldn’t have had a template.  Last but not least, Clive from Lockwood International for putting the proverbial icing on the cake – thank you all!!!! 😀

Moving along nicely

Just got this photo from Clive over at Lockwood International in the UK, the nice folks who have made my new inlays for the Caponord dashboard. I’ll write more when they arrive …… I can’t wait!!

RST Futura based inlay with voltmeter and left/right indicator repeaters

  • Back-lit voltmeter within the tachometer
  • Left & Right indicator repeaters
  • Red-line raised to 10,000rpm to match ECU setting
  • Side-stand lamp is now where the unused ABS lamp was
  • Funky Aprilia lion instead of boring old ‘aprilia’ text
  • ‘magneti marelli’ logo removed …. well they didn’t design this one!

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 ………

 

See ya later Indicator

While it rains, rains and rains some more, I’ve had time to complete the mods with respect to moving the warning/tell-tale lighting around on the dashboard. Now the Capo has a nice left AND right indicator repeater lights ….. and looks all the better for it. So to recap.

  1. Unused ABS light is now the side-stand light
  2. The side-stand light is now the low-fuel warning light
  3. The low-fuel warning light has new green LED’s and is now a right-hand indicator repeater.

Here’s another piece of video with all the lights working. You’ll notice that the fuel is already on reserve, hence the old side-stand light (now low-fuel) is on throughout the video. Sorry about the quality, but a dismal dark day and a smartphone don’t work so well together ….. and my cold hands adding the shake didn’t help! I’ll add a new page to the site shortly with details of how the circuits were rearranged.

While I waited for Youtube to upload the video, I took a walk down the road to see what damage had been done by the 24hr+ of solid heavy rain …………

…………. let’s just say the Capo nor the Rangerover are going anywhere soon. We don’t appear to have a road left for about a 30m stretch. It appears to be languishing somewhere down in the valley by the looks of it! Pics tomorrow. 😥