Miata Turbo Forum - Boost cars, acquire cats.

Miata Turbo Forum - Boost cars, acquire cats. (https://www.miataturbo.net/)
-   Insert BS here (https://www.miataturbo.net/insert-bs-here-4/)
-   -   Olderguy and other Electrical Wizards (https://www.miataturbo.net/insert-bs-here-4/olderguy-other-electrical-wizards-9752/)

Loki047 05-11-2007 03:39 PM

Olderguy and other Electrical Wizards
 
Alright guys lets put our thinking caps on. I bought a new bike, but because of the new sprocket and tires I have put on the bike my speedo is off by 7.76%.

I want to be able to put something inline to correct this error. The speed sensor on the tranny output, sends a frequency to the speedo cluster and that displays the MPH. Based on two data points given in the service manual, 181 Hz = 60mph and 88Hz = 60kph, there is approximately ~ 2.35 Hz/mph.

How do I intercept the frequency and and change it?

jayc72 05-11-2007 03:46 PM

Did you get the 7.76% from comparing indicated speed to a GPS?

I wonder what the accepted error of the unmolested setup is? On my completely stock Tribute the speedo is out by nearly 5km/h @ 110km/h. What's that nearly 5%? I've heard +-5% is typical. My Miata is even worse.

Who knows, maybe the changes you are making will improve the accuracy :) Check with a GPS or a stop watch and mile markers.

As to your actual question, I don't have a clue since I'm just a uselss fucking Canadian. :)

olderguy 05-11-2007 03:46 PM

Go back to the old sprocket:gtfo:

Loki047 05-11-2007 03:58 PM


Originally Posted by jayc72 (Post 112091)
Did you get the 7.76% from comparing indicated speed to a GPS?

No i got it from calculating the new gear ratios, I will measure the real error when I get home and can steal romanKs gps system for a run.

Loki047 05-11-2007 03:59 PM


Originally Posted by olderguy (Post 112092)
Go back to the old sprocket:gtfo:

Thats more work than figuring this out. :nono:

Put those electrical skills to work.

Atlanta93LE 05-11-2007 04:27 PM

You still have access to whatever equipment your engineering dept. has, right? Or are you gone for good now? If you had access to a decent scope, I'd hook it up to the signal line and look at the shape of the wave. That'll shed some light onto what you'd have to do to change the frequency. In general though, wave signals aren't the easiest to change, unless it's like a pulse-counting system, which might be easier.

Ben 05-11-2007 04:29 PM

Fuck the speedo. Unplug the speed sensor or remove the speedo sprocket. You can figure out speed by RPM. That's what I did with my GSXR.

Loki047 05-11-2007 04:35 PM


Originally Posted by Ben (Post 112115)
Fuck the speedo. Unplug the speed sensor or remove the speedo sprocket. You can figure out speed by RPM. That's what I did with my GSXR.

Fuck that, I like knowing how fast I go$$$$ PLust the speedo and RPM are all on the same board it will display an error where the MPH is usually.... annoying!

Loki047 05-11-2007 04:43 PM

1 Attachment(s)

Originally Posted by Atlanta93LE (Post 112114)
You still have access to whatever equipment your engineering dept. has, right? Or are you gone for good now? If you had access to a decent scope, I'd hook it up to the signal line and look at the shape of the wave. That'll shed some light onto what you'd have to do to change the frequency. In general though, wave signals aren't the easiest to change, unless it's like a pulse-counting system, which might be easier.

That might be what I have to do. Theres systems out there for about 100 bucks that will correct the speedo (speedohealer....) but I dont want to pay for something I can/should be able to figure out. (Im in the middle of finals and finishing sr design, I will be insanely busy for the next few days, and then freee till work starts, so well see what i can get accomplished in between)

Im pretty sure its a counting pulses its a square wave. ... from the service manual

Ben 05-11-2007 04:47 PM


Originally Posted by Loki047 (Post 112118)
Fuck that, I like knowing how fast I go$$$$ PLust the speedo and RPM are all on the same board it will display an error where the MPH is usually.... annoying!

Most bikes the tach will still work fine and the speedo will read 00.
In your miata, you can look at the tach and see 4k rpm, then know you're doing 80 w/o looking at the speedo right? You can do the same thing on a bike. You'll very quickly learn how fast you're going by feel anyway. I almost never look down at my speedo when riding; I don't have to. And if you're going so fast that you can't tell, you shouldn't be looking at the speedo anyway.

Anyway, if it's PWM based, you can build a comparator circuit inexpensively.

Ben

Philip 05-11-2007 05:07 PM

buy a better bike like an aprilia that uses a sensor on the rear brake.

Loki047 05-11-2007 05:20 PM


Originally Posted by Philip (Post 112129)
buy a better bike like an aprilia that uses a sensor on the rear brake.

Haha thats so much simpler

Loki047 05-11-2007 05:28 PM


Originally Posted by Ben (Post 112125)

Anyway, if it's PWM based, you can build a comparator circuit inexpensively.

Ben

Thats what Im trying to figure out.

Joe Perez 05-11-2007 05:41 PM

One option would be a frequency-to-voltage converter, an op-amp, and then a VCO.

You didn't say whetehr it reads high or low. If it's reading high then maybe you could just build a simple divide-by-n circuit, something as simple as a shift register and a big multi-input AND gate to drop every nth pulse?

Loki047 05-11-2007 05:47 PM

Its reading high, ie it reads 42 mph when im really going 38.5 mph.

I like that drop every pulse.

Mach929 05-11-2007 06:00 PM

most people don't worry about it, i kept my sprockets stock, any more aggressive and it will stand up even easier

Loki047 05-11-2007 07:55 PM

So how do i drop a pulse?

Lex 05-11-2007 08:46 PM

get a simple PIC microcontroller (16F series for example) and write a simple program to take counts in (on an interrupt) and use a variable to drop as many counts (or as little) as you want. Make sure you scope the signal beforehand and do some signal conditioning circuitry before the PIC input as it is a 0-5volt and current must also be watched.

The whole thing won't cost you more than a few dollars if you already have a PIC programmer and know some basic C (you need a compiler for that) or assembler.

Philip 05-11-2007 10:58 PM

BTW most sport bikes are 10% fast from the factory, so you went what, + in the back and - in the front? It'll probably be more accurate now than before.

Loki047 05-12-2007 12:08 AM


Originally Posted by Lex (Post 112173)
get a simple PIC microcontroller (16F series for example) and write a simple program to take counts in (on an interrupt) and use a variable to drop as many counts (or as little) as you want. Make sure you scope the signal beforehand and do some signal conditioning circuitry before the PIC input as it is a 0-5volt and current must also be watched.

The whole thing won't cost you more than a few dollars if you already have a PIC programmer and know some basic C (you need a compiler for that) or assembler.

I need way more info than that. Im a M.E. my knowledge of electrical stuff is based solely on resistors and ...well thats about it.


All times are GMT -4. The time now is 08:00 PM.


© 2024 MH Sub I, LLC dba Internet Brands