{"id":143,"date":"2012-06-27T13:55:47","date_gmt":"2012-06-27T18:55:47","guid":{"rendered":"http:\/\/fw.hardijzer.nl\/?p=143"},"modified":"2012-06-27T13:56:23","modified_gmt":"2012-06-27T18:56:23","slug":"turning-a-jy-mcu-3208-into-something-useful","status":"publish","type":"post","link":"https:\/\/fw.hardijzer.nl\/?p=143","title":{"rendered":"Turning a JY-MCU 3208 into something useful"},"content":{"rendered":"<p>During a recent impulse-buy at DealExtreme I added the following two items to my cart:<\/p>\n<ul>\n<li>A 32&#215;8 LED Clock thingie (JY-MCU 3208 Lattice Clock)<br \/>\n<a href=\"http:\/\/dx.com\/p\/jy-mcu-3208-lattice-clock-ht1632c-driver-with-mcu-support-secondary-development-104306?item=1\">http:\/\/dx.com\/p\/jy-mcu-3208-lattice-clock-ht1632c-driver-with-mcu-support-secondary-development-104306?item=1<\/a>\u00a0(SKU 104306)<\/li>\n<li>A 16-digit 8-segment LED display (JY-MCU JY-LM1640)<br \/>\n<a href=\"http:\/\/dx.com\/p\/jy-mcu-16x-digital-tube-yellow-led-module-104311?item=3\">http:\/\/dx.com\/p\/jy-mcu-16x-digital-tube-yellow-led-module-104311?item=3<\/a>\u00a0(SKU 104311)<\/li>\n<\/ul>\n<p>I intended to just play around with it, with no particular purpose in mind. However, I&#8217;ve recently been asked to bake up a clock-like display, and figured I could use these two for that purpose. This post will be the first in a series detailing what I&#8217;m doing with it, and how I&#8217;ve done so. The first post will focus on what the boards contain, where to get information, and a small summary of some of my plans.<\/p>\n<h3>JY-MCU 3208 Lattice Clock summary<\/h3>\n<p>First the JY-MCU 3208 Lattice Clock. Basically it&#8217;s just a little development board that comes out of the box with:<\/p>\n<ul>\n<li>An ATMega8L clocked at 1MHz, but able to be clocked to 2MHz, 4MHz, or 8MHz<\/li>\n<li>An external crystal of 32.768KHz intended for timekeeping, wired to TOSC1 (PB6) and TOSC2 (PB7)<\/li>\n<li>4 8&#215;8 LED-arrays with red LEDs. Apparently it also houses green LEDS, but those have not been wired. You could, however, reuse these panels in a different project and use green too.<\/li>\n<li>A HT1632C-chip to drive those LED arrays.<\/li>\n<li>An AVR 10-pin ISP header that&#8217;ll plug right into most AVR-programmers, and features the TX and RX pins brought out to two of the ground pins.<\/li>\n<li>A cylindrical powerjack-receptacle, with what appears to be an outside diameter of 5.5mm, 9.5m length, and an unknown inside diameter. All plugs I had of 5.5mm OD seemed to fit, so I&#8217;m not sure. (Maybe someone with an advanced caliper can confirm this?)<\/li>\n<\/ul>\n<p>Apart from that it comes with solder-pads for a lot more components that you can solder on manually:<\/p>\n<ul>\n<li>Two different Real-time clock chip designs, complete with backup battery (either a Maxim DS1302, or an RX-8325NB + RX-8025SA, both with a CR927 battery or battery holder)<\/li>\n<li>A digital thermometer (Maxim 18B20)<\/li>\n<li>A speaker<\/li>\n<li>An LED wired in such a way that it can be used as a light sensor<\/li>\n<li>A Mini-USB plug wired properly to be used with firmware libraries like V-USB<\/li>\n<li>An IR-receiver<\/li>\n<\/ul>\n<p>The factory firmware is basically a clock, but it&#8217;s highly inaccurate, and loses it&#8217;s time whenever it loses power. Even though it&#8217;s a nice demo, I think the real power of this board comes from the fact that you can write your own firmware and the PCB contains traces and solder-pads for virtually anything you&#8217;d want to make with a 32&#215;8 display like this. Out of the box you could use it to receive data from the UART TX\/RX pins and put that on the screen, which would make a nice display for something like an arduino, if you add extra components you could make a clock, a USB display, thermometer, or anything else you can come up with that uses a combination of the things listed above.<\/p>\n<h3>JY-MCU LM1640 summary<\/h3>\n<p>This one is a bit simpler. Out of the box, it&#8217;s just 4 4-digit 8-segment displays with a TM1640 chip to drive them. However, here too there&#8217;s room for more!<\/p>\n<p>There&#8217;s solder-pads available for something like an ATTiny25\/45\/85 chip, with the option of removing two resistors so the TM1640 is connected to 2 output pins of the ATTiny, and the normal DIN and SCLK inputs will then wire to the ATTiny&#8217;s DI\/DO pins, allowing for something like serial communication.<\/p>\n<p>On top of that it allows you to place two push buttons directly wired to the ATTiny in case you&#8217;d like to run it standalone.<\/p>\n<p>Stand-alone it&#8217;s nice for a display on any microcontroller\/arduino project. With the ATTiny, you can write up an easier protocol, or even have it running as a standalone display.<\/p>\n<h3>My plans<\/h3>\n<p>My current plan is to create a clock, with the LM1640 used as an extra display to show, for example, the year, month, and day. I also plan to add an USB option so that you can synchronize the time with a computer, and possibly use the displays directly from the PC.<\/p>\n<p>For this I&#8217;ll be adding the DS1302 RTC chip, and adding all the needed components for a USB connection.<\/p>\n<h3>Next post<\/h3>\n<p>The next post will feature all the datasheets and other manuals I can find, and will detail how I&#8217;d like to wire things up, what components I&#8217;ll be needing \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>During a recent impulse-buy at DealExtreme I added the following two items to my cart: A 32&#215;8 LED Clock thingie (JY-MCU 3208 Lattice Clock) http:\/\/dx.com\/p\/jy-mcu-3208-lattice-clock-ht1632c-driver-with-mcu-support-secondary-development-104306?item=1\u00a0(SKU 104306) A 16-digit 8-segment LED display (JY-MCU JY-LM1640) http:\/\/dx.com\/p\/jy-mcu-16x-digital-tube-yellow-led-module-104311?item=3\u00a0(SKU 104311) I intended to just play around with it, with no particular purpose in mind. However, I&#8217;ve recently been asked to &hellip; <a href=\"https:\/\/fw.hardijzer.nl\/?p=143\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Turning a JY-MCU 3208 into something useful<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[45,43,44],"class_list":["post-143","post","type-post","status-publish","format-standard","hentry","category-electronics","tag-45","tag-43","tag-jy-mcu"],"_links":{"self":[{"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=\/wp\/v2\/posts\/143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=143"}],"version-history":[{"count":4,"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=\/wp\/v2\/posts\/143\/revisions"}],"predecessor-version":[{"id":147,"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=\/wp\/v2\/posts\/143\/revisions\/147"}],"wp:attachment":[{"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}