LCD Car Accelerometer

24,688

Circuit Image Circuit Image

The circuit is drawn for measurement of acceleration from 1000 mg until + 1000 mg. It can be placed in the car and be supplied from the sheath of the electric lighter. The circuit includes one indicative LED and a screen LCD. The measurement of acceleration is performed using an IC from Analog Devices, the ADXL202. This particular element contains two autonomous vertical sensors for measurement in two axes; however, only one is utilized for this application. The accelerometer measures dynamic or static acceleration from -2g to +2g (where g is the acceleration of gravity). When acceleration is zero, a PWM signal with a 50% duty cycle is outputted. As acceleration increases, the duty cycle also increases, reaching a maximum of 75% at +2g, while at -2g, the duty cycle is 25%. Consequently, for a change of 1g, the duty cycle is altered by 12.5%. The measurement of the duty cycle from the accelerometer is facilitated by Timer1 (16-bit). The period of the output signal is fixed at 1.12 ms. The microcontroller operates at a frequency of 3.6864 MHz, resulting in each cycle lasting 0.27 µs. Using Timer1, with a measurement frequency of CK/1, the maximum countable time is 65536 * 0.27 µs = 17.778 ms, which exceeds the period of 1.12 ms, allowing for any duty cycle to be measured.

Before measurements commence, an initialization process is performed, which involves taking 16 measurements and calculating their mean. During this short interval, it is assumed that acceleration remains unchanged, providing a reference point for null acceleration. In essence, the duty cycle corresponding to null acceleration is established and subsequently subtracted from each measurement. Upon activating the starter switch, the circuit powers on. Initially, while the LED is off, the meter undergoes initialization. The accelerometer must be oriented to measure acceleration in the direction of the vehicle's movement. Regardless of the orientation, a vertical component due to gravity will always be present and must be accounted for in measurements. Once the LED illuminates (after a minimal time), initialization is complete, and the meter begins measuring acceleration, displaying the results on the screen. A negative sign indicates deceleration.

Additionally, the upper section of the screen displays the total time interval that the vehicle has been in operation. This clock operates based on vibrations detected at the External Interrupt 0 pin from an external circuit utilizing the LM555 timer.

Future iterations of this circuit may include a second output from the accelerometer to measure centripetal acceleration during vehicle movement. When positioning the device, the ADXL202 should be aligned parallel to the ground, with pins 1 and 14 facing the front of the vehicle. The LCD is connected to the K2 connector, while the ADXL202 connects to the K1 connector (K3 is also connected to K1).The circuit is drawn for measurement of acceleration from 1000 mg until + 1000 mg. It can be placed in kantra'n the car and be supplied from the sheath of electric lighter. The circuit includes one indicative LED and a screen LCD. The measurement of acceleration becomes with the use of IC from Analog Devices, the ADXL202. The particular element contains 2 autonomous vertical between them sensors, for the measurement in two axes. For the particular application becomes use of only it's one. Acceleration meter measures dynamic or static acceleration from 2g until 2g (where g is the acceleration of gravity) and when this is equal to zero, exit is a signal PWM, with Duty Cycle 50%.

As long as the acceleration increases, increases also the Duty Cycle, with biggest response the 75% (in the 2g), while for acceleration 2g, the Duty Cycle is 25%. As conclusion from more, has that for change 1g, is altered also the Duty Cycle of exit at 12,5%. The measurement of Duty Cycle of response of acceleration meter becomes with the help of Timer1 (16 bit).

The period of signal of expense, has been fixed in the 1,12 msec. The frequency of oscillation of microcontroller is in the 3,6864 MHz and this means that it's each circle of access lasts 0,27 * 10 -6 sec. Using timer1, in frequency of measurement ck/1, the biggest feasible counted time is the 65536 * 0.27 * 10 -3 msec = 17.778 msec, which is bigger than period (1,12 msec).

So, any price Duty Cycle it is possible to be measured. Before the beginning of measurements, it precedes a process of accelerator?s initializing. At this process it is doing 16 measurements, and then is found their mean. In short time interval, it is considered that the acceleration was not altered also thus the result, us gives the point of null acceleration. In other words at this process becomes approach of value Duty Cycle, that corresponds in null acceleration.

From now on, after each measurement, it will be removed from Duty Cycle, the null acceleration. With the shooting of switch of starter, the circuit is supplied. In the beginning, and as long as LED is power-off, becomes initializing of meter. Acceleration meter is will be always placed so as to it measures the acceleration at the address of movement of vehicle. As long as however well and it is placed this, will always exist a component vertical in the movement and with time to the centre of ground.

This component is the acceleration of gravity and which is always removed from each measurement. As soon as the LED turns on (in minimal time), then the initializing it has become. From now on the meter measures the acceleration and him presents in the screen. When is presented the symbol "-", it means that it is deceleration. In the above department of screen is presented the clue of total time interval, that your car is in operation. The operation of this clock is based on vibrations that come in the pin External Interrupt 0, from exterior circuit based in the timer LM555.

In the future it is is published new circuit, with the himself characteristically, that will use the second exit acceleration meter, for the measurement of centripetal acceleration, at the movement of car. At the placement of appliance, the completed ADXL202 should be always parallel with the surface of ground and the pins 1 and 14 they see front part of car.

The LCD is connected at the K2 connector and the ADXL202 is connected at the K1 connector (K3 is connected with K1). 🔗 External reference