An inclinometer is widely used device and since I needed to present a "mini-project" for my Control Engineering class, I decided to make one that is based on a gyroscope.
Circuit Description
-LCD and the MPU are connected using the I2C protocol.
-Three (four if the 7-segments is used) buttons are connected to the digital pins (5, 6, 7) using the internal pull-up resistor.
First (pin 5) button is used to "freeze" or "hold" the current value on the display.
Second (pin 6) button is used to enter compare mode, where the following readings will be in respect to the values when the button is pressed.
Third (pin 7) button is used to "set to zero" or make all future readings with respect the values when the button is pressed.
Forth (pin 4) button is used to toggle which axis to view its value on the 7-segments display.
Comments
Please log in or sign up to comment.