Grove - Step Counter(BMA456)
The Grove - Step Counter(BMA456) is based on BMA456, which is an exetremely
small, triaxial, low-g high performance accelerations module. Thanks to the special
algorithm of BOSCH, we made this module a portable pedometer.
Relaiable, cost-effective, on top of that, it's very easy to use, you can easily add this
plug and play module on your wearable devices.
Features
On chip FIFO
Ultra-low power
On-chip interrupt
Programable functionality
Specification
Item
Value
Operating Voltage
3.3V / 5V
Acceleration Range
±2g, ±4g, ±8g, ±16g
Sensitivity
16384 @±2g
8192 @±4g
4096 @±8g
2048 @±16g
Interface
I2C
I2C Address
0x19(default) / 0x18(optional)
Typical applications
Applications with height constrains
Plug and Play Step-Counter solution with watermark functionality
Fitness applications / Activity Tracking
Power management for wearable applications
Display on/off and profile switching
User interface without hardware buttons
E-compass tilt compensation and data synchronization
High performance angle measurements
Hardware Overview
Pin Out
Schemaitc
Power
The typical voltage of BMA456 is 1.8V, so we use the XC6206P182MR chip to provide
a stable 1.8V. The input of XC6206P33 ranges from 1.8V to 6.0V, so you can use this
module with your Arduino both in 3.3V and 5V.
Bi-directional level shifter circuit
This is a typical Bi-directional level shifter circuit to connect two different voltage section
of an I2C bus. The I2C bus of this sensor use 3.3V, if the I2C bus of the Arduino use 5V,
this circuit will be needed. In the schematic above, Q6 and Q5 are N-Channel
MOSFET 2N7002A, which act as a bidirectional switch. In order to better understand
this part, you can refer to the AN10441
Platforms Supported
Arduino
Raspberry Pi
BeagleBone
Wio
LinkIt ONE
Caution
The platforms mentioned above as supported is/are an indication of the module's
hardware or theoritical compatibility. We only provide software library or code examples
for Arduino platform in most cases. It is not possible to provide software library / demo
code for all possible MCU platforms. Hence, users have to write their own software
library.
Getting Started
Play With Arduino
Hardware
Materials required
Seeeduino V4.2
Base Shield
Grove ‐ Step Counter(BMA456)
Note
1 Please plug the USB cable gently, otherwise you may damage the port. Please use
the USB cable with 4 wires inside, the 2 wires cable can't transfer data. If you are not
sure about the wire you have, you can click here to buy
2 Each Grove module comes with a Grove cable when you buy. In case you lose the
Grove cable, you can click here to buy.
Step 1. Connect the Grove - Step Counter(BMA456) to port I2C of Grove-Base
Shield.
Step 2. Plug Grove - Base Shield into Seeeduino.
Step 3. Connect Seeeduino to PC via a USB cable.
Note
If we don't have Grove Base Shield, We also can directly connect this module to
Seeeduino as below.
Seeeduino
Grove Cable
Grove ‐ Step Counter(BMA456)
GND
Black
GND
5V or 3.3V
Red
VCC
SDA
White
SDA
SCL
Yellow
SCL
Software
Attention
If this is the first time you work with Arduino, we strongly recommend you to see Getting
Started with Arduinobefore the start.
Step 1. Download the Seeed_BMA456 Library from Github.
Step 2. Refer to How to install library to install library for Arduino.
Step 3. Restart the Arduino IDE. Open the example, you can open it in the following
three ways:
a. Open it directly in the Arduino IDE via the path: File → Examples → Grove Step Counter(BMA456) → step_counter.
b. Open it in your computer by click the step_counter.ino which you can find in
the folder XXXX\Arduino\libraries\Seeed_BMA456master\examples\step_counter, XXXX is the location you installed the
Arduino
IDE.
c. Or, you can just click the icon
in upper right corner of the code block to copy
the following code into a new sketch in the Arduino IDE.
1 #include "arduino_bma456.h"
2
3 uint32_t step = 0;
4
5 void setup(void)
6{
7 Serial.begin(115200);
8 Serial.println("BMA456 Step Counter");
9
10 bma456.initialize(RANGE_4G, ODR_1600_HZ, NORMAL_AVG4, CONTINUOUS);
11 bma456.stepCounterEnable();
12 }
13
14 void loop(void)
15 {
16 step = bma456.getStepCounterOutput();
17
18 Serial.print("Step: ");
19 Serial.println(step);
20
21 delay(1000);
22 }
Attention
The library file may be updated. This code may not be applicable to the updated library
file, so we recommend that you use the first two methods.
Step 4. Upload the demo. If you do not know how to upload the code, please
check How to upload code.
Step 5. Open the Serial Monitor of Arduino IDE by click Tool-> Serial Monitor. Or
tap the Ctrl + Shift + M key at the same time. Set the baud rate to 115200.
Success
If every thing goes well, when you open the Serial Monitor and walk with this sensor on
or move it to simulated walking posture , it may show as below:
1 BM
2 Step: 0
3 BMA456 Step Counter
4 Step: 0
5 Step: 0
6 ...
7 ...
8 Step: 18
9 Step: 20
10 Step: 22
11 Step: 24
12 Step: 26
13 Step: 28
14 Step: 30
15 Step: 32
16 Step: 34
17 Step: 36
18 Step: 38
Project
This is the introduction Video of this product, simple demos, you can have a try.
Tech Support
Please do not hesitate to submit the issue into our forum
http://wiki.seeedstudio.com/Grove‐Step_Counter‐BMA456/ 11‐5‐18
很抱歉,暂时无法提供与“101020583”相匹配的价格&库存,您可以联系我们找货
免费人工找货- 国内价格 香港价格
- 1+62.972601+8.02040