Play rock-paper-scissors using a time-of-flight sensor and an Arduino UNO R4

Owing to its simplicity and fast-paced nature, rock-paper-scissors is a great game to play with friends, and when it comes to translating it into a digital format, many creative adaptations can be made. This version by madmcu forgoes the typical three-button input scheme in favor of an AI  model running on an Arduino UNO R4 Minima and a time-of-flight (ToF) matrix sensor. […] The post Play rock-paper-scissors using a time-of-flight sensor and an Arduino UNO R4 appeared first on Arduino Blog.

Play rock-paper-scissors using a time-of-flight sensor and an Arduino UNO R4


Click the link to join the registration on WhatsApp: https://chat.whatsapp.com/KThkuZlWaTcCu3iJHGBmLM


Click the link to join the registration on WhatsApp: https://chat.whatsapp.com/KThkuZlWaTcCu3iJHGBmLM


Click the link to join the registration on WhatsApp: https://chat.whatsapp.com/KThkuZlWaTcCu3iJHGBmLM

Owing to its simplicity and fast-paced nature, rock-paper-scissors is a great game to play with friends, and when it comes to translating it into a digital format, many creative adaptations can be made. This version by madmcu forgoes the typical three-button input scheme in favor of an AI  model running on an Arduino UNO R4 Minima and a time-of-flight (ToF) matrix sensor.

While many ToF sensors have a single laser emitter and detector pair, the VL53L5CX contains an 8×8 grid of detectors that allows it to form a very rudimentary image comprised of shorter and longer distances. Because of this fact, madmcu was able to begin his project by capturing a variety of these “images” via the NanoEdge AI Studio and assigning labels for “unknown,” “nothing,” rock,” “paper,” and “scissors” across the dataset. From here, a gesture classification model was trained on the dataset and then exported as an embedded model for use in firmware.

In order to play rock-paper-scissors, the UNO R4 Minima starts by initializing the ToF sensor module and NanoEdge model before entering the main loop. The device continuously grabs new data from the sensor, classifies it, and then checks the value against the computer’s randomized selection to determine the winner. The game continues until either the player or the Arduino reaches three points.

For more information about the process of training a model on ToF data, you can read madmcu’s project here on Instructables.

The post Play rock-paper-scissors using a time-of-flight sensor and an Arduino UNO R4 appeared first on Arduino Blog.

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow

Keep advertising to get more people

You could reach thousands of more people for every ₦1,000 you spend. https://doacweb.com/advertising

Adverts on doacWeb can be informative, educative or persuasive in nature.

doacWeb Ads is always directed at a broad audience (reaching thousands of people day by day), not few individuals — it deliver your advert to the target audience at the same time. Putting your offer in front of the right people — who have the money and interest in what you sell.

doacWeb Advertising gives you advantage as adverts passes through https://doacweb.com to the internet, reaching millions of people over the internet, and to grow your audience.

Grow your business, Be known, Boost your visibility, Drive engagements, Get new customers and Increase sales.

doacWeb acts as a global advertising media, to let people — individuals — and businesses, to promote and reach more interested people.

Get Started.

WhatsApp: 09031633831

Email: info@doacweb.com
Keep advertising to get more people

You could reach thousands of more people for every ₦1,000 you spend. https://doacweb.com/advertising

Adverts on doacWeb can be informative, educative or persuasive in nature.

doacWeb Ads is always directed at a broad audience (reaching thousands of people day by day), not few individuals — it deliver your advert to the target audience at the same time. Putting your offer in front of the right people — who have the money and interest in what you sell.

doacWeb Advertising gives you advantage as adverts passes through https://doacweb.com to the internet, reaching millions of people over the internet, and to grow your audience.

Grow your business, Be known, Boost your visibility, Drive engagements, Get new customers and Increase sales.

doacWeb acts as a global advertising media, to let people — individuals — and businesses, to promote and reach more interested people.

Get Started.

WhatsApp: 09031633831

Email: info@doacweb.com
Keep advertising to get more people

You could reach thousands of more people for every ₦1,000 you spend. https://doacweb.com/advertising

Adverts on doacWeb can be informative, educative or persuasive in nature.

doacWeb Ads is always directed at a broad audience (reaching thousands of people day by day), not few individuals — it deliver your advert to the target audience at the same time. Putting your offer in front of the right people — who have the money and interest in what you sell.

doacWeb Advertising gives you advantage as adverts passes through https://doacweb.com to the internet, reaching millions of people over the internet, and to grow your audience.

Grow your business, Be known, Boost your visibility, Drive engagements, Get new customers and Increase sales.

doacWeb acts as a global advertising media, to let people — individuals — and businesses, to promote and reach more interested people.

Get Started.

WhatsApp: 09031633831

Email: info@doacweb.com