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.
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
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.
The connector of the line follower module has 4 pins. The features of the pins are shown in the following table.
|Support I²C communication (clock pin)
|Support I²C communication (data pin)
|Connect the ground electrode
|Connect the power cord
● 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.
● 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:
|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:
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.
List of functions and features of the Me 3-Axis Accelerometer and Gyro Sensor:
|Read the angle value of the x-axis
|Read the angle value of the y-axis
|Read the angle value of the z-axis
|Update the angle values
|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.
The result from the serial monitor