3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Clock with Meggy Jr RGB

Clock with Meggy Jr RGB
There is a saying: "If all you have is a hammer, everything looks like a nail". Well, when I see a display, I think of clocks :)

I will show you here how to easily make a simple digital clock by hacking Meggy Jr RGB. This is an Arduino-programmable device, featuring an 8x8 RGB LED matrix, a few buttons and a buzzer. Ideal candidate for an alarm clock.

The clock will use the ubiquitous DS1307 as RTC (real-time-clock). This chip can be bought on ebay or digikey/mouser for about $1.
You will ask why we need an RTC chip at all. Why can't we just count the seconds and calculate the minute, hour, day, week, month and year with the on-board ATmega328? Of course we can. We would only need to write and test a bunch of functions. But who is going to record the passing of time when the processor is not powered? DS1307 does all these for us: for only $1 or so, it counts the seconds for as along as the coin battery lasts (which is a few years) and increments the minutes, hours, days etc., and even keeps track of leap years. All we need to do to get the current time is to ask the little frugal RTC chip for it.


Here are the requirements (or the few issues to think about):
1. build a small RTC breakout board ("BOB"), according to the datasheet (basically connecting the crystal and coin backup battery to the DS1307 chip);
2. make the RTC BOB fit somewhere nicely over the Meggy Jr board;
3. connect this RTC BOB to the Meggy Jr board, as cleanly as possible, with no wires soldered to the Meggy Jr board.

This tutorial will show how I solved these minor challenges.

In the end, the Meggy Jr clock will look and work as shown in this video:


 
 
Remove these adsRemove these ads by Signing Up
 

Step 1The Parts

The Parts
Beside a working Meggy Jr RGB, here is the complete list of things we will need for this project:
  • DS1307 and a 8-pin socket;
  • crystal (32768Hz);
  • coin battery (CR1220) and a holder for it;
  • a small piece of prototyping board;
  • 2 pieces of 6-pin female header;
  • 6-pin right-angle male header;
  • a few wires.
Of course, we will also use a soldering iron, solder and desoldering wick (flux pen is also recommended).
« Previous StepDownload PDFView All StepsNext Step »
2 comments
Oct 27, 2011. 5:02 AMWyoJustin says:
You got my vote!!

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
20
Followers
6
Author:florinc(Wise Clocks)