What do the examples do?

Thanks for the demos, now can they have some comments on what they do?

IMUDemo.ino - What is an IMU? Where do I hget ei_model_imu.synpkg from? What does the overall sketch do?
BLExaDEMO - I assume this one is for connecting to the nicla using onboard bluetotooth, are there any instructions on how to connect from the other device and make use of the data coming from the Nicla?
Read_and_stream.ino - I am guessing this demo would stream audio to the arduino monitor and so you would need to be connected to a PC in order to do this. Seems not a very useful demo if you want to use the Nicla remotely. The commands provided in comments stty and cat appear to be Linux commands, are there equivalents for windows?
SensorTest.ino - I assume this is for checking all the peripherals, why does it need the synpackages here?

Ideally, can you update the libraries with suitable comments instead of replying here.

Thanks

2 Likes

Example sketches in the IDE (FILE >> Examples >> Built-in examples >>) are for demonstrating basics to the new user. A newly installed IDE will only have these example sketches.

Example sketches found in library folders also show in FILE >> Examples >> (library) are to demonstrate some of the uses of newly installed library.

I (think I) understand... and sympathize... It would be nice for library example sketches to include comments with intended connection and usage. I like to find the library for the device, rather than finding the device for the library.

1 Like

Example files and libraries are good but if you not fluent in C++ they can be the best in the world but if the user does not understand the code...

as xfpd stated, 3rd party libs and cores can install examples; so Arduino as company has no responsibility for the lack of good documentation; however, a well-constructed internet search will usually help:

IMU Demo Arduino at DuckDuckGo

For built-in examples, they are well documented:
Built-in Examples | Arduino Documentation | Arduino Documentation

I believe johnstaveley is referring to the examples for the "NDP" library that is bundled with the official "Arduino Mbed OS Nicla Boards" platform of the Nicla Voice board:

https://github.com/arduino/ArduinoCore-mbed/tree/84bd6b28a7ef86a6fcae30776b4a504e3b238fcb/libraries/NDP/examples

1 Like

I am indeed

It would be nice if someone would answer this !

Inertial Measurement Unit -

@ptillish has the answer in post #5, but I could not find the syn.pkg... so I went a-hunting...

Here:

I do not know...

/*
  Stream the microphone audio to serial port
  The file is compressed using G722 codec
  Prerequisite libraries:
    https://github.com/pschatzmann/arduino-libg722
    https://github.com/pschatzmann/arduino-audio-tools/
  Precedure to extract audio:
  Setup the serial port as raw, for example with
     stty -F /dev/ttyACM0 115200 raw
  Dump the data
     cat /dev/ttyACM0 > test.g722
  Open Audacity
     audacity test.g722
*/

Seems to test many functions of these:

BMM150 
BMI270

Thanks, much appreciated for the questions you've managed to answer. I've concluded that the documentation around the Nicla voice and my experiences in using it is that once sold, Arduino don't really care much to explain to you how it works or how to get the best from it. After months of trying I can get it to recognise a single simple word (but not two).

Hi @johnstaveley the Arduino team is working on new documentation for the Nicla Voice, here you can find a User Manual guide with some answers.

The IMU sensor is still in process to work with Machine Learning tools.

To recognize sounds and keywords with the Nicla Voice, there's I guide I made that could help you a lot.

@mcmchris:

Please post or provide a link to the NDP120 Neural Decision Processor data sheet, and relevant Application Notes. Neither seems to be freely available from the manufacturer or suppliers.

1 Like

This looks really good thanks, can you also provide a worked example where a trained model can tell the difference between 2 words as I can't make this work.

Hi John, I know how you feel, I thought the NV would be suitable for a project I have, BUT.....I found this project which might be of use to you.

Voice Controlled Power Plug with Syntiant NDP120 (Nicla Voice) - Expert Projects (edgeimpulse.com)

1 Like