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.
@smiller29
Not sure what .stl files you are asking about but here are the ones I know about.
---Link---
Herr Ball, Thanks for the link I found what I needed on this site thanks to you. I did not think to look here for those files. I could not find these items on the EZ Robot website.
Looks like we'll need to update our site to have more STL files.
Besides Thingiverse, I forgot that the files were still hosted here and I also forgot that you can get some of the STLs from within the ARC Robot design skill and in the build instructions.
Several of my EZ-Robots are either in part or fully 3D printed. I purchased a stack of the development kits a while ago for parts and 3D print the other pieces. When you have a bunch of kids building robots they will break things.
This is probably the best way to go to market. No one can afford $1000 for a robot but a handful of servos, a microcontroller and the 3D printer at school or library and you have a fully functional robot.
DJ, above it says "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." I would love to see the code you created for this can you provide a link to it, because I am not sure where to find EZ-Cloud?
You can find the EZ-Cloud in ARC. Look at the top menu bar on the main screen and you will see it right in the center. Once you get there there will be several ways to look at what's available. On the left menu there is a drop down menu showing everyone who has uploaded a project. Scroll down and find DJ's name and click on it. Depending what you have checked in the search box above there depends on what is returned in the right window. Good luck. It gets some getting used to and experimentation to find what you what.
Thanks Dave I was looking for it on the website. Then I thought it may of been on the EZ Robot website but I could not find it there also. Did not think to check ARC:(
I'm glad I was able to help. There's a ton of good examples and projects to download and look through. Doing this really helped me learn how ARC works and gave me ideas on how to write scripts and set up my project. Have fun!!