AMB21 / AMB22 Wiring Diagram:
1. Download the Ameba customized version of TensorFlow Lite for Microcontrollers library at: https://github.com/ambiot/ambd_arduino/tree/master/Arduino_zip_libraries.2. Follow the instructions at https://www.arduino.cc/en/guide/libraries to install it.3. Ensure that the patch files found at https://github.com/ambiot/ambd_arduino/tree/master/Ameba_misc/ are also installed.4. In the Arduino IDE library manager, install the Arduino_LSM9DS1 library. This example has been tested with version 1.1.0 of the LSM9DS1 library.Open the example, “Files” -> “Examples” -> “TensorFlowLite_Ameba” -> “magic_wand”.
Upload the code and press the reset button on Ameba once the upload is finished.
Holding the accelerometer steady, with the positive x-axis pointing to the right and the positive z-axis pointing upwards, move it following the shapes as shown, moving it in a smooth motion over 1 to 2 seconds, avoiding any sharp movements.
If the movement is recognised by the Tensorflow Lite model, you should see the same shape output to the Arduino serial monitor. Different LEDs will light up corresponding to different recognized gestures.
Note that the wing shape is easy to achieve, while the slope and ring shapes tend to be harder to get right.
More information on TensorFlow Lite for Microcontrollers can be found at: https://www.tensorflow.org/lite/microcontrollers
More resources:For more information on the example: https://www.amebaiot.com/en/amebad-arduino-audio-tensorflow-magicwand/
If you are interested to know more about Ameba, do visit the Ameba official website or join the Facebook page or Forum for more discussion!
- Ameba Official Website: https://www.amebaiot.com/en/
- Ameba Facebook Group: https://www.facebook.com/groups/amebaioten
- Ameba Forum: https://forum.amebaiot.com/
- Instagram: https://www.instagram.com/amebaiotcrab/
Realtek AmebaIoT
Comments
Please log in or sign up to comment.