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
Copy file name to clipboardExpand all lines: content/hardware/06.nicla/boards/nicla-sense-env/tutorials/03.elevator-monitoring-application-note/content.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,8 @@ This diagram shows how the components are connected.
78
78
- The Modulino Pixels is wired to the Portenta Mid Carrier using the Qwiic cable and fixed with the included screws and nuts.
79
79
- The Nicla Vision and the Nicla Sense Env are wired to the Mid Carrier Proto Shield using ESLOV cables.
80
80
81
+
### Powering Options
82
+
81
83
To power the project you can use the terminal block of the Portenta Mid Carrier, the USB-C connector of the Portenta H7 or the barrel jack of the Mid Carrier Proto Shield.
82
84
83
85

@@ -108,6 +110,8 @@ We are going to use the **Relative Air Quality** range because it will give us a
108
110
109
111

110
112
113
+
To complement the environment monitoring we are going to use also the **HS4001** temperature and humidity sensor of the Nicla Sense Env.
114
+
111
115
### Visual Air Quality Feedback
112
116
113
117
The system features a real-time visual feedback to warn the occupants of the elevator so they know the current air quality status in any time and take the right preventive measures.
@@ -217,7 +221,7 @@ void setup() {
217
221
}
218
222
```
219
223
220
-
In the `loop()` function, the Nicla Sense Env sensores are read every 10 seconds, the people count is requested to the Nicla Vision and the Cloud connection is updated.
224
+
In the `loop()` function, the Nicla Sense Env sensors are read every 10 seconds, the people count is requested to the Nicla Vision and the Cloud connection is updated.
221
225
222
226
```arduino
223
227
void loop() {
@@ -252,8 +256,12 @@ We also control the Modulino Pixels color based on the IAQ and update the cloud
252
256
253
257
The `getPeopleCount()` function creates an I2C request asking for the people detected by the Nicla Vision.
254
258
259
+
***You can download the complete example code for the Portenta H7 [here](assets/Smart_elevator_Portenta_h7.zip)***
260
+
255
261
### Nicla Vision Code
256
262
263
+
The people counting feature of the project is achieved by the Nicla Vision running a FOMO face detection model. The
0 commit comments