search
Homeweb3.0This Robot Flips a Coin Based on Twitch Chat Commands

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
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
Tether's Gold-Backed Crypto XAUT Hits Record High Amid Investor SurgeTether's Gold-Backed Crypto XAUT Hits Record High Amid Investor SurgeApr 29, 2025 am 11:26 AM

Tether's gold-backed token, XAUT, has released its first official attestation, confirming it is backed by over 246500 ounces of gold

Sens. Adam Schiff and Elizabeth Warren Demand Investigation into Trump's Meme Coin DinnerSens. Adam Schiff and Elizabeth Warren Demand Investigation into Trump's Meme Coin DinnerApr 29, 2025 am 11:24 AM

Sens. Adam Schiff (D-CA) and Elizabeth Warren (D-MA) said the dinner proved Trump may be engaging in “pay-to-play corruption.”

BlockDAG (BDAG) Raises Over $219.5M, Prepares for ETHPanama and Events in SingaporeBlockDAG (BDAG) Raises Over $219.5M, Prepares for ETHPanama and Events in SingaporeApr 29, 2025 am 11:22 AM

Crypto discussions are heating up again with Dogecoin (DOGE), Binance Coin (BNB), and BlockDAG (BDAG) taking different paths. The DOGE price is stuck just under $0.17

MANTRA Burns 150 Million OM Tokens to Boost StabilityMANTRA Burns 150 Million OM Tokens to Boost StabilityApr 29, 2025 am 11:20 AM

After facing a tough month with a 90% price dip, MANTRA has moved to stabilize its economy by initiating a major token burn.

Meme Coin FloppyPepe (FPPE) Could See a Jaw-Dropping 7,400% SurgeMeme Coin FloppyPepe (FPPE) Could See a Jaw-Dropping 7,400% SurgeApr 29, 2025 am 11:18 AM

In the ever-changing world of cryptocurrency, investors are constantly on the lookout for the next big opportunity. While XRP has long been a favorite

title: Tether Reveals It Holds $770M in Gold Bullion Backing Its XAUT Stablecointitle: Tether Reveals It Holds $770M in Gold Bullion Backing Its XAUT StablecoinApr 29, 2025 am 11:16 AM

Tether, the company behind several leading cryptocurrency stablecoins, including USDT, announced Wednesday that it holds $770 million in physical gold bullion reserves backing its Tether Gold (XAUT) stablecoin.

Baby BoomersBaby BoomersApr 29, 2025 am 11:14 AM

se Launches Bitcoin Yield Fund (CBYF) Targeting Baby Boomers

Three very different projects are making headlines, but only one is rewriting the rules of how Web3 should work.Three very different projects are making headlines, but only one is rewriting the rules of how Web3 should work.Apr 29, 2025 am 11:12 AM

Toncoin gained 4% after Telegram founder Pavel Durov's return and a $400 million funding wave for TON's ecosystem.

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

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version