Author Topic: how to measure the speed of wheels? Which algorithm?  (Read 28583 times)


Offline mr_g

  • Full Member
  • ***
  • Posts: 205
  • BHP: 9
Re: how to measure the speed of wheels? Which algorithm?
« Reply #16 on: February 22, 2010, 01:53:18 am »
Here is the TCM hardware... :D





I have made the algoritam. Very simple without timers, without dividers. Just a simple counter... And it works perfect...

The only issue is false traction slip detection in hard short turns...

4x LM1815, ATmega128, 4x20 LCD, ULN2003D, A/D inputs, SPI, UART, and 2 expansion slots.. :D

Offline gunni

  • Hero Member
  • *****
  • Posts: 1492
  • BHP: 37
Re: how to measure the speed of wheels? Which algorithm?
« Reply #17 on: February 22, 2010, 02:43:20 am »
very interesting,

Explain the operation and adjusting if you could.

Offline dnb

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 837
  • BHP: 19
Re: how to measure the speed of wheels? Which algorithm?
« Reply #18 on: February 22, 2010, 03:11:36 am »
Well done - told you it didn't need a divider :)

False slip readings could be compensated by a steering wheel position sensor or 3 axis accelerometer - with that you could quite easily calculate what the cross axle speed should be for a given turn.  There may be a way to calculate it without this.

After my autotest today, I think I need traction control on the TVR...  Are you making boards you're willing to sell?  I could provide a reasonable input to algorithms if you want too.

Offline mr_g

  • Full Member
  • ***
  • Posts: 205
  • BHP: 9
Re: how to measure the speed of wheels? Which algorithm?
« Reply #19 on: February 22, 2010, 04:12:08 am »
I think I could detect turning by counting impulses from left and right rear wheel and detecting difference in their speed...

Offline dnb

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 837
  • BHP: 19
Re: how to measure the speed of wheels? Which algorithm?
« Reply #20 on: February 22, 2010, 07:13:59 am »
How will you tell that from one of the rear wheels starting to slip?  (Not that you can do a lot about that without something to control the brakes)


Offline dnb

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 837
  • BHP: 19
Re: how to measure the speed of wheels? Which algorithm?
« Reply #22 on: February 23, 2010, 02:40:42 am »
lol.  These people with wrong wheel drive... ;)

Offline mr_g

  • Full Member
  • ***
  • Posts: 205
  • BHP: 9
Re: how to measure the speed of wheels? Which algorithm?
« Reply #23 on: February 23, 2010, 02:03:25 pm »
As soon we have an stable and tested operating version, I will sell the board to anybody who needs it... ;)

Now I need some interface  to the VEMS to tell it to lover the torque for a moment of wheel loosing traction.

Offline multiplex

  • Full Member
  • ***
  • Posts: 151
  • BHP: 6
Re: how to measure the speed of wheels? Which algorithm?
« Reply #24 on: February 23, 2010, 08:47:14 pm »
very interested in your developments here  ;D

subscribed

Offline mr_g

  • Full Member
  • ***
  • Posts: 205
  • BHP: 9
Re: how to measure the speed of wheels? Which algorithm?
« Reply #25 on: February 23, 2010, 08:55:31 pm »
For those who have joined the discussion later, I'm working on TCM (traction control module) which will act as a g-tech (measuring acceleration in meters and km/h) and the OBC (on board computer) that will measure trip times, fuel consumption average, current, etc. ..

It has the 4x20 text display, where you will get all the information, and the acceleration measurement:
*automatically (as soon as you start from standing)
*manual (if you don't want to brake to zero, but you want to measure acc for example from 100km/h to 200km/h)

And later I will develop an application in VB, for those who have carPC, that will show it graphically on the screen with graphs, history, best times, etc. ..

And of course the primary thing is to lower the torque at the start when you got too heavy foot.. :)

It meassures:
N*100m acc,
0-60km/h,
0-100km/h,
0-160km/h,
0-200km/h,
60-100km/h,
100-160km/h,
160-200km/h and
100-200km/h...

Offline gunni

  • Hero Member
  • *****
  • Posts: 1492
  • BHP: 37
Re: how to measure the speed of wheels? Which algorithm?
« Reply #26 on: February 24, 2010, 03:51:47 am »
As soon we have an stable and tested operating version, I will sell the board to anybody who needs it... ;)

Now I need some interface  to the VEMS to tell it to lover the torque for a moment of wheel loosing traction.

This would be perfect with drive by wire. Which VEMS will have to upgrade to eventually.

Otherwise cylinder fuel cut would probably be best for NA vehicles and boost lowering along with cylinder fuel cut if boost has been lowered as much as possible.

This sounds very promising. Can you use VR sensors or are Hall a must


Offline peter_jensen

  • Jr. Member
  • **
  • Posts: 68
  • BHP: 5
  • Vems sins 2004
Re: how to measure the speed of wheels? Which algorithm?
« Reply #28 on: February 24, 2010, 06:09:48 am »
This is a great project.

I am joust wondering if it could communicate with Vems by canbus.
This will give us the possibility to make a lot of things like fly by wire and so.
Also maybe you could use some of the data there are already in Vems.

Looks good 

Offline dnb

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 837
  • BHP: 19
Re: how to measure the speed of wheels? Which algorithm?
« Reply #29 on: February 24, 2010, 06:56:47 am »
In the short term there is the nitrous retard feature.  This could be used to pull out a few degrees of timing when a trigger is applied.  You could also construct a simple PWM interface connected to the VEMS PS2 port to simulate a wheel speed sensor - you can then use the VEMS launch control settings to cause a limit in torque for a given input.

I know neither is ideal, but it gives you a quick way of testing your control algorithms now.