News


A useful role for the ADX1202 dual-axis accelerometer in speedometer-independent car navigation systems

7 November 2001 News

Vehicle navigation using the global positioning system (GPS) has been of increasing interest over the past decade; GPS navigation is frequently installed in today's high-end luxury cars and in many commercial vehicles. Because they rely on high-frequency radio signals from satellites, vehicles can travel into situations where they lose the GPS signal for short intervals. With appropriate algorithms, GPS can be integrated with other course-plotting techniques to provide users with continuously accurate navigation information.

Dead-(deductive) reckoning is one method widely used in vehicle navigation. It utilises three distinct inputs to predict position: a set of starting coordinates, the direction of travel, and the speed of travel. Its accuracy is limited due to its relative positioning scheme; the absolute position error grows in proportion to the distance travelled. Other methods of nonGPS vehicle navigation include map-matching, inertial navigation, and Delta A measurement. Map-matching is based on the principle that if you are travelling near a road or parallel to it, there is a good chance that you are indeed on that road (may not work well in heavily populated areas). Inertial navigation relies on an accelerometer to derive velocity as the integral of acceleration. In Delta A measurement, the GPS signals subsequently recovered from the receiver are correlated with inputs from nonGPS systems. This method can correct for the inaccuracies of an accelerometer, such as noise and zero-g offset over temperature/time. More than one of these techniques can be used in conjunction with the GPS to display the position more accurately.

While it would be helpful to use the car's installed speedometer, certain difficulties arise. In general, speedometer information is unavailable because it is not bussed out to systems outside the engine/ABS/stability control computer(s). Because it is considered 'safety-critical' in many cases, the speedometer output will not be connected to anything that could take down the bus. Besides, GPS systems are usually built by third parties who may want to build a generic product with a wide potential market. It is in applications of this sort that the ADXL202 dual-axis accelerometer can be used to develop accurate speed estimates for the navigation system. A digital compass or gyroscope is used in conjunction with an accelerometer to determine the approximate direction of travel. The information is then translated by the navigation system (in conjunction with other methods mentioned above) to determine location relative to the point at which the signal was lost.

The method for determining velocity to be described here uses an accelerometer to sense the time interval for both front and back wheels to encounter a bump in the road (while moving straight ahead). Whether one is driving on a local road or a highway, there will always be imperfections in the road. These imperfections translate into bumps and jolts sensed immediately by the car's wheels, and ultimately by its passengers. In order to track the speed by sensing these bumps, an accelerometer is used to identify their magnitudes and timing. Thus, for a car with a given wheelbase (W), the interval (T1) for both axles to encounter a bump can be used to compute the speed at which the car is travelling, using the equation: (see Figure 1)

Speed [mi/h] = (W [ft]/T1 [s]) * (3600 s/h)/(5280 ft/mi)

Speed [km/h] = (W [m]/T1 [s]) * (3600 s/h)/(1000 m/km)

Figure 1. Event timing for speed measurement
Figure 1. Event timing for speed measurement

When logging data during a typical drive on the local roads to develop experimental information, it is not easy for the accelerometer to discriminate between bounces and vibrations in the car's suspension system and the spike-pairs caused by irregularities in the road. Thus a filtering system is needed to isolate the bumps. The ADXL202EB-232 Evaluation Board has internal software that allows data to be smoothed with low-pass filtering. This provides a better chance of recognising the road bumps and using them in calculations. This problem having been solved, a correlation problem arises - for example, if there are two similar bumps less than a car-length apart, it is difficult to make some sense of the four total bumps experienced by the car within a short time. Hence the necessity of coming up with an algorithm to cleanly translate the data points into valid speedometer readings.

If the accelerometer is placed halfway between the axles with the X-axis parallel to the Earth's surface and aimed straight ahead, and the Y-axis perpendicular to the Earth's surface, the magnitudes of the bump impulses produced by the front and rear wheels are approximately equal (depending somewhat on the vehicle's suspension system). To identify bump pairs, it is necessary to make magnitude comparisons to match the bumps originating with the front and rear axles. At the same time, the current tabulated speed must be compared with the last valid speed to determine whether or not the current calculated speed is feasible. For instance, if a vehicle was going at 25 mph about one second ago, it is extremely unlikely for the current speed to be 45 mph or more. So by using timing and speed comparisons, any outputs that don't make sense will be rationalised or ignored.

Data analysis

The digital outputs of the ADXL202 are duty-cycle modulated; on-time is proportional to acceleration. A 50% duty cycle (square-wave output) represents a nominal 0-g acceleration; the scale factor is ±12,5% duty cycle change per g of acceleration. These nominal values are affected by the initial tolerances of the device, including zero-g offset error and sensitivity error.

In the application described here, a 50% duty cycle output corresponds to a perfectly smooth ride - no bumps or vibration detected by the accelerometer. In general, because of its suspension dynamics, a vehicle is more responsive to bumps at lower speeds. So for lower speeds there needs to be less sensitivity to the magnitude of the bumps (Mxx) and the threshold level can be higher. Magnitudes less than the threshold level will be considered invalid data, while those above the threshold (valid magnitudes) will pass on to the next phase of filtering.

The purpose of the next stage is to block out unfeasible speeds implied by two adjacent bumps that are closer together than the wheelbase of the vehicle. To tackle this problem, if S1 (defined below) is beyond a general acceleration limit of 20 mph/s when compared to S0, the set of data is invalid. However, the configuration of the four bumps can be translated into legitimate speeds by pairing the first and third bumps - and the second and fourth bumps (Figure 2).

Figure 2. X-axis (forward-back), parallel to Earth's surface
Figure 2. X-axis (forward-back), parallel to Earth's surface

Figure 2 shows recent data logged with the ADXL202EB in a car travelling at a constant speed of 20 mph. At first glance, it seems that A and B are two correlating bumps, as well as C and D. However, t11 - t01 = 0,076 s which translates into a speed of about 81 mph. This would be compared with the last valid speed, using the Delta A measurement method, and would negate the correlation of A and B. Then A and C are paired: t02 - t01 = 0,317 s, as are B and D (0,304 s), which translate into respective speeds of about 19,4 mph and 20,2 mph, respectively. From Equation 1 and a 9-ft (2,74 m) wheelbase, Tx for 20 mph is equal to 0,307 s. The results here show differences of 3,2% and 1% respectively.

This simple solution deals with the most common source of false-readings. But of course there are many other bump configurations that could cause faulty speed- readings. Many of them can be dealt with by increasingly clever algorithms and signal conditioning, but in the end, one must realise that this computation is a part of a system to substitute for temporary loss of GPS signals, intended to maintain reasonable accuracy over short intervals.

Which axis?

One can consider using either the X or the Y-axis (or both) for acceleration data to measure the bumps on the road. The Y (vertical) axis measures the actual magnitude, as modified - and frequently muddied - by the car's suspension-system dynamics, while the X-axis measures the magnitude of the front-back acceleration component (accelerometer cross-axis) as the car passes over the bump.

The first approach (Figure 3) measures the Y-axis acceleration (perpendicular to Earth's surface). In a no-bump situation the measurement will be 1 g, established by Earth's static gravitational force. This nominal 62,5% output (50%+12,5%/g) can be offset to read 50%, as a starting point for positive or negative vertical deflection forces.

Figure 3. Y-(vertical) axis, perpendicular to Earth's surface
Figure 3. Y-(vertical) axis, perpendicular to Earth's surface

The second approach (seen in Figure 2) uses the X-axis (parallel to Earth's surface) to measure forward-and-back acceleration. In a no-bump situation the measurement will be 0 g. As the car's motion is influenced by the bump, while the accelerometer picks up a Y-axis acceleration spike, strongly filtered by the car's suspension system. At the same time, the X-axis also picks up a smaller but 'cleaner' forward component of that acceleration spike due to front-and-back motion induced by the bump (and the accelerometer's cross-axis sensitivity). During trial runs, this latter method (Figure 2) gave better results.

This approach helps in filtering out unwanted noise. Furthermore, one can see in Figure 3 that upon hitting a bump, the vertical component of acceleration tends to show a rather low damping factor. Relying on forward-back motion can overcome these complications.

The trials described in this article were performed using the ADXL202EB-232 Evaluation Board and Crossbow software on a PC. The computational flow chart is shown in Figure 4.

Figure 4. Computation flow-chart
Figure 4. Computation flow-chart

For further information contact Analog Data Products SA, (011) 531 1400.





Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

Rooibos heads to space
News
A South African scientific initiative linking agriculture and space research has officially launched today with the Rooibos in Space programme at Parklands College’s Innovation Centre in Cape Town.

Read more...
From the editor's desk: Local can be international
Technews Publishing Editor's Choice News
Welcome to the July 2026 issue of Dataweek. As you can see from this introduction, Dataweek’s regular editor, Peter Howells, is on extended leave and I am filling the void in his editor’s column – hopefully without being too boring.

Read more...
Landis+Gyr EMEA introduces new company name: EYKON
News
EYKON is the new company name of Landis+Gyr EMEA, formerly part of the Landis+Gyr Group. The company supports electricity, gas, water and thermal utilities in managing increasingly complex networks, improving operational efficiency and enabling more sustainable use of resources.

Read more...
Yamaha Robotics will show visitors to EFX
Manufacturing / Production Technology, Hardware & Services News
Yamaha Robotics will show visitors to EFX 2026, the Expo for Electronics Manufacturing, in Stuttgart from 6-8 October 2026, how advanced surface-mount automation helps companies grow their business and increase productivity.

Read more...
From the editor's desk: The art of measuring the truth
Technews Publishing Editor's Choice News
All electronic measurements are a lie. The trick is making the lie as small as possible.

Read more...
TSE has relocated
News
The Technology Station in Electronics (TSE) has entered a new chapter with its relocation from the CSIR campus to TUT-owned building at Ditsela Place in Hatfield.

Read more...
Innovative MyLegrand app
RS South Africa News
Legrand SA is set to launch the MyLegrand mobile application, a digital platform designed to strengthen engagement across its professional network.

Read more...
Kulani Energy acquires critical assets from Optipower
News
Kulani Energy preserves engineering, procurement, and construction capability and positions a wholly women-owned firm at the forefront of South Africa’s grid expansion.

Read more...
From Cape Town to Johannesburg
News
Würth Elektronik South Africa has taken a significant step forward with its recent relocation from Cape Town to Johannesburg, marking a new phase of growth and ambition for the company.

Read more...
Lesley Havenga: Building partnerships for Africa’s electronics future
Editor's Choice News
As Würth Electronik expands its footprint across South Africa and the broader sub-Saharan region, Havenga’s blend of manufacturing expertise, supply chain knowledge, and people-centred leadership appears well suited to the task.

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved