Skip to content

Latest commit

 

History

History
52 lines (47 loc) · 1.62 KB

pico-i2c.md

File metadata and controls

52 lines (47 loc) · 1.62 KB
date_updated layout title dependancies dev_board components chips firmware feature images prerequisites references code source_code_path
2022-11-02
tutorials
I2C Bus Scan with RPi pico
RaspberryPI Pico
name url
Raspberry PI Pico
RP2040
Si7021
VCNL4000
C
C++
I2C
console prototype schematic
pico-i2c-console.png
pico-i2c-prototype.jpg
pico-i2c-schematic.png
name url
Blinky Pico
./blinky-pico
name url
Adafruit Si7021 Temperature / Humidity sensor Dev Board
name url
Si70721 Temperature / Humidity datasheet
name url
Adafruit VCNL4000 proximity sensor dev board
c
pico-i2c.c

This example code does an I2C Bus Scan for the sensors Si7021 and VCNL4000.

The datasheets of the 2 sensors below show that the serial monitor prints are in line with the information in the datasheet.

The I2C address for Si7021 is 0x40. ![]({{ site.url }}/assets/images/tutorials/pico-i2c-datasheet-si7021.png)

The I2C address for VCNL4000 is 0x13. ![]({{ site.url }}/assets/images/tutorials/pico-i2c-datasheet-VCNL4000.png)