Turning a JY-MCU 3208 into something useful

During a recent impulse-buy at DealExtreme I added the following two items to my cart:

I intended to just play around with it, with no particular purpose in mind. However, I’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’m doing with it, and how I’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.

JY-MCU 3208 Lattice Clock summary

First the JY-MCU 3208 Lattice Clock. Basically it’s just a little development board that comes out of the box with:

  • An ATMega8L clocked at 1MHz, but able to be clocked to 2MHz, 4MHz, or 8MHz
  • An external crystal of 32.768KHz intended for timekeeping, wired to TOSC1 (PB6) and TOSC2 (PB7)
  • 4 8×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.
  • A HT1632C-chip to drive those LED arrays.
  • An AVR 10-pin ISP header that’ll plug right into most AVR-programmers, and features the TX and RX pins brought out to two of the ground pins.
  • 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’m not sure. (Maybe someone with an advanced caliper can confirm this?)

Apart from that it comes with solder-pads for a lot more components that you can solder on manually:

  • 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)
  • A digital thermometer (Maxim 18B20)
  • A speaker
  • An LED wired in such a way that it can be used as a light sensor
  • A Mini-USB plug wired properly to be used with firmware libraries like V-USB
  • An IR-receiver

The factory firmware is basically a clock, but it’s highly inaccurate, and loses it’s time whenever it loses power. Even though it’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’d want to make with a 32×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.

JY-MCU LM1640 summary

This one is a bit simpler. Out of the box, it’s just 4 4-digit 8-segment displays with a TM1640 chip to drive them. However, here too there’s room for more!

There’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’s DI/DO pins, allowing for something like serial communication.

On top of that it allows you to place two push buttons directly wired to the ATTiny in case you’d like to run it standalone.

Stand-alone it’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.

My plans

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.

For this I’ll be adding the DS1302 RTC chip, and adding all the needed components for a USB connection.

Next post

The next post will feature all the datasheets and other manuals I can find, and will detail how I’d like to wire things up, what components I’ll be needing 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *