Yahui Ji Posted July 7, 2021 Report Share Posted July 7, 2021 Materials • Ameba D [RTL8722 CSM/DM] x 1 • Adafruit LSM9DS1 accelerometer • LED x 2 Example Procedure Connect the accelerometer and LEDs to the RTL8722 board following the diagram. Download the Ameba customized version of TensorFlow Lite for Microcontrollers library at ambiot/ambd_arduino. Follow the instructions at Arduino - Libraries to install it. Ensure that the patch files found at ambiot/ambd_arduino are also installed. 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. Find out more at: https://www.amebaiot.com/en/amebad-micropython-periodical-timer/ Join in the community discussions at: https://www.facebook.com/groups/amebaioten https://forum.amebaiot.com/ Purchase links for the various Realtek development boards can be found at: https://www.amebaiot.com/en/where-to-buy-link/ Fahad Ibrahim 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.