Thumbnail

MPU6050 Tilt Angle Sensor

The MPU-6050 sensor contains a MEMS accelerometer and a MEMS gyro in a single chip. It is very accurate, as it contains a 16-bits analog to digital conversion hardware for each channel. Therefor it captures the x, y, and z channel at the same time. The sensor uses the I2C-bus to interface with the Arduino. This plugin uses the MPU6050 sensor to measure the angular position of X, Y Z-axis.

Requires ARC v2 (Updated 8/19/2021)

How to add the MPU6050 Tilt Angle Sensor robot skill

  1. Load the most recent release of ARC (Get ARC).
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Robot Skill from the button ribbon bar in ARC.
  4. Choose the I2c category tab.
  5. Press the MPU6050 Tilt Angle Sensor icon to add the robot skill to your project.

Don't have a robot yet?

Follow the Getting Started Guide to build a robot and use the MPU6050 Tilt Angle Sensor robot skill.


How to use the MPU6050 Tilt Angle Sensor robot skill

You need to flash the firmware to the Arduino. With this firmware you can use both the DHT11 and the MPU6050 sensors at the same time. EZ-Genuino_DTH11_MPU6050_Uno.zip For the DTH11 wiring help go Here. For the MPU connect like pic. The variables $AngleX, $AngleY and $AngleZ are created. Have Fun!

User-inserted image


ARC Pro

Upgrade to ARC Pro

With ARC Pro, your robot is not just a machine; it's your creative partner in the journey of technological exploration.

#17  

Can anyone confirm this skill still works for me?  I can't get the MPU to provide feedback.  I am not not using the DHT sensor.

PRO
Synthiam
#18  

if you're not using the correct sensor then it won't work.

#19   — Edited

This is what I am using a MPU 6050.  I thought this was the required device. I am not using the other device this service supports temp/humidity DHT

User-inserted image

#20  

DJ thoughts on why the skill does not work anymore?

PRO
Synthiam
#21  

I didn’t make this skill. You’d have to hear from the author.

PRO
Synthiam
#22  

Looking at the Arduino code, I can only assume the sensor isn’t connected because the robot skill should be easy enough to consume the data. I don’t have a sensor like that to test with. Do you get any errors or messages in the ARC log or robot skill window?

#23   — Edited

DJ,  I am getting no errors anywhere it just does not seem to work.   I have tested all this hardware together using an example script for the MPU6050 and UNO and it works perfect.

Just as a FYI I have decided to use EZB4's and an IOTiny in this project. I am going to try the other skill that is for the EZB's and see if I can make that one work.  I may have more question on it when I can hook everything up and try it.

#24  

Quote:

I have decided to use EZB4's and an IOTiny in this project
Top of the line. Buy the best and you will never be disappointed. Nice choice.