Wish you a Merry Christmas
Yes, Christmas is there and we have already lightened our houses. If you
haven't done anything special besides the festive Christmas lights for
decoration, you might want to consider building this project for the
next year. This is a big animated Christmas sign made from scratch using
different color LEDs to wish Merry Christmas to our
neighbors and visitors. It displays the text ‘MERRY XMAS’, where each
character is created with 5mm diameter red-color LEDs. Multi-color LEDs
surrounding the display text from all four sides make it look bright and
attractive in the night. The animation and display controller circuit
consists of only three discrete logic ICs (two 74HC595 shift registers
and one 74HC14 inverting Schmitt trigger), while the LED driver is made
of transistor arrays.
STEP1
LED math and driver circuit
Now, let’s see how to make display letters with LEDs. The LED connections for the first character of the signboard (MERRY XMAS) is shown above. 17 LEDs are used in creating 'M'. If you have to drive each LED through a 5V supply, you require 17 series resistors, and the current will sum up to 17×15 = 255 mA. If you add up the current requirements of other LED characters in the signboard, the net current would go up to 2 A, which is quite a bit of current and you probably need a bigger heat sink for your voltage regulator. So I thought of doing it differently that would lower the net current consumption in the project and also save me from soldering to many resistors and transistors. This can be done by using a higher supply voltage.
I used a power supply unit from one of my old printers that provides +32 V, +16V, and ground to its 3 output pins. The +32 V is used to drive the chain of LEDs connected in series, and +16V goes to an LM78L05 IC to derive +5V regulated output for the control circuit. By doing so the net current required to drive all the LEDs in a chain is same as required for a single LED as they are in series, and therefore, only 1 resistor is required per chain.
The picture above shows how I constructed the character 'M'. With +32 V, I can only drive up to 16 red LEDs in series, and the letter ‘M’ in the sign consists of 17 LEDs. So I have to divide it into two chains of 9 and 8 LEDs, as shown here. For the first chain, the value of the series resistor would be,
R1 = (32.0 – 1.95 x 9) V/15 mA = 963 Ω.
The anode terminal is connected to 32 V supply whereas the cathode is connected to the collector of a NPN transistor (BC547). The transistor acts as a switch with a control signal applied to its base terminal through a resistor. Whenever the control signal is HIGH, the switching transistor is turned on and all the LEDs will glow to display ‘M’.
This whole process is repeated for constructing other LED characters in the signboard. The series resistor values are calculated in exactly the same way by considering the number of LEDs in each of the chains formed. The attached table shows the number of LEDs, number of chains, and the value of series resistor used for constructing each LED character.
STEP2
Border LEDs
I have
also added 24 extra LEDs (8 Red, 8 Yellow, and 8 Green) to create a
flashing border around the edges of the sign. They are connected in two
chains, each one has 12 LEDs in series, as shown here. A clock signal
applied to the base of the transistor will flash the border LEDs at the
clock frequency.
STEP3
Constructing the sign board
After
figuring out the math, it's time to put LEDs together to make the sign
board. The LEDs are assembled to a 0.25″ thick cardboard by drilling two
closely spaced (3 mm apart) tiny holes (0.8 mm drill size) at each LED
position. The legs of LEDs are inserted inserted into the holes and are
bent on the backside of the cardboard, where they are soldered to form
chains. This holds the LEDs fairly tight. In order to place LEDs and
characters at equal distance, first I printed the exact same characters
on papers with round circles (size of LEDs) and sticked them on the
board using tape (see pictures below). Each circle then provides
reference for drilling holes for that specific LED. The circles are 0.5″
apart. Since it’s a cardboard, drilling was not that painful. It took
me about 30 minutes to drill holes for all 134 LEDs (not bad!). The
border LEDs are chained in a similar way.
The LED driver unit, which consists of ten transistors (9 for character display and 1 for border LEDs) is hooked up on the back of the cardboard. It has a female header receptacle to receive the logic control signals from the controller board, which we will discuss next.
The LED driver unit, which consists of ten transistors (9 for character display and 1 for border LEDs) is hooked up on the back of the cardboard. It has a female header receptacle to receive the logic control signals from the controller board, which we will discuss next.
STEP4
Animation controller board
Next
we need a controller to turn the transistor switches on and off in an
appropriate sequence to create some animation effects to the signboard.
The controller circuit consists of two 74HC595 shift registers and one
74HC14 inverting Schmitt trigger IC. The circuit diagram of the
controller is shown above.
The 74HC14 provides six inverting buffers with Schmitt-trigger action. One of them is configured as a relaxation oscillator using an external resistor (100K pot + 10K fixed) and a capacitor (10 uF). The frequency of oscillation is given by f ≈ 1/(0.8 x RC). So, with a 100K pot and a fixed 10K resistance, the frequency can be varied from approximately 1 Hz-13 Hz. This clock signal controls the blinking of the border LEDs, and therefore, they will flash at the clock frequency.
The two 74HC595 shift registers are cascaded to form a 16-bit serial-in parallel-out shift register. This requires connecting the serial output (pin 9) of one to the serial data I/P pin (14) of the other. The two clock inputs (Shift register clock and Storage register clock) of both are tied together and driven by the same clock signal from the relaxation oscillator. Remember that the relaxation oscillator runs freely and is always providing clock signal to the combined 16-bit shift register. So what appears at the output of the shift register depends upon the logic level applied at the serial data input pin (14), which in fact, is connected to the output of the second inverting buffer (pins 3 and 4) in the 74HC14 device. The input to this inverter comes from pins Q1, Q3, or Q5 output (selectable using a jumper connector) of the second shift register. Pin no. 10 of 74HC595 is the memory reset input and is an active low signal. It can be either connected to logic high (+5 V) all the time or to the output of the second inverter; there is a switch for doing that. Actually it controls the animation of the display (described later). The first 9-bit parallel data output (Q0-Q7 of first 74HC595 and Q0 of second 74HC595) from the cascade connection drive the switching transistors for the nine characters on the signboard. In the next section, I will describe its operation in more detail.
The 74HC14 provides six inverting buffers with Schmitt-trigger action. One of them is configured as a relaxation oscillator using an external resistor (100K pot + 10K fixed) and a capacitor (10 uF). The frequency of oscillation is given by f ≈ 1/(0.8 x RC). So, with a 100K pot and a fixed 10K resistance, the frequency can be varied from approximately 1 Hz-13 Hz. This clock signal controls the blinking of the border LEDs, and therefore, they will flash at the clock frequency.
The two 74HC595 shift registers are cascaded to form a 16-bit serial-in parallel-out shift register. This requires connecting the serial output (pin 9) of one to the serial data I/P pin (14) of the other. The two clock inputs (Shift register clock and Storage register clock) of both are tied together and driven by the same clock signal from the relaxation oscillator. Remember that the relaxation oscillator runs freely and is always providing clock signal to the combined 16-bit shift register. So what appears at the output of the shift register depends upon the logic level applied at the serial data input pin (14), which in fact, is connected to the output of the second inverting buffer (pins 3 and 4) in the 74HC14 device. The input to this inverter comes from pins Q1, Q3, or Q5 output (selectable using a jumper connector) of the second shift register. Pin no. 10 of 74HC595 is the memory reset input and is an active low signal. It can be either connected to logic high (+5 V) all the time or to the output of the second inverter; there is a switch for doing that. Actually it controls the animation of the display (described later). The first 9-bit parallel data output (Q0-Q7 of first 74HC595 and Q0 of second 74HC595) from the cascade connection drive the switching transistors for the nine characters on the signboard. In the next section, I will describe its operation in more detail.
STEP5
Operation of the controller unit
Animation 1
Suppose, the animation select is at position 1 (+5 V), which means both 74HC595 devices will never get reset. Also assume the Hold time select is connected to Q1 (pin 1) of the second 74HC595. Assume the power-on-reset values of the parallel outputs from both the shift registers are 0. This means the output of the second inverter (pin 4 of 74HC14) will be at logic HIGH, since its input (pin 3 of 74HC14) is at logic zero. Since this is feeding the serial data I/P pin of the cascaded 16-bit shift register, the logic 1 will be shifted in with every clock pulse coming from the relaxation oscillator, which means the characters in the message “MERRY XMAS” will turn on sequentially from left to right. After all nine 1s are successfully shifted in, the complete sign will glow. An additional clock pulse will push one more 1 into the shift register resulting Q1 output of second 74HC595 go high. Since Q1 goes back to the input of the second inverter through hold time select jumper, the data I/P pin (pin 14 of first 74HC595) will be at logic 0 now, which means 0s will be pushed into the shift register now onwards. So the displayed message will start disappearing from left to right, one letter at a time. After 9 more clock pulses, all display letters are OFF. On the arrival of the 10th clock pulse, Q1 of second 74HC595 will be low, which means the data I/P pin will go high again. This whole process repeats for ever and you will see the animated Christmas sign running continuously. You can change the speed of animation by varying the frequency (through the 100K pot) of the relaxation oscillator. Similarly, by moving the Hold time select jumper to Q5, the displayed message can be held still for 5 clock pulses before it starts disappearing from the left side.
Animation 2
You can slightly modify the animation pattern by switching the animation select (which is actually memory reset pin of both 74HC595 devices) to position 2. Now, whenever the output of the second inverter goes low, it will clear the outputs of both the shift registers at once and the data I/P pin will go high again. On the output side, what this means is when all the characters are turned on the sign, and the hold time is up, they will all turn off once and the characters will start displaying again sequentially from left to right. The demonstration video at the end shows both the animations in action.
The +5V power supply required for the controller circuit is derived using a LM7805 regulator IC. The printer power supply that I have got has three output terminals, +16 V, +32 V, and Gnd. I used +16 V as an input to LM7805 IC, as shown in the picture here.
Next section shows the Christmas signboard in action.
Suppose, the animation select is at position 1 (+5 V), which means both 74HC595 devices will never get reset. Also assume the Hold time select is connected to Q1 (pin 1) of the second 74HC595. Assume the power-on-reset values of the parallel outputs from both the shift registers are 0. This means the output of the second inverter (pin 4 of 74HC14) will be at logic HIGH, since its input (pin 3 of 74HC14) is at logic zero. Since this is feeding the serial data I/P pin of the cascaded 16-bit shift register, the logic 1 will be shifted in with every clock pulse coming from the relaxation oscillator, which means the characters in the message “MERRY XMAS” will turn on sequentially from left to right. After all nine 1s are successfully shifted in, the complete sign will glow. An additional clock pulse will push one more 1 into the shift register resulting Q1 output of second 74HC595 go high. Since Q1 goes back to the input of the second inverter through hold time select jumper, the data I/P pin (pin 14 of first 74HC595) will be at logic 0 now, which means 0s will be pushed into the shift register now onwards. So the displayed message will start disappearing from left to right, one letter at a time. After 9 more clock pulses, all display letters are OFF. On the arrival of the 10th clock pulse, Q1 of second 74HC595 will be low, which means the data I/P pin will go high again. This whole process repeats for ever and you will see the animated Christmas sign running continuously. You can change the speed of animation by varying the frequency (through the 100K pot) of the relaxation oscillator. Similarly, by moving the Hold time select jumper to Q5, the displayed message can be held still for 5 clock pulses before it starts disappearing from the left side.
Animation 2
You can slightly modify the animation pattern by switching the animation select (which is actually memory reset pin of both 74HC595 devices) to position 2. Now, whenever the output of the second inverter goes low, it will clear the outputs of both the shift registers at once and the data I/P pin will go high again. On the output side, what this means is when all the characters are turned on the sign, and the hold time is up, they will all turn off once and the characters will start displaying again sequentially from left to right. The demonstration video at the end shows both the animations in action.
The +5V power supply required for the controller circuit is derived using a LM7805 regulator IC. The printer power supply that I have got has three output terminals, +16 V, +32 V, and Gnd. I used +16 V as an input to LM7805 IC, as shown in the picture here.
Next section shows the Christmas signboard in action.
Helpful infoгmatіon. Lucκy me Ӏ found youг
ReplyDeletewеb ѕіte acciԁеntally,
аnd I am stunned ωhу thius accidesnt ԁiԁ not
happeneԁ in adѵance! I bookmarκеԁ it.
Ϻу wеb-site - Bomb Detector (webs.com)
Give th&X65; lіttle one
ReplyDeletea ρaper hat аnԁ gе&X74;
out &X68;i&X73; toy drum. Onne of the most ԁiffiсult kinds &X6f;f music dοwnloading royalty free music is the Royaltу Frеe Music Downloаԁs.
If yo&X75; want to m&X61;ke a lot of monеy, &X79;ou need а lot of іncome
ѕtreams going on.
&X48;еre is my blog :: Мusic C&X6f;mposeг (N-Tropic.Com)
Its like you read my thoughts! You seem to know so much approximately this, like
ReplyDeleteyou wrote the ebook in it or something. I feel that
you just can do with a few p.c. to drive the message home a bit,
but other than that, this is wonderful blog. A great
read. I'll certainly be back.
My webpage ... A4 print (www.semcali.gov.co)
There are some historical and cultural reasons for those families being
ReplyDeleteso strongly associated with men's grooming, as well as some that are founded
in the nature of masculine pheromones and men's natural
body odour. Here are some of the popular discontinued fragrances and even some of the ones that people may have
forgotten about. Here are some tips for basic fragrance usage in public that will help all allergy sufferers.
Here is my homepage Perfume Movie
But the level of malevolence in which their diatribe was
ReplyDeletedelivered took me by surprise. You can easily download and install this Satellite Direct TV software.
Whenever you wish to watch at home you can connect your pc to your
tv set directly.
4 million though its 41% possession of Innova, Azines.
ReplyDeleteMost of the firms that offer you this new engineering will give at the very least 3000
channels and some will provide you far more than that.
Satellite - Direct is the fresh way to watch TV- from the comfort of your TV, your own desktop PC or your laptop computer.
Feel free to surf to my webpage: satellite direct
First of all you will have to get a good internet connection that is able
ReplyDeleteto stream live video without any buffering.
Please Do Not Purchase Satellite Direct for the excessive price.
Satellite - Direct is the fresh way to watch TV- from the comfort of your TV, your own desktop PC or
your laptop computer.
Feel free to visit my site: satellite direct review
Pretty! This was an incredibly wonderful post.
ReplyDeleteThank you for providing these details.
My webpage :: Chicago Personal Injury Settlements
She's started green businesses and has vast experience managing public,
ReplyDeletemedia and investor relations for small-cap public companies.
That's your chance to cash in on the people who would like
a place close to that establishment. "Thanks to your software, I cancelled my costly TV Cable service.
Take a look at my blog ... satellite direct review
continսously i used to read smaller ɑrticles or reviews that as well clear their motive, and tɦat iѕ also
ReplyDeletehɑppenіng with this article which I am reading here.
Here is my site - 3 volt coin battery
It is appropriate time to make some plans for the long run and it is
ReplyDeletetime to be happy. I've learn this submit and if I may just I want to recommend
you some fascinating issues or suggestions. Maybe you can write
subsequent articles referring to this article. I desire
to learn more things about it!
Also visit my webpage - chi flat iron