Description:
STP101M is a 3D pedometer module with functional chipset which include a G-sensor and MCU. It has adopted the impulse-type interface, with the 3D MEMS sensor (G sensor) and high precision of 3D pedometer algorithm, it can give a precisely pedometer in any direction. This module has the characteristics of small volume, low power and etc. The simple digital interface ensures it can be easily embedded in various kinds of pedometer functional system.
Features:
Application
Documents:
Mikroelectron Code:
/*
written for MIKROELECTRON STORE
ENG. ALBUSTANJITHIS CODE COUNT PEDOMETER PILSE (50ms PULSE FROM STP101M pedometer AND STP200M ) .
CONNECT VCC ,GND PIN FROM THE BEDOMETER TO 3.3V AND GROUND FROM THE ARDUINO
CONNECT STEP PIN FROM THE BEDOMETER TO PIN 2 IN ARDUINO.
*/const byte interruptPin = 2;
int i=0;void setup() {
pinMode(interruptPin, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(interruptPin), blink, CHANGE);
Serial.begin(9600);
}void loop() {
}void blink() {
i=i+1;
Serial.println(i);
delay(50);
}
|
Quantity |
---|---|
In stock
|