Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Twinkling LED Matrix Schematic Needed

Status
Not open for further replies.
It's really fancy multiplexing, but only one led on at a time. Great for the pin frugal among us. A matrix display is much easier to drive.
 
What's so bad about charlieplexing? It helps saving copper.
 
Nice Project

This is a really nice project. I was thinking about doing something like this as well but wasn't sure where to start. I was intending to use it for lighting in a fish tank to simulate the lighting effect you get from a pool thats inside.
 
Last edited:
Twinkling LEDs

Hi all interested in the circuit,

I've played a little with the circuit for more LEDs. Using the CARRY output of the preceeding stage the next counter will count in logical sequence: BACKWARDS! :confused:

Using the same high clock signal for all stages the count inhibit inputs must have different frequencies. Otherwise the same light pattern applies to every stage. The frequencies used are: 850Hz for main clock, 180Hz for the first count inhibit input and 126Hz for the second count inhibit. (126Hz due to standard value parts used).

The same main clock signal takes care of equal on time for the LEDs. With 20 LEDs the circuit already looks pretty confusing.

Trevors, I guess this circuit is just right for your application. The twinkling is very short though, but the effect will be the same as looking at water waves reflecting the sun.

Another good application idea: Carve a wooden diamond and use the LEDs on it. Your wife will love you for the hugest diamond in the world.

Here is a screenshot of 20 LEDs.

Hans
 
Last edited:
Boncuk said:
What's so bad about charlieplexing?

Nothing at all, apart from it's obvious limitations.

It helps saving copper.

Not with only two LED's it doesn't! :p

I think that was Bill's point, why use two I/O pins to charlieplex two LED's, when you could just use the two pins to feed an LED each?.
 
Can you send a full-resolution image? I am trying to reproduce your schematic in Eagle, and I think i almost have it.
I cannot seem to find the section to test the circuit out (animate it)

Thanks for your time!! :)
Nate
 
Hi Hans,
Instead of three 555 oscillators you could use 3 inverters from a 74C14 Cmos Schmitt-trigger hex inverter IC.

The output transistors of the CD4017 will overheat without current-limiting resistors (or just a common one) with your very high 12V supply. A 9V supply is safer and the LEDs will be almost as bright.

For 25mA output I would use 74HC4017 ICs with a common current-limiting resistor and a 6V supply. They can be clocked with a 74C14 bunch of oscillators.
 
Would it be possible to connect caps across some of the led's so they dim away rather than swith off quickly? If so, what values would be good? 100uF?
 
Hi Hans,

It doesn't matter how much your simulator costs if your concept is
wrong. When the counters are counting the leds will be charlieplexed
and they will still light, not as bright but they will light.
I think you gonna have to make a (few) minor modification(s) to your
design. :D

on1aag.
 

Attachments

  • Twinkling leds 1.PNG
    Twinkling leds 1.PNG
    34.3 KB · Views: 243
  • Twinkling graphs 1.PNG
    Twinkling graphs 1.PNG
    14.7 KB · Views: 244
Trevors said:
Would it be possible to connect caps across some of the led's so they dim away rather than swith off quickly? If so, what values would be good? 100uF?
If you add a capacitor across each LED then they will turn off fairly quickly because the output of a CD4017 goes low when the LED is turned off.

If you add a diode in seies with each LED and a capacitor across each LED then the capacitor will discharge fairly slowly into the LED without being discharged quickly when the output of the CD4017 goes low.

Try different capacitors.
 
Trevors said:
Would it be possible to connect caps across some of the led's so they dim away rather than swith off quickly? If so, what values would be good? 100uF?

Hi Trevors,

the caps across the LEDs won't do much. Better use low power MosFets and keep the gate voltage high long enough so the LEDs will extinguish slower. However they won't twinkle anymore.

Hans
 
on1aag said:
Hi Hans,

It doesn't matter how much your simulator costs if your concept is
wrong. When the counters are counting the leds will be charlieplexed
and they will still light, not as bright but they will light.
I think you gonna have to make a (few) minor modification(s) to your
design. :D

on1aag.

Hi on1aag,

the longer I look on the schematic the lesss charlieplexing I find. :confused: The LEDs will twinkle at full brightness depending on the current. As audioguru already pointed out either the LEDs or the counter will give up sooner or later with a supply voltage of 12V and no current limiting resistors. :D

Especially for you here is the difference between multiplexing and charlieplexing. Neither one applies to my suggested circuit. :)

For more info about charlieplexing visit maxim-ic.com.

Best regards

Hans
 
Last edited:
Twinkling LEDs

audioguru said:
Hi Hans,
Instead of three 555 oscillators you could use 3 inverters from a 74C14 Cmos Schmitt-trigger hex inverter IC.

The output transistors of the CD4017 will overheat without current-limiting resistors (or just a common one) with your very high 12V supply. A 9V supply is safer and the LEDs will be almost as bright.

For 25mA output I would use 74HC4017 ICs with a common current-limiting resistor and a 6V supply. They can be clocked with a 74C14 bunch of oscillators.


Oops,

just selected the wrong power source. Should have been 9V though.

I'm not too good at math. Please tell me the difference in making the astables with 3 out of 6 inverters per circuit and using dual timers for the same purpose. My vague calculation results in three ICs in both cases. :D

You'll also have half of an IC leftover for general use. :)

Greetings

Hans
 
Hi hans,
You can make an astable from a single Schmitt-trigger inverter (6 in a package) or from two ordinary inverters.
 

Attachments

  • Cmos Oscillators.PNG
    Cmos Oscillators.PNG
    11.6 KB · Views: 233
audioguru said:
Hi hans,
You can make an astable from a single Schmitt-trigger inverter (6 in a package) or from two ordinary inverters.

I've made bad experience at lower frequencies. (below 1KHz). For myself I think the choice of a timer circuit is best.
 
That's probably because you used TTL, not CMOS and used to small resistor and too large capacitor values.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top