Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continuous distance readings #72

Closed
ruimarinho opened this issue Dec 22, 2021 · 5 comments
Closed

Continuous distance readings #72

ruimarinho opened this issue Dec 22, 2021 · 5 comments
Labels
question Further information is requested

Comments

@ruimarinho
Copy link

Hi @Lyr3x,

It seems like I've been able to enable just the distance_sensor in order to get continuous readings by disabling the people counter sensor.

Is this a supported use-case? I see that the distance changes a lot even if the sensor is completely stable, which might indicate the distance mode is not correctly configured. Should I be manually configuring the sensor to mode 2 (in my case)?

Thanks,

@Lyr3x
Copy link
Owner

Lyr3x commented Dec 22, 2021

Sure, it's possible to only use the readings. Remember that the calibration already sets a mode and timing budgets,which are fairly tight as we don't need super stable readings but rather quick one. Use the manual mode and set your own budget and you should be good to go!

However there is a bug right now which will be fixed with the next PR to master

@Lyr3x Lyr3x added the question Further information is requested label Dec 22, 2021
@Lyr3x
Copy link
Owner

Lyr3x commented Dec 22, 2021

#73 Will fix the manual mode and you should configure something like this:

roode:
  id: roode_platform
  i2c_address: 0x29
  update_interval: 10ms
  manual:
    sensor_mode: 3
    roi_height: 16
    roi_width: 6
    manual_threshold: 1280 
    timing_budget: 50
  restore_values: false

sensor_mode: 3 allows you ton configure an custom timing_budget

@ruimarinho
Copy link
Author

That looks good! What if I'm simply interested on distance readings (e.g. for detecting a parked car, etc) and not human presence?

@Lyr3x
Copy link
Owner

Lyr3x commented Dec 24, 2021

You can just remove the people counter and use the manual mode which gives you distance and you could also use the presence sensor to see if the area is occupied. However you will have two zones, which might not be a problem

@Lyr3x
Copy link
Owner

Lyr3x commented Dec 28, 2021

Ill close this, feel free to join our discord server for more questions :)

@Lyr3x Lyr3x closed this as completed Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants