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

Thread: VL6180x sensor and i2c scanner

Hybrid View

  1. #1
    Junior Member
    Join Date
    Jan 2017
    Posts
    18

    VL6180x sensor and i2c scanner

    Hi all,

    I am running into some issues in getting a vl6180x time of flight sensor to work with teensy. I have tried both LC and 3.2, same non.result.

    I have tried to use the i2c_t3 basic scanner, but it doesn't even get past the initialization phase - no serial output. The i2c scanner does work, but it cannot find any devices. I have hooked up another i2c device (i2c oled) and it correctly returns the address.

    This leads me to think it is a connection issue with the vl6180x sensor. I haven't used pull-up resistors myself before, they were always onboard, and I think this is where my issue is at the moment. I have added a 2.2 kohm resistor between both sda and scl and 3.3v in my connection - similar to this diagram: https://www.google.fi/url?sa=i&rct=j...35477121773010

    I have tried 2 different vl6180x sensors, and with both I am running into the same issues so I don't think I have a faulty part.

    Any idea where I need to look next?

    Appreciate the help,

    Bob

  2. #2
    Junior Member
    Join Date
    Jan 2017
    Posts
    18
    One of the sensors I have is this one, and now I re-read the specs. Isn't the pullup already present on the pcb itself?

    https://www.aliexpress.com/item/VL61...902599593.html

    Shouldn't I be able to hook it up directly without any extra resistors then?

  3. #3
    Senior Member+ Theremingenieur's Avatar
    Join Date
    Feb 2014
    Location
    Colmar, France
    Posts
    2,551
    Theoretically yes, but additional pull-ups won‘t harm. If the I2C scanner doesn‘t find these parts, something is definitively wrong. Did you check the voltage levels on the two GPIO pins to make sure that the VL6180X does not hang in standby mode?

  4. #4
    Junior Member
    Join Date
    Jan 2017
    Posts
    18
    I checked the GPIO 0 earlier. I now checked both of them and they are both high (2.8v) so that seems to be OK. I have also tried different teensies (LC and 3.2) I can succesfully detect other i2c devices, but not this one. I did also suspect it might be in sleep mode or something, but from the GPIO pins it does not seem like it. I figured any code I run does not work because the address of the device might be different, but if the scanner cannot pick it up don't know what to set it to...

Posting Permissions

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