Raspberry Pi Pico W with CMPS12 compass
Example code of connecting the Raspberry Pi Pico W to a CMPS12 digital compass.
Connections
Description | Colour | Pico W | CMPS12 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 CMPS12 compass](20230303_164600/20230303_164600_600.jpg)
![Raspberry Pi Pico W with CMPS12 compass](20230303_164627/20230303_164627_600.jpg)
![Raspberry Pi Pico W with CMPS12 compass](20230303_164633/20230303_164633_600.jpg)
![Raspberry Pi Pico W with CMPS12 compass](20230303_164715/20230303_164715_600.jpg)
![Raspberry Pi Pico W with CMPS12 compass](20230303_164724/20230303_164724_600.jpg)
![Raspberry Pi Pico W with CMPS12 compass](20230303_164731/20230303_164731_600.jpg)
![Raspberry Pi Pico W with CMPS12 compass](20230303_164754/20230303_164754_600.jpg)