Daisy 7
Example code for Daisy7 Digital MEMS Accelerometer And Giroscope

Example on code in Python
To manage the I2C bus in
Python it need to install the smbus
module available as Debian package and installable typing:
debarm:~# apt-get update
debarm:~# apt-get install python-smbus
This
is an example of code that gets the value of angular velocity in
deg/sec: ITG-3200.py
To execute it type:
debarm:~# python itg3200.py
This
is an example of code that gets the value of acceleration in mg:
LIS331.py
To execute it type:
debarm:~#
python lis331.py
Example on code in C
This is an example of C code that
read the angular velocity and type it on the terminal session. To try
this example in C you can install the GCC directly on the FOX Board
G20 and compile it typing:
debarm:~# gcc main.c -o main
debarm:~# ./main
x 50 , y 20 , z 55
Download: itg3200c.tar.gz
Form more information to Daisy Device visit: www.acmesystems.it
Status:Preview
Download Brochure
|