You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This table is oriented as if looking into the front of the sensor (or top of
59
+
the chip). SPAD 0 is closest to pin 1 of the VL53L1X, which is the corner
60
+
closest to the VDD pin on the Pololu VL53L1X carrier board:
61
+
62
+
+--------------+
63
+
| O| GPIO1
64
+
||
65
+
| O|
66
+
| 128 248 |
67
+
|+----------+ O|
68
+
||+--+ +--+||
69
+
||||||| O|
70
+
||+--+ +--+||
71
+
|+----------+ O|
72
+
| 120 0 |
73
+
| O|
74
+
||
75
+
| O| VDD
76
+
+--------------+
77
+
78
+
However, note that the lens inside the VL53L1X inverts the image it sees
79
+
(like the way a camera works). So for example, to shift the sensor's FOV to
80
+
sense objects toward the upper left, you should pick a center SPAD in the
81
+
lower right.
53
82
54
83
55
84
@@ -79,19 +108,19 @@ There will be a specific Hardware setup (recommended brands etc.) soon!
79
108
* Power Supply
80
109
* Encolsure (see .stl files) - will be updated soon!
81
110
Pins:
82
-
#define SDA_PIN D2
83
-
#define SCL_PIN D1
111
+
SDA_PIN D2 or 21 (ESP32)
112
+
SCL_PIN D1 or 22 (ESP32)
84
113
85
114
## Configuration
86
115
### ESPHome
87
116
Configue at least the secrets.yaml with your wifi SSID and password to connect. Check the peopleCounter.yaml to adapt the exposed sensors to your needs.
88
117
89
118
### Entry/Exit inverted:
90
-
Set #define INVERT_DIRECTION or comment it out to invert the direction.
119
+
Set INVERT_DIRECTION to true or false to invert the direction.
91
120
92
121
93
122
## Configuration
94
-
Be sure to configure your wifi credentials and adapt the Config.h to set everyhting to your needs.
123
+
Be sure to configure your wifi credentials and adapt the global variables to set everyhting to your needs.
95
124
The most important config part is the calibration mode. You have two different calibration modes available:
96
125
Calibration v1 calibrates the distance for one zone and calculates the standard deviation and uses that value for both zones.
97
126
Calibration v2 calibrates both zones individually (thanks to @andrea-fox).
0 commit comments