![]() | ![]() | ![]() |
| | #31 | |
| Quote:
I'll try to change the ground... See attached the bike's diagram Thank you | ||
| |
| | #32 | ||
| Quote:
Quote:
1st 1.243v - 2.586v 2nd 2.124v - 3.210v Now the "Overlap" from 1st too 2nd is 2.586 minus 2.124 = 0.462V As I now know how much they overlap by, I simply divide this by 2 so I can split the overlap evenly 0.462 / 2 = 0.231 And now add that value to the lower voltage 2.124 + 0.231 = 2.355 There you have it - the "Middle" point for the overlap between gears ![]() I did however modify the gap between 2nd to 1st as it was not the same (too small) and figured it was a miss read
__________________ digital-diy.com - Hobby microcontroller projects and tutorials. Assembly, PICBasic and C examples. | |||
| |
| | #33 | |
| Quote:
Allright, thank you | ||
| |
| | #34 |
|
I said i modified 2nd to 1st, I meant 2nd to 3rd
__________________ digital-diy.com - Hobby microcontroller projects and tutorials. Assembly, PICBasic and C examples. | |
| |
| | #35 | |
| Quote:
Rgds | ||
| |
| | #36 | |
| Quote:
There is no delay in the routine - as I 'average' multiple samples with the following code Code: Result = 0 Total = 0 X = 0 Repeat Result = ADIN 0 Result = Result * 2 Total = Total + Result Inc X Until X = 15 Total = Total / 15 Total = Total * 5 / 1023 1.25, 1.0, 2.3, 2.7, 1.1, 1.5, 1.7, 1.77, 1.79, 1.2, 2.4, 2.45, 1.5, 1.6, 2.8 The samples in bold were "out of range" and could have been produced from noise/spikes from else where in the motorbikes circrtry. But as I have taken 15 samples, I can now find the average. So all those numbers added together gives: 27.06 The average is 27.06 / 15 = 1.804 Volts And this 'filters' out the noise - no need for a delay persay - the time that 15 samples takes is the delay. If you find that this speed is too fast, then put a simple delay in the repeat loop, eg Code: Result = 0 Total = 0 X = 0 Repeat DelaymS 1 Result = ADIN 0 Result = Result * 2 Total = Total + Result Inc X Until X = 15 Total = Total / 15 Total = Total * 5 / 1023
__________________ digital-diy.com - Hobby microcontroller projects and tutorials. Assembly, PICBasic and C examples. | ||
| |
| | #37 | |
| Quote:
The voltages from the gear position switch should be 'stable' and pretty much spot on as the ECU is using those to choose different ignition and/or fuel maps for first three gears (to prevent 'accidental' wheelies, I guess) and to enforce a speed limit in the top gear (on the GSXR-1000 and Hayabusa). D. | ||
| |
| | #38 | |
| Quote:
KMHT=Counter PORTC.7, 500 ' I increased the value of period from 250 to 500 but the reading still too sensitive If KMHT=0 Then Goto Display_speed Temp_Float=KMHT Temp_Float=(Temp_Float*2)*8 ' I round 7.2 to 8 which gave me a more accurate speed reading KMH=Temp_Float/10 KMHT=KMH Display_speed: If KMH_Last<>KMHT Then Print At 1, 1, DEC3 KMHT KMH_Last=KMHT EndIf GoTo Start Thank you again for your valuable help | ||
| |
| | #39 | |
| Quote:
Yes sir, it has 3 wires and I took the signal from "P" wire near the ECU connector as you can see on the diagram. And as I post before I'm almost sure I have a GPS or generator or regulator problem, first because the voltages overlaps and second because on the bench the circuit works very nice and the only thing I can see strange on this bike is that it drinks a lot of fuel and it's fast, so it may be a indicative of GPS problem and because of that the ECU chose a higher gear (5th) to deal with. I don't know... I don't think the Suzuki TL1000 has a speed limit but I'm sure it has a RPM limit above 10500 RPM with load. Thank you | ||
| |
| | #40 | |
| Quote:
I had to change the resistors of the voltage divider from 1k to 10k because with 1K the voltage on the lcd indicator drop about 1.5 Volts. | ||
| |
| | #41 |
| Code: Result = 0 Total = 0 X = 0 Repeat DelaymS 1 Result = ADIN 0 Result = Result * 2 Total = Total + Result Inc X Until X = 100 Total = Total / 15 Total = Total * 5 / 1023 Leave 7.2 in this part, dont round it Code: Temp_Float = KMHT
Temp_Float = Temp_Float * 4 * 7.2
KMH = Temp_Float / 1000
KMHT = KMH
Let me know if that helps
__________________ digital-diy.com - Hobby microcontroller projects and tutorials. Assembly, PICBasic and C examples. | |
| |
| | #42 | |
| Quote:
I'm not having anymore problems with the gear indicator so when I changed the ground the problem has been fixed. The gear indicator is working perfect. When I power the circuit installed in the bike the speed indicator is zero as the bike is stoped (no speed). When I start the engine the speed indicator shows 10km/hr but it's not smooth and with the increase of the speed it shows incorrect readings like I posted before. The speed sensor this bike uses is attached as reference, please see if I took the signal from the correct wire. | ||
| |
| | #43 |
|
Did you change the voltage divider to use 2.5K resistors? Perhaps it’s meant to be the voltage difference between the two wires, or just the one on the right, I have no idea as I don’t have your manual.
__________________ digital-diy.com - Hobby microcontroller projects and tutorials. Assembly, PICBasic and C examples. | |
| |
| | #44 |
|
Am I right in thinking that the ADC part is working correctly and the problem is with the pulsed speed input? Assuming I'm correct on the above assumption, it sounds like you are getting noise interference. Try connecting a 1K resistor from the sensor to the pic and a 0.1uF capacitor from pic to ground. If you still get noise then increase the capacitor , if you get no reading then reduce it. If it only works at certain speeds then post back. Mike. | |
| |
| | #45 |
|
Yes Mike you're right... I'll try to do the following (attached) see if you agree. What's the max signal amplitude that the PIC can deal with? Because the signal from speed sensor is 0 to about 300 hz 12 Volts pulsed and I think the circuit attached is going to lower the pulsed voltage to 5 V. Thanks | |
| |
|
| Tags |
| speedometer |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| digital speedometer using AT90S2313 | fever | Micro Controllers | 57 | 29th January 2008 07:45 PM |
| Speedometer Project Help | ADAM117 | Electronic Projects Design/Ideas/Reviews | 2 | 8th December 2006 06:00 PM |
| Pulse divider for a Speedometer | spestis | Electronic Projects Design/Ideas/Reviews | 3 | 25th July 2006 03:17 AM |
| Tachometer and Speedometer replies | Kiko | Micro Controllers | 0 | 26th April 2004 01:57 AM |
| Electronic Speedometer using stepper motor | roryp | General Electronics Chat | 6 | 10th April 2003 01:06 PM |