cancel
Showing results for 
Search instead for 
Did you mean: 

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.

UDi T.1
Associate

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

1 REPLY 1
John E KVAM
ST Employee

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


If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.