Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 8 of 8

Thread: Vl53l0x

  1. #1
    Junior Member
    Join Date
    Dec 2017
    Posts
    15

    Vl53l0x

    Dear All ,

    We are working on VL53L0X pololu distance sensor . Do you know any library for working with teensy 3.5? Any one did before 5 Pcs VL53L0X or more with teensy 3.5 ?

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    6,444
    onehorse uses that part in one of his items is seems and there is a SOURCE link on his product page: vl53l0x-add-on, it may need some edits for Teensy - maybe not. And that may be derived from the sample source on the pololu site.

    You'll have to contend with the devices having the same address until they are changed on each power up - which is also noted at pololu:
    The sensor’s 7-bit slave address defaults to 0101001b on power-up. It can be changed to any other value by writing one of the device configuration registers, but the new address only applies until the sensor is reset or powered off. ST provides an application note (196k pdf) that describes how to use multiple VL53L0X sensors on the same IC bus by individually bringing each sensor out of reset and assigning it a unique address.

  3. #3
    Member PaulS's Avatar
    Join Date
    Apr 2015
    Location
    Netherlands
    Posts
    83
    This library should work on Teensy: https://github.com/pololu/vl53l0x-arduino

    Regards,
    Paul

  4. #4
    Senior Member
    Join Date
    Jul 2014
    Location
    New York
    Posts
    1,682
    Can confirm that it works with the Teensy 3.5. Just to let you know it defaults to Wire. If you wanted to use WireX you would have to hard code the change. There is a pull request in to allow which Wire to use at start up but that is still sitting. If you want to use more that one sensor check this post out at the Pololu forum: https://forum.pololu.com/t/vl53l0x-m...uino-bus/10845.

  5. #5
    Junior Member
    Join Date
    Dec 2017
    Posts
    15
    We added library and connected " ground-Ground" , "VDD- 3.3V " ,SCL-PIN19 " SDA-PIN18". and we tried to work with sample program at library . We changed ports as weel but we did not see any value at serial port 6555 like that. connection are right?

  6. #6
    Senior Member
    Join Date
    Jul 2014
    Location
    New York
    Posts
    1,682
    Try changing your power connection to Vin instead of Vdd. According to the web page Vdd is regulated 2.8*V output. Vin is:
    This is the main 2.6*V to 5.5*V power supply connection. The SCL and SDA level shifters pull the IC lines high to this level.
    You have to use pins 18/19 since that is SCL0/SDA0 which is hard coded in the library. There is a warning on the Pololu site that states:

    Important note: This product might ship with a protective liner covering the sensor IC. The liner must be removed for proper sensing performance.
    Double check that as well

  7. #7
    Junior Member
    Join Date
    Dec 2017
    Posts
    15
    thanks ,it worked now . I think cable problem we had .

  8. #8
    Junior Member
    Join Date
    Dec 2017
    Posts
    15
    We use 3 pcs VL53L0x together but sometimes one of them stop to read value . in this position We reset Teensy. after reset , teensy read again VL53L0x. We use power 3.3v from teensy to all VL53l0xs . We check only it use 10 ma each .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •