Average rainfall 2001-2016, global tropics

Map: Average rainfall 2001-2016, global tropics

ide: I2C scanner

Thomas Gumbricht bio photo By Thomas Gumbricht

Introduction

If you want to connect multiple breakout components relying on the I2C communication bus to your arduino project, you need to know the addresses of these components. That address you can either find in the documentation, or you can use the Arduino I2C_scanner sketch. The sketch is also included below.

Youtube explanation on I2C

Youtube explanation on I2C from [How to Mechatronics]

Youtube Tutorial: Multiple Devices on One Arduino I2C Bus (The Swiss guy)

The I2C_scanner sketch

I2C_scanner sketch

My components

Component Address
VL6810X (Pololu) 0x29
AS72SX 0x49

Internal component addresses

VL6810X (Pololu)
Value Address
RESULT__RANGE_VAL (final range value in mm) 0x062
RESULT__ALS_VAL () 0x050

The output from the ambient light sensor is a 16 bit count value, this count output is proportional to the light level and is converted into lux with VL6180x_AlsGetLux(). The ALS read measurement functions VL6180x_AlsPollMeasurement() & VL6180x_AlsGetMeasurement() both call this function.