OzzMaker
Published © GPL3+

Using the BerryIMUv3 on a Raspberry Pi Pico with MicroPython

A short guide on how to get the the BerryIMU working with Raspberry Pi Pico, either using I2C or SPI.

IntermediateProtip1 hour864
Using the BerryIMUv3 on a Raspberry Pi Pico with MicroPython

Things used in this project

Story

Read more

Schematics

Hookup for BerryIMUv3 and Pico via SPI

Hookup for BerryIMUv3 and Pico via I2C

Code

Select SPI or I2C

Python
Comment out the protocol you will not be using
import utime
import math
from LSM6DSL import *
import machine

#Comment out one of the below lines
import IMU_SPI as IMU
#import IMU_I2C as IMU
  

Github

https://github.com/ozzmaker/BerryIMU

Github file

https://github.com/ozzmaker/BerryIMU/tree/master/PicoMicroPython

Credits

OzzMaker

OzzMaker

6 projects • 1 follower

Comments