Author Topic: why are new problems solved with the technology of 30 years ago?  (Read 7226 times)

0 Members and 1 Guest are viewing this topic.

Offline slburrisTopic starter

  • Frequent Contributor
  • **
  • Posts: 542
  • Country: us
Warning, this is a mini rant :-)

So I was reading the question and answer section of a recent electronics
magazine.  The question was about building a timer that would provide
a 2 hour pulse.  The questioner thought (correctly) that this would be
hard to do with a 555 timer.  The timing capacitor and/or resistor would
have to be huge.  Nasty problems with reliability and accuracy.

The answer proposed was to make the timing period much shorter,
add a 4000 series CMOS 12 bit counter, some logic gates to decode
the terminal count, etc.

OK, this makes sense and will work.  But this is a solution which made
sense in the 1970's!

Today, I'd say you should use an 8pin PIC or AVR micro.  It can monitor
one of its ports for the trigger, set another port active for 2 hours, count
down the timeout, then reset its output.  Simple.  It takes up no more
space than the original 555.  Sounds like a perfect application for a
PIC10F200.  If you pick the 6pin SMD package, it would take up no more
space than a through-hole resistor.  Just don't drop it in the carpet :-)

Now I'm not one of those CPU nuts who thinks everything can be replaced
with software.  There's definitely a time and a place for real hardware or
FPGAs, especially in timing critical or safety critical applications.  But
a 2 hour timer is clearly within the capabilities of a simple micro.

So then the question is, why is this not a proposed solution?  Let's look
at a few possibilities.

1)  High barrier to entry

Well, you do have to buy or build a programmer, but the chips themselves
are cheap.  But once you have a programmer, you have opened up lots of
other applications to you.

2)  Reader not expected to be able to do simple firmware development

I guess this depends on what you consider the audience for your magazine.
I find it hard to believe that anyone getting into electronics these days
wouldn't get into at least simple programming of micros.   Am I wrong about
this?  Is there still such a big divide between hardware and software?
How can you be into electronics these days and ignore the rise of the
microcontroller?

3)  Timer needs to work on > 5V (or 3.3V)

This isn't stated in the question/answer, but you potentially have more
voltage choices if you stick with the 555 and 4000 CMOS logic.  Some
micros today only run at 3.3V or less.

4)  Answerer is from pre-micro days

Depending on how old the person who wrote the answer is, he might
be of the generation of jellybean logic and those solutions might come
more naturally.  OK, but then should you be writing for a modern magazine?

OK, mini-rant done for this morning, thanks for listening!

Scott
 

Offline david77

  • Frequent Contributor
  • **
  • Posts: 934
  • Country: de
Re: why are new problems solved with the technology of 30 years ago?
« Reply #1 on: June 27, 2010, 04:33:34 pm »
I think you are right, the solution offered is not the most modern.
But: Some people have difficulty programming micros, not only do they not have the equipment but also lack the knowledge of how to write the actual code.
I myself would probably use the same way. Just cobble something together from the gazillion of 74xx and 40xx that are lying around. I'm one of the people who have trouble writing code, I do have a programmer for most PIC and AVR's but still I suck at software. So seen from that point of view it is easier and quicker to wire up some counter in hardware.

Another but: I'm a hobbyist. I don't do this professionally. I imgaine someone who does electronics for a living and has to make money (money=time) out of it would go the other way. That's the professional who's absolutely familiar with his micros and programing languages.

I don't know, but I imagine the answer given in the magazine was aimed at a hobbyist. A professional or somewhat advanced hobbyist wouldn't have to ask in the first place.

In summary I think the answer given was OK. It doesn't hurt if you understand your basic logic gates and stuff.

David
 

alm

  • Guest
Re: why are new problems solved with the technology of 30 years ago?
« Reply #2 on: June 27, 2010, 04:46:20 pm »
An issue with micro-controllers is that they have more failure modes: you might have a software bug, or a silicon bug involving timers. It's much less likely that a simple CMOS divider has any silicon bugs. The power usage could also be lower for discrete logic (although I doubt that the old 4000 series is). In commercial settings, writing software, programming the micro in production and testing all cost money. But I agree that using a bunch of logic IC's is old fashioned, anything requiring more than a few gates should be replaced by something like a micro or some sort of programmable logic in my opinion.

The person writing the answer probably wanted to stay in the same area as the original question. Going from a 555 to CMOS logic is a much smaller step than from a 555 to some tiny micro.
 

Offline slburrisTopic starter

  • Frequent Contributor
  • **
  • Posts: 542
  • Country: us
Re: why are new problems solved with the technology of 30 years ago?
« Reply #3 on: June 27, 2010, 04:59:35 pm »
I guess then I would like to have seen a statement something to the
effect that as your expertise grows, you should consider redoing
the timer with just a tiny micro.

Maybe I'm expecting too much for a range of ideas to be presented.
But how are people going to grow if they aren't exposed to ideas
beyond their current technical level?

Scott
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19284
  • Country: gb
  • 0999
Re: why are new problems solved with the technology of 30 years ago?
« Reply #4 on: June 27, 2010, 05:30:53 pm »
I would've chosen the CD4060 because it needs no programming and both the oscillator and timer are on the same IC.

I'm pretty sure that old CMOS logic as much, or less power than an MCU which is just constructed from a newer form of CMOS.

I need to get into PICs, I built a programmer a couple of years ago but I've not managed to get it working for various reasons. I'm tempted to buy a USB programmer but I think I'll give it one more go.
 

Online Simon

  • Global Moderator
  • *****
  • Posts: 17720
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: why are new problems solved with the technology of 30 years ago?
« Reply #5 on: June 27, 2010, 05:47:52 pm »
I think we are coming to a sad time where nobody will know how to do something unless they use an MCU, this is sad because it means that people will no longer have an understanding of basic electronics and will loose the practicality of design and design tricks. I can say this after comparing something i am trying to replace for a mates can with my yes unfinished version, I have had to implement so many things and even using an MCU has not made it care free because of basic circuit solutions and issues. The original solution ? it was a couple of "relays" with a clever combination of windings, it is so simple but provides such intricate functions as voltage and current control and temperature correction, amazing for a couple of relays, and to replace that I'm not even done yet !
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19284
  • Country: gb
  • 0999
Re: why are new problems solved with the technology of 30 years ago?
« Reply #6 on: June 27, 2010, 07:54:09 pm »
Analogue circuits will still need op-amps which requires some knowledge of hardware.

MCUs aren't always cheaper, my local supplier sells the CMOS 4060 for much less than any PICs. Fair enough you do need more external components for the 4060 but it's only two resistors and one capacitor but it still works out less than the PIC.

http://www.rapidonline.com/sku/Electronic-Components/Integrated-Circuits/Logic/4000-Series-CMOS-logic-family/77018/83-0390
http://www.rapidonline.com/Electronic-Components/Integrated-Circuits/PIC-Microcontrollers/PIC12F-PIC16F-8-bit-Microcontrollers/72928
 

Online Simon

  • Global Moderator
  • *****
  • Posts: 17720
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: why are new problems solved with the technology of 30 years ago?
« Reply #7 on: June 27, 2010, 08:07:30 pm »
yep, there is so much you can do with op amps that a lot of knowlege about what you can do with op amps will be lost to most people s they will implement it in hardware, I could have done my project with a dual op amp and a dual comparator, I did it with an MCU, it was more flexible because i can change software parameters instead of parts
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 37626
  • Country: au
    • EEVblog
Re: why are new problems solved with the technology of 30 years ago?
« Reply #8 on: June 27, 2010, 08:59:03 pm »
In addition to all the above, some of the electronics magazines are (or were) very reluctant to offer microcontroller solutions because they took away from the "electronics" aspects of the hobby, and it can take more column space to publish the full solution.
i.e. if you present a circuit using junkbox parts then all you need is the schematic and a small explanation and the article is complete and the reader can learn something.
But it can be argued a micro solution is not complete unless you publish the full source code in the article, along with operational flow charts, heavily commented, and/or explain how the program works, options for programming the chip etc etc.

Dave.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19284
  • Country: gb
  • 0999
Re: why are new problems solved with the technology of 30 years ago?
« Reply #9 on: June 27, 2010, 09:35:05 pm »
yep, there is so much you can do with op amps that a lot of knowlege about what you can do with op amps will be lost to most people s they will implement it in hardware, I could have done my project with a dual op amp and a dual comparator, I did it with an MCU, it was more flexible because i can change software parameters instead of parts
From memory your design didn't need any op-amps, just comparators and only used a couple of op-amps for convenience's sake.

Now try to build a circuit which uses a microphone to trigger an event when the sound level exceeds a certain level; amplifying the 10mV signal from the mic to a usable level for an ADC isn't going to happen without an op-amp.

I'm often surprised at the ICs I've found inside consumer products, for example, I have an electric foot warmer which has an internal timer. The internal thermal fuse went so I looked at the controller board to see if there was anything wrong there and to my surprise, I found a CD4541 timer and an LM324 quad op-amp.
 

Online Simon

  • Global Moderator
  • *****
  • Posts: 17720
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: why are new problems solved with the technology of 30 years ago?
« Reply #10 on: June 27, 2010, 10:05:17 pm »
cost often dictates part choices, my design required a differential opamp setup to sense the current in a 0.001 ohm resistor, I replaced that too with a premade high side current sensing chip but the whole thing could have been done with two opamp stages (diff amp + further amplification) and two comparators, onefor current and one for voltage control, it would have meant that I'd have to swap parts instead of update the software.
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 8951
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: why are new problems solved with the technology of 30 years ago?
« Reply #11 on: June 27, 2010, 10:26:18 pm »
Aren't the modern 4000 logic chips better than the early ones? For simple applications, hard wired logic is often the way to go.

If you really want to look at some outdated technology in a modern device, take a look at HVAC. A recent (5 years old or so) A/C I repaired was very simple in terms of electronics. No semiconductors at all in the outdoor unit and the only IC in the indoor unit is a 339 for the fan timer. A few dozen dollars worth of parts for a compressor inverter would no doubt significantly increase efficiency.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline saturation

  • Super Contributor
  • ***
  • Posts: 4787
  • Country: us
  • Doveryai, no proveryai
    • NIST
Re: why are new problems solved with the technology of 30 years ago?
« Reply #12 on: June 28, 2010, 11:27:46 am »
A designs if driven by its parameters, unless you specify what you need explicitly you just overdesigning it:

What is the accuracy of the clock?  What type of pulse?

TTM?  Is this just a single custom circuit? Can we get it ASAP with whatever tools the designer knows best and has at hand, if you know uC and another is all analog, then speed to finish the prototype determines the winner

Design for lowest production cost

Design for optimum power consumption, line powered, battery ?

Design for reliability, form factor, size and weight or MILSPEC abuse

etc.,


If for example we need a clock to send any pulse width after a timed interval, I'll just buy a preassembled clock, you can get them for $2 delivered from eBay, or save time and go to Chinatown and get one with 'Hello Kitty' on it, with an LCD screen and controls, then modify it,  because mass produced it will cost LESS than if I buy all the parts individually and make one.  Learning a circuit technique is one thing, making a solution for a client is another.

You will likely need to modify the alarm circuit to change the oscillator output to a single shot pulse, but if a pulse train is OK, then you solve the problem.





« Last Edit: June 28, 2010, 11:40:29 am by saturation »
Best Wishes,

 Saturation
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19284
  • Country: gb
  • 0999
Re: why are new problems solved with the technology of 30 years ago?
« Reply #13 on: June 28, 2010, 12:02:30 pm »
You will likely need to modify the alarm circuit to change the oscillator output to a single shot pulse.

How would you do that?

An MCU?

Or would it be quicker and easier to use a logic IC?

Does the clock use two button cells or one? It's hard to tell from a picture, it looks like two but it could be one.

I've not seen an MCU which will run down to 1V, although I could be wrong - I admit I don't know much about this.

To me, the most sensible option would be to use a low voltage CMOS logic IC to make a monostable which gives a pulse when the alarm sounds.

There are plenty of applications where an MCU would be overkill and would expensive, i.e. if you just want alternate flashing LEDs, threre's no point in using an MCU. Sometimes electronics are not needed at all, for example bimetal switches are still pretty common when precise temperature control is not needed.
« Last Edit: June 28, 2010, 12:06:44 pm by Hero999 »
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 8951
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: why are new problems solved with the technology of 30 years ago?
« Reply #14 on: June 28, 2010, 01:21:25 pm »
I've not seen an MCU which will run down to 1V, although I could be wrong - I admit I don't know much about this.
http://atmel.com/dyn/products/product_card_v2.asp?part_id=4523
And every cheap calculator has a microcontroller that runs from one 1.5v battery.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19284
  • Country: gb
  • 0999
Re: why are new problems solved with the technology of 30 years ago?
« Reply #15 on: June 28, 2010, 01:53:31 pm »
I've not seen an MCU which will run down to 1V, although I could be wrong - I admit I don't know much about this.
http://atmel.com/dyn/products/product_card_v2.asp?part_id=4523
And every cheap calculator has a microcontroller that runs from one 1.5v battery.
I've seen that before, it uses a boost converter which is cheating.

I've seen plenty of calculators, watches and cheap electronic games which run off 1.5V and don't have a boost converter, they probably don't use an MCU but an ASIC consisting low voltage CMOS gates.
 

Offline saturation

  • Super Contributor
  • ***
  • Posts: 4787
  • Country: us
  • Doveryai, no proveryai
    • NIST
Re: why are new problems solved with the technology of 30 years ago?
« Reply #16 on: June 28, 2010, 07:28:12 pm »
If you use the Chinese clock I showed, a CMOS quad NOR gate works from 3-18V.  I'm not sure the design need is a 2 hour long pulse or a pulse sent after a 2 hour period. 

For a pulse after 2 hours:

Make an RS latch from 2 gates to convert a pulse train from the alarm into a single latched output at Q, fed at S.  Tie R & S inputs to ground with a 1Meg Ohm resistor to insure the inputs are initialized 0 on power up.



With the last 2 gates make a single shot multivibrator fed by Q.  Feed output U2 to the RESET input via a capacitor, and use the RESET  input RC time constant to set a delay > 30 seconds, or U2 output will pulse train for ~ the duration of the alarm.




You will likely need to modify the alarm circuit to change the oscillator output to a single shot pulse.

How would you do that?


An MCU?

Or would it be quicker and easier to use a logic IC?

Does the clock use two button cells or one? It's hard to tell from a picture, it looks like two but it could be one.

I've not seen an MCU which will run down to 1V, although I could be wrong - I admit I don't know much about this.

To me, the most sensible option would be to use a low voltage CMOS logic IC to make a monostable which gives a pulse when the alarm sounds.

There are plenty of applications where an MCU would be overkill and would expensive, i.e. if you just want alternate flashing LEDs, threre's no point in using an MCU. Sometimes electronics are not needed at all, for example bimetal switches are still pretty common when precise temperature control is not needed.
« Last Edit: June 28, 2010, 11:01:27 pm by saturation »
Best Wishes,

 Saturation
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19284
  • Country: gb
  • 0999
Re: why are new problems solved with the technology of 30 years ago?
« Reply #17 on: June 28, 2010, 10:57:36 pm »
If you use the Chinese clock I showed, I know I can get it to work with a CD quad NOR gate which works from 3-18V.

Yes, that's the kind of thing I would suggest.

You need to consider the minimum voltage, for example, if they're two cells a you need a CMOS IC which will work down to 2V so the HC series is best, if you want it to work off a single cell, you need low voltage CMOS gates i.e the 74LV02 which will work down to 1V.
http://www.datasheetcatalog.org/datasheet/philips/74lv02.pdf

 

Offline saturation

  • Super Contributor
  • ***
  • Posts: 4787
  • Country: us
  • Doveryai, no proveryai
    • NIST
Re: why are new problems solved with the technology of 30 years ago?
« Reply #18 on: June 28, 2010, 11:09:11 pm »
Yes, that family is a better choice.  As for using a MCU for this, you can do it too, its a question of which is faster to build at the time, and I guess which will fit that clock case ;D  The PIC family MCU will operate to 2V.



If you use the Chinese clock I showed, I know I can get it to work with a CD quad NOR gate which works from 3-18V.

Yes, that's the kind of thing I would suggest.

You need to consider the minimum voltage, for example, if they're two cells a you need a CMOS IC which will work down to 2V so the HC series is best, if you want it to work off a single cell, you need low voltage CMOS gates i.e the 74LV02 which will work down to 1V.
http://www.datasheetcatalog.org/datasheet/philips/74lv02.pdf


« Last Edit: June 28, 2010, 11:13:18 pm by saturation »
Best Wishes,

 Saturation
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf