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.

3P4W LED Clock with Temperature Display

3P4W LED Clock with Temperature Display
 

This is a simple clock project based on ti MSP430G2231. The MSP430G2231 micro-controller comes included in the $4.30 TI Launchpad kit. The project objective is to create a working clock with minimal components. In order to achieve this objective, current limiting resistors for the LED display were omitted. also multiplexing is used to reduce the io pins needed to drive the LED display.

For a 4 digit x 7 segment display we need to drive 32 LEDs (including the decimal dot). the MSP430G2231 has only 10 IO pins at most, so instead of driving individual LEDs we use multiplexing to briefly turn on and off led segments for each digit. We do this ever so quickly to fool our eyes that the LEDs are constantly on. This is also known as POV (persistence of vision). The control (user interface) is also arranged so that we only use one tactile button for input. The firmware capture long button presses (press and hold) for menu rotation and normal button presses for menu selection.

Another objective of this project is to lower the admission level for anyone who is thinking about picking up electronics as a hobby. No special tools are needed to built this project. DIP components are used instead of SMD so no special placement tools are needed. Breadboard is used instead of PCB to eliminate the need of access to a soldering iron. Cost of components are minimal (the micro-controller programmer is included) and parts are commonly accessible.

I called this the 3P4W clock as it takes only 3 parts (alarm is optional) and 4 wires to assemble this project.

TI LaunchPad Link: http://processors.wiki.ti.com/index.php/MSP430_LaunchPad_%28MSP-EXP430G2%29?DCMP=launchpad&HQS=Other+PR+launchpadwiki-pr

Below is video on full construction, direct link if embedded doesn't work
http://www.youtube.com/watch?v=Ama9BEEP9gs



 
Remove these adsRemove these ads by Signing Up
 

Step 1Features and Parts

Features and Parts

Features

. Minimal components, 3 parts (4 parts if you need alarm)
. 4 jumper wires on a mini breadboard
. Battery operated from 3V
. Use of internal VLO clock (~12Khz) to keep time, sleep mode takes less than 1uA power
. VLO is calibrated against DCO at startup, DCO in turn use factory calibrated value
. Manual calibration allow fine adjustment to oscillator timing
. Fairly accurate if you consider that there is no crystal used
. Ambient temperature read in metric and imperial units
. Optional alarm if you connects a buzzer (auto-detect), this will make the 4p4w clock
. Hidden easter egg function for you to find

Parts

. MSP430G2231 (from your Launchpad kit)
. 4 digit 7 segment LED display (red works best on 3V power)
. Tactile button
. Buzzer 3V (Optional, and becomes the 4P4W clock)


You will also need a breadboard to place your components, a 3v 2xAAA battery holder with batteries and 4 connecting jumper wires, I used a 170 tie-point mini breadboard as the platform and used network cable cores as jumper wires.

The LED display is commonly available in ebay, look for those 0.4" or 0.36" 4 digit displays, you will want to make sure it's common cathode and the pin layout matches (most do)

   __a__      (0) A  F (1)(2) B  
 f|     |b    -+--+--+--+--+--+-  
  |__g__|     |                |
 e|     |c    |Pin1            |  
  |__d__|     -+--+--+--+--+--+- 
                E  D  . C  G (3)

Tools

. Computer with either Linux or Windows
. TI LaucnPad, EZ430-F2013 Kit, or other MSP430 programmer
. mspdebug or TI CCS development environment (programming software)

« Previous StepDownload PDFView All StepsNext Step »
11 comments
Jul 28, 2011. 10:34 AMarup says:
How can we use common anode displays? I ordered a few for my earlier project and 3-4 are left over.
Jul 29, 2011. 7:58 PMarup says:
Thanks for helping me out - I'll try today and let you know.
Jul 31, 2011. 10:33 AMarup says:
OK, I tried the code with CCS. I'm getting the following error:


"..\lnk_msp430g2231.cmd", line 60: error: placement fails for object ".text",
size 0x8a4 (page 0). Available ranges:
FLASH size: 0x7e0 unused: 0x732 max hole: 0x732
error: errors encountered during linking; "C:\Texas Instruments\clk.out" not
built
Jan 7, 2012. 12:23 AMsom4dipa says:
As you said you make some modifications which you posted on your website, Please do intimate your web address where I can see the detail of your modifications.

Somnath
Mail : somnathkolkata@hotmail.com
Apr 28, 2011. 2:29 PMlol XD says:
What Software do you use? Can you use any software that is Msp430 compatible? I bought a launch pad and bread board and I was wondering because the CCS (i think its called that) fails to install.

Thanks
Oct 2, 2010. 7:19 PMehrichweiss says:
I was really hoping on source code so I could get an example of how the temperature is sampled/converted. Any chance of this?

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!
22
Followers
5
Author:simpleavr