How to add the MPU6050 Accelerometer Gyro Temperature robot skill
- Load the most recent release of ARC (Get ARC).
- Press the Project tab from the top menu bar in ARC.
- Press Add Robot Skill from the button ribbon bar in ARC.
- Choose the I2C category tab.
- Press the MPU6050 Accelerometer Gyro Temperature 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 Accelerometer Gyro Temperature robot skill.
How to use the MPU6050 Accelerometer Gyro Temperature robot skill
The MPU6050 EZ-Bit module is an all-in-one Gyro/Accelerometer/Temperature sensor over an i2c connection. This ARC control will read data from the sensor and set EZ-Script Variables, respectively. The control will require an Initialization (INIT) before the sensor will return data. If the sensor is not connected, the EZ-B v4 will lock up. This control will not read data automatically. We have provided a ControlCommand() for querying the device and setting the variables. Each time you wish to receive data from the MPU6050, you must ask the control to RUN ONCE with ControlCommand().Here is an example code for looping every 100 milliseconds to request data from the MPU6050. The data from the MPU6050 will be stored in EZ-Script Variables. You may press the CONFIG button on the control to see what variables are being set with data. Ensure you have an MPU6050 ARC control added and an MPU6050 connected to the i2c of the EZ-B, and paste this code into an EZ-Script control. When this script runs, the MPU6050 will continually update the specified variables with data every 100ms... Check the Variable Watcher to view the data from the sensor.
ControlCommand("MPU6050", Init) :loop ControlCommand("MPU6050", RunOnce) sleep(100) goto(loop)
In this video below, I am using the JD project with MPU. The project can be found on the EZ-Cloud as JD With MPU6050 Accelerometer.
How It Works
Interested in how the IMU Sensor works? Find out by reading this fantastic article HERE.
when this come sell?
I wonder if other commercial offerings of this board will work? There are many other companies selling these.
MPU6050 Accelerometer Gyro Temperature
Nice look forward to this and other addons , like Neopixel, an LCD display, an OLED display and also a Infrared transmitter (change channels and triangulate position) and maybe a laser pointer for entertaining the cat.
Used this discussion for instructions for connecting it: https://synthiam.com/Question/Laser-Pointer-7542
Bought 10 for $5 from Amazon. https://smile.amazon.com/GeeBat-10pcs-Laser-Module-Lasers/dp/B01ITK4PEO
I would send you one for free since I have 8 extras (gave one away already), but the mailing cost from US to Canada is more than you would spend getting 10 from Amazon.
Alan
It should, but one thing you should note is that the MPU6050 needs pretty strong pull-up resistors on the SDA and SCL lines to communicate at any kind of distance. In the past I've had to replace the on-board 4.7kohm surface mount resistors with 330ohm ones.
Thanks For the info Jer. I will test it out.
Jeremie, Does EZ Robot still sell these I don't see them on your website? Also can you use a standard MPU6050 board?
"It should, but one thing you should note is that the MPU6050 needs pretty strong pull-up resistors on the SDA and SCL lines to communicate at any kind of distance." What is any kind of distance? Where would you add the the resistors on the standard MPU6050?