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.
Oh! My bad, sometimes I make assumptions about people who are DIYers. You could easily place resistors in parallel with the 2.2kohm resistors to drop the resistance and strengthen the pullup. No soldering required! They can even be through hole for that matter.
You simply place a 470ohm resistor between SDA and 3.3V pins and you will be putting it parallel with the 2.2kohm. Do the same for the SCL side.
Well I think I did this ok. Jeremie question for you is there anyway to get another ezb4 case? Not the power base.
So if you’d like to 3D print one I believe the STL file is available for the top and bottom plastic pieces for the EZ-Bv4. Otherwise, you could send a message to ez-robot customer service to see how much it would be to send you some plastics.
Ok thanks Jeremie!
Too bad you don't need the power base. I have like 5 sitting here empty I could just give you. A number of years ago I needed a new case for the EZB board set. I sent a request like Jeremie suggests and was able to get one right away. Hopefully they still have them available for you. Good luck!
Jeremie, Thanks but I could not find them on the EZ Robot website. Please don't take this the wrong way but that site needs a lot of work has lots of bad links and also old data. Kind of looks like the your web master needs to be replaced LOL.
@smiller29 I’d have to have a look on the website myself but you’ll also find the STLs on Thingiverse (EZ-Robot).
If you’re looking for the injection molded plastics themselves they aren’t listed on the website, you’ll have to contact customer service directly through the website.
The EZ-Robot website was migrated over the last couple years and does still need some maintenance and corrections. In due time it will see improvements.
Jeremie, I meant the .stl files. I could not find them on the site.