The MP3car.com Store The MP3car.com Blog    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Hardware Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-12-2005, 07:37 PM   #1
Newbie
 
phoneboi's Avatar
 
Join Date: Aug 2005
Location: Eau Claire, WI
Posts: 4
Method To Read Speedometer Cable Spin?

I'm looking into doing something with the speedometer in the car I'm working on. (The gauge no longer works).

The speedometer cable still spins when the car is moving, and I'm hoping to build a sensor I can use to read the spin rate of the cable as a voltage.

Trouble is, I don't really know what kind of sensor I can use.

I know there are plenty of hardware savy people in the forums, and thought someone might be able to point me in the right direction.

What I'm hoping to do is connect the spindle of the speedometer cable to a yet unknown sensor that would translate the speed the spindle is rotating at into a measurable voltage.

Using a microcontroler to poll the voltage level, I hope to translate the voltage read into a human readable display of speed via an lcd.

Any help out there?

-Phoneboi
phoneboi is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 08-12-2005, 09:14 PM   #2
My Village Called
 
0l33l's Avatar
 
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 10,763
I think it would help if you posted the car you had
__________________
PowerVoice v1 | NaviVoice Source
GammaControl v2.4
SKINbedder v3

1995 Lexus SC300 <-- Weekend Car
1997 Mazda Miata <-- Daily Driver
0l33l is offline   Reply With Quote
Old 08-12-2005, 09:52 PM   #3
Admin. Don't bug or I'll byte.
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Posts: 4,812
If you have OBDII, it would be easier to tap into the car. If not, here's how I did it back in 1986.

My speedo used something called the Hall effect. The speedo cable spun a 'U' shaped metal piece around a cup. The needle was attached to the cup and a spring. The electrical impulse pushed the speedo around to the right spot.

To convert the spinning motion into a digital signal, I used an infrared emitter and detector that bounced the light off of each side of the 'U' and circuitry counted the number of times it did that. We calculated that each pulse was worth 2.6 feet and polled the circuitry every now and then to see how many pulses had accumulated, compared that to the time it was last checked, and converted that to speed.

Here's the circuit but it was designed for the Atari 1200XL parallel port. That may or may not correspond to a parallel port on today's computers. I have to admit a friend of mine who was an EE did this for me.

Anyhow, that's one way to do it.
Attached Images
 
__________________
-Where in the world is the iBug?
-Find out about theiBug
-Attention Newbies! Have you seen the FAQ Emporium?
-No time to figure it out? Take 5 minutes to view the Car PC 101 video
Bugbyte is offline   Reply With Quote
Old 08-12-2005, 10:30 PM   #4
Newbie
 
phoneboi's Avatar
 
Join Date: Aug 2005
Location: Eau Claire, WI
Posts: 4
You raise a good point.

The car I'm working on is a 1990 VW Fox.

The spedo cable interlocks with the spedo, the gauge translates the revolutions of the inner spindle into the vehicle speed.

If I could measure the spin speed or the number of revolutions over a given period, I could calculate speed and distance traveled and display the numerics on some 7-segment leds.

Here's a quick overview of the connection.
Attached Images
 

Last edited by phoneboi; 08-12-2005 at 10:38 PM.
phoneboi is offline   Reply With Quote
Old 08-12-2005, 10:45 PM   #5
Admin. Don't bug or I'll byte.
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Posts: 4,812
You could get a square drive that fits the cable end or epoxy a flat rectangular piece of metal to the cable end. Use an emitter/detector and let the rectangular piece cut the beam twice per turn.
__________________
-Where in the world is the iBug?
-Find out about theiBug
-Attention Newbies! Have you seen the FAQ Emporium?
-No time to figure it out? Take 5 minutes to view the Car PC 101 video
Bugbyte is offline   Reply With Quote
Old 08-13-2005, 12:49 AM   #6
My Village Called
 
0l33l's Avatar
 
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 10,763
Another VERY easy thing to do: get a GPS receiver.
There's even oen were u can plug in your speedo sensor and it will automatically have your speed displayed, even if you lose SATs in a tunnel.
__________________
PowerVoice v1 | NaviVoice Source
GammaControl v2.4
SKINbedder v3

1995 Lexus SC300 <-- Weekend Car
1997 Mazda Miata <-- Daily Driver
0l33l is offline   Reply With Quote
Old 08-13-2005, 05:49 AM   #7
Newbie
 
phoneboi's Avatar
 
Join Date: Aug 2005
Location: Eau Claire, WI
Posts: 4
So I did some more thinking after reading your post BugByte, and I hatched an idea. I've run across several ball-type mice that used optical pickups to measure distance. If you've ever taken one apart you'll know what I mean.

The ball rests against two rollers, one for the x-axis, one for the y-axis. As the ball moves, it spins the rollers. Each roller is connected to a plastic slotted disc that is wedged between an ir transmitter and an ir reciever. The slots in the disc are spaced evenly, creating a pulse signal the mouse (and associated driver) use to calculate distance traved and move the mouse pointer.

My idea would be to salvage an old ball-type mouse. Drilling a small hole in the protruding square drive from the speedo cable, I'd attach the shaft and slotted disc and essentually turn the speedo cable into a single axis mouse.

Then I could read the pulse (or trap every pulse with a single slot disc) to count revolutions over time. With some measurements on the car itself, I should be able to accurately measure speed and distance using a picaxe or similar controler.

Interfacing to the display isn't a problem, but the only question I have is would the circuit be sensitive enough at higher speeds?
Attached Images
 
phoneboi is offline   Reply With Quote
Old 08-13-2005, 07:14 AM   #8
MySQL Error
 
jcdillin's Avatar
 
Join Date: May 2003
Location: Miami, FL
Posts: 4,353
I dont think your going to get the speeds out of that at least at higher RPM's slow speeds would propbably work ok, most the time for a application like what your trying to do they use hall sensors. There are plenty of hall effect sensors that are I2C that you could interface with a PIC microcontroller. Nice part is they only use 2 to 3 wires to interface with and all you need on the end of the speedo cable is a magant.
__________________
肚子笑痛了
S60 Install
jcdillin is offline   Reply With Quote
Old 08-13-2005, 09:47 AM   #9
lez
FLAC
 
lez's Avatar
 
Join Date: Jan 2004
Location: UK
Posts: 1,284
Most after market cruse controls use a coil and rotating magnet, generates a few mv AC, also taxi meters.

another common one is hall effect transistor and spinning magnet.

I had to replace sensor on my taxi meter when I changed cars, cost me 26ukp / 50$ for it, was a plastic box, hall effect transistor and ....... a magnet..

You cut the cable, outer only, in two places and peeled off about 2cm of outer. lower half of box had clamps to hold the two ends of outer so they did not close back together in use.

The magnet was two halfs of a round wheel, and it was screwed onto cable inner like a wheel with the cable inner being a spindle. this wheel had a magneton one side.

As cable inner rotated, so did the magnet wheel.

You clipped on the top half of the box to protect it from hitting anything as it spun, the hall effect transistor was in top half of box so it was now near the magnet wheel.

Really basic, really simple, really reliable. (well you would not want a dodgy pickup to give out cheap fares would you......)
lez is offline   Reply With Quote
Old 08-13-2005, 11:21 AM   #10
Admin. Don't bug or I'll byte.
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Posts: 4,812
@Phoneboi - I really like the ball mouse idea because it is simple and home made. It's exactly the method I was talking about in my second post but the electronics are already built for you.

The question is whether or not the mouse circuitry will work at higher speeds. When I installed the infrared emitter/detector pair on my speedo, we didn't know if it would work at very high speeds. It did, to our surprise.

Test it by mounting the disc on the end of a dremel or a drill. Run it and see. If it doesn't work, go with the excellent suggestions from jcdillon and lez.

It would be helpful if you knew how fast the cable was going to spin. I had the repair manual to the car and it told the actual gear ratios that drove the cable so we were able to test at the right rpms up to 130 mph before putting it in the car. Later, we tested it between mile markers to ensure it was correct.

Of course, as 0.l33l pointed out, solving this using GPS is a snap. But it's not instantaneous and can vary in accuracy slightly.
__________________
-Where in the world is the iBug?
-Find out about theiBug
-Attention Newbies! Have you seen the FAQ Emporium?
-No time to figure it out? Take 5 minutes to view the Car PC 101 video
Bugbyte is offline   Reply With Quote
Old 08-14-2005, 12:24 AM   #11
Variable Bitrate
 
Join Date: May 2005
Location: Derbyshire, UK
Posts: 422
In case you can's DIY it, there are ready made transducers for this. They are used for taxis, cruise control systems and trip computers...

http://www.metrontransducers.com/index.htm



^^ That one fixes onto the back of a VW speedo and the cable goes onto the other end as if it is clipping onto the speedo...

They produce units that give 1,2, 4 or 8 pulses per revolution.


They are only Hall Effect sensors though....
__________________
Old setup
Epia M10k, Cubid 2699R case, 512MB, 40GB 3.5" drive
New setup
Optiplex 260SX (2.8GHz P4, 512MB, 30GB, DVD)
Xenarc 700IDT, USB hub, 802.11g, bluetooth, P2140, P5V
markbuts3 is offline   Reply With Quote
Old 08-14-2005, 12:40 PM   #12
Admin. Don't bug or I'll byte.
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Posts: 4,812
Nice find!
__________________
-Where in the world is the iBug?
-Find out about theiBug
-Attention Newbies! Have you seen the FAQ Emporium?
-No time to figure it out? Take 5 minutes to view the Car PC 101 video
Bugbyte is offline   Reply With Quote
Old 08-15-2005, 10:12 AM   #13
Constant Bitrate
 
stapan's Avatar
 
Join Date: May 2005
Location: SoCal
Posts: 129
if you open up your gauge cluster you might find your voltage source already in there. I have seen high end alarms which tap into one of those wires, Im pretty sure its for the function where the doors are automatically locked once the vehicle reaches 30 mph.
stapan is offline   Reply With Quote
Old 08-15-2005, 10:29 AM   #14
MySQL Error
 
Scouse Monkey's Avatar
 
Join Date: Mar 2004
Location: Bristol
Posts: 13,521
VSS sensor. that is what you hook up to dead reckoning (DR) GPS modules (what Boris was on about). 1990 euro built car may just have a mechanical linkage and no VSS. Hall effect route would be my choice. You could do a simple calibration with your GPS by altering the timing whilst driving at a range of speeds. The DR systems automatically do this calibration to allow them to compensate for differnet cars, tyre pressures etc etc whenever they get good GPs reception. Why not check out the U-Blox GPS stuff (JCDillin is designing the interface board for the module) and then build a simple hall effect sensor for the VSS input. Then all of the hard electronics work is done for you by the GPS and you should hopefully get a badass GPS to boot
__________________
If you want more answers on anything I have posted you can find me at digital-car.co.uk

or skiing or diving or doing somthing else fun!
Scouse Monkey is offline   Reply With Quote
Old 08-15-2005, 07:06 PM   #15
Newbie
 
phoneboi's Avatar
 
Join Date: Aug 2005
Location: Eau Claire, WI
Posts: 4
Indeed the 1990 Fox has a mechanical linkage. I've scrounged up a few old ball-type mice. For now I just want to do a proof of concept (and understand the circuity) by just setting up the slotted wheel, the ir emitter and reciever to a resistor/led combo so I can at least tell if it's getting pulses. I'm not exaclty sure what voltage these components are, but I'm going to assume somewhere around 3.3V. Time to break out the breadboard and do a little tinkering before I try wiring up the pic controler.

And if it doesn't work.. that suggestion by markbuts3 is excellent. Though it does lack that *geek* quality I was going for.

-phoneboi
__________________
------------------------------------------------------
Managerium is known for its denseness.
------------------------------------------------------
The VWFox Project
phoneboi is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Earthmate USB to Serial cable New_Compact GPS 22 05-22-2008 02:55 AM
Custom length IDE cable (HD, CD/DVD, Floppy) jtk Classified Archive 13 03-23-2005 04:45 PM
A cable I found. masterful LCD/Display 5 08-17-2003 10:36 PM
1:1 Hirose Cable Group Buy! claylong Classified Archive 30 08-31-2002 03:55 PM
Cat6 cable -> IDE Cable dan0myte General Hardware Discussion 8 08-31-2001 09:29 AM


All times are GMT -5. The time now is 04:33 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics