Gearshift counter

This forum is for the discussion of other projects on Megasquirt/Microsquirt hardware that don't fit into any of the other forums

Moderators: jsmcortina, muythaibxr

Post Reply
jeffmarsh750
Experienced MS/Extra'er
Posts: 301
Joined: Fri Nov 23, 2012 3:17 pm

Gearshift counter

Post by jeffmarsh750 »

Anybody have a good Idea on how to build a small gearshift counter, that when I push the shift button on a bike it will change voltage outputs to the MS so I can use the gear position inputs. Don't want to use wheel speed as sometimes the speed sensor spikes and I think that will confuse the MS. For drag race only, only has to remember upshifts.
Fastest MS powered vehicle on the planet ! 6.60@208mph
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Gearshift counter

Post by jsmcortina »

Before rejecting it, did you already try the VSS/RPM method for gear detection? It works ok on my 12sec car with a manual gearbox.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
ol boy
Super MS/Extra'er
Posts: 1532
Joined: Mon Sep 10, 2007 3:06 am
Location: Tucson, Az

Re: Gearshift counter

Post by ol boy »

I'm a little late into this.. I'm a fan of picaxe processors. There is the 08M2 which is an 8 pin DIP layout. It has a DAC 5 bit output. Or you could do a PWM to low pass and start at 20% (1 volt= gear 1) then go to 40% (2 volts = 2nd gear) up to 5 volts for 5th gear... If you have more than 5 gears then divide by 1/2 volt for each gear... Is this what your trying to do?

http://www.picaxe.com/

The IDE is free to down load and the chip sets are a few bucks. For your app a small copper proto board would work. Still 5 volt power from the MS mother board or the tps output.

Later Ryan
306 SBFord, Torquer II EFI intake, 60 lbs injectors, 8 LS2 coils, VS Racing 7668 turbo, 4R70W, MS3x fw1.4 w/built in trans controller.
jeffmarsh750
Experienced MS/Extra'er
Posts: 301
Joined: Fri Nov 23, 2012 3:17 pm

Re: Gearshift counter

Post by jeffmarsh750 »

Yes, Yhank you. Will try one but will also try the internal setup as well with the VSS and ratio inputs.
Fastest MS powered vehicle on the planet ! 6.60@208mph
Fabius72
Experienced MS/Extra'er
Posts: 216
Joined: Sat Feb 07, 2009 12:17 am
Location: Aosta - Italy

Re: Gearshift counter

Post by Fabius72 »

jsmcortina wrote:Before rejecting it, did you already try the VSS/RPM method for gear detection? It works ok on my 12sec car with a manual gearbox.

James
wow, thank you James for the trick!! It works very well for me too!!! I didn't know that method, very simple and functional :yeah!:

I have just tried creating in MLV a "Gear" Custom Field with this formula:

(([VSS]/[Field.RPM] > 0) && ([VSS]/[Field.RPM] < 0.009)) ? 1 : (([VSS]/[Field.RPM] > 0.008) && ([VSS]/[Field.RPM] < 0.017)) ? 2 : (([VSS]/[Field.RPM] > 0.016) && ([VSS]/[Field.RPM] < 0.022)) ? 3 : (([VSS]/[Field.RPM] > 0.021) && ([VSS]/[Field.RPM] < 0.026)) ? 4 : (([VSS]/[Field.RPM] > 0.025) && ([VSS]/[Field.RPM] < 0.030)) ? 5 : 0

was an experiment, but tried and works.

Fabio
Yamaha V-Max V4 paired odd-fire 1200cc engine - ITB - COP
MS2/Extra Pre 3.4 beta 11
Sequential spark & fuel - ITB Algorithm
Post Reply