Raspberry Pi Pico W with CMPS14 compass
Example code of connecting the Raspberry Pi Pico W to a CMPS14 digital compass.
Connections
Description | Colour | Pico W | CMPS14 compass |
---|---|---|---|
Power 3v | Orange | pin36 3V3(OUT) | 3.3v |
Ground | Black | pin3 GND | GND |
i2c Data | White | pin1 GP0 i2c0 SDA | Second from top |
i2c Clock | Blue | pin2 GP1 i2c0 SCL | Third from top |
![iconI2C.png](iconI2C.png)
![volts33.png](volts33.png)
Photo
![Raspberry Pi Pico W with CMPS14 compass](20230304_124800/20230304_124800_600.jpg)
![Raspberry Pi Pico W with CMPS14 compass](20230304_124818/20230304_124818_600.jpg)
![Raspberry Pi Pico W with CMPS14 compass](20230304_124823/20230304_124823_600.jpg)
![Raspberry Pi Pico W with CMPS14 compass](20230304_124833/20230304_124833_600.jpg)
![Raspberry Pi Pico W with CMPS14 compass](20230304_124839/20230304_124839_600.jpg)
![Raspberry Pi Pico W with CMPS14 compass](20230304_124915/20230304_124915_600.jpg)
![Raspberry Pi Pico W with CMPS14 compass](20230304_124933/20230304_124933_600.jpg)