Today 18:10
Forum: Proton Plus Compiler v3
Starter: kbaykar
Views: 0
Replies: 1
Today 16:48
Forum: Absolute Beginners Section
Starter: amod
Views: 0
Replies: 20
Today 16:04
Forum: Proton Plus Compiler v3
Starter: towlerg
Views: 0
Replies: 4
Today 14:26
Forum: The Lounge
Starter: Tim
Views: 0
Replies: 2
Go to last post By: charliecoultas
Today 14:10
Forum: The Lounge
Starter: charliecoultas
Views: 0
Replies: 6
Today 14:00
Forum: Proton Plus Compiler v3
Starter: Maxi
Views: 1661
Replies: 7
Today 13:51
Forum: Proton Users File Server
Starter: Les
Views: 0
Replies: 0
Today 05:32
Forum: The Lounge
Starter: See_Mos
Views: 0
Replies: 4
+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: VL53L0X laser-ranging sensor609 days old

  1. #1
    Prolific Poster normnet's Avatar
    Join Date
    Jul 2004
    Posts
    2,246
    Thumbs Up
    Received: 131
    Given: 32
    Total Downloaded
    916.81 MB

    2 Not allowed!

    Default VL53L0X laser-ranging sensor

    The VL53L0X is a new generation Time-of-Flight (ToF) laser-ranging module housed in the smallest package on the market today, providing accurate distance measurement whatever the target reflectances unlike conventional technologies. It can measure absolute distances up to 2m, setting a new benchmark in ranging performance levels, opening the door to various new applications.

    VL53L0X description
    VL53L0X description
    VL53L0X datasheet


  2. #2
    Junior Member MTH's Avatar
    Join Date
    Feb 2010
    Posts
    35
    Thumbs Up
    Received: 7
    Given: 0
    Total Downloaded
    87.20 MB

    6 Not allowed!

    Cool Re: VL53L0X laser-ranging sensor

    A small contribution to the forum on my part. It works pretty well.
    Best regards MTH


    Code:
    Device = 16F628A
    
    
    Config FOSC_INTOSCIO, WDTE_OFF, PWRTE_OFF, MCLRE_OFF, BOREN_OFF, LVP_OFF, CPD_OFF, CP_OFF
    
    
    ;**** End of Fuse Configurator Settings ****
    ;-------------------------------------------------------------------------------
    
    
    Xtal 4
    CMCON = 7
    VRCON = 0
    Declare PortB_Pullups = Off
    Declare Watchdog =Off
    Declare All_Digital On
    
    
    
    
    'VL53L0x Registros
    Symbol W_ADDRESS    = $52
    Symbol R_ADDRESS    = $53
    
    
    'Puertos
    Symbol SDA = PORTA.0
    Symbol SCL = PORTA.1
    Symbol Data_TX = PORTA.2
    
    
    'Variables
    Dim DatoVL As Byte
    Dim DataSensor[12] As Byte
    Dim Distancia As Word
    'Comunicacion serie
    Declare Serial_Baud 4800  
    Declare RsOut_Pin Data_TX
    Declare RsOut_Mode TRUE 
    
    
    
    
    
    
    
     DelayMS 100
    
     RsOut "Test sensor VL53L0x V11-12-17 by MTH Argentina",13,10,13,10
    
     GoSub VerVL53
     RsOut "Sensor listo, comenzando lectura...",13,10
     DelayMS 1000
    
    'Loop de programa
    While 1=1
    Clrwdt
    'REG_RESULT_RANGE_STATUS 
    I2COut SDA,SCL,W_ADDRESS,[$00,$01]
    'REG_RESULT_RANGE_STATUS 
    I2COut SDA,SCL,W_ADDRESS,[$14]
    'Lee 12 datos del Sensor:
    I2CIn  SDA,SCL,R_ADDRESS,[Str DataSensor]
    'Si el dato en DataSensor[0] es igual a 0x5E procesa distancia
    If DataSensor[0]=$5E Then Distancia=DataSensor[10]*256+DataSensor[11] '#combine integers
      'Representa distancia:
    RsOut "Distancia: ",Dec Distancia," mm",13,10 
    
      DelayMS 100
     Wend
    'Consulta datos de sensor
    VerVL53:
    'VL53L0X_REG_IDENTIFICATION_REVISION_ID
    I2CIn  SDA,SCL,R_ADDRESS,$C2,[DatoVL]
      RsOut "Revision ID: ",Hex2 DatoVL,13,10
    
    
    'VL53L0X_REG_IDENTIFICATION_MODEL_ID
    I2CIn  SDA,SCL,R_ADDRESS,$C0,[DatoVL]
      RsOut "Device ID: ",Hex2 DatoVL,13,10
    
    
    'VL53L0X_REG_PRE_RANGE_CONFIG_VCSEL_PERIOD
    I2CIn  SDA,SCL,R_ADDRESS,$50,[DatoVL]
      RsOut "Pre Range Config Period: ",Hex2 DatoVL,13,10 
    
    
    'VL53L0X_REG_FINAL_RANGE_CONFIG_VCSEL_PERIOD
    I2CIn  SDA,SCL,R_ADDRESS,$70,[DatoVL]
      RsOut "Fina Period: ",Hex2 DatoVL,13,10
    
    
     Return

  3. #3
    Prolific Poster joesaliba's Avatar
    Join Date
    Sep 2004
    Posts
    2,681
    Thumbs Up
    Received: 78
    Given: 19
    Total Downloaded
    2.45 GB

    1 Not allowed!

    Default Re: VL53L0X laser-ranging sensor

    MTH,

    Write a small article to the Wiki please. Doing so this piece of great code will not get lost in the forum.
    Regards

    Joseph

  4. #4
    Junior Member MTH's Avatar
    Join Date
    Feb 2010
    Posts
    35
    Thumbs Up
    Received: 7
    Given: 0
    Total Downloaded
    87.20 MB

    0 Not allowed!

    Default Re: VL53L0X laser-ranging sensor

    Hi joesaliba. I already published a small wiki about the sensor, I took the image and the text of the publication of "normnet" to be able to publish it quickly.
    Little by little I will update the wiki with photos of the results and the tests you do.
    Thank you.


    The dir of the wiki:

    http://www.protonbasic.co.uk/content.php/4621
    Last edited by MTH; 20th December 2017 at 08:45.

  5. #5
    Prolific Poster joesaliba's Avatar
    Join Date
    Sep 2004
    Posts
    2,681
    Thumbs Up
    Received: 78
    Given: 19
    Total Downloaded
    2.45 GB

    0 Not allowed!

    Default Re: VL53L0X laser-ranging sensor

    Quote Originally Posted by MTH View Post
    Hi joesaliba. I already published a small wiki about the sensor, I took the image and the text of the publication of "normnet" to be able to publish it quickly.
    Little by little I will update the wiki with photos of the results and the tests you do.
    Thank you.


    The dir of the wiki:

    http://www.protonbasic.co.uk/content.php/4621
    Thanks for your contribution.
    Regards

    Joseph

  6. #6
    Junior Member Dompie's Avatar
    Join Date
    Apr 2012
    Posts
    41
    Thumbs Up
    Received: 15
    Given: 8
    Total Downloaded
    992.96 MB

    0 Not allowed!

    Default Re: VL53L0X laser-ranging sensor

    Hmmm when I use the link I get:
    Dompie, you do not have permission to access this page.
    This could be due to one of several reasons:
    blablabla

    Searching the WiKi doesn't work either because the Menu colomn is a mesh in Chrome.
    Could you give me the title of your WiKi article (and the WiKi subject)?
    WHY are all mine CR's removed??? (Ohhhh it is a Chrome issue IE hasn't the problem)

    Thanks
    Johan
    Last edited by Dompie; 20th December 2017 at 15:03. Reason: Layout is a mesh

  7. #7
    Prolific Poster normnet's Avatar
    Join Date
    Jul 2004
    Posts
    2,246
    Thumbs Up
    Received: 131
    Given: 32
    Total Downloaded
    916.81 MB

    0 Not allowed!

    Default Re: VL53L0X laser-ranging sensor

    Quote Originally Posted by Dompie View Post
    Hmmm when I use the link I get:
    Dompie, you do not have permission to access this page.
    This could be due to one of several reasons:
    blablabla...
    Thanks
    Johan
    Its not accessible because as of yet its not been published. Ask one of the mods to publish for the public to have access.

  8. #8
    Administrator John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    2,960
    Thumbs Up
    Received: 94
    Given: 28
    Total Downloaded
    1.39 GB

    0 Not allowed!

    Default Re: VL53L0X laser-ranging sensor

    Now published.
    John

  9. #9
    Junior Member Dompie's Avatar
    Join Date
    Apr 2012
    Posts
    41
    Thumbs Up
    Received: 15
    Given: 8
    Total Downloaded
    992.96 MB

    0 Not allowed!

    Default Re: VL53L0X laser-ranging sensor

    Thanks John
    Happy Christmas
    Johan

  10. #10
    Member analogdevice's Avatar
    Join Date
    Nov 2006
    Posts
    110
    Thumbs Up
    Received: 1
    Given: 7
    Total Downloaded
    429.43 MB

    0 Not allowed!

    Default Re: VL53L0X laser-ranging sensor

    Thank you for this code MTH.

    I found it useful for a hobby project. I am getting regular TCC! ($08) and PHASE INCONSISTENCY ($09) errors, but dont really know why. At the moment I am using RANGE COMPLETE ($0B) or ($00) as a check before using the data.

    I am using the Pololu Time of Flight Distance Sensor Carrier with Voltage regulator (Item #2490)
    Last edited by analogdevice; 27th December 2017 at 23:16. Reason: Typo

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Laser projector doable?
    By normnet in forum The Lounge
    Replies: 11
    Last Post: 22nd November 2012, 03:49
  2. Laser power
    By fanie in forum Mechanical
    Replies: 12
    Last Post: 10th March 2009, 21:28
  3. Datasheet Delerium ...... Temp sensor without a sensor...
    By Kapitan in forum Proton Plus Compiler v3
    Replies: 1
    Last Post: 9th February 2009, 13:26
  4. Laser audio link
    By Don Stratton in forum The Lounge
    Replies: 55
    Last Post: 27th April 2008, 23:09
  5. laser pointers
    By Tim in forum The Lounge
    Replies: 7
    Last Post: 2nd December 2007, 12:46

Tags for this Thread

Posting Permissions

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