Entertainment

Run a Rock-Paper-Scissors game on Arduino using NanoEdge AI Studio 

Gestures classification on Arduino using a ToF sensor.

Run a Rock-Paper-Scissors game on Arduino using NanoEdge AI Studio  Run a Rock-Paper-Scissors game on Arduino using NanoEdge AI Studio  Run a Rock-Paper-Scissors game on Arduino using NanoEdge AI Studio 
Run a Rock-Paper-Scissors game on Arduino using NanoEdge AI Studio  Run a Rock-Paper-Scissors game on Arduino using NanoEdge AI Studio  Run a Rock-Paper-Scissors game on Arduino using NanoEdge AI Studio 
Contact us to learn more Read the tutorial

Entertainment

NanoEdge AI Studio

Human interface

Time of Flight

Contact us to learn more Read the tutorial
Unlock the potential of your Arduino projects with NanoEdge AI Studio, the perfect solution for makers seeking to integrate AI seamlessly. Transitioning to AI development can be intimidating for makers who value Arduino's simplicity, but fear not, NanoEdge AI is here to simplify the process.

Imagine wanting to add AI to your Rock Paper Scissors project but lacking the expertise. With NanoEdge, there is no need for extensive AI knowledge. Its intuitive interface and compatibility with Arduino IDE handle the complexities for you!

Simply collect data, import it into NanoEdge and watch it automatically find the best model. Say goodbye to barriers and hello to innovation. Whether you are a seasoned maker or just starting out, NanoEdge AI makes integrating AI into your Arduino projects a breeze. 

Approach

Our objective is to develop a straightforward demo for playing Rock Paper Scissors with AI using NanoEdge AI Studio in the Arduino IDE. We chose these tools for their simplicity, allowing us to create the demo in just a few hours. 
You can find the complete step-by-step guide here.

Initially, we gathered data for four classes using a Time-of-Flight (TOF) sensor (you can download the dataset here): 
  • Empty for idle state
  • Gestures for Rock
  • Gestures for Paper
  • Gestures for Scissors

The TOF outputs data as 8x8 matrices, which we then reshaped into signals of size 64. 
NanoEdge helped us benchmark and identify the best AI library capable of recognizing these four classes. 
With NanoEdge AI Studio version 4.4, compiling libraries compatible with the Arduino IDE became possible. 

The last part was to create an actual demo with Arduino IDE:
  • Import the necessary libraries (for TOF, display, etc.) along with the NanoEdge AI Library.
  • Create the main code to collect the TOF data and make the AI detection. 
  • Display both the sign made by the player and the AI.

And we were ready to play! 

Sensor

ToF multizone ranging sensor (ref: VL53L5CX)

Data

4 classes of data Empty, Rock, Paper and Scissors
Data length 64 (8x8 matrixes from TOF)

Results

95.8% accuracy, 1.1 Kbytes RAM, 111.3 Kbytes Flash

Model created with

NanoEdge AI Studio

Model created with

Compatible with

Any STM32 MCU

Compatible with

Resources

Model created with NanoEdge AI Studio

A free AutoML software for adding AI to embedded projects, guiding users step by step to easily find the optimal AI model for their requirements.

Model created with NanoEdge AI Studio

Compatible with Any STM32 MCU

The STM32 family of 32-bit microcontrollers based on the Arm Cortex®-M processor is designed to offer new degrees of freedom to MCU users. It offers products combining very high performance, real-time capabilities, digital signal processing, low-power / low-voltage operation, and connectivity, while maintaining full integration and ease of development.

Compatible with Any STM32 MCU

You also might be interested by

Wearables | Entertainment

Yoga pose recognition on wearable devices

Pose recognition and classification on a sensor.

Wearables | Entertainment

Gym activity recognition on wearable devices

Activity recognition and classification on a sensor.

Wearables | Entertainment

Human activity recognition using a smartphone

Using a smartphone to recognize human activities.