Giter Site home page Giter Site logo

Comments (29)

Andrea-Fox avatar Andrea-Fox commented on July 17, 2024

The connections seem correct. Maybe the issue is the sensor. First of all, is it a VL53L1X sensor? If so, in general there is some sort of cover on the sensor. Try removing that.
If then it still doesn't work, try connecting it to a 5v pin

from peoplecounter.

kentwk avatar kentwk commented on July 17, 2024

The connections seem correct. Maybe the issue is the sensor. First of all, is it a VL53L1X sensor? If so, in general there is some sort of cover on the sensor. Try removing that.
If then it still doesn't work, try connecting it to a 5v pin

1)Yes...is VL53L1X-V2
1)Soft cover removed
2)Tried use 5v pin...not working

Do u mind show your sensor?

from peoplecounter.

Andrea-Fox avatar Andrea-Fox commented on July 17, 2024

Then I really don't know which is the problem.
Maybe the sensor is defective

from peoplecounter.

kentwk avatar kentwk commented on July 17, 2024

Then I really don't know which is the problem.
Maybe the sensor is defective

but i have tried few sensor also same...izzit u sensor same with me?if working izzit serial monitor result 0 will change 1 then 2?

from peoplecounter.

Andrea-Fox avatar Andrea-Fox commented on July 17, 2024

Currently I'm using a sensor from Pololu, which is not the one you're using.

When working, in the signal monitor you should read the distance measured by the sensor (in your case, unfortunately, always equal to 0)

from peoplecounter.

kentwk avatar kentwk commented on July 17, 2024

Currently I'm using a sensor from Pololu, which is not the one you're using.

When working, in the signal monitor you should read the distance measured by the sensor (in your case, unfortunately, always equal to 0)

Do u mind screen shot your serial monitor?

from peoplecounter.

kentwk avatar kentwk commented on July 17, 2024

Currently I'm using a sensor from Pololu, which is not the one you're using.

When working, in the signal monitor you should read the distance measured by the sensor (in your case, unfortunately, always equal to 0)

After soldering sensors working.TQ
i use manual_calibration can count people, when using autocalibration no working...may i noe using autocalibration what mqtt topic should i write?

from peoplecounter.

Andrea-Fox avatar Andrea-Fox commented on July 17, 2024

If you are using the code in the file called people_counter_esp32.ino or the one in people_counter_esp8266.ino, you have to subscribe to the topic people_counter/NAME_OF_THE_ROOM/counter, while if you want to read the distance you have to subscribe to the topic people_counter/NAME_OF_THE_ROOM/distance.
To specify the name of the room, you have to change the code in the line indicated in the file

from peoplecounter.

sanderlv avatar sanderlv commented on July 17, 2024

same issue maybe here...
image

successfully flashed but not connecting to wifi and no serial logging in arduino IDE? I do get some on ither serial monitor

Using 'COM16' as serial port.
Showing logs:
[19:39:12]ets Jun  8 2016 00:22:57
[19:39:12]
[19:39:12]rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[19:39:12]configsip: 0, SPIWP:0xee
[19:39:12]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[19:39:12]mode:DIO, clock div:1
[19:39:12]load:0x3fff0018,len:4
[19:39:12]load:0x3fff001c,len:1216
[19:39:12]ho 0 tail 12 room 4
[19:39:12]load:0x40078000,len:10944
[19:39:12]load:0x40080400,len:6388
[19:39:12]entry 0x400806b4
[19:39:12]E (58) psram: PSRAM ID read error: 0xffffffff
[19:39:12][19:39:12]
[19:39:12]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[19:39:12]configsip: 0, SPIWP:0xee
[19:39:12]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[19:39:12]mode:DIO, clock div:1
[19:39:12]load:0x3fff0018,len:4
[19:39:12]load:0x3fff001c,len:1216
[19:39:12]ho 0 tail 12 room 4
[19:39:12]load:0x40078000,len:10944
[19:39:12]load:0x40080400,len:6388
[19:39:12]entry 0x400806b4
[19:39:12]E (59) psram: PSRAM ID read error: 0xffffffff

from peoplecounter.

kentwk avatar kentwk commented on July 17, 2024

same issue maybe here...
image

successfully flashed but not connecting to wifi and no serial logging in arduino IDE? I do get some on ither serial monitor

Using 'COM16' as serial port.
Showing logs:
[19:39:12]ets Jun  8 2016 00:22:57
[19:39:12]
[19:39:12]rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[19:39:12]configsip: 0, SPIWP:0xee
[19:39:12]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[19:39:12]mode:DIO, clock div:1
[19:39:12]load:0x3fff0018,len:4
[19:39:12]load:0x3fff001c,len:1216
[19:39:12]ho 0 tail 12 room 4
[19:39:12]load:0x40078000,len:10944
[19:39:12]load:0x40080400,len:6388
[19:39:12]entry 0x400806b4
[19:39:12]E (58) psram: PSRAM ID read error: 0xffffffff
[19:39:12][19:39:12]
[19:39:12]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[19:39:12]configsip: 0, SPIWP:0xee
[19:39:12]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[19:39:12]mode:DIO, clock div:1
[19:39:12]load:0x3fff0018,len:4
[19:39:12]load:0x3fff001c,len:1216
[19:39:12]ho 0 tail 12 room 4
[19:39:12]load:0x40078000,len:10944
[19:39:12]load:0x40080400,len:6388
[19:39:12]entry 0x400806b4
[19:39:12]E (59) psram: PSRAM ID read error: 0xffffffff

Maybe u can check few things
1)void setup_wifi()
{
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED)
{
delay(5000);
Serial.print(".");
WiFi.begin(ssid, password);
}
}

Delay from 500 change to 5000

2)Serial monitor set 9600baud
9600

from peoplecounter.

sanderlv avatar sanderlv commented on July 17, 2024

Serial monitor was 9600 👍 but I can not get any output?
image

I changed the 500 to 5000 and it comes alive now... will proceed further with homeassitsant integration etc.

thanks!!

from peoplecounter.

kentwk avatar kentwk commented on July 17, 2024

Make sure to fill in correct information.

wifi

from peoplecounter.

sanderlv avatar sanderlv commented on July 17, 2024

Yes, that is correct because I am getting mqtt information:
image

Oh... for my sensor orientation? Do you happen to know like below:
https://github.com/Andrea-Fox/peopleCounter/blob/master/autocalibration/sensor_orientation.png

I have a VL53L1X

from peoplecounter.

kentwk avatar kentwk commented on July 17, 2024

Yes, that is correct because I am getting mqtt information:
image

Oh... for my sensor orientation? Do you happen to know like below:
https://github.com/Andrea-Fox/peopleCounter/blob/master/autocalibration/sensor_orientation.png

I have a VL53L1X

no...I use the manual calibration counting people is working...if using auto calibration no working, no matter what i change MQTT topic also same.

from peoplecounter.

sanderlv avatar sanderlv commented on July 17, 2024

for an ESP32 what would I have to use?

https://github.com/Andrea-Fox/peopleCounter/tree/master/manual_calibration

from peoplecounter.

kentwk avatar kentwk commented on July 17, 2024

peopleCounter.ino

from peoplecounter.

sanderlv avatar sanderlv commented on July 17, 2024

Hm... that looks complicated for now. i want to try with auto first. I do not see any change on the mqtt tpoic people_counter/tof_people/counter... I do see continuous change on the people_counter/tof_people_ard/distance topic... any tips/suggestion?

from peoplecounter.

kentwk avatar kentwk commented on July 17, 2024

Manual Calibration Setting
1)double-check u serial monitor working anot...if same with my screenshot mean working.then u can next step
Serial Monitor

2)Go Homeassistant-Congfiguration-Helpers-Add Helper
Helper

3)Go Homeassistant-Files Editor-automations.yaml-add below these script
yaml

4)Done
Done

from peoplecounter.

sanderlv avatar sanderlv commented on July 17, 2024

Yes that works:
image

but no people are counting yet:
image

image

image

from peoplecounter.

kentwk avatar kentwk commented on July 17, 2024

u using manual calibration or auto calibration?

Follow this Topic
topic: "peopleCounter/serialdata/tx"

from peoplecounter.

sanderlv avatar sanderlv commented on July 17, 2024

Auto

from peoplecounter.

kentwk avatar kentwk commented on July 17, 2024

Auto

u try using manual...because auto calibration also no working for me.

from peoplecounter.

sanderlv avatar sanderlv commented on July 17, 2024

Sorry but I have read that and I do not know how to start with that manual calibrarion

from peoplecounter.

kentwk avatar kentwk commented on July 17, 2024

Sorry but I have read that and I do not know how to start with that manual calibrarion

just flash the manual calibration files...then follow my step.

from peoplecounter.

sanderlv avatar sanderlv commented on July 17, 2024

I flashed https://github.com/Andrea-Fox/peopleCounter/blob/master/manual_calibration/peopleCounter.ino and entered my data but it wont connect to wifi and I see no serial logging...

image

And not sure what is meant with this:
image

I do this and get:
image

from peoplecounter.

kentwk avatar kentwk commented on July 17, 2024

u forgot change wifi delay?

void setup_wifi()
{
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED)
{
delay(5000);
Serial.print(".");
WiFi.begin(ssid, password);
}
}

Delay from 500 change to 5000

from peoplecounter.

sanderlv avatar sanderlv commented on July 17, 2024

Don't know how that happened... I did thought I checked it, but probably not well enough.. I get now:
mqtt manual

from peoplecounter.

Andrea-Fox avatar Andrea-Fox commented on July 17, 2024

Hi, what you are seeing in your last message is the correct behavior. The topic in peopleCounter/serialdata is updated only whenever a passage is detected.
A passage is detected whenever the array of 4 numbers (the one which is in general 0000) is either 0132 or 0231

from peoplecounter.

kentwk avatar kentwk commented on July 17, 2024

Let me conclude my topic...just my soldering problem. TQ

from peoplecounter.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.