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:

Technical resource centre for smart cities
News
Mouser’s infrastructure and smart cities content hub features comprehensive articles, blogs, eBooks, and products from Mouser’s technical team and trusted manufacturing partners.

Read more...
UFS Flash named Best in Show
EBV Electrolink News
KIOXIA Europe GmbH was named as winner in the Memory & Storage category of the Embedded Computing Design (ECD) electronica Best in Show Awards at the recently held electronica 2024.

Read more...
Save the date for Securex South Africa 2025
News
Home to Africa’s largest collection of security solutions, Securex South Africa returns to Gallagher Convention Centre in Midrand from 3 to 5 June 2025.

Read more...
Trina Storage ranked in top 10
News
Amidst the global energy storage market, Trina Storage has once again earned recognition from authoritative institutions with its outstanding innovation capabilities and global layout.

Read more...
2025 outlook for DRAM is poor
News
According to TrendForce, weak demand outlook and rising inventory and supply forecast to pressure DRAM prices down for 2025.

Read more...
Price hike to challenge energy reforms
News
Eskom’s proposed 44% price hike could undermine renewable energy gains despite tech innovation.

Read more...
IO Ninja debugging tool
RF Design News
Tibbo has released a major update to IO Ninja, its versatile communications debugging tool for Windows, Linux, and macOS.

Read more...
Young SA robotics team takes world title
News
In a demonstration of innovation and teamwork, Texpand, a South African youth robotics team based in Cape Town, recently made history by winning the 2024 FIRST Tech Challenge (FTC) World Championships.

Read more...
From the editor's desk: A brave new world
Technews Publishing News
The technology Tesla currently uses in its cars from the batteries, power electronics, controllers, through to the mechanics, gearboxes, and the AI inference computer and software have are incorporated in the development of Optimus, allowing the development of the robot to gain impressive features in a relatively short time span.

Read more...
Seven Labs partnership enhances local electronics distribution
Seven Labs Technology News
Aimed at revolutionising the electronics distribution landscape in South Africa, Seven Labs has announced a partnership with LCSC, one of China’s most reputable electronics distributors.

Read more...