All right try to find a pink wire from the GPS connector (right side of the engine) to the ECU. May be you have to lift the fuel tank, but in my bike I can see that connector just under the tank from the right side. I was taking a look on GSX-R service manual and I'm almost sure the GPS is the same with same voltages, but you will have to tap the pink wire anyway so measure the voltages first.
All right try to find a pink wire from the GPS connector (right side of the engine) to the ECU. May be you have to lift the fuel tank, but in my bike I can see that connector just under the tank from the right side. I was taking a look on GSX-R service manual and I'm almost sure the GPS is the same with same voltages, but you will have to tap the pink wire anyway so measure the voltages first.
You can't find it on the service manual but the GPS check procedure on GSX-R manual is the same on TL1000 manual so that's why I sad I'm almost sure...
Dim mph As Float
dim dmph as dword
'
'
'
mph=KMHT*0.6213712
dmph=mph
if dmph<10 then
Print At 2, 1, " "
Print At 2, 3, DEC dmph
endif
if dmph<100 and dmph>=10 then
Print At 2, 1, " "
Print At 2, 2, DEC dmph
endif
if dmph>=100 then
PRINT AT 2, 1, DEC dmph
endif
Can somebody help me with my tachometer project now?
It works on the bench simluating the 'Tach pulse' with a switch and a 10K resistor to ground. But when I take a wire from switch to the bike tacho wire the PIC doesn't register any pulses.
I've got the whole circuit running off the bikes battery. The wire I'm taking from the tacho gives a nice 5v square wave, frequency changes with revs on a scope.
Should I junk all the simulation stuff, switch, 10k resistor and just run the tacho wire straight into the PIC like kiko's diagram shows for speed pickup?
You do have a 5v regulator for the PIC? Just checking.
Having the 10K resistor will just help the signal to be pulled down faster, its a nice to have as you don’t know what the internal circuit for the 5V pulse generation is.
Be sure to use a Pin from PORTC etc, with Schmitt triggers. By doing so, your signal will be a lot more accurate
By simulating, I guess you mean your simulating the same pulse (frequency/amplitude) as that given by the bike?
With that in mind, and the fact that both the PIC and the signal share a common ground (as the PIC is powered from the bike), then your circuit should work.
What is your code? Are you getting accurate simulations (and are they real life simulations?)
In truth what I'm doing is far from simulating. I'm just clicking a button (and at nowhere near the rate the bike pumps them out.
My code is in C. I've tested it in MPLAB SIM at 3000rpm seems okay.
What I'm going to do is simplify the code to make it flash an LED or something when it gets a pulse. that should proove if pulses are getting into the PIC.
Can somebody help me with my tachometer project now?
It works on the bench simluating the 'Tach pulse' with a switch and a 10K resistor to ground. But when I take a wire from switch to the bike tacho wire the PIC doesn't register any pulses.
I've got the whole circuit running off the bikes battery. The wire I'm taking from the tacho gives a nice 5v square wave, frequency changes with revs on a scope.
Should I junk all the simulation stuff, switch, 10k resistor and just run the tacho wire straight into the PIC like kiko's diagram shows for speed pickup?
In the beggining I had an opposite problem you have now... So, the circuit killed the signal to the bike's RPM gage, I was using if I remember a pull down resistor like yours. Now I'm using a RC filter (attached) and it's working very nice. You can use it either for RPM and Speed signal.