Jump to content


Photo
* * * * - 9 votes

What Have You Done To Your Tdm Today?


  • Please log in to reply
6003 replies to this topic

#2841 JBX

JBX

    full o shoite

  • RTT manager(RTT)
  • 2,206 posts
  • Location:South France
  • TDM model: 2002

Posted 18 September 2017 - 11:39 pm

 

 true but why avoid micro programming ? I'll be detecting motion using a £1 3 axis gyro with 3 axis accelerometer, so cmos logic won't hack it anyway !

 

Also I'm modulating beetween 80% and 100% brightness at a freq of 16Hz ( the most noticeable frequency for the human eye)....so i need a bit more than cmos logic for that too. At night I'll modulate 50% - 70%

 

i think I'll try to find some Acerbis stickers, then they'll look like i spent £100 more !

 

As I said, to keep things simple and reliable.

 

Cmos are well suited for low-power and frequencies up to 5MHz, they have a nice 3 to 18 Vdd.

 

With a single 4093 you may get two gated osc at some kHz, each with a well-chosen mark-space ratio to give the right brightness, and add a third osc at 16 Hz to switch both.

 

Using a µC just to flash leds may be very fashionable but it's also overkill imho.

It's like using a raspi to display "hello world" on a tft display.

But it's everybody's choice, sometime coding is fun. ;)

 

If you plan to use a g-sensor, be careful as they are very noisy. You'll need to implement a Kalmann filter - then you'll need a µC !

 

Actually to get the moving - non moving info i'd better use the neutral gearbox sensor which does not require any extra electronics / coding and is free from perturbations, or the speed sensor signal to get a more precise speed info.

 

With a cheap, noisy accelerometer you'll be in need for a regular null speed calibration or you'll get diverging speed figures. :good:


top_640.png

 

 


#2842 fixitsan

fixitsan

    Carpe Citizen

  • Supporting Member(thanks)
  • PipPipPipPipPipPipPipPip
  • 4,830 posts
  • Location:West Lothian
  • TDM model: 2003

Posted 19 September 2017 - 07:34 am

 

As I said, to keep things simple and reliable.

 

 

not wanting to pollute this thread any more than I already have, but i do appreciate your thoughts, input and experience JB

 

The combined accelerometer/gyro has a built in DMP, it can output clean raw values with very little noise. But i actually want noise, because the noise amplitude is directly proportional to speed. A stationary bike, with engine running has low amplitude noise, as soon as the bike starts moving the noise increases amplitude by almost x10 (real world tests)

 

I will be using the gyro to detect short turns and quick  sideways manouvres, such as when  turning around a corner, or pulling out to overtake a vehicle ahead. This was something I had not anticipated doing until i ran the test rig on the bike and noted how sensitive the x-gyro was to x-axis rotation.

 

No need for Kalmann filttering, because i need noise from the accelerometer I'm bypassing it's own DMP, but then for the values which need to be noise free, 5-pole low pass filtering is working fine.

 

Because of the accelerometer I am also able to add a flashing rear facing red led which comes on under heavy braking....whicc could also double up as a fog lamp.

 

I also need button functionality...... a single debounced pushbutton

 

---> DRL off ---> DRL on 100% ---> DRL on 50% ---> DRL Auto (dimming for night) ---> DRL Auto (dimming + glimmering effect)    (with non volatile memory to remember the last state when it was powered down).  .... with a rider information LED to give feedback about which program is running at the moment (if not already clear)

 

Automatic dimming is coming from from reading an upwards facing LDR (with a long term integrator so it doesn't pulse driving under streetlights !)

 

I also want to add 'forced flickering'  which would be a short button push, to bring on the glimmering effect for just 20 seconds or so, for filtering. I already have made a unit  which does this, but it has a very noticeable glimmer (4 oscillators, 14Hz, 15Hz,16Hz and 17Hz running together produce a briliiant interference pattern).....just recently I tried it when filtering and although the test was not scientific I got the feeling that cars further in the distance were aware of my presence sooner than if i did not have it on. (judged by the number of people driving in the middle of two lanes who moved back to their own lane, to let the biker through in the middle !)  That would just be a short button push, and run for 15 or 20 seconds.

 

I have to add that the what i'm testing is even less obvious than the Bikevis Podmod unit, and when you look directly at the LED you see just  a bit of pulsing, but looked at from a distance, in your peripheral vision the effect definitely makes vehicle stand out to anyone glancing in their mirror

 

This is the Bikevis Podmod working, not great because the frame rate of the camera is too slow and makes them to appear to flicker more than they do in reality...

 

I've also found that when running the PWM on the DRLs in a complementary way (left on = right off, and vice versa)  there is a better effect because you see movement in the peripheral vision.


Edited by fixitsan, 19 September 2017 - 08:02 am.

Ohlins, PC3, fuel cut defeat, +4deg timing, 17" front wheel.


#2843 JBX

JBX

    full o shoite

  • RTT manager(RTT)
  • 2,206 posts
  • Location:South France
  • TDM model: 2002

Posted 20 September 2017 - 06:09 pm

Great project, very interesting stuff !

Agree, too complex to use only cmos, better choice with µC. 

 

Btw I use loop delay to read buttons without rebound on AVR - reading occurs every 100ms, enough to get a correct reading.

This also allow to distinguish between short / long keypresses.

Not using interrupts anymore for that purpose, better use them for non-human events.

 

Any chance to get pics and other info on your project ?


top_640.png

 

 


#2844 fixitsan

fixitsan

    Carpe Citizen

  • Supporting Member(thanks)
  • PipPipPipPipPipPipPipPip
  • 4,830 posts
  • Location:West Lothian
  • TDM model: 2003

Posted 20 September 2017 - 07:05 pm

Great project, very interesting stuff !

Agree, too complex to use only cmos, better choice with µC. 

 

Btw I use loop delay to read buttons without rebound on AVR - reading occurs every 100ms, enough to get a correct reading.

This also allow to distinguish between short / long keypresses.

Not using interrupts anymore for that purpose, better use them for non-human events.

 

Any chance to get pics and other info on your project ?

 

 

It's just for fun JBX, basic details so far...

Accelerometer unit -MPU6050 (cheap Chinese PCB mounted.)

The micro, for development is a PIC18F25k22, i use an LCD there to give me raw data values for evaluation), final project will be implemented on a pic 16F1824 (14 pins), which has 4 PWM outputs, I2C for the MPU6050, and the LED's will be low side switched by _any_generic_NPN_transistor_  of a suitable power rating.

 

I program a mixture of assembly language for time critical functions and interrupts, nested within  PicBasicPro. I use Basic for structural outlines and because it already has I2C control instructions built in , so no need for 'bit banging' any more, thankfully ! I used to use C for structure but just because i got a free PicBasicPro compiler I use that mostly instead. (If you can use C then it's great for Microchip piuc micro's, they have vast libraries, all in C, free to download)

 

So far I've run a test rig with LCD display on the tank to check all 6 axis outputs from the MPU6050. I was really surprised by the x-gyro, it can be used as a trigger to detect the rolling over of the bike when changing direction quickly.  The x- accelerometer gives a good steady linear accel/decel output.. Not much money for such a lot of motion detection.

 

Then i transferred the code to  an 8 pin micro 12F1840 to see if I could modulate the PWM outputs to show that when braking hard the DRL's could (as an example) be flickered more obviously, to give the vehicle you're about to crash into a heads up ! (bad taste joke....), or just as easily warn a pedestrian who stepped onto the road, when you see them before they see you.....(maybe a loud exhaust is enough here though !)

 

So now the 16F1824's arrived this morning, I'm too tired to to do something with it tonight but I hope to connect it all together in the next week or two.


Edited by fixitsan, 20 September 2017 - 07:08 pm.

Ohlins, PC3, fuel cut defeat, +4deg timing, 17" front wheel.


#2845 danceswithmopeds

danceswithmopeds

    full o shoite

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,425 posts
  • Location:Dublin,Ireland
  • TDM model: 1999

Posted 20 September 2017 - 09:58 pm

I recognise most of the words, it's just when 2 or more are co-joined that I start getting confused.



#2846 fixitsan

fixitsan

    Carpe Citizen

  • Supporting Member(thanks)
  • PipPipPipPipPipPipPipPip
  • 4,830 posts
  • Location:West Lothian
  • TDM model: 2003

Posted 21 September 2017 - 04:37 am

I recognise most of the words, it's just when 2 or more are co-joined that I start getting confused.


Sorry :) normal service will now be resumed

Ohlins, PC3, fuel cut defeat, +4deg timing, 17" front wheel.


#2847 Bjørge

Bjørge

    has been here 4ever

  • Supporting Member(thanks)
  • PipPipPipPipPipPipPipPip
  • 1,856 posts
  • Location:Asker, Norway
  • TDM model: no more

Posted 21 September 2017 - 06:13 am

I recognise most of the words, it's just when 2 or more are co-joined that I start getting confused.

 

Having a background from electronics, working with programming, I get most of the abbreviations, only have a problem with understanding what "JBX" is.....  :lol:


Bjørge

#2848 fixitsan

fixitsan

    Carpe Citizen

  • Supporting Member(thanks)
  • PipPipPipPipPipPipPipPip
  • 4,830 posts
  • Location:West Lothian
  • TDM model: 2003

Posted 22 September 2017 - 11:15 pm

Rode to Hull to visit family aand that brings the mileage to 98880.... looks like I'm in with a chance of crossing the 100000 mile barrier this year.
Goes without saying the bike was great, bit thirsty at speed in the wet and windy conditions, but the Pilot Road 3's were excellent in the wet

Edited by fixitsan, 22 September 2017 - 11:15 pm.

Ohlins, PC3, fuel cut defeat, +4deg timing, 17" front wheel.


#2849 fixitsan

fixitsan

    Carpe Citizen

  • Supporting Member(thanks)
  • PipPipPipPipPipPipPipPip
  • 4,830 posts
  • Location:West Lothian
  • TDM model: 2003

Posted 24 September 2017 - 08:45 am

Rode to Hull to visit family aand that brings the mileage to 98880.... looks like I'm in with a chance of crossing the 100000 mile barrier this year.
Goes without saying the bike was great, bit thirsty at speed in the wet and windy conditions, but the Pilot Road 3's were excellent in the wet

 

And on the return journey I rode the A68 all the way back, from just above Darlington to Edinburgh. On some steep climbs under hard acceleration the oil light flicked on  :shocked:  But when I set off the oil tank was full. I suspect there's some tolerance, or maybe the oil feed pump isn't as capable of pumping as the scavenge pump is......I'll add a drop or two today, it's been a while since I added any !


Edited by fixitsan, 24 September 2017 - 08:49 am.

Ohlins, PC3, fuel cut defeat, +4deg timing, 17" front wheel.


#2850 wicklamulla

wicklamulla

    is it Jizzy Rascal time yet.....?

  • Supporting Member(thanks)
  • PipPipPipPipPipPipPipPip
  • 12,211 posts
  • Location:Parish of Cruwys (pronounced 'Cruise' just loike Tom) Morchard, Mid Devon.
  • TDM model: 1999

Posted 24 September 2017 - 08:49 am

 

And on the return journey I rode the A68 all the way back, from just above Darlington to Edinburgh. On some steep climbs under hard acceleration the oil light flicked on  :shocked:  But when I set off the oil tank was full. I suspect there's some tolerance, or maybe the oil feed pump isn't as capable at pumping as the scavenge pump is......I'll add a drop or two today, it's been a while since I added any !

 

be interesting to see what the current oil level is fixitsan and how much you end up adding?


spyball alarm/immob, bluespot brake calipers and Stainless hoses, Fournales air adjustable shock with Remote Resevoir, forks raised 10mm thru yokes, racetech linear fork springs in 15 wt oil, Kappa wingrack/luggage, heated grips, Kedo handguards, dual heat controller to power heated jacket liner and or pants!!, Stebel 136DB horn, K&N air filter, colour matched Baglux tank cover (magnetic tank bag modified to fit cover), osram +50% headloight bulbs, headlight protector,"NitramSpecial" parking loight, tail light indicators all running on LED's & incorporate "Lite Buddies", MK7 Scottoiler fitted, taller screen, 2-2 stainless steel CCC's, Devil stainless down pipes. MKI Renntec engine crash bars & sump guard.
engine changed july 2007 on a dyno run it made 79.1BHP / Torque 59.9Had a brief flirtation with a 1999 MKIIa but it blew an exaust valve on the M5 so was sold on to be repaired.

I loike tay and hang sangwiches !

www.kenhogantreeservices.co.uk

http://s33.photobuck...77/wickla/?sc=6



http://reg.imageshack.us/v_images.php

post-1-1150550733.gifpost-1-1150550726.gifpost-1-1150559830.gif


#2851 Favs

Favs

    Sir Cumference

  • Supporting Member(thanks)
  • PipPipPipPipPipPipPipPip
  • 4,422 posts
  • Location:County Durham
  • TDM model: 2008

Posted 24 September 2017 - 09:18 am

Yesterday - I had a ride around the county in the sunshine instead of watching MotoGP practice - took the camera, but took no pics, I was enjoying the ride too much.


Single-handedly reviving the Wave.

 

2008 reg. Black TDM 900 ABS

 

 

 


#2852 ChrisG

ChrisG

    Resident vulture

  • Supporting Member(thanks)
  • PipPipPipPipPipPipPipPip
  • 8,281 posts
  • Location:Netherlands
  • TDM model: 2009

Posted 24 September 2017 - 09:30 am

SORNed it :(

 

MoT expires tomorrow and not had a chance to get a new one for the last few weeks.


1992 Mk1, 76k miles, Hagon springs, MTC exhaust, 4½ gears Gone now :(
2009 900 abs, 42k miles, Yamaha heated grips, double bubble screen, R&G crash bungs, scottoiler, Autocom, 1500 lumen LED spotlights.

post-1-1152402501.jpgpost-1-1150550726.gifpost-1-1150559830.gif


#2853 fixitsan

fixitsan

    Carpe Citizen

  • Supporting Member(thanks)
  • PipPipPipPipPipPipPipPip
  • 4,830 posts
  • Location:West Lothian
  • TDM model: 2003

Posted 24 September 2017 - 10:56 am

 

be interesting to see what the current oil level is fixitsan and how much you end up adding?

 

 

Soooo.

 

I pulled the dipstick out just now and the oil is forming a diagonal line on the dipstick at the high mark (as you would expect considering the angle that the dipstick enters the tank). Out of curiosity I wiped the dispstick (as you always should) and the oil level line is now below the low mark. Schoolboy error.

 

Looking at the dispstick before wiping it the amount of oil on the dispstick isn't just a thin film but is consistent with having been submerged in oil...... I suspect the dipstick traps oil in the fill tube when the engine stops.

 

It took about 900ml to get the level good again which considering the neglect of not changing it for 4500 miles (I was too focussed on the mk2 i guess) and considering it has undergone a lot of reflashed ECU 'testing' I don't object to at all. Filter and oil on order.

 

Looking at the exhaust outlets after nearly 600 miles the deposits are light to mid grey. It proves the Samios remap isn't just dumping loads of fuel for the hell of it. Fuel consumption between Hull and Corbridge was 14L for 151 miles, 49mpg, including some fast A1/ motorway, lots of hills, 100kg of me and a big top box. Happy enough with that :)

 

Still impressed with the Michelin PR3, there's no chicken strip but i feel I lack speed in corners half way through, maybe the suspension is too high, or maybe I'm just too slow anyway  !

 

 

There's a good looking 2005 9er on ebay for £1395, with supposedly high mileage at 63000   hahahaha ......I mean, really ? If I were looking for another 900 i wouldn't hesitate or be put off with the mileage. (do the rear shock linkage, fit nice exhausts, maybe rebuild the rear shock, and enjoy !)   http://www.ebay.co.u...U8AAOSwJLJZgbZv


Edited by fixitsan, 24 September 2017 - 12:26 pm.

Ohlins, PC3, fuel cut defeat, +4deg timing, 17" front wheel.


#2854 JBX

JBX

    full o shoite

  • RTT manager(RTT)
  • 2,206 posts
  • Location:South France
  • TDM model: 2002

Posted 25 September 2017 - 11:49 pm

The best mileage is 80085...
 
Took the beast for a ride with the camera :

 

 


Edited by JBX, 26 September 2017 - 12:22 am.

top_640.png

 

 


#2855 Kelpie

Kelpie

    900 going for ... 1000cc?

  • Supporting Member(thanks)
  • PipPipPipPipPipPipPipPip
  • 944 posts
  • Location:Wiltshire
  • TDM model: 2010

Posted 26 September 2017 - 10:06 am

Rode it from Harlow to Rutland and back to see my mammy on Sunday.  In spite of all my training, nearly got taken out by a p$*&k on a R1 taking the "racing line" doing at at least 100 mph.  I managed to avoid colliding with his head, by just inches.  When will they ever learn. 


You don't need balls to ride a big bike.

#2856 Favs

Favs

    Sir Cumference

  • Supporting Member(thanks)
  • PipPipPipPipPipPipPipPip
  • 4,422 posts
  • Location:County Durham
  • TDM model: 2008

Posted 26 September 2017 - 10:10 am

The best mileage is 80085...
 
 

:P


Single-handedly reviving the Wave.

 

2008 reg. Black TDM 900 ABS

 

 

 


#2857 drewpy

drewpy

    has been here 4ever

  • Supporting Member(thanks)
  • PipPipPipPipPipPipPipPip
  • 1,775 posts
  • Location:Manchester UK
  • TDM model: 1996

Posted 26 September 2017 - 07:03 pm

just ordered a new RR from electrex world, the old one startyed playing silly buggers and only charges @13v now

 

£65 for a mosfett one, they gone down in price


"As I Lay Rubber down to street, I pray for traction I can keep. But if I skid and begin to slide, please dear god protect my ride"

Mods; Oil pressure switch, neoprene rear inner mudguard, scottoiler, highway pegs,  fenda extenda, 1999 carbs and airbox, Kais suspension setup, later clutch springs, LED lamps, Metmachex swingarm, Hagon Shock, Oxford heated grips, 4 way fused accessory Bus, 17" 3CV front wheel, Michellin R6 tyres, GPS speedo, 5' ignition advance.


#2858 fixitsan

fixitsan

    Carpe Citizen

  • Supporting Member(thanks)
  • PipPipPipPipPipPipPipPip
  • 4,830 posts
  • Location:West Lothian
  • TDM model: 2003

Posted 26 September 2017 - 07:57 pm

The best mileage is 80085...
 

 

True enough !


Ohlins, PC3, fuel cut defeat, +4deg timing, 17" front wheel.


#2859 drewpy

drewpy

    has been here 4ever

  • Supporting Member(thanks)
  • PipPipPipPipPipPipPipPip
  • 1,775 posts
  • Location:Manchester UK
  • TDM model: 1996

Posted 29 September 2017 - 11:01 am

fitted my mosfet RR on, and its great, stable voltage across all rev ranges and loads.


"As I Lay Rubber down to street, I pray for traction I can keep. But if I skid and begin to slide, please dear god protect my ride"

Mods; Oil pressure switch, neoprene rear inner mudguard, scottoiler, highway pegs,  fenda extenda, 1999 carbs and airbox, Kais suspension setup, later clutch springs, LED lamps, Metmachex swingarm, Hagon Shock, Oxford heated grips, 4 way fused accessory Bus, 17" 3CV front wheel, Michellin R6 tyres, GPS speedo, 5' ignition advance.


#2860 PICARD

PICARD

    has been here 4ever

  • Supporting Member(thanks)
  • PipPipPipPipPipPipPipPip
  • 1,773 posts
  • Location:Wirral / wherever I lay my hat!
  • TDM model: 2004

Posted 29 September 2017 - 11:28 am

True enough !


Ahhh.....just got it!! Derrrr
Lock onto my co-ordinates and beam me up !!

04 900 - 92 mk 1 - r 1150 rs - Z550 A1 - 2x bonnies - plastic slug -XL185 - ...not in that order !! (and one or two i don't want / dare to own up to !!)


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users