English
Language : 

P0103 Datasheet, PDF (41/50 Pages) AEL Crystals Ltd – Introduction of the VEEK-MT
Figure 4-15 Setup for the VIP_Camera demonstration
4.8 Digital Accelerometer Demonstration
This demonstration shows a bubble level implementation based on a digital accelerometer. We use
I2C protocol to control the ADXL345 digital accelerometer, and the APDS-9300 Miniature Ambient
Light Photo Sensor. The LCD displays the interface of our game. When tilting the VEEK-MT, the
ADXL345 measures the static acceleration of gravity. In our Nios II software, we compute the
change of angle in the x-axis and y-axis, and show angle data in the LCD display. The value of light
sensor will change as the brightness changes around the light-sensor.
Figure 4-16 shows the hardware system block diagram of this demonstration. The system is
clocked by an external 50MHz Oscillator. Through the internal PLL module, the generated 150MHz
clock is used for Nios II processor and other components, and there is also 10MHz for low-speed
peripherals.
VEEK-MT User Manual
38
www.terasic.com
May 20, 2014