{"id":1576,"date":"2013-04-11T09:50:25","date_gmt":"2013-04-11T12:50:25","guid":{"rendered":"http:\/\/blog.generaleccentric.net\/?p=1576"},"modified":"2013-05-21T19:57:44","modified_gmt":"2013-05-21T22:57:44","slug":"clock-with-tics-using-jy-mcu-3208-module","status":"publish","type":"post","link":"https:\/\/blog.generaleccentric.net\/?p=1576","title":{"rendered":"\u201cClock with Tics\u201d using JY-MCU 3208 module"},"content":{"rendered":"<figure id=\"attachment_1580\" aria-describedby=\"caption-attachment-1580\" style=\"width: 150px\" class=\"wp-caption alignright\"><a href=\"http:\/\/blog.generaleccentric.net\/wp-content\/uploads\/2013\/04\/DSC_1890.jpg\" rel=\"lightbox[1576]\"><img loading=\"lazy\" decoding=\"async\" class=\"size-thumbnail wp-image-1580 \" title=\"JY-MCU 3208 Clock with Tics\" alt=\"JY-MCU 3208 Clock with Tics\" src=\"http:\/\/blog.generaleccentric.net\/wp-content\/uploads\/2013\/04\/DSC_1890-150x150.jpg\" width=\"150\" height=\"150\" \/><\/a><figcaption id=\"caption-attachment-1580\" class=\"wp-caption-text\">JY-MCU 3208 Clock with Tics<\/figcaption><\/figure>\n<p>The \u201cClock with Tics\u201d project now comes in two production models:<\/p>\n<ol>\n<li><span style=\"line-height: 1.714285714; font-size: 1rem;\">Using the <a href=\"http:\/\/www.sureelectronics.net\/goods.php?id=1119\">SURE 0832 module<\/a> \u2014 the same module used in Media Circus<\/span><\/li>\n<li><span style=\"line-height: 1.714285714; font-size: 1rem;\">Using the <a href=\"http:\/\/dx.com\/p\/jy-mcu-3208-lattice-clock-ht1632c-driver-with-mcu-support-secondary-development-104306\">JY-MCU 3208 module<\/a><\/span><\/li>\n<\/ol>\n<p>The SURE module is an LED matrix with a LED matrix controller built-in. A hand-wired board featuring an ATMEGA328 microcontroller, a DS-1307 battery chip with a button clock backup, and a 5v high-efficiency regulator drives the SURE module.<\/p>\n<p>The JY-MCU 3208 also has the same matrix controller, but also includes an ATMEGA8 controller; no extra wiring is required except for a light sensor attached to a spare data input pin on the ATMEGA.<\/p>\n<p>The JY-MCU 3208 currently sells for just over $12 at DealExtreme.com. It arrives with software that displays date and time using Chinese characters. Fortunately, the module includes a standard six-pin ISP connector that allows hobbyists to upload their own code using <a href=\"http:\/\/store.atmel.com\/PartDetail.aspx?q=p:10500054#tc:description\">AVRISP mkII<\/a> or other In-System Programmers. This version would not be possible without the replacement code provided by\u00a0<a href=\"http:\/\/club.dx.com\/forums\/forums.dx\/threadid.1118199\">DrJones<\/a>.<\/p>\n<p>The ATMEGA8 does time-keeping using interrupts, and the program is uploaded to the module using the built-in ISP connector. This is a bare-bones design that does not have a voltage regulator, so you must be diligent in selecting a power adapter that delivers regulated 5v to the unit. I&#8217;ve blown a couple of the modules through inattention and stupidity.<\/p>\n<p>My modifications to DrJones\u2019 code include:<\/p>\n<ul>\n<li>improved typography<\/li>\n<li>auto brightness<\/li>\n<li>re-assignment of the three control buttons<\/li>\n<\/ul>\n<p>Only one hardware modification is required: for the auto brightness feature, connect one side of a CdS cell to 5v, and to the\u00a0other side of the CdS cell\u00a0make a direct connection to pin A0 of the ATMEGA8, and connect this point to ground through a 10k resistor. It&#8217;s a little tricky if you&#8217;re not used to surface-mount soldering; go <a href=\"http:\/\/store.curiousinventor.com\/guides\/Surface_Mount_Soldering\">here<\/a> and <a href=\"http:\/\/www.youtube.com\/watch?v=3NN7UGWYmBY\">here<\/a> if you need some tips. If you don&#8217;t want to use the auto brightness, comment out lines 352-353 of file clockmtx004.c and recompile.<\/p>\n<p>There are three small pushbuttons on the left side of the module which have been reassigned to provide the following functions, from top to bottom:<\/p>\n<ol>\n<li><span style=\"line-height: 14px;\">Hour adjust &#8211; each press adds one hour, hold press to accelerate<\/span><\/li>\n<li>Minute adjust &#8211; each press adds one minute, hold press to accelerate<\/li>\n<li>\u201cChild-safe\u201d toggle &#8211; press once to turn off expletives, press again to turn them on<\/li>\n<\/ol>\n<p>You can download the code in an <a href=\"http:\/\/www.atmel.com\/tools\/studioarchive.aspx\">AVR Studio 4<\/a> package\u2014which includes all the libraries and makefile, and a compiled hex file\u2014<a href=\"https:\/\/github.com\/firesign\/Clock-with-Tics-for-JY-MCU-3208\">here<\/a>.<\/p>\n<p>As an update to <a title=\"Clock with Tics (using SURE 0832)\" href=\"http:\/\/blog.generaleccentric.net\/?p=864\">my earlier post on the SURE unit<\/a>: my clock with the SURE module uses amber LEDS; these have been discontinued by the manufacturer however, and only red and green are currently available. I was able to snatch up the last six amber modules from a Swiss supplier in January 2013. The JY-MCU module is only available in red.<\/p>\n<p><a title=\"Generaleccentric.net\" href=\"http:\/\/generaleccentric.net\/goodintentions.html#clk\">Generaleccentric.net has more videos and photos<\/a> of the Clock with Tics project.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The \u201cClock with Tics\u201d project now comes in two production models: Using the SURE 0832 module \u2014 the same module used in Media Circus Using the JY-MCU 3208 module The SURE module is an LED matrix with a LED matrix controller built-in. A hand-wired board featuring an ATMEGA328 microcontroller, a DS-1307 battery chip with a &hellip; <a href=\"https:\/\/blog.generaleccentric.net\/?p=1576\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u201cClock with Tics\u201d using JY-MCU 3208 module<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_links_to":"","_links_to_target":"","footnotes":""},"categories":[23,102,22,55],"tags":[80],"class_list":["post-1576","post","type-post","status-publish","format-standard","hentry","category-arduino-electronics","category-design","category-electronics","category-the-technology-of-good-intentions","tag-avr-studio"],"_links":{"self":[{"href":"https:\/\/blog.generaleccentric.net\/index.php?rest_route=\/wp\/v2\/posts\/1576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.generaleccentric.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.generaleccentric.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.generaleccentric.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.generaleccentric.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1576"}],"version-history":[{"count":10,"href":"https:\/\/blog.generaleccentric.net\/index.php?rest_route=\/wp\/v2\/posts\/1576\/revisions"}],"predecessor-version":[{"id":1694,"href":"https:\/\/blog.generaleccentric.net\/index.php?rest_route=\/wp\/v2\/posts\/1576\/revisions\/1694"}],"wp:attachment":[{"href":"https:\/\/blog.generaleccentric.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.generaleccentric.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.generaleccentric.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}