element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Intel
  • Products
  • Manufacturers
  • Intel
  • More
  • Cancel
Intel
Forum Using a VL53L05X TOF sensor with TinyTILE-How?
  • Blog
  • Forum
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Intel requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 5 replies
  • Subscribers 6 subscribers
  • Views 252 views
  • Users 0 members are here
Related

Using a VL53L05X TOF sensor with TinyTILE-How?

djsb
djsb over 5 years ago

Hello,

I would like to us an ST VL53L0X TOF sensor with my TinyTILE board. I have connected the SCL pin on my Pololu Board

 

Pololu - VL53L0X Time-of-Flight Distance Sensor Carrier with Voltage Regulator, 200cm Max

 

to the I2C0_SCL and the SDA pin to I2C0_SDA pins on the TinyTILE. I have tried using the library mentioned here

 

GitHub - pololu/vl53l0x-arduino: Pololu Arduino library for VL53L0X time-of-flight distance sensor

 

but I can't get it to work.

 

I'm wondering if I would have better luck using these I2C examples from here

 

tinyTILE-Extended-Support-Library/examples at master · 01org/tinyTILE-Extended-Support-Library · GitHub

 

Some basic questions.

1/ How would I use the above TILE-Extended-Support-Library in the Arduino IDE?

2/ Have I connected the sensor board to the correct I2C pins? There are 2 other pins on the TILE. Should I use these instead?

3/ How would I adapt the above Arduino libraries (I.E include header files etc).

4/ I just want to start off small so a good start would be to retrieve the model ID etc from the sensor and do a basic measurement. How would I begin?

 

I hope someone can help. Thanks.

 

PS This question has also been asked on the intel community forum here

 

https://communities.intel.com/message/470705#470705

 

I was redirected here.

  • Reply
  • Cancel
  • Cancel
Parents
  • djsb
    0 djsb over 5 years ago

    Hello,

    Can anyone help me. I am NOT impressed so far with the lack of support offered for this board. Is anyone even using it?

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 5 years ago in reply to djsb

    Have you read and understood the ST support material for the sensor. It works by using an ST supplied C library which does all the register access to the chip and provides a high level API. The Arduino library is a wrapper around this ST supplied code and API.

    I would not have much confidence that this will work very well on your Tiny Tile.

    You can download all this stuff free from ST - I had a look at the API download and it's a monster - even has Windows dll in it.

    It is not  a beginner's project .

     

    If ST publish a register level description of this chip I didn't manage to find it.

     

    If you must use it then you'll need to get deep into the Arduino code to work out how they adapt and get the ST code onto the target and then try and replicate that yourself.

     

    (I don't use Arduino or this sensor or TinyTile - I've only pitched in here because no one else seems willing/able to help. So my comments are based on some quick research rather than any deep knowledge.)

     

    MK

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
Reply
  • michaelkellett
    0 michaelkellett over 5 years ago in reply to djsb

    Have you read and understood the ST support material for the sensor. It works by using an ST supplied C library which does all the register access to the chip and provides a high level API. The Arduino library is a wrapper around this ST supplied code and API.

    I would not have much confidence that this will work very well on your Tiny Tile.

    You can download all this stuff free from ST - I had a look at the API download and it's a monster - even has Windows dll in it.

    It is not  a beginner's project .

     

    If ST publish a register level description of this chip I didn't manage to find it.

     

    If you must use it then you'll need to get deep into the Arduino code to work out how they adapt and get the ST code onto the target and then try and replicate that yourself.

     

    (I don't use Arduino or this sensor or TinyTile - I've only pitched in here because no one else seems willing/able to help. So my comments are based on some quick research rather than any deep knowledge.)

     

    MK

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
Children
  • djsb
    0 djsb over 5 years ago in reply to michaelkellett

    Thanks for your reply. I will as you suggest do some further research into both the Arduino library and maybe the ST code (if I can pluck up the courage). I'm going to post my question on the Arduino curie 101 forum as well just in case.

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
  • tans
    0 tans over 4 years ago in reply to djsb

    If you're still interested in this, I ported the API to an Atmel XMega. I plan to put up a blog post about it soon, but as a tl;dr - the source code is *not* easy to understand, and there are annoying inconsistencies in how things are structured. There is one redeeming feature though - you only need to edit one .c and one header file to adapt to your target, and then it does just work.

     

    Edit - also, remember to fit the appropriate pullups for the I2C interface if your board doesn't have them already.

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
Element14

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2022 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube