32
STEP1:
Plug the Crowtail-Motor Base Shield
onto the Arduino or Crowduino board.
Hardware Connection
STEP2:
Connect Crowtail-3-Axis Digital
Accelerometer(±16g) to A4&A5 port of
Crowtail-Motor Base Shield. The complete
connection is as follows.
Open the downloaded folder “Crowtail Deluxe Kit
for Arduino demo code”, navigate to the folder
“lib”, and add “DigitalAccelerometer_ADXL345”
folder to the Arduino library. Open the
P15_
Calculation_Of_Acceleration
with Arduino and
upload it.
Open the serial monitor, and you will see that the accelerometer values for the X, Y, and Z axes are
printed first, and then the acceleration values in the three axis directions are converted into G units
and printed. When you swipe the accelerometer quickly along an axis, you will see the accelerometer
value of that axis will change.
What will you see
Arduino Uno/Crowduino Uno x1
Crowtail - Motor Base Shield x1
Crowtail - 3-Axis Digital Accelerometer(±16g) x1
Crowtail - Cable x1
Required Parts
The Crowtail- 3-Axis Digital Accelerometer(±16g) is base on an advanced
3-axis IC ADXL345. This is a high-resolution digital accelerometer
providing you at max 3.9mg/LSB resolution and large ±16g measurement
range. Have no worry to implement it into your free-fall detection project,
cause it's robust enough to survive up to 10,000g shock. Meanwhile, it's
agile enough to detect single and double taps. It's ideal for motion
detection, Gesture detection as well as robotics.this digital 3-axis
accelerometer has excellent EMI protection.
Its variable output makes it suitable for a wide range of applications, such as HDD shock protection,
Robotics, Smart vehicles and etc. Therefore, in this lesson, we will learn how to use this accelerome-
ter and apply this accelerometer data to our project.
Lesson 15 – Calculation of acceleration
Introduction
Содержание Crowtail Deluxe Kit
Страница 47: ......