View Single Post
  #3   Spotlight this post!  
Unread 11-03-2015, 10:55
zstreet zstreet is offline
Registered User
no team
 
Join Date: Mar 2015
Location: Michigan, USA
Posts: 1
zstreet is an unknown quantity at this point
Re: Programing VL6180 I2c Sensor I2c

Quote:
Originally Posted by jman4747 View Post
So...

It seems that some of the registers have 16bit addresses and the I2c VI only supports 8 bits (right?). To get around this I changed the initialization VI slightly so that the U-16 bit register addresses are split into two U-8 bytes with the lower 8 bits wired in to element zero of the data array and the upper 8 wired to the address input.
I am also trying to establish communication to a VL6180X through LabVIEW.

I am using LabVIEW 2013 so I cannot open your 2014 snippets to look at the subVIs. You are using a different set of I2C subVIs than me.

I also have a different breakout board:
https://www.tindie.com/products/oneh...range-finding/

Putting a scope on my SDA and SCL lines I have not gotten an acknowledge from the VL6180X yet. Currently I think I might have fried the regulator on my board.

Concerning your issues: the split number takes the high 8 bits and separates it from the low 8 bits but both are in the original format of U16. After the split number subVI you need to convert them to U8 also. Without downloading the I2C VIs I cannot be certain but it should be set up so that the Slave Address that you are putting in as 0x29 needs to be shifted 1 bit to 0x52.
Reply With Quote