This shows you the differences between two versions of the page.
Previous revisionNext revision | |||
— | university:labs:2_axis_tilt_sensor_adalm2000 [18 May 2020 16:29] – media files from current location Cristina Suteu | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Activity: | ||
+ | |||
+ | ==== Objective ==== | ||
+ | |||
+ | The objective of this activity is to build a simple tilt sensor using ADXL327 and observe how the output voltage varies with inclination on X and Y axes. | ||
+ | |||
+ | =====Tilt sensor using ADXL327===== | ||
+ | |||
+ | ==== Background ==== | ||
+ | |||
+ | A tilt sensor is used for measuring the tilt in multiple axes of a reference plane. They produce an electric signal which is proportional to the degree of inclination with respect to the axes. The tilting position is measured with reference to gravity and enables the easy detection of orientation or inclination. | ||
+ | |||
+ | In this activity we will monitor the tilt in 2 axis, X and Y, using the ADXL327 accelerometer. The functional block diagram of this integrated circuit is presented in Figure 1. | ||
+ | {{ : | ||
+ | <WRAP centeralign> | ||
+ | The ADXL327 is a small, low power, complete 3-axis accelerometer with signal conditioned voltage outputs. | ||
+ | {{ : | ||
+ | <WRAP centeralign> | ||
+ | |||
+ | ==== Materials ==== | ||
+ | |||
+ | ADALM2000 Active Learning Module\\ | ||
+ | Solder-less breadboard, and jumper wire kit\\ | ||
+ | 1 ADXL327 accelerometer\\ | ||
+ | 2 0.047 uF capacitors\\ | ||
+ | 1 0.1 uF capacitor\\ | ||
+ | 2 AD8561 comparators\\ | ||
+ | 4 LEDs\\ | ||
+ | 4 100 Ω resistors \\ | ||
+ | |||
+ | ==== Hardware setup ==== | ||
+ | |||
+ | Start with building on the solderless breadboard the circuit presented in the block diagram from Figure 1. C< | ||
+ | Y< | ||
+ | {{ : | ||
+ | <WRAP centeralign> | ||
+ | |||
+ | ==== Procedure ==== | ||
+ | |||
+ | Turn on the positive power supply at 3V and monitor X< | ||
+ | The zero g bias output is nominally equal to VS/2 at all supply voltages. In this case you should see an offset signal at around 1.5V. | ||
+ | If you tilt the breadboard at different angles on X or Y axes, the output voltage will increase or decrease proportionally. | ||
+ | {{ : | ||
+ | <WRAP centeralign> | ||
+ | |||
+ | =====Tilt sensor with LED indicators===== | ||
+ | |||
+ | ==== Background ==== | ||
+ | |||
+ | We monitored the output voltage of the ADXL327 accelerometer on the oscilloscope but using AD8561 comparators and LEDs is possible to make the tilt sensor send light signals when the the degree of inclination changes or when a vibration is sensed. | ||
+ | We use one AD8561 comparator for each axis. The zero g bias output is similar on both axes and will be the reference of both comparators. On each of the two outputs of the comparator a LED will be connected. The two output signals are opposite so only one LED will be active at a time. | ||
+ | |||
+ | ==== Hardware setup ==== | ||
+ | |||
+ | On the solderless breadboard you will add two comparators and two LEDs ( with the corresponding current limiting resistor) for each. In Figure 5 you can see the circuit schematic and the breadboard connections are shown in Figure 6. | ||
+ | {{ : | ||
+ | <WRAP centeralign> | ||
+ | |||
+ | {{ : | ||
+ | <WRAP centeralign> | ||
+ | |||
+ | |||
+ | ==== Procedure ==== | ||
+ | In this case we need the power supplies V+ and V- set at +-5 V for the two comparators. The signal generator channel 1 W1 will be set to a constant 3 V waveform and used as Vs for the ADXL327. The second channel of the signal generator W2 will be the reference input of the comparators. Its value must be set approximately equal with the zero g output bias previously obtained for the two accelerometer outputs (Figure 4). In this way, everytime a change of tilting degree is sensed and the voltage varies, the comparators outputs will change their state, turning the LEDs on accordingly. | ||
+ | Since the oscilloscope has only two channels available we can analyze one output voltage of the accelerometer at a time, but the LEDs will be on and signal the changes in both X and Y axes. On Channel 1 is connected Xout and on channel 2 is connected the reference voltage generated with W2. | ||
+ | |||
+ | {{ : | ||
+ | <WRAP centeralign> | ||
+ | |||
+ | If you tilt the breadboard to the right on X axis, the input voltage of the comparator will go below the reference voltage so the /OUT pin will be high turning the corresponding LED on. | ||
+ | |||
+ | {{ : | ||
+ | <WRAP centeralign> | ||
+ | |||
+ | If the tilt is in the opposite direction, to the left, the input voltage of the comparator is higher than the reference turning high the OUT pin and the LED connected to it. | ||
+ | |||
+ | {{ : | ||
+ | <WRAP centeralign> | ||
+ | |||
+ | ====Questions==== | ||
+ | |||
+ | • How will C< | ||
+ | |||
+ | • Why should the user limit the bandwidth and what are the criteria for band limiting Xout, Yout, Zout? | ||
+ | |||
+ | <WRAP round download> | ||
+ | **Lab Resources: | ||
+ | * Fritzing files: [[ https:// | ||
+ | | ||
+ | </ | ||
+ | |||
+ | =====Further Readings===== | ||
+ | Some additional resources: | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | **Return to Lab Activity [[university: | ||