TINKER PiEDESIGN IN INDIA

Motion sensor MPU6050 with TinkerPie

A second accelerometer + gyroscope you can mount anywhere, for example on a robot arm.

TypeSmart sensors (I2C)
Connect toSENSOR port · 0x68
Givesmilli-g and °/s
SimulatorYes: a control appears under the simulated board

How it works

The MPU6050 combines a 3-axis accelerometer (it feels tilt and shaking) and a 3-axis gyroscope (it feels how fast it turns). Mount it on a robot arm, a car or a ramp to measure their movement.

How to wire it

Plug into any SENSOR 1-4 port (SDA, SCL, 3.3 V, GND). Each type has a fixed I2C address, so different types can share the bus.

Code

In blocks: Accessories category in TinkerPie Studio. As code:

// JavaScript
sensors.mpuAcceleration(Dimension.X)
sensors.mpuRotationRate(Dimension.Z)

// Arduino C++
sensors::mpuAcceleration(Dimension::X)
sensors::mpuRotationRate(Dimension::Z)

Good to know

Try it in TinkerPie Studio

Similar modules

More projects to try

Questions

Can I try the Motion sensor MPU6050 without buying one?

Yes. In TinkerPie Studio the simulator shows a control for it under the board, so you can test your program before you build it.

The board already has a motion sensor. Why add an MPU6050?

You can fix the MPU6050 anywhere, for example on the moving part of a robot arm, while the board stays still.