About Me 3-Axis Accelerometer and Gyro Sensor (for Ultimate 2.0)

1280X1280_-_2023-03-06T100621.226.PNG

Overview

The Me 3-Axis Accelerometer and Gyro Sensor is an ideal module for robot motion and posture detection. It includes a 3-axis accelerometer, a 3-axis angular velocity sensor, and a motion processor, and provides I²C ports for communication. It can be installed on self-balancing cars, 4-axis aircraft, robots, and mobile devices. It features a high-dynamic measurement range and low current consumption. The white tag on the interface of this module indicates that it is an I²C communication interface and that it should be connected to a port with the white tag on the main control board.

Specifications

  • Operating voltage: 5V DC
  • Operating temperature: 0–70℃
  • Signal mode: I²C communication
  • Dimensions (L x W x H): 51 mm x 24 mm x 18 mm

Features

  • The white zone on the module is for connection with metal beams;
  • Digitally output 6-axis or 9-axis fusion calculation data in such formats as rotation matrix, quaternion, and Euler angle.
  • Controllable measurement range of the 3-axis angular velocity sensor: ±250 deg/s, ±500 deg/s, ±1,000 deg/s, and ±2,000 deg/s;
  • Controllable measurement range of the 3-axis accelerometer: ±2 g, ±4 g, ±8 g, and ±16 g;
  • Digital Motion Processing (DMP) engine is provided to reduce the load of complex motion integration, sensor synchronization, and posture detection;
  • Eliminate the axial sensitivity gap between accelerometer and gyro, reduce the influence of settings, and shrink the sensor drift range;
  • Calibration algorithms for operation time difference and magnetic sensors are embedded in the module;
  • Reverse connection of power does no harm to the IC;
  • The module supports programming in Arduino IDE, and simplifies the programming process with a runtime library;
  • The module supports block-based coding on mBlock 5 and mBlock 3, which is suitable for all ages;
  • The connection is easy with the RJ25 connector;
  • The module features modular installation, compatible with Lego parts.

Pin Definition

The connector of the line follower module has 4 pins. The features of the pins are shown in the following table.
SN Pin Feature
1 SCL Support I²C communication (clock pin)
2 SDA Support I²C communication (data pin)
3 GND Connect the ground electrode
4 VCC Connect the power cord

 

Wiring Mode

● RJ25 cable
The tag color on the interface of the line follower sensor is white. When you use the RJ25 connector, you need to connect it to a port with the white tag on the main control board. Take Makeblock Orion as an example. You can connect it to port 3, port 4, port 6, port 7, or port 8 as shown in the following figure.
● Dupont cable
When you use a Dupont cable to connect to Arduino Uno, pin SCL and pin SDA of the module should be connected to I²C interfaces (namely port A4 and port A5) as shown in the following figure.

Programming Guide

● Program with mBlock 5
The Me 3-Axis Accelerometer and Gyro Sensor support programming with mBlock 5. The following is a brief description of a block on this module:
Block Features
output__22_.png Select an axis
Read the angle value of the gyroscope
● Program with mBlock 3
The Me 3-Axis Accelerometer and Gyro Sensor support programming with mBlock 3. The following is a brief description of a block on this module:
Block Features
output__23_.png

Select an axis

Read the angle value of the gyro

 

Program in Arduino
If you program in Arduino, you need to use Makeblock-Library-master to control the Me 3-Axis Accelerometer and Gyro Sensor.

5be898ad-b1c8-4eb8-b744-1e11e5dd9ba2.png

 

List of functions and features of the Me 3-Axis Accelerometer and Gyro Sensor:
Function Feature
double angleX() Read the angle value of the x-axis
double angleY() Read the angle value of the y-axis
double angleZ() Read the angle value of the z-axis
void update() Update the angle values
void begin() Initialize the angle values

 

This program is written in Arduino programming language. When you enter values on the serial monitor, the module receives the values and returns the angle values of the x-axis, y-axis, and z-axis. You can see the angle values of the x-axis, y-axis, and z-axis on the serial monitor from the serial monitor and know the posture of the module.

0887ff4b-e9db-4f6f-8a13-b07a99235514.png

The result from the serial monitor

 

Was this article helpful?
3 out of 5 found this helpful

Comments

0 comments

Please sign in to leave a comment.