Roll with Dicebot, the Tweeting Dice Roller


[David] modernized a 1920’s dice rolling game to bring us DiceBot, a twitter enabled dice rolling robot. DiceBot started with an antique dice tin. The original tin was human controlled. Pushing a button on the side of the tin would spin the bottom, rolling the dice.

It’s a bit hard to push a button from across the world, so [David] added a small motor to spin the tin. He connected the motor to a simple L298 motor driver chip, and wired that up to a Raspberry Pi. The Pi runs a few custom Ruby scripts which get it on the internet and connect to the Twitter API.

Operation is pretty straightforward. A tweet to @IntrideaDiceBot with the hashtag #RollTheDice will cause the Dicebot to spin up the dice. Once things have settled, DiceBot captures an image with its Raspberry Pi camera. The dice values are checked using OpenCV. The results are then tweeted back, and displayed on DiceBot’s results page.

For more DiceBot, check out [David’s] flickr stream.

5 thoughts on “Roll with Dicebot, the Tweeting Dice Roller

  1. haha cool.

    It’d be kinda cool if you could watch it spin the dice live, but I imagine that wouldn’t be very data-usage friendly.

  2. Nice hack, but can it be truly random? The last rolls are a given and the spin time is very short. I guess it just needs to spin longer to be random.

    1. I don’t think two dice are suitable for proper randomization as you have a far better chance of rolling a 7 than you have rolling a 2.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s