Skip to main content
This topic has been closed for replies.

30 replies

CKarl
Visitor II
June 17, 2019

Here is the code https://www.codepile.net/pile/P85yVq8J, Can anyone convert the code to be able to use on an arduino/esp32/esp8266? Or what is the smallest/least expensive board I could use with the sensor and the provided code to have the same functionality as in the demo? If not possible to port I guess that maybe I could use an esp8266 that only transmits the people count value when new count is detected.

hyu.18.83
Visitor II
June 18, 2019

Hi Kabron,

#include <Wire.h>

#include "vl53l1_api.h"

#include <Adafruit_GFX.h>

#include <Adafruit_SSD1306.h>

#include <tof_gestures.h>

#include <tof_gestures_DIRSWIPE_1.h>

Where are these files?

Kabron
Associate II
June 18, 2019

Ask Google

MDIAL
Associate
July 17, 2019

Hello

I'm trying to go from the frequency 30 Hz to the frequency 100 Hz and I used the manual that ST provides on this and I have the error code -18 which corresponds to

#define VL53L1_ERROR_STREAM_COUNT_CHECK_FAIL      ((VL53L1_Error) - 18)

/*!< Stream count check fail - API out of sync with device */ on this fonction VL53L1_GetRangingMeasurementData(Dev,&RangingData)

I am using an Arduino Mega 2560 to display SPADs

could someone explain to me how to fix this?

Julien NGUYEN
ST Employee
August 16, 2019

​Hi,

Actually, the distinction between people, pets or a moving object is not possible with this sensor.

Julien

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Fdomi.11
Visitor II
May 18, 2020

i'm a newbe on this sensor but can you explain what is this line on the code, itry to understand how this library work but this line i not understand.

dev1_sel

on line 84 on the exemple code.

*****copy of the line in code

pinMode(XSHUT, OUTPUT);

delay(100);

dev1_sel 

Dev->I2cDevAddr = 0x52;

Serial.printf("\n\rDevice data ");

checkDev(Dev);

delay(1000);

*****copy of the line in code

Thanks

Dominic Foisy

Fdomi.11
Visitor II
May 18, 2020

forget my question i find it. thanks for your library it like to work perfectly. i will probably code some other fonction them trad with you

Thanks

Aasi.1
Visitor II
December 22, 2020

Hi @Fdomi.1​ , hope you are well.

I reached this page with my search on making something similar, I see that you wrotr at first that you had an issue with line 84 in this guy code, I'm in the same position. can you please share if you don't mide what made it work for you in the end. from the little I understood, "Dev->I2cDevAddr = 0x52;" is the part in the code where I'm trying to comunicate with the sensor, right? from some reason this line isn't returning any value...

will appriceae any help.....

gates.nathan
Associate II
May 18, 2020

Hi Dominic

From what project/file is this code?

I cant see it in the main.c file of the people counting source code?

Nathan

Fdomi.11
Visitor II
May 19, 2020

VL53L1X_Polulu_API_Gesture_2ROI.ino file, but i understand now it is a define on top of code i see it just after i worte my first question. i try to make a new fonction to have 2 sensor to make similar job but witghout risk of colision between the 2 persone. (one go in and one go out at same time) with the wrote fonction all work fine with one person but if you habe 2 person at same time on zone if the colision is on zone 1 or zone 2 we lost a count. with 2 sensor we have posibility to have 4 zone or 6 zone if we use roi on 3 zone on each. any body try to make a similar fonction?