Author Topic: Need more logic ICs, what ones ?  (Read 4189 times)

0 Members and 1 Guest are viewing this topic.

Offline lordvader88Topic starter

  • Frequent Contributor
  • **
  • !
  • Posts: 935
  • Country: ca
Need more logic ICs, what ones ?
« on: February 27, 2018, 01:52:24 am »
I have a few types of common logic ICs, barely played with them yet. Soon I'll have a bunch of DIP switches, waiting til then.

I have 2-4 of each
cd4001be
cd4011be
cd4007
cd4017be
hcf4024be
cd4026be
cd4051be
cd4081bp

cd40106B
sn74hc14n
sn74hc595n

and some
555
lm7555


What are some more common ones u folks don't see on the list ? I don't know or remember what most of these really do.

I need some shift registers, divider/counters?, don't think I have 7-segment display chips

I just want more so that when I want to make something common/average hobby stuff, I don't have to wait months.

So recommend some please (and order pizza too please)
« Last Edit: February 27, 2018, 01:54:01 am by lordvader88 »
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: Need more logic ICs, what ones ?
« Reply #1 on: February 27, 2018, 02:59:55 am »
Analog switches like the 4051/52/53 and the 74HC4051/52/53 are handy to have. I agree with Wilfred - I wouldn't bother stocking logic chips in general.

Buy some Arduino compatible boards instead like:

https://www.aliexpress.com/item/USB-Nano-V3-0-ATmega328-16M-5V-Micro-controller-CH340G-board-For-Arduino/32664369950.html
https://www.aliexpress.com/item/WEMOS-D1-Mini-Pro-16M-Bytes-External-Antenna-Connector-ESP8266-WIFI-IoT-Board/32761915000.html
https://www.aliexpress.com/item/Mini-USB-ATmega32U4-Pro-Micro-5V-16MHz-Board-Module-ATMega-32U4-Controller-Pro-Micro-Replace-Pro/32838537588.html
https://www.aliexpress.com/item/1pcs-STM32F103C8T6-ARM-STM32-Minimum-System-Development-Board-Module-For-arduino/32721357650.html

All these boards are cheap enough to be built into projects.

Once you start using micros, you do not need to use that much logic ICs unless you are fixing pinball machines or something like that. I only buy logic ICs when I need to use them.
 

Offline lordvader88Topic starter

  • Frequent Contributor
  • **
  • !
  • Posts: 935
  • Country: ca
Re: Need more logic ICs, what ones ?
« Reply #2 on: February 27, 2018, 03:38:11 am »

I just want more so that when I want to make something common/average hobby stuff, I don't have to wait months.


I think it is a mistake to buy stuff just in case it will be useful to have on hand. 30 years ago pre-internet it was different. Have two or three projects in mind and work on one while waiting for parts for another.

Buy a few extra of the parts your projects need. At least that way you are likely to accumulate parts for the type of projects you tend to do.

If you hunt down a tube of something really cheap then yeah grab it. I like a bargain. But in the long run you'll spend less if you just buy what you need, when you need it. 99% of what you buy you will never use and your family will have to dispose of it when you die.

Trust me, no-one here will be game enough to say they got it down to 98%.
No, the more parts the better, especially since it takes 2-3 months for stuff to get here.
 

Offline SkyMaster

  • Frequent Contributor
  • **
  • Posts: 383
  • Country: ca
Re: Need more logic ICs, what ones ?
« Reply #3 on: February 27, 2018, 03:51:58 am »
No, the more parts the better, especially since it takes 2-3 months for stuff to get here.

It is 1-2 day(s) for stuff to get here when buying from https://ca.mouser.com/

 ;)
 

Offline agehall

  • Frequent Contributor
  • **
  • Posts: 383
  • Country: se
Re: Need more logic ICs, what ones ?
« Reply #4 on: February 27, 2018, 07:57:22 am »
Get a few CPLD (or small FPGA) boards and you don't need much else for prototyping.
 

Online paulca

  • Super Contributor
  • ***
  • Posts: 4034
  • Country: gb
Re: Need more logic ICs, what ones ?
« Reply #5 on: February 27, 2018, 08:05:44 am »
I bought a bunch of 74* logic chips when I just started out.  I was watching Ben Eaters videos.

ORs, NORs, ANDs, NANDs, XORs, Inverters etc.  I think the only ones I have used where the XORs for latches.  However the ones I actually ended up wanting where none of the above. 

595 shift registers, ripple counters and clock dividers are probably more useful.

As stated by others, a single Arduino Nano can do the work of several dozen of these chips and the logic can be tailored to whatever you need with a few lines of code.

Given that, shift registers, multiplexers, coders/decoders and counters etc. will compliment the Arduino and save you IO pins.
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline LeoTech

  • Regular Contributor
  • *
  • Posts: 75
  • Country: dk
  • High School student with a passion for electronics
Re: Need more logic ICs, what ones ?
« Reply #6 on: February 27, 2018, 10:40:40 am »
Although you guys a mostly right on the fact that in today's world it is no longer necessary to stock all parts. But...

for the average hobbyists who are not focusing on making a project ready for production, but instead for fun and to learn, to later be able to design real products, it still makes sense to stock of few of each common part.

Having these common parts at hand makes it easier to learn through practical examples and "hey" if it is fun for you to wire basic logic chips up on a breadboard, then please do. 

So, please stop disencouraging people to stock up on common parts and bits, if they like rapid prototyping and tinkering. And just want to do it at a hobbyist level, and not as a professional EE for a company.

Not everyone is designing products and buys in QTY of thousand.

I myself usually order less than 10 of each part for prototyping, learning and experimenting.

Leo



High School student with a passion and interest in electronics, both analog and digital!
 
The following users thanked this post: Wimberleytech

Online paulca

  • Super Contributor
  • ***
  • Posts: 4034
  • Country: gb
Re: Need more logic ICs, what ones ?
« Reply #7 on: February 27, 2018, 11:04:59 am »
While I agree with your sentiment, the problem is that 74HC/LS logic chips are not common components these days.  A single $3 microcontroller will do the job of dozens of them.

So the only reason to stock a bunch of these chips is if you specifically want to play with discrete logic IC circuits, for purely academic or "fun" reasons.  One of those reasons might be to learn how computers work, registers, buses, memory etc. "used" to be based on these chips.  Ala Ben Eater and Jullian Ilett on youtube.

If you are just buying the keep in stock for that time when you think, "Oh, I need a set of 4 AND gates", those times are so rare if you have an MCU that it's not worth stocking them.

That said, you can buy batches of 5 ICs for about $3 from Chinese sellers on ebay.  They tend not to mix them.  So you would need to buy about 20 or 30 different versions to get a good range of them, costing $60-90 for chips you will probably never really use.
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline LeoTech

  • Regular Contributor
  • *
  • Posts: 75
  • Country: dk
  • High School student with a passion for electronics
Re: Need more logic ICs, what ones ?
« Reply #8 on: February 27, 2018, 11:17:40 am »
Exactly,

Those chips are indeed hard to get and most likely not economical worth it these days.

But, as you said yourself, there still has to be room for people like Ben Eater, and this forum should not discourage these people! The road is the goal!

On the accounts of FPGA, these are also not suited for small hobbyists and thinkers as they require good soldering skills and equipment, and the ability to write hdl and a programmer for these FPGAs, and the required knowledge.

But MCUs definitely!

Leo

High School student with a passion and interest in electronics, both analog and digital!
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: Need more logic ICs, what ones ?
« Reply #9 on: February 27, 2018, 11:54:06 am »
Think about doing a couple of videos on PSOC where not only are many of those
logic chips effectively inside the PSOC, but you can, over time, learn how to
create and roll your own.

http://www.cypress.com/training/psoc-101-video-tutorial-series-how-use-arm-cortex-m0-based-psoc-4

From simple logic point of view most of these only need one line of code to start them
inside the chip. Then over time you can start learning a little C where you use the much
greater potential of PSOC. Its got a lot of analog inside as well as tons of digital. There
are many project examples from simple to ones that fully utilize the PSOC.

You can get started for $ 10 with this board. There is also a $ 25 board, "PSOC Pioneer",
that is arduino footprint compatible (not code compatible), but I recommend the
$ 10 board first as it the "complete high end" part on the board.





http://www.cypress.com/documentation/development-kitsboards/cy8ckit-059-psoc-5lp-prototyping-kit-onboard-programmer-and


As with all CMOS ICs you have to observe input/output signal voltage/current limitations.
In other words simply all inputs positive and ranging from ground to the Vdd supply voltage,
in the case of PSOC either 0 - 5V or o - 3.3.

Regards, Dana.
« Last Edit: February 27, 2018, 12:01:56 pm by danadak »
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline newbrain

  • Super Contributor
  • ***
  • Posts: 1719
  • Country: se
Re: Need more logic ICs, what ones ?
« Reply #10 on: February 27, 2018, 12:24:20 pm »
Many, many years ago I used to buy extra logic ICs...I still have a number of them (from plain TTL, to LS and S, to HC and HCT and some AC).

For many 6502/68HC11 SBCs I built in the past, I eschewed sparse logic for a poor man approach to programmable devices: I used a fast enough flash as a general purpose LUT to generate all the needed decoding and enable signal.

Nowadays, when I need a logic function I use a cheap and simple MCU (if speed is not of concern), ATtiny or similar - I'm not PICky.
If higher speed or prototyping is needed, I often go for the PSoC path...moreover so when some processing is also in the picture.
The PSoC creator schematic entry is not top notch but quite usable, so you can just layout your gates and pins, and change them as needed without turning on your soldering iron (Bob Pease might now be rolling in his grave :'()

Only if the function is very simple, I buy logic ICs, though sometimes, after prototyping on a PSoC, I go back to a physical implementation relying on the generosity of my left over IC collection.

So, to conclude this boring tirade :blah: :blah: :blah::
Personally, I would not invest in stockpiling glue logic, especially if bought from Aliexpress/eBay or similar (as you say it take months to receive an order).


Nandemo wa shiranai wa yo, shitteru koto dake.
 

Online rstofer

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: us
Re: Need more logic ICs, what ones ?
« Reply #11 on: February 27, 2018, 03:09:42 pm »
Here is one list, there are others on Google

https://en.wikipedia.org/wiki/List_of_7400_series_integrated_circuits

The modern equivalent of a bin full of chips is an FPGA.  It's pretty easy to find one with a million+ gate equivalents.

It is just easier to write a line of code to create a 32 bit register than it is to populate a board with 4 sockets and wire-wrap them up.  At this point, I think I am out of the wire-wrap business completely.

Look at the datasheet for a 7474 D-Flop.  The fastest it can run is 25 MHz (33 MHz for the 74LS74).  It is dead simple to run logic in an FPGA at over 100 MHz and 200 MHz isn't really a stretch.  With clever coding it might be possible to go much faster.  Mostly I run my stuff at 50 or 100 MHz.  It depends on which crystal is on the board.  If necessary, I can use the internal PLL to get whatever speed I need.

http://www.ti.com/lit/ds/symlink/sn74ls74a.pdf
 

Online paulca

  • Super Contributor
  • ***
  • Posts: 4034
  • Country: gb
Re: Need more logic ICs, what ones ?
« Reply #12 on: February 27, 2018, 03:12:33 pm »
Most beginners will be running their logic chip experiments at 1Hz or less.  Anything over 10Hz the LEDs just all light up :)
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline cowasaki

  • Frequent Contributor
  • **
  • Posts: 605
  • Country: gb
Re: Need more logic ICs, what ones ?
« Reply #13 on: February 27, 2018, 04:20:34 pm »
What I do is when I find that I am buying the same IC a few times I will often order maybe 10 from China.
 

Offline Vtile

  • Super Contributor
  • ***
  • Posts: 1144
  • Country: fi
  • Ingineer
Re: Need more logic ICs, what ones ?
« Reply #14 on: February 27, 2018, 05:12:10 pm »
Stock only diodes and resistors.  >:D

 
The following users thanked this post: newbrain

Offline eev_carl

  • Regular Contributor
  • *
  • Posts: 224
  • Country: us
Re: Need more logic ICs, what ones ?
« Reply #15 on: February 27, 2018, 06:55:33 pm »
You might find an older schematic that uses gates.  I'm building a model railroad flasher with 4 NANDs.  I know I can use a microcontroller, but then again, I don't even have a model train.
 

Online jmelson

  • Super Contributor
  • ***
  • Posts: 2765
  • Country: us
Re: Need more logic ICs, what ones ?
« Reply #16 on: February 27, 2018, 10:03:52 pm »
Get a few CPLD (or small FPGA) boards and you don't need much else for prototyping.
RIGHT!  Even the smallest CPLD, today, can replace maybe 20 TTL type chips.  I use the Xilinx XC95xxXL series, the bottom of the line, the 9536 costs a little over $1 in small quantities, runs off a single 3.3 V supply, and is 5V tolerant on the I/O pins.  This has 36 36-input gates that can be programmed to make up functions of up to 36 inputs.  You can make counters, registers and all the common gate functions.  It is possible enter the logic as 7400-type components in schematic form, but you will quickly find that VHDL (or Verilog if you prefer) is better.  The best part is when you find it doesn't work the way you want, you can edit a line of VHDL, recompile and load it into the chip, and try again.  Also, the simulation tools are a bit hard to learn, but being able to write a "testbench" of stimulus signals and then see what your logic will do, is a big help.  You can view internal signals of your design with the simulator.

Jon
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: Need more logic ICs, what ones ?
« Reply #17 on: February 27, 2018, 10:28:17 pm »
Here is a list, attached,  of all the components in the 5LP parts. Note
you cannot use them ALL at once, there is a limit, like FPGA, to total
resources used.

But you can use many, duplicates or different, in a design.

A resource module in PSOC is a component. The attached list shows all
the drag and drop components you can place on a schematic/part. For
example I had one user requirement that needed a lot of 16 bit PWMs, I was
able to place 16, and still leave a lot of additional resources untouched.

Note my list is a tad outdated, there are some newer components since I extracted
the attached list.

And do not forget one can design ones own custom component, either using schematic
capture or Verilog.


Regards, Dana.

Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Online rstofer

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: us
Re: Need more logic ICs, what ones ?
« Reply #18 on: February 27, 2018, 10:34:55 pm »
Stock only diodes and resistors.  >:D

You still need transistors for amplification and inversion.  Each gate in the string of logic will be dropping about 0.6V of logic level.  Pretty soon you're out of voltage.  Thus the need for amplification, either at each gate (DTL) or every couple of levels.  Inversion is a necessary function and in the very early days they got around it by using pulses that were inverted through transformers - not a volume conserving idea.

I always liked diode logic and even DTL (an upgrade from RTL).  A lot of interesting machines (including Burroughs mainframes) were built with diode logic.

I would add some 2N2222A transistors to the shopping list.  Extra credit for metal cans.  At $2+ I think I would reconsider and use the 2N3904 at $0.21 each.

For the truly talented, here is a microcomputer built entirely from MOSFETs.  I saw this project a couple of years ago at the Computer History Museum in Mountain View, CA.

https://monster6502.com/
 
The following users thanked this post: Vtile, eev_carl

Offline Vtile

  • Super Contributor
  • ***
  • Posts: 1144
  • Country: fi
  • Ingineer
Re: Need more logic ICs, what ones ?
« Reply #19 on: February 28, 2018, 07:41:40 pm »
@rstofer You are obviously correct the diode gates do need transistors as buffers. Another route is somewhat higher driving tension (a few tens of volts if small signal diodes are used), but even then the gate count would be small and would need careful potential and current analysis of the resistors involved to maintain the whole gate array at working potential levels (and rated currents).

My suggestion obviously weren't meant to be too serious advice.  ^-^

PS. One funny (and flashy) hobby project could be making some functioning circuitry with LEDs as a gate diodes, but that is way too offtopic.  ::)
« Last Edit: February 28, 2018, 07:48:44 pm by Vtile »
 

Offline Old Printer

  • Frequent Contributor
  • **
  • Posts: 747
  • Country: us
Re: Need more logic ICs, what ones ?
« Reply #20 on: February 28, 2018, 10:52:23 pm »
I also watched a bunch of videos by Ben Eater ans Derek Molloy about logic gates. I bought a bunch of 74HCxxxx's etc and I did breadboard out a few circuits, but never got to many of them. Many of the chips have never been out of the sleeve, but I have em! :) not too. Big of an investment, and the are there for that rainy weekend/month that never seems to come along. Still glad I have them though, I was not paying attention when they were the way to go. For practical projects code sure does look like the way to go, but bread boarding basic logic circuits is a good way to teach yourself the principals.
 
The following users thanked this post: eev_carl

Offline lordvader88Topic starter

  • Frequent Contributor
  • **
  • !
  • Posts: 935
  • Country: ca
Re: Need more logic ICs, what ones ?
« Reply #21 on: March 01, 2018, 05:58:23 pm »
Yeah I want to learn some basics on the breadboard with chips. I do own an Ardrino, but I'm not using that yet, plus I barely know any programming.
 

Offline Bassman59

  • Super Contributor
  • ***
  • Posts: 2501
  • Country: us
  • Yes, I do this for a living
Re: Need more logic ICs, what ones ?
« Reply #22 on: March 01, 2018, 08:10:35 pm »
Yeah I want to learn some basics on the breadboard with chips. I do own an Ardrino, but I'm not using that yet, plus I barely know any programming.

Perhaps you should start by asking, "what do I want to implement?" and then look for the parts required to do that.
 

Offline Wimberleytech

  • Super Contributor
  • ***
  • Posts: 1133
  • Country: us
Re: Need more logic ICs, what ones ?
« Reply #23 on: March 01, 2018, 09:00:33 pm »
I do not subscribe to the JIT approach for jellybean parts.  The amount of money you spend on shipping your JIT buy, can purchase a lot of stock on hand.

That is how I do it...not advising anybody else to do the same.

------update-----------
I can buy 5 cd4007 pdip on ebay, usa seller, free shipping for $2.99
I can buy 5 cd4007 pdip from mouser for $2.10 + shipping.  I am sure shipping is at least $8
A single data point.
« Last Edit: March 01, 2018, 09:16:06 pm by Wimberleytech »
 
The following users thanked this post: byoungblood

Online paulca

  • Super Contributor
  • ***
  • Posts: 4034
  • Country: gb
Re: Need more logic ICs, what ones ?
« Reply #24 on: March 01, 2018, 09:52:12 pm »
Yeah I want to learn some basics on the breadboard with chips. I do own an Ardrino, but I'm not using that yet, plus I barely know any programming.

I recommend, Ben Eater on youtube, plus Jullian Ilett.  Search for them.  Jullian just made a rather bizarre traffic light set up with a 555 timer as clock and an eprom chip using address/data multiplexing and a latch.  It's completely pointless but it's probably lot of fun to learn how epproms, addressing and latch stuff work.

Then pick a project and order some parts.  Depending on where you are you can find some free shipping suppliers, such as RS in the UK.  If not, ebay.  Shop around, order a bill of materials for the project and maybe throw in a few extras.

If you are going to be working with almost any of the more advanced (than simple gate array chips) you will be needing a clock.  I would suggest this is your first project.  Ben Eater's 8bit breadboard computer starts with about 3 videos on his 555 clock.  It's a brilliant little starter project and when you progress to counters, latches, bus transcievers, multiplexers and shift registers they will all use that little breadboard.  It will be so hand you could even get it printed onto a PCB for running your projects.

Alteratively you can just connect a digital pin of the arduino and use delay() to produce your clock, but... it's probably not as much fun.

As to AND, NAND, OR, NOR, XOR... etc. gates.  They aren't very interesting to play with.  You connect an AND gate to two switches.  When you press both the LED comes on.  It does not getting any more interesting.

If you want to try something a little more challenging just buy NAND gates (or NORs) as they are considered generic or root gates as all other gates can be made from combinations of them.  In fact in the past computer chips where made exclusively with NAND gates as it was cheaper to produce all the same gates.

https://en.wikipedia.org/wiki/NAND_logic
« Last Edit: March 01, 2018, 09:57:44 pm by paulca »
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline Wimberleytech

  • Super Contributor
  • ***
  • Posts: 1133
  • Country: us
Re: Need more logic ICs, what ones ?
« Reply #25 on: March 02, 2018, 12:26:34 am »
I do not subscribe to the JIT approach for jellybean parts.  The amount of money you spend on shipping your JIT buy, can purchase a lot of stock on hand.

That is how I do it...not advising anybody else to do the same.

------update-----------
I can buy 5 cd4007 pdip on ebay, usa seller, free shipping for $2.99
I can buy 5 cd4007 pdip from mouser for $2.10 + shipping.  I am sure shipping is at least $8
A single data point.

Yes, but what is jellybean? You want to avoid buying too many black ones if you don't like black ones. And someone into multi GHz RF may want a bag of black ones.
As to a single data point, I am arguing that even with shipping over the long term you will be better off financially buying what you need when you need it and maybe a few spares.

You'll be working with exactly what you need, you won't have to store and catalogue the excess and if you are mobile, moving will be easier.

In the olden days when a magazine Ad in small print could list virtually everything available this was still a fanciful idea. Yes get a selection of LED's, a hundred IN4148 and a dozen IN4004, resistors and some capacitors maybe a few transistors.

But, you cannot buy everything. As long as that is true you will have to buy something and then you pay shipping. If a healthy stockpile means you reduce what you need to buy you put yourself further from the height of the free shipping bar. If you buy a few spares to reach that height then it is a tradeoff.

I've said it before and I'm going to say it again. If you can't carry your parts stock to the rubbish bin in one trip you have too much.


If you are going to use your parts stock to construct a defensive perimeter in the zombie apocalypse then you might need to be nimble and mobile. This parts stockpile discussion is not a trifle. It could be a life or death issue.

The only value a stock of IC's will have at such times would be if they were PDIP and you could lay them out upturned on the floor surrounding your bed. If they were SMD then you better be a light sleeper. :)

OK, maybe I am a hoarder.  That is what my wife would say.
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: Need more logic ICs, what ones ?
« Reply #26 on: March 02, 2018, 01:02:34 am »
I have a few tubes of old 18CV8 programmable ICs. If I need to breadboard some logic, I just program the chip. Most of the programs are just a few lines of code and one 18CV8 often replaces 3 or more logic chips. It can replace a big chunk of logic chips varieties and the speed is 10ns. Never have to add extra inverters to a design to get the right clock edge. Not low power (50mA), but for breadboarding, it doesn't matter.

I did once have a collection of a few hundred logic chips, but I ended up getting rid of them. Many were the original 74xx series I had carefully preserved from the 70's.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf