Skip to main content
UDi T.1
Visitor II
December 7, 2021
Question

Hello , I am working with the VL6180X sensor and when I ask to him with "IDENTIFICATION__MODEL_ID" Address:0x000, Type:R/W Reset:0xB4 and i get a response the first time : 0xB4 = VL6180X, but the second time or after response 0x00, 0x00, 0xFF, error.

  • December 7, 2021
  • 1 reply
  • 768 views

I would to know how can I read 16bits response to this device from linux?

This topic has been closed for replies.

1 reply

John E KVAM
ST Employee
December 16, 2021

The easy way is to go to GitHub.com and look for a match,

I searched for VL6180 and got:

leachj/vl6180_pi

Raspberry Pi library for the VL6180 i2c distance sensor

That might be a good way to start.

The API that ST supplies gets you most of the way.

STSW-IMG003

VL6180X API (Application Programming Interface and Documentation)

But that code leaves out how it's

VL6180x_I2CRead(VL6180xDev_t dev, uint8_t *buff, uint8_t len)

Functions are implemented in your processor.

But a search in GitHub would be where I would start.

  • john