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.

LED circuit for 1/6 scale diorama

When I connect 13 to 16, it shuts down the circuit.
Using your original diagram you gave me, and putting pin 13 to ground, here is what I get....

LED #1 comes on....stays on for 1.4 seconds and turns off.
LED #2 comes on .7 seconds after LED #1 turns off and stays on for 1.4 seconds.
LED #3 comes on immediately after LED #2 turns off, flashes twice and turns off.
Then the circuit resets.

So, is it possible to have #1 and #2 to turn on and stay on throughout the duration of the circuit?

And, is there a way to have LED #3 to turn on 1.4 seconds after LED #2 comes on and blink 6+ times before turning off and resetting the circuit?

Also, I can't use 3 inputs on the first and second bank of LED's.
If I use 2, it will illuminate, but it's dim.
If I use 3, it wont illuminate at all.
Im using only 1, 3 volt white light LED with no resistor.
using 2 LED's dims them both unless i bump up the input voltage to 6 volts.

Thank you again for all your help.

Ok, try this... but, when rediculous speed comes on, the light speed sign will dim a bit.

When the ludicrous speed sign comes on, the rediculous sign will dim a bit (but the light speed sign will NOT dim more).

You can make the dimming less severe by using a higher voltage for your supply (6 or 7.5v). I don't know how noticeable it will be but it may even be kind of nice to have them toned down

Note, some traces moved but I circled the key changes. Just diodes need to be added.

IMG_5998.jpeg
 
If the drive levels are not adequate, and he has to mod the circuit, why not unsolder the vanilla part
and put in the solution ?
Because he wouldn't be able to goose the voltage beyond 7v with a 74-series part. See my solution to his modification request.
 
When I connect 13 to 16, it shuts down the circuit.
Using your original diagram you gave me, and putting pin 13 to ground, here is what I get....

LED #1 comes on....stays on for 1.4 seconds and turns off.
LED #2 comes on .7 seconds after LED #1 turns off and stays on for 1.4 seconds.
LED #3 comes on immediately after LED #2 turns off, flashes twice and turns off.
Then the circuit resets.

So, is it possible to have #1 and #2 to turn on and stay on throughout the duration of the circuit?

And, is there a way to have LED #3 to turn on 1.4 seconds after LED #2 comes on and blink 6+ times before turning off and resetting the circuit?

Also, I can't use 3 inputs on the first and second bank of LED's.
If I use 2, it will illuminate, but it's dim.
If I use 3, it wont illuminate at all.
Im using only 1, 3 volt white light LED with no resistor.
using 2 LED's dims them both unless i bump up the input voltage to 6 volts.

Thank you again for all your help.
The 4017 (either the CD or the 74HC version) has up to 10 discreet operating states.

I suggest creating a table of what you want to happen for each of those states. The table will have 10 rows and look something like this:

State LED1 LED2 LED3
0 on off off
1 on off off
2 off on off
-
-
9 off off off

You can get more than 10 states, but will need more circuitry, such as a second 4017 and some extra gating logic. Or a microcontroller.

As danadak mentioned, the 74HC version of the part has higher output current, and would be an improvement for a 5 Volt system. Personally, I would add 3 2N7000 mosfets and switch the low side of the LEDs. That would make the output drive current of the 4017 almost irrelevant.
 
The CD74HC4017 drive level looks like -

View attachment 149822

No, they do not. And implying to anyone that it is ok to use Absolute Maximum Ratings as design parameters, especially someone not experienced enough to know how dangerous that can be, is dangerous.

The image in post #10 shows that the OP purchased a CD4017B, not a CD74HC4017. The original 4017 part has lower current ratings for both the Absolute Maximums and normal operation. Here is the datasheet for the CD4017B. This is the original datasheet composed by RCA. Note the Output High (Source) Current on page 3 for the 5 V condition.


ak
 
No, they do not. And implying to anyone that it is ok to use Absolute Maximum Ratings as design parameters, especially someone not experienced enough to know how dangerous that can be, is dangerous.

The image in post #10 shows that the OP purchased a CD4017B, not a CD74HC4017. The original 4017 part has lower current ratings for both the Absolute Maximums and normal operation. Here is the datasheet for the CD4017B. This is the original datasheet composed by RCA. Note the Output High (Source) Current on page 3 for the 5 V condition.


ak

The datasheet I looked at, and most others, between manufacturers, have limited
specs. The absolute maxes, are guidance, limits, but one surely can infer more than
1 mA would fly. I even found a 74HC datasheet with 50 mA max total Vcc current.

But this is all moot given we do not know how much current already being consumed
be existing unmoded board, current available for driving more additive loads, eg. driver
solutions. Or for that matter what the Voh worst case is in existing unmoded design.
Eg. need for external driver solution, specs over T and V......

Is the 20+ year old datasheet, Harris, you posted is that process still being manufactured ? Is it
even advisable to be working off that datasheet ? A question for the chosen manu-
facturer.....

How did you determine this ?

someone not experienced enough to know how dangerous that can be, is dangerous.

But I would agree I should have clarified the post with the maxes and what it
can and cannot be used for.

The image in post #10 shows that the OP purchased a CD4017B, not a CD74HC4017.

Yes, we all agree to the obvious.

The OP has stated solution must be additive, no mod of original board other than
add circuits to drive additional LEDs. The ULN2803 and 2N7000 approaches right
direction but specs at 25C and incomplete specs not helpfull.
 
no mod of original board other than
add circuits to drive additional LEDs.
What? What "original board" are you talking about?
 
Post #9 ? Diorama already made/designed..... I took this to be original base board
of system.
A diorama is not an electronic device.
 
Ok, try this... but, when rediculous speed comes on, the light speed sign will dim a bit.

When the ludicrous speed sign comes on, the rediculous sign will dim a bit (but the light speed sign will NOT dim more).

You can make the dimming less severe by using a higher voltage for your supply (6 or 7.5v). I don't know how noticeable it will be but it may even be kind of nice to have them toned down

Note, some traces moved but I circled the key changes. Just diodes need to be added.

View attachment 149823

Ok, try this... but, when rediculous speed comes on, the light speed sign will dim a bit.

When the ludicrous speed sign comes on, the rediculous sign will dim a bit (but the light speed sign will NOT dim more).

You can make the dimming less severe by using a higher voltage for your supply (6 or 7.5v). I don't know how noticeable it will be but it may even be kind of nice to have them toned down

Note, some traces moved but I circled the key changes. Just diodes need to be added.

View attachment 149823
When I made up this circuit, I did not include extra diodes in line with the LED's as this schematic showed. As the LED's were diodes already.
Since I'm not familiar with these types of circuits, can you explain the purpose of the diodes in the original schematic and what the additional diodes will do?
Also, any certain value diode I need to use?
 
A diorama is not an electronic device.
And a board is not a board unless its made out of wood....or other hard material.....


Do you detect a scintilla of electronics being discussed in this thread from OP post -

The Diorama has already been made. Modification of LCD signs would require redoing the Diorama which would be costly.
Adding LEDs to the transparent signs already made is less invasive and cheaper.

That they are somehow intimately related ? Or are you just trying to
clarify for me the glaring obvious the Diorama has electronics as part
of its solution ?

ZipZapSigh
 
Either of these boards will do, just chk the # GPIO is all you need. Arduino Nano or
Arduino UNO should suffice.

You install Arduino IDE on your system, its used by the block languages to do the
actual part programming. And then of course the block language you choose to
use. The good news is once you learn one block language the rest of them 90%
similair in programing and use.

The block languages quite a few variants, most free. If you go with mBlock


Download the PC version so your design and work all local on your PC.

Youtube has quite a few videos showing programing and projects.

One issue using Arduino boards, some of the cheapies from China dont have
the bootloader setup in the board processor. So make sure the vendor can tell
you it has the bootloader installed. Start by plugging usb cable between board
and PC. Arduino boards have two different USB interface chips used so if board
driver is asked for, just ID the chip on the board and web find the driver and do
a driver installation. Most of the time its all auto install but occasionally you have to
do this.

At the most basic level you start with these 2 blocks and add your code.

1747485954596.png


When you code in mBlock it has a tab that will show you the Arduino C/C++ code it generates,
very handy for overview.

Code added between the above 2 blocks is run once, generally you init port pins and variables there.

And then code in forever loop runs forever in a loop. Similar to Arduino set() and loop() layout.

Note for future work where you might want to use ATTINY85 type part family (8 pin dip for the 85)
you can program your board to be an ISP and use it for programing them. Simple to do, many web
examples of doing this. Then once you finish doing that revert the board to standard Arduino boot
loader, all done with Arduino IDE. Simple and again web has many posts on this.

The Arduino site is a great forum for all things Arduino.


Regards, Dana.
 
Last edited:
I think that this circuit is close to what you want. See the timing diagram for what the three LEDs will do.

Transistors Q1-Q3 are used to drive your LEDs better than what the CD4017 can do directly. Their collector pins are connected to the negative side of your LEDs. The actual value of resistors R10-R12 are determined by the LED specs.

Capacitor C2 should be connected electrically close to the power pins of U2.

1747884875128.png
 
The problem with #32 and other posts is that Light and Ridiculous should stay on continuously once illuminated. One way to do this is to use a shift register instead of a counter, with the third output enabling an oscillator for Ludicrous.

Fun fact: the CD4017 used in several posts is actually a shift register internally, not a counter. That is why it is called Johnson counter instead of a counter or divider. The CD4060 I proposed using will not work without more output gating, but the complete light pattern was not clear when I posted.

ak
 
Last edited:
I think this will do what you want.

At power on:
1. Light speed on and remains on.
2. Rediculus speed on 2s later and remains on.
3. Ludicrus speed on 2s after Rediculus speed, flashes 6 times, then resets the circuit.
4. Cycle repeats.

I've used 74HC273 instead of CD4017 because I could make the outputs latch.
I don't know the forward current of the LEDs you are using, so I've used 2V,20mA Leds.
Once you post the actual values, we can make adjustments.

1747945303041.png


1747945350377.png
 
Last edited:

Latest threads

New Articles From Microcontroller Tips

Back
Top