View Single Post
  #1   Spotlight this post!  
Unread 24-02-2015, 16:13
jman4747's Avatar
jman4747 jman4747 is offline
Just building robots
AKA: Josh
FRC #4080 (Team Reboot)
Team Role: CAD
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Atlanta GA
Posts: 418
jman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond repute
Programing VL6180 I2c Sensor I2c

I have been working on building 2 VI's for initializing and getting the range from the VL6180 sensor via I2c. I haven't used I2c before so I'm trying to see if I've done this right. Specifically the initialization (App note pages 24-25) and checking if a bit in a byte read from a register (0x4f) is 1 or 0 (App note page 7).

Data Sheet:
https://cdn.sparkfun.com/datasheets/...DM00112632.pdf

Application Note:
https://cdn.sparkfun.com/datasheets/...cationNote.pdf

Product Page: https://www.sparkfun.com/products/12784
Attached Thumbnails
Click image for larger version

Name:	VL6180 Get Range I2c.png
Views:	80
Size:	49.1 KB
ID:	18477  Click image for larger version

Name:	Open VL6180 I2c.png
Views:	98
Size:	62.4 KB
ID:	18478  
__________________
---------------------
Alumni, CAD Designer, machinist, and Mentor: FRC Team #4080

Mentor: Rookie FTC Team "EVE" #10458, FRC Team "Drewbotics" #5812

#banthebag
#RIBMEATS
#1620
Reply With Quote