Topic: Read Accelerometer from the shell ?
Is there an easy way to read the Chumby One accelerometer from a shell script?
What a great device. Thanks.
You are not logged in. Please login or register.
chumbysphere forum → Hardware → Read Accelerometer from the shell ?
Is there an easy way to read the Chumby One accelerometer from a shell script?
What a great device. Thanks.
Not from a shell script, but here's an example C program that we wrote to verify the accelerometer worked. We also used it to tune the accelerometer daemon to add filtering to stabilize it. It can be compiled to work on the Classic (Ironforge) devices, but it was developed for the One (Falconwing).
http://files.chumby.com/hacks/gacc.c
To compile this on a chumby One, you can either install Scratchbox, install the toolchain from the website, or install a toolchain on a chumby One by running:
wget -O /mnt/storage/falconwing_toolchain.sh \
http://files.chumby.com/hacks/falconwing_toolchain.sh
chmod a+x /mnt/storage/falconwing_toolchain.sh
/mnt/storage/falconwing_toolchain.sh
Great, thanks.
I didn't know you had the tool chain available for native compilation. Very nice.
chumbysphere forum → Hardware → Read Accelerometer from the shell ?
Powered by PunBB, supported by Informer Technologies, Inc.