Home web3.0 This Robot Flips a Coin Based on Twitch Chat Commands

This Robot Flips a Coin Based on Twitch Chat Commands

Aug 13, 2024 am 09:13 AM
Chat COIN Robot

Making decisions is hard, which is why humanity has come up with all sorts of goofy ways to alleviate some of the mental burden. Pros/cons lists, for example, are supposed to add as much objectivity as possible to the decision-making process

This Robot Flips a Coin Based on Twitch Chat Commands

This internet-connected robot will flip a coin for you at the drop of a chat comment.

Making decisions is hard, which is why humanity has come up with all sorts of goofy ways to alleviate some of the mental burden. Pros/cons lists, for example, are supposed to add as much objectivity as possible to the decision-making process — or at least to give you clarity about the choice you’re subconsciously rooting for. But the ultimate decision maker is obviously the good ol’ fashioned coin flip. You get 50:50 odds and the entertainment of watching something shiny tumble through the air.

To make coin flips accessible to his chat over the internet, Terence Grover built this robot.

This robot lets anyone flip Grover’s very special coin via a simple command in a live stream chat. Commenting “!heads” flips the coin with heads as the prediction, and commenting “!tails” does the opposite. After receiving the command, the robot flips the coin. It then snaps a photo and analyzes that to determine which face is up. Finally, it displays the results and repositions the coin for the next flip. Grover also created a nifty graphic to display some basic statistics on the previous flips, including the heads:tails ratio and the percentage of correct predictions.

The heart of the machine is a small solenoid that provides the flipping actuation. If we have one criticism, it is that the solenoid seems weak and unable to give the coin a vigorous flip — though we’ll let the statisticians debate whether or not that affects the odds. A Raspberry Pi single-board computer controls that solenoid via a relay. It also controls a servo motor that opens and closes a 3D-printed iris mechanism, which is a clever way to recenter the coin over the solenoid after each flip.

The Raspberry Pi runs a simple server that uses the GPIO pins to toggle the relay in response to a command received over the network, which is how it is able to integrate with the chat comments. It detects the coin face using a computer vision machine learning model trained on this specific coin in this machine, using images from a connected Raspberry Pi Camera. To speed up that process, it first crops most of the photo by detecting a circle of the approximate diameter of the coin. That makes the image very small and easy to process.

A separate webcam watches the robot in action and streams the video to online viewers. That camera has a delay of a few seconds, but that matches up well with the computer vision processing time and so viewers see the detected results at about the same time as they see the corresponding flip in the video.

And to introduce a little extra drama, Grover gave the robot a special €2 coin celebrating some Monégasque prince. According to Grover, that is worth €1,000 and that raises the stakes of the coin flips.

The above is the detailed content of This Robot Flips a Coin Based on Twitch Chat Commands. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Silent Hill 2 Remake Wood Side and Blue Creek Apartments Walkthrough Silent Hill 2 Remake Wood Side and Blue Creek Apartments Walkthrough Oct 07, 2024 pm 10:30 PM

Your introduction to Silent Hill consists of multiple puzzles to get yourself truly settled in. As the mist envelopes the town’s entrance, the path from Neely’s Bar to Wood Side Apartments feels miles away. You find the warm embrace of the apartments

1X Technologies announces its Neo bipedal humanoid is one step closer to taking over home chores 1X Technologies announces its Neo bipedal humanoid is one step closer to taking over home chores Sep 07, 2024 pm 03:31 PM

1X Technologies has announced the Neo bipedal humanoid robot is entering beta testing at select homes this year followingits earlier unveiling. Unlike their first humanoid robot, Eve, which rolled on wheels, Neo walks about like a human on robotic le

This Robot Flips a Coin Based on Twitch Chat Commands This Robot Flips a Coin Based on Twitch Chat Commands Aug 13, 2024 am 09:13 AM

Making decisions is hard, which is why humanity has come up with all sorts of goofy ways to alleviate some of the mental burden. Pros/cons lists, for example, are supposed to add as much objectivity as possible to the decision-making process

Robbins Geller Rudman & Dowd LLP Announces that Purchasers or Acquirers of Coinbase Global, Inc. (NASDAQ: COIN) Publicly Traded Securities between April 14, 2021 and July 25, 2024 Have Until Tuesd Robbins Geller Rudman & Dowd LLP Announces that Purchasers or Acquirers of Coinbase Global, Inc. (NASDAQ: COIN) Publicly Traded Securities between April 14, 2021 and July 25, 2024 Have Until Tuesd Nov 08, 2024 am 09:40 AM

The law firm of Robbins Geller Rudman & Dowd LLP announces that purchasers or acquirers of Coinbase Global, Inc. (NASDAQ: COIN) publicly traded securities between April 14, 2021 and July 25, 2024, all dates inclusive (the "Class Period"

The Royal Canadian Mint's New 'Dragonfly and the Bloom' Coin Is a Whimsical Work of Art The Royal Canadian Mint's New 'Dragonfly and the Bloom' Coin Is a Whimsical Work of Art Aug 13, 2024 am 03:15 AM

The 5 oz. pure silver “Dragonfly and the Bloom” is a whimsical piece cast in sterling silver and yellow gold. Its reverse showcases a beautiful 3D dragonfly and waterlily.

A Historic Coin Worth a Small Fortune Was Designed by Thomas Paine, Research Shows A Historic Coin Worth a Small Fortune Was Designed by Thomas Paine, Research Shows Sep 09, 2024 am 12:47 AM

RARE and historic coins can be interesting works of art — and worth significant cash. While intended to be worth a small amount, one historic coin has turned out to be worth $352,500.

Aescape expands installations of its AI massage therapist robots to Miami Aescape expands installations of its AI massage therapist robots to Miami Oct 03, 2024 am 06:35 AM

Aescape has expanded installation of its AI massage therapist robots to the Kimpton EPIC Hotel in Miami. The robot provides personalized body massages without a human therapist or operator present. This follows the robot's debut earlier this year acr

New Royal Canadian Mint Coin, 'The Howling Wolf,' Designed by Salt Spring Island Artist New Royal Canadian Mint Coin, 'The Howling Wolf,' Designed by Salt Spring Island Artist Aug 10, 2024 am 07:02 AM

Inspired by the Hunter's Moon, the artist W. Allan Hancock has depicted the power of a wolf howling at the full moon, and the design has been elevated by the Royal Mint's newest engraving technology.