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
The simulated sensor generates predefined waves as acceleration.
39
+
This development kit does not have a built-in accelerometer.
37
40
* nRF54H20 DK - The development kit does not have a built-in accelerometer.
38
41
However, it supports the following configurations:
39
42
@@ -52,6 +55,7 @@ By default, the following transports are used:
52
55
* Thingy:53 uses :ref:`nus_service_readme`.
53
56
* The nRF52840 DK uses :ref:`zephyr:uart_api`.
54
57
* The nRF5340 DK uses :ref:`zephyr:uart_api`.
58
+
* The nRF54L15 DK uses :ref:`zephyr:uart_api`.
55
59
* The nRF54H20 DK uses :ref:`nus_service_readme`.
56
60
57
61
Machine learning model
@@ -72,7 +76,7 @@ By default, the application uses pre-trained machine learning models deployed in
72
76
* ``tap`` - The device is tapped while placed on a flat surface.
73
77
74
78
Unknown gestures, such as shaking the device, are recognized as anomalies.
75
-
* Both the nRF52840 DK and the nRF5340 DK use the `nRF Connect SDK simulated sensor machine learning model`_.
79
+
* The nRF52840, nRF5340 and nRF54L15 DKs use the `nRF Connect SDK simulated sensor machine learning model`_.
76
80
The model uses simulated sensor data to recognize the following simulated wave types:
77
81
78
82
* ``sine``
@@ -232,6 +236,11 @@ By default, the following buttons are used by the application:
232
236
* **Button 1** switches between data forwarding and running a machine learning model.
233
237
* **Button 3** changes the signal generated by the simulated sensor.
234
238
239
+
.. group-tab:: nRF54L15 DK
240
+
241
+
* **Button 0** switches between data forwarding and running a machine learning model.
242
+
* **Button 2** changes the signal generated by the simulated sensor.
243
+
235
244
.. group-tab:: nRF54H20 DK
236
245
237
246
**Button 0** button switches between data forwarding and running the machine learning model.
@@ -266,30 +275,51 @@ By default, the application uses the following LED effects:
266
275
The LED effect is overridden on the next successful detection.
267
276
* If the device forwards data, the LED color turns red and uses the following blinking patterns:
268
277
269
-
* LED blinks slowly if it is not connected.
270
-
* LED blinks with an average frequency if it is connected but is not actively forwarding data.
271
-
* LED blinks rapidly if it is connected and is actively forwarding data.
278
+
* Blinks slowly if it is not connected.
279
+
* Blinks with an average frequency if it is connected but is not actively forwarding data.
280
+
* Blinks rapidly if it is connected and is actively forwarding data.
272
281
273
282
.. group-tab:: nRF52840 and nRF5340 DKs
274
283
275
284
Both nRF5340 DK and nRF52840 DK use monochromatic LEDs to display the application state.
276
-
The **LED1** displays the application state, and the **LED2** displays the signal generated by the simulated sensor.
285
+
The **LED1** displays the application state and the **LED2** displays the signal generated by the simulated sensor.
277
286
278
287
* If the device is returning the machine learning prediction results, the **LED1** blinks for a predefined number of times and then turns off for a period of time.
279
288
Then the sequence is repeated.
280
289
The machine learning result is represented by the number of blinks:
281
290
282
-
* ``sine`` - 1 blink
283
-
* ``triangle`` - 2 blinks
284
-
* ``square`` - 3 blinks
285
-
* ``idle`` - 4 blinks
291
+
* ``sine`` - one blink
292
+
* ``triangle`` - two blinks
293
+
* ``square`` - three blinks
294
+
* ``idle`` - four blinks
286
295
287
296
If the machine learning model is running but has not detected anything yet or has detected an anomaly, the **LED1** is breathing.
288
297
* If the device forwards data, the **LED1** has the following blinking patterns:
289
298
290
-
* LED blinks slowly if it is not connected.
291
-
* LED blinks with an average frequency if it is connected but is not actively forwarding data.
292
-
* LED blinks rapidly if it is connected and is actively forwarding data.
299
+
* Blinks slowly if it is not connected.
300
+
* Blinks with an average frequency if it is connected but is not actively forwarding data.
301
+
* Blinks rapidly if it is connected and is actively forwarding data.
302
+
303
+
.. group-tab:: nRF54L15 DK
304
+
305
+
The nRF54L15 DK uses monochromatic LEDs to display the application state.
306
+
The **LED1** displays the application state and the **LED3** displays the signal generated by the simulated sensor.
307
+
308
+
* If the device is returning the machine learning prediction results, the **LED1** blinks for a predefined number of times and then turns off for a period of time.
309
+
Then the sequence is repeated.
310
+
The machine learning result is represented by the number of blinks:
311
+
312
+
* ``sine`` - one blink
313
+
* ``triangle`` - two blinks
314
+
* ``square`` - three blinks
315
+
* ``idle`` - four blinks
316
+
317
+
If the machine learning model is running but has not detected anything yet or has detected an anomaly, the **LED1** is breathing.
318
+
* If the device forwards data, the **LED1** has the following blinking patterns:
319
+
320
+
* Blinks slowly if it is not connected.
321
+
* Blinks with an average frequency if it is connected but is not actively forwarding data.
322
+
* Blinks rapidly if it is connected and is actively forwarding data.
293
323
294
324
.. group-tab:: nRF54H20 DK
295
325
nRF54H20 DK uses monochromatic LEDs to display the application state.
@@ -306,9 +336,9 @@ By default, the application uses the following LED effects:
306
336
If the machine learning model is running, but it has not detected anything yet or the ``idle`` state is detected, **LED0**, **LED1**, and **LED2**, keep blinking.
307
337
* If the device forwards data, **LED0**, **LED1** and **LED2** has the following blinking patterns:
308
338
309
-
* LED blinks slowly if it is not connected.
310
-
* LED blinks with an average frequency if it is connected, but is not actively forwarding data.
311
-
* LED blinks rapidly if it is connected and is actively forwarding data.
339
+
* Blinks slowly if it is not connected.
340
+
* Blinks with an average frequency if it is connected, but is not actively forwarding data.
341
+
* Blinks rapidly if it is connected and is actively forwarding data.
312
342
313
343
.. _nrf_machine_learning_app_configuration:
314
344
@@ -525,14 +555,14 @@ After programming the application, perform the following steps to test the nRF M
525
555
526
556
1. Turn on the development kit.
527
557
The application starts in a mode that runs the machine learning model.
528
-
Initially, **LED2** displays the LED effect representing ``sine`` wave (1 blink), and **LED1** is breathing, because the signal was not yet recognized by the machine learning model.
558
+
Initially, **LED2** displays the LED effect representing ``sine`` wave (one blink), and **LED1** is breathing, because the signal was not yet recognized by the machine learning model.
529
559
After a brief delay, the machine learning model recognizes the simulated signal.
530
560
**LED1** and **LED2** display the same LED effect.
531
561
#. Press **Button 3** to change the generated acceleration signal.
532
562
Right after the signal change, the effects displayed by LEDs are different.
533
-
After a brief delay, the machine learning model recognizes the ``triangle`` wave, and the same effect (2 blinks) is displayed by both LEDs.
563
+
After a brief delay, the machine learning model recognizes the ``triangle`` wave, and the same effect (two blinks) is displayed by both LEDs.
534
564
#. Press **Button 3** to again change the generated acceleration signal.
535
-
The ``square`` wave (3 blinks) is displayed only by the **LED2**.
565
+
The ``square`` wave (three blinks) is displayed only by the **LED2**.
536
566
This signal is marked as an anomaly by the machine learning model, and **LED1** starts breathing.
537
567
#. Press and hold **Button 1** for more than five seconds to switch to the data forwarding mode.
538
568
After the mode is switched, **LED1** starts to blink rapidly.
@@ -545,6 +575,33 @@ After programming the application, perform the following steps to test the nRF M
545
575
Optionally, you can also connect to the device using `Edge Impulse's data forwarder`_ and forward data to `Edge Impulse studio`_ (after logging in).
546
576
See `Forwarding data to Edge Impulse studio`_ for details.
547
577
578
+
Testing with the nRF54L15 DK
579
+
---------------------------------------
580
+
581
+
After programming the application, perform the following steps to test the nRF Machine Learning application on the DK:
582
+
583
+
1. Turn on the development kit.
584
+
The application starts in a mode that runs the machine learning model.
585
+
Initially, **LED3** displays the LED effect representing ``sine`` wave (one blink), and **LED1** is breathing, because the signal was not yet recognized by the machine learning model.
586
+
After a brief delay, the machine learning model recognizes the simulated signal.
587
+
**LED1** and **LED3** display the same LED effect.
588
+
#. Press **Button 2** to change the generated acceleration signal.
589
+
Right after the signal change, the effects displayed by LEDs are different.
590
+
After a brief delay, the machine learning model recognizes the ``triangle`` wave, and the same effect (two blinks) is displayed by both LEDs.
591
+
#. Press **Button 2** to again change the generated acceleration signal.
592
+
The ``square`` wave (three blinks) is displayed only by the **LED3**.
593
+
This signal is marked as an anomaly by the machine learning model, and **LED1** starts breathing.
594
+
#. Press and hold **Button 0** for more than five seconds to switch to the data forwarding mode.
595
+
After the mode is switched, **LED1** starts to blink rapidly.
596
+
#. Connect to the development kit with a terminal emulator (for example, `nRF Connect Serial Terminal`_).
597
+
See :ref:`test_and_optimize` for the required settings.
598
+
#. Observe the sensor readouts represented as comma-separated values.
599
+
Every line represents a single sensor readout.
600
+
#. Turn off the terminal emulator to ensure that only one program has access to the data on UART.
601
+
602
+
Optionally, you can also connect to the device using `Edge Impulse's data forwarder`_ and forward data to `Edge Impulse studio`_ (after logging in).
603
+
See `Forwarding data to Edge Impulse studio`_ for details.
0 commit comments