In order to test the I2C implementation, I used a HW-290 3-axis Gyro + 3-axis Acceleration + 3-axis Magnetic Field + Air Pressure Sensor. In Pico Arduino we have predefined the following objects:
We can access the HW-290 with the help of the https://github.com/ElectronicCats/mpu6050.git Arduino library.
The advantage of I2c compared to SPI is, that it only needs 2 connections: a data and a clock line. But it comes at the cost of lower transmission speeds.
| HW-290 | Pico |
|---|---|
| VCC_IN | 3.3V (OUT) or VBUS (5V) |
| 3.3V | - |
| GND | GND |
| SCL | GP13 |
| SDA | GP12 |
| FSYNC | - |
| INTA | - |
The module is working both with 3.3 and with 5V!
