26
Demonstration Batch File
Demo Batch File Folder: G_sensor\demo_batch
The demo batch includes the following files:
••••
Batch File: G_sensor.bat, test_bashrc
••••
FPGA Configure File: G_sensor.sof
••••
Nios II Program: G_sensor.elf
Demonstration Setup
••••
Load the bit stream into the FPGA on the VEEK-MT-C5SOC.
••••
Run the Nios II Software under the workspace G_sensor\Software (Note*).
••••
After the Nios II program is downloaded and executed successfully, a prompt message will be
displayed in nios2-terminal: “its ADXL345’s ID = e5”.
••••
Tilt the VEEK-MT-C5SOC to all directions, and you will find that the angle of the g-sensor and
value of light sensor will change. When turning the board from -80
º
to -10
º
and from 10
º
to 80
º
in Y-axis, or from 10
º
to 80
º
and from -80
º
to -10
º
in Y-axis, the image will invert
Figure
4-10
shows the demonstration in action.
Figure 4-10 Digital Accelerometer demonstration