{"id":388,"date":"2012-11-20T22:18:04","date_gmt":"2012-11-21T05:18:04","guid":{"rendered":"http:\/\/zethus.ca\/wp\/?p=388"},"modified":"2017-01-01T22:25:16","modified_gmt":"2017-01-02T05:25:16","slug":"digital-dice","status":"publish","type":"post","link":"https:\/\/zethus.ca\/wp\/?p=388","title":{"rendered":"Digital Dice"},"content":{"rendered":"<p>For the last couple of weeks, my son and I have been building <a href=\"https:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/11\/Dice.m4v\">&#8220;Digital Dice&#8221; <\/a>as a project to teach him some hardware and software design, and to play settlers of catan, with out wiping out whole villages with &#8220;real&#8221; dice.<\/p>\n<p>&nbsp;<\/p>\n<p>The requirements were:<\/p>\n<ul>\n<li>emulate two die faces<a href=\"https:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/11\/Dice.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-394\" title=\"Dice\" src=\"https:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/11\/Dice-300x231.jpg\" alt=\"\" width=\"300\" height=\"231\" srcset=\"https:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/11\/Dice-300x231.jpg 300w, https:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/11\/Dice-1024x791.jpg 1024w, https:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/11\/Dice.jpg 1650w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>have shake detect to roll<\/li>\n<li>coin cell power<\/li>\n<li>rechargeable over usb<\/li>\n<li>longish battery life<\/li>\n<\/ul>\n<p>We designed this thing using protel. The first cut of software I did using the arduino environment. I hate to admit it, but is is pretty easy, although the I2C library is broken with respect to the freescale accelerometer in the default installation. I&#8217;ve attached the schematic. \u00a0Gerbers and code are available, if you are interested leave a comment. \u00a0The circuit uses:<\/p>\n<p>&nbsp;<\/p>\n<div>\n<ul>\n<li>atmega328p (pico power cpu)<\/li>\n<li>mma7660 accelerometer<\/li>\n<li>LIR2032 battery (rechargable)<\/li>\n<li>MCP73832 charger.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/11\/251238_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-400\" title=\"Gerbels\" src=\"https:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/11\/251238_2-300x178.png\" alt=\"\" width=\"300\" height=\"178\" srcset=\"https:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/11\/251238_2-300x178.png 300w, https:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/11\/251238_2-1024x608.png 1024w, https:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/11\/251238_2.png 1792w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>For the last couple of weeks, my son and I have been building &#8220;Digital Dice&#8221; as a project to teach him some hardware and software design, and to play settlers of catan, with out wiping out whole villages with &#8220;real&#8221; &hellip; <a href=\"https:\/\/zethus.ca\/wp\/?p=388\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,5],"tags":[],"class_list":["post-388","post","type-post","status-publish","format-standard","hentry","category-arduino","category-avr"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=388"}],"version-history":[{"count":24,"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/388\/revisions"}],"predecessor-version":[{"id":417,"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/388\/revisions\/417"}],"wp:attachment":[{"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}