Portugal
Asked — Edited

Error On Line 1: Capability 'I2C Master' Is Not Supported On This Device.

Was trying to use the mpu6050 plugin with an of the schelf mpu6050. When i run the code stated here: https://synthiam.com/Software/Manual/MPU6050-Accelerometer-Gyro-Temperature-16187 i get this message: Error on line 1: Capability 'I2C Master' is not supported on this device.  Does this plugin only suports the  EZ-Bit MPU6050?



Related Hardware (view all EZB hardware)
EZ-B V4 by EZ-Robot
EZ-B v4/2 robot controller: dual Cortex ARM, Wi-Fi, audio/video, 24 servo/digital ports, I2C/UART, camera and Synthiam ARC control for custom robots
Wi-Fi / USB
Servos 24
Camera
Audio
UART 3
I2C
ADC 8
Digital 24

Related Robot Skill (view all robot skills)
Reads MPU6050 gyro, accelerometer and temperature via I2C, initializes and returns data on-demand to EZ-Script variables using ControlCommand RunOnce

ARC Pro

Upgrade to ARC Pro

Unlock the true power of automation and robotics by becoming a proud subscriber of Synthiam ARC Pro.

Author Avatar
PRO
Synthiam
#9   — Edited

I2c is a standard.

Author Avatar
PRO
Canada
#10  

The i2C lines aren’t different, it’s just the requirements of the STM32 chip. It requires less capacitance on the wires than the Atmega328. To bring the capacitance down you need stronger pull-up resistors, probably 1kohm or even as strong as 330ohm.

Author Avatar
Portugal
#11  

Got it. Will try some stronger pull-ups. Thanks.

#12  

I'm using an esp32 as my ezb board and I wanted to connect an mpu6050 to it. Does this board currently support i2c in ezb and if not, could i implement it in a new module I mean assigning any two digital pins as the scl and sda

Author Avatar
PRO
Synthiam
#13  

You can modify the esp32 firmware to use i2c. Do you know what pins the esp32 uses for i2c?

#14  

Yes the pins are 21 & 22, though in arduino i can publish any two other pins as sda and scl. Now,  I don't know what's the amount of data i'm receiving or what's the format i'm supposed to send the data retrieved from the i2c device when handling to CmdI2CWrite and CmdI2CRead.

#15  

I was building a custom plugin to communicate i2c with the ESP but it throws the aforementioned exception " Capability 'I2C Master' is not supported on this device". I added an if clause to handle CmdI2CWrite. Do i need to change the firmware id to tell ARC that it can handle i2c?