FLASHING BULB CIRCUIT WANTED.....

Oct 19, 2009 48 Replies

That's not a solution, it's a label. It's like asking "how would you cook a steak" and getting the answer "with heat". Do you _really_ believe that the OP can, or wants to, design a pseudo-random binary sequence generator?

A solution should include a schematic, parts selection and description, a la John Fields' post. It serves as an excellent model of what a solution should contain, whether or not you agree with the specifics.

Is the pseudo-random binary sequence generator you have in mind too complex to draw/describe/post here?

Ed

I wonder if the old NE2 RC oscillators did that. I'm almost curious enough to get 25 NE2's and caps and R's and make a ~90V supply. But I don't know how I would be able to look at 25 neons blinking and come away with the impression that they are random or not.

+90 -----+----------}}---+ | | [R] [R] | | +-----+ +-----+ | | | | [Ne2] [C] [Ne2] [C] | | | | Gnd -----+-----+----}}---+-----+

With high R (say 10 meg) and a stiff source, I guess that would be the equivalent of phenominal Vdd filtering.

That leads to the next thought - if the above gave the appearance of randomness that the OP needs, how could it be interfaced to incandescant drivers? Maybe phototransistors?

Ed

Here\'s what I mean: news:iqprd5ppfl3avoqk1b25k13bdk3encpu2h@4ax.com Run the executable to get an idea of what your circuit\'s output would look like.

[snip mis-attributed quotation]

I recall a similar NE2 multivibrator:

+90 -----+---------------+ | | [R] [R] | | +-----[C}-------+ | | [Ne2] [Ne2] | | GND -----+---------------+

(Note the change in capacitor position. Once upon a time I took one of those plastic gum-drop trees and wired it up with a few hundred NE2's in that configuration... making a "twinkling" table-top Christmas tree. Powered by a 90V "B" battery :-)

I vaguely remember a string of NE2's series connected like that, called (IIRC) a "foo counter"... some with a wild-sounding audio output ;-) ...Jim Thompson

| James E.Thompson, CTO | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | Cranky Old Git With Engineering Mind Faster Than a Speeding Prissy

On Mon, 19 Oct 2009 16:02:33 -0700 (PDT), Bill Sloman wrote:

--- Version 4 SHEET 1 1012 748 WIRE 288 -704 0 -704 WIRE 368 -704 288 -704 WIRE 544 -704 432 -704 WIRE -192 -592 -368 -592 WIRE 64 -592 -112 -592 WIRE 288 -592 288 -704 WIRE 288 -592 256 -592 WIRE 768 -528 608 -528 WIRE -128 -512 -240 -512 WIRE 64 -496 32 -496 WIRE 288 -496 256 -496 WIRE 896 -480 656 -480 WIRE -128 -464 -128 -512 WIRE 288 -432 288 -496 WIRE 768 -416 768 -528 WIRE 656 -368 656 -480 WIRE 688 -368 656 -368 WIRE 960 -368 848 -368 WIRE -128 -320 -128 -400 WIRE 0 -320 0 -704 WIRE 0 -320 -128 -320 WIRE 192 -320 0 -320 WIRE 288 -320 288 -352 WIRE 288 -320 256 -320 WIRE 448 -320 288 -320 WIRE 544 -320 544 -704 WIRE 544 -320 512 -320 WIRE 688 -320 544 -320 WIRE 896 -320 896 -480 WIRE 896 -320 864 -320 WIRE -368 -304 -368 -592 WIRE -240 -304 -240 -512 WIRE -128 -304 -128 -320 WIRE -368 -176 -368 -224 WIRE -240 -176 -240 -224 WIRE -240 -176 -368 -176 WIRE -128 -176 -128 -240 WIRE -128 -176 -240 -176 WIRE 32 -176 32 -496 WIRE 32 -176 -128 -176 WIRE 608 -176 608 -528 WIRE 608 -176 32 -176 WIRE 768 -176 768 -272 WIRE 768 -176 608 -176 WIRE -368 -128 -368 -176 WIRE 592 -48 128 -48 WIRE 176 32 -224 32 WIRE 496 32 400 32 WIRE 592 32 592 -48 WIRE -336 96 -368 96 WIRE -112 96 -256 96 WIRE 128 96 128 -48 WIRE 128 96 80 96 WIRE 464 96 400 96 WIRE 128 160 80 160 WIRE 176 160 128 160 WIRE 592 160 592 112 WIRE 592 160 400 160 WIRE -112 192 -144 192 WIRE 592 192 592 160 WIRE 432 224 400 224 WIRE -224 288 -224 32 WIRE 432 288 432 224 WIRE 432 288 -224 288 WIRE 128 320 128 160 WIRE 464 320 464 96 WIRE 464 320 128 320 WIRE 592 320 592 272 WIRE -368 368 -368 96 WIRE -224 368 -224 288 WIRE 128 384 128 320 WIRE -368 464 -368 448 WIRE -224 464 -224 448 WIRE -224 464 -368 464 WIRE -144 464 -144 192 WIRE -144 464 -224 464 WIRE 128 464 128 448 WIRE 128 464 -144 464 WIRE 496 464 496 32 WIRE 496 464 128 464 WIRE 592 464 592 384 WIRE 592 464 496 464 WIRE -368 528 -368 464 FLAG -368 528 0 FLAG -368 -128 0 SYMBOL Misc\\\\NE555 288 128 M0 SYMATTR InstName U1 SYMBOL voltage -224 352 M0 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 SYMATTR InstName V1 SYMATTR Value 5 SYMBOL res 608 16 M0 SYMATTR InstName R1 SYMATTR Value 1000 SYMBOL res 608 176 M0 WINDOW 0 -45 40 Left 0 WINDOW 3 -59 71 Left 0 SYMATTR InstName R3 SYMATTR Value 150 SYMBOL cap 144 384 M0 WINDOW 0 -33 32 Left 0 WINDOW 3 -39 58 Left 0 SYMATTR InstName C1 SYMATTR Value 1E-7 SYMBOL LED 576 320 R0 SYMATTR InstName D2 SYMATTR Value QTLP690C SYMBOL Optos\\\\MOC205 -16 160 R0 SYMATTR InstName U2 SYMBOL voltage -368 352 M0 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 WINDOW 3 24 104 Invisible 0 SYMATTR InstName V2 SYMATTR Value PULSE(0 5 0 1 .001 0) SYMBOL res -352 112 R270 WINDOW 0 32 56 VTop 0 WINDOW 3 0 56 VBottom 0 SYMATTR InstName R2 SYMATTR Value 100 SYMBOL cap 432 -720 R90 WINDOW 0 0 32 VBottom 0 WINDOW 3 32 32 VTop 0 SYMATTR InstName C2 SYMATTR Value 1e-7 SYMBOL res 304 -336 R180 WINDOW 0 36 76 Left 0 WINDOW 3 36 40 Left 0 SYMATTR InstName R4 SYMATTR Value 10k SYMBOL diode -112 -400 R180 WINDOW 0 24 72 Left 0 WINDOW 3 24 0 Left 0 SYMATTR InstName D1 SYMATTR Value 1N4148 SYMBOL diode -112 -240 R180 WINDOW 0 24 72 Left 0 WINDOW 3 24 0 Left 0 SYMATTR InstName D3 SYMATTR Value 1N4148 SYMBOL voltage -240 -320 R0 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 SYMATTR InstName V3 SYMATTR Value 5 SYMBOL voltage -368 -320 R0 WINDOW 3 24 104 Invisible 0 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 SYMATTR Value PULSE(0 5 0 1 .001 0) SYMATTR InstName V4 SYMBOL res -208 -576 R270 WINDOW 0 32 56 VTop 0 WINDOW 3 0 56 VBottom 0 SYMATTR InstName R5 SYMATTR Value 100 SYMBOL Digital\\\\inv 192 -384 R0 SYMATTR InstName A1 SYMATTR Value2 vhigh 5v trise 1e-6 tfall 1e-6 SYMBOL Digital\\\\inv 448 -384 R0 SYMATTR InstName A2 SYMATTR Value2 vhigh 5v trise 1e-6 tfall 1e-6 SYMBOL Optos\\\\PC817D 160 -544 R0 SYMATTR InstName U3 SYMBOL Digital\\\\dflop 768 -416 R0 SYMATTR InstName A3 SYMATTR Value2 vhigh 5v trise 1e-7 tfall 1e-7 TEXT -352 -152 Left 0 !.tran 1.1 uic

JF

te:

If Steve (the OP) were interested enough to ask me for details, I'd produce a circuit diagram. I'd want to know a bit more about what he wants - the power dissipation of the lamps, whether he can order his own components (including prototyping boards and a power supply) in order to give him something he can use.

Without that kind of detail, producing a more detailed solution would be a waste of time.

You don't seem to have seen anything you can undertand, which isn't quite the same thing.

I think the last time that I used one was back in 1978 - one of my friends wanted to generate tolerably narrow-band white noise to test the spectral sensitivity of the sonar her bats were using, and I used pseudo-random binary sequece generator as the basic noise source, then put together an finite impulse response filter out of resistors to band-limit it. My first filter didn't work too well - the H-P article that described the system didn't both mentioning truncation error - but the second try, with a Hamming raised cosine windowing function, worked just fine.

-- Bill Sloman, Nijmegen

e:

Clunky it might be, but it has two advantages over your solution. One is that it involves fewer components and less soldering, and the other is that it would probably give the OP the random flashing that he asked for.

Your solution (as Petrus Bitbyter pointed out) depends on having a bunch of 555 type bistables running asynchronously from a common power supply, while they are notoriously prone to self-synchronise, and you rely on component tolerance to provide for frequency differences between your 25 "independent oscillators" despite the fact that if you buy 25 nominally identical components in one batch you are very likely to get 25 componets out of the same manufacturing batch, which may differ from one another by a lot less than the guaranteed tolerance,

As dubious, clunky solutions go, yours has to be a good deal less satisfactory.

-- Bill Sloman, Nijmegen

I gave him the reference to the relevant page in "Mastering the Art of Electronics" which gives everything that he'd need, and he could always have e-mailed me - my e-mail adress is real, and does work - if he'd wanted more detail.

The OP didn't specify his level of expertise, he didn't specify the power source he wanted to use - presumably 12V but the the "12V" power supply in a car ahs a lot bigger voltage spikes than the 12V you get out of a wall-wart - he didn't specify the actual wattage of his 12V "low wattage" lamps and he didn't specify the range of frequencies he wanted his lamps to flash at.

And John Fields' solution doesn't actually specify every part - "Opto", R, Rt, and Ct leave quite a lot to the OP's judgement.

This is sci.electronics.design, not sci.electronics.basics, and my solution does strike me as being presented with sufficient detail for this group. John Fields does post more stuff on sci.electronics.basics, as you'd expect from someone who seems to want to use the venerable 555 to solve most of the electronic problems that he runs into.

Far from it. But why post a schematic when I could refer the poster to "The Art of Electronics"?

-- Bill Sloman, Nijmegen

ill flash

I just

e
d
t
a
s

Funny that you should mention that. The 7555 itself may exhibit only a miniscule switching spike, but each of yours is switching a "low- wattage" incandescent lamp between on and off. The turn-on transistion for incandescent lamps is tolerably fierce - the filament draws quite a lot more current when cold than it does when it has got up to temperature, and while the extended wiring around the lamps won't have a great deal of inductance, it will have quite a bit of mutual inductance, so the switching spikes will show up all over.

l
,

You haven't specified the optoisolator. Cheap optoisolators tend to have pretty broad tolerances on the current transfer ratio, which could create problems in a real circuit.

You post a trivial circuit and want me to analyse it?

I doubt if Steve would think so. And in general, a useful way of estimating the construction cost of a circuit is simply to count the number of pins - nodes - on the circuit diagram. On that basis, your solution isn't exactly competitive.

For your value of "properly". The OP's opinion is presumably the only one that actually counts.

A wet-back is just an illegal immigrant who can be expected to work for less than the legal minimum wage.

Do you think that the people from Mexico who are - presumably - over- represented in your illegal immigrant work force - belong to a different branch of the human race than you do?

Your calling me a "racist" doesn't say anything about my attitudes to race, but it does say a mouthful about you.

-- Bill Sloman, Nijmegen

l
,

One of your test circuits uses the Fairchild MOC205 opto-isolator which offers a current transfer ratio between 40% and 80%

formatting link

The other uses the Sharp PC817D

formatting link

which offers between 300% and 600%. Farnell stocks it, at nearly twice the price of the 80% to 160% selection (PIC817A). This does assume that the OP is able and willing to buy stuff from a broad-line distributor.

Twenty five of these at roughly a dollar each (in small quantities) don't exactly make your solution the cheapest available.

-- Bill Sloman, Nijmegen

If he wants something that approximates the non-synchronized nature of a bunch of lamps using mechanical flashers, then your approach is clearly flawed, regardless of how cheap it is.

More bullshit. Where does it say he has access to AoE, and since he started posting in the newsgroup why should he email _anyone_ for information instead of asking for it here, where we can all participate in finding a _proper_ solution for him?

And they won't with a LFSR driving the transistors/MOSFETS driving the lamps? Shielding and proper layout Bill, shielding and proper layout.

Optos like 4N25s are available on the surplus market dirt cheap. JF

I know you don't know much about this newfangled digital logic, but it is a bit easier to stop the switching transients from messing up a clocked pseudo-random binary sequence generator than it is to stop them creating mutual interference between 25 555 oscillators.

Dream on. These are decorative lights. intended to be looked at, and the wiring will be all over the place.

You may have gotten lucky there, but a stopped clock is right twice a day.

You've finally noticed?

The question is whether your circuit does offer the results he wanted. You object to the pseudo-randon binary sequence generator because some of the lights will go on and off at the same time, whch you feel would not provide the degree of randomness that you imagine he wants, but your solution is very likely to leave him with 25 nominally independent oscillators, most of which are likely to self-synchronise via the switching transients, and he's got a do a lot more soldering to put your scheme together.

-- Bill Sloman, Nijmegen

e

Why would I post a LFSR design here? This isn't sci.electronics.basics so you can refer people to the relevant chapter in "Mastering the Art of Electronics" and leave them to get on with it.

This isn't cheating anybody who has any business posting to this group. You may not appreciate this, since it seems unlikely - based on your persistent wailing - that you could follow the Horowitz and Hill exposition, but you don't really have the expertise to contribute here anyway.

-- Bill Sloman, Nijmegen

te:

Since your idea of of offering "real help" mostly seems to involve pushing the 555, which has been obsolescent for some thirty years now, and only shows up in recycled legacy designs, some would suggest that the idiocy might lie in your point of view, which is rather restricted.

-- Bill Sloman, Nijmegen

"Newfangled?" My, you _are_ late to the party...

Because this is sci.electronics.design?

Well, Bill, I\'m not sure whether "obsolescent" is the right term, since a cursory glance at various distys shows Digi-Key\'s stock of CMOS 555\'s at about 42000, Mouser\'s at 10000, Newark\'s at 3400, Future Electronics\' at 29000, and Avnet\'s at 24000, so the part seems to be still going strong. As far as viewpoints goes, I\'d say that since I embrace the 555 and use it whenever it\'s appropriate, my viewpoint is rather less restricted than yours, since you steadfastly refuse to even consider a 555 as a solution for _any_ problem and go to ridiculously expensive lengths to avoid it. JF

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required