Are you a webmaster? Find out how to easily add Textise to your web site.


This page has been Textised!
The original page address was https://hackaday.com/2019/10/09/these-dice-know-if-youre-cheating/

Skip to content
These Dice Know If You’re Cheating
Fans of D&D are surely aware of the significance of a good pair of dice. What if your dice were not only stylish, but smart? For anyone who’s ever had to deal with playing board games with less than reputable siblings or friends, the electric die just might be your savior.

The dice are configured via Bluetooth, tracking rolls and stats over the course of gameplay captured by an accelerometer.

The PCB had to have a flexible surface – specifically in the shape of an unfolded icosahedron – in order to form the shape of the die which constrains the design to two layers. Each face contains an LED facing outwards to light up the number on that side. The LEDs are directly powered by a rechargeable battery, which uses a small coil for wireless inductive charging. Rather than opting for a Qi charger chipset, which regulates the maximum amount of power transmitted if the efficiency falls below a threshold, [Jean Simonet] uses a simpler charger setup using a full bridge rectifier, capacitors, and a linear regulator to create a stable 5V supply for the receiving end.

While the initial design for the die required an injection molded plastic shell, an easier solution was to simply cast the designs in resin. The electronics are placed into a dice mold and cast just as a regular die would be.

This luckily also solved the issue of needing to fit the components inside a screw-on container with a removable lid, which presented a hassle in terms of finding a battery that would fit the dimensions. The LEDs – purchased for cheap on Alibaba – are daisy chained to reduce the complexity of the routing.

One issue with the LEDs, however, is that the internal PWMs modulating the intensity remain on even at an intensity of 0, constantly drawing 21 mA (for the 21 LEDs on the die). This causes the battery to die after 2-3 hours. The solution [Simonet] used was to add a transistor to cut off power to the LEDs and to have the MCU toggle the transistor when the LEDs are turned off. Even this solution didn’t solve the entire problem since the LEDs still drain current from the data and clock lines, so those lines had to be low before going to sleep.


There were some stability issues with using a small buck converter to bring the LiPo voltage down to 3.3V, so the power regulation was done directly by the MCU instead. Switching the die off is controlled by a magnetic switch connected to a power buck converter that turns off logic when a magnet is present. This initially caused the LED control lines to become floating when power was turned off, turning the LEDs to arbitrary colors. The solution was to wire the output of the magnetic sensor to the MCU and to allow the software to handle the LEDs as well.

Maybe it’s because creator [Simonet] happens to be a game developer as well, but the early development stages of the electronic die (CAD, circuit schematics, prototyping, hand soldering components) were streamed on Twitch, adding some interactivity to even the build phase. The end result may be small, but these dice certainly have large brains!

 

 

Posted in Arduino Hacks Tagged 2019 Hackaday Prize, board games, dice, Hackaday Prize, Tabletop  Post navigation
11 thoughts on “These Dice Know If You’re Cheating ”
  1. robin says: 
    i wonder how balanced they are

    1. Matt Cramer says: 
      That was my first concern too – the possibility that purported anti-cheating dice were, in fact, loaded due to unequal weight distribution. It’s a very cool idea, but looks like it needs some ballasting to be finished.

  2. Pyrofer says: 
    I have been following this for a while. I absolutely loved the initial work and it has only gotten better! I can’t wait to be able to order some of these.
    It’s some real great work that shows whats possible now that would have been profesional manufacturing a few years ago.
    shutupandtakemymoney.gif

  3. I don’t worry about cheating, because someone who isn’t playing in the same spirit as the rest of us will just be kicked from the party, but this could be cool for my online games. We all like rolling real dice (let’s admit it, that’s part of the fun of the game) but it would be neat if the dice could automagically report our roll to our chat application.

Leave a Reply Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search Never miss a hack Follow on facebook Follow on twitter Follow on youtube Follow on rss Contact us Subscribe
If you missed it More from this category Categories Our Columns More from this category Recent commentsNow on Hackaday.io
By using our website and services, you expressly agree to the placement of our performance, functionality and advertising cookies. Learn more



Textise: Back to top

This text-only page was created by Textise (www.textise.net) © Textise - CPC LLC
To find out more about our product, visit Textise.org.