Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arduino Wearable Projects

You're reading from  Arduino Wearable Projects

Product type Book
Published in Aug 2015
Publisher
ISBN-13 9781785283307
Pages 218 pages
Edition 1st Edition
Languages

The accelerometer, compass, and gyroscope


In the following example, we will try out an accelerometer, which is a device used for sensing g-force. The accelerometer can sense movement in different directions. Normally, there are two types of accelerometer: the 2 axes and 3 axes. The 2 axes measures in two directions, left to right and front to back, and these directions are often named as the x axis and y axis. The 3 axes accelerometer also measures in a z axis, which is up and down. The accelerometer measures movement relative to its own position, which means that when you move it, it measures the g-force in the direction you are moving it.

The sensor used in this example is the FLORA accelerometer/compass/gyroscope, which is actually three sensors in one. Besides the accelerometer, it holds a compass, known as a magnetometer, which senses where the strongest magnetic field is coming from. If there are no other magnets near by, the strongest magnetic field comes from the Earth's north pole...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}