The Logical direction
TC
Posts: 1,019
Hello all,
This thread is in reference to my wifes coffee table, and me wanting to do logic gates to passably control the LED matrix. Here is the thread if you want to know more.
I have a question for the ones that have designed things using logic gates.
I dont have much experience with part numbers, special functions, etc It took me almost 3 hours to fully understand a SN74LS163A (4 bit counter). I knew this was going to be a extremely difficult task when I started.
I do understand the basic logic gates (AND, OR, NOT, NAND, NOR, etc..)
My question is, where would you start? I am trying to make a 8x16xRGB matrix. The matrix control does not have to do any computing(not yet, could change years from now). I just want it to read from RAM, and scan the matrix with no input from anything else.
I am not asking for anyone to design the matrix for me. I just dont have experience with designing logic circuits. And I bet there are a few gurus on here that has.
Thanks
TC
This thread is in reference to my wifes coffee table, and me wanting to do logic gates to passably control the LED matrix. Here is the thread if you want to know more.
I have a question for the ones that have designed things using logic gates.
I dont have much experience with part numbers, special functions, etc It took me almost 3 hours to fully understand a SN74LS163A (4 bit counter). I knew this was going to be a extremely difficult task when I started.
I do understand the basic logic gates (AND, OR, NOT, NAND, NOR, etc..)
My question is, where would you start? I am trying to make a 8x16xRGB matrix. The matrix control does not have to do any computing(not yet, could change years from now). I just want it to read from RAM, and scan the matrix with no input from anything else.
I am not asking for anyone to design the matrix for me. I just dont have experience with designing logic circuits. And I bet there are a few gurus on here that has.
Thanks
TC
Comments
If you're open to a microcontroller, a BS2 or a Propeller could VERY easily run a few of these: http://www.adafruit.com/products/738
for 16 million colors per pixel!
Just as a side project I want to use logic gates to control a 8x16, 8-bit per color matrix.
I have always had an interest in logic gates. But never made something useful. That is why I am asking, what would be my best starting point?
A. The display with logic directly involved in scaling up to the power drivers that drive all the LEDs. There are some good alternatives where logic chips - such as a counters - might free up more Propeller i/o and ram for the fancy stuff.
B. A microcontroller section. I suggested that you have the ability to swap out a couple of Propeller boards as you are likely to want to try to improve the display over time. That is about as far afield as I would go.
This could all be done with logic chips and if you are extremely motivated to do so ... it could all be done with just NAND gates or NOR gates if that is your heart's desire..
But what is the point of hardwiring something in a big package when it can be done in programable firmware in a very tiny package? If you so desired, you could skip the chips and try to do it all with vacumn tubes or mechanical relays and have to provide new house wiring to operate it.
There is a lot of history and you can step back into time and build nearly anything. But if you just want to learn, the Propeller is a very good platform to do at a very reasonable cost and in a very small package.
++++++++++++++
If you want a good starting point for logic gates, an introductory university text on the subject would be your best bet.
I have a copy of "Digital Fundamentals, 7th edition" by Thomas L. Floyd; Prentice Hall, Inc., 2000.
That might be as good as any. Visit a university with an electronics engineering school near you and take a look at the texts in the campus bookstore and/or the library.
+++
To give you an idea of the problem of scale... To replicate 32K of ram, how many D latch flip-flop chips would you need. It gets rather absurd to wire and build. And there are other newer alternatives to replicate a CPU. The Propeller 2 is open-source and there are a group of people that have been developing code on devices that replicate its internal logic.
In sum, reinventing the wheel just might have you living in the Stone Age..
RS flip-flops, JK flip-flops, DQ flip-flops, transparent latches, ripple counters, synchronous counters, shift-registers,
FIFOs, decoders, selectors and the like - these are the next level up from simple gates.
I learned all of my CMOS logic from this bad boy by Forrest Mims. The final project is fascinating; by using three digital ICs, an op amp, and a resistor network, the circuit converts light intensity from 0 to 9. On the Prop or BS2, the code would take five minutes to write and build, but without micros, it is much more fun.
I am going to do that for the table, I want to keep it simple.
I am not that motivated as of yet.
More of just A learning experience, and because I personally think logic gates are cool.
I never thought of that.
Im not going that far, Wiring would be insane.
I am not trying to reinvent the wheel. That is not the point. I am just trying to use a dieing way of doing things in this world of microprocessors.
I like Forrest Mims, but it is not a rigorous explanation of the subject. Neither is an Ardunio cookbook. And often, you can buy a used textbook for less.
Just think. You can buy the text, skip the lectures and read at your own pace and save a huge amount on tuition.
I thought of of that, but it is hard to fully understand them without experimenting with them.
I would like to change my question if I may.
What would be the best parts (part number, manufacture, etc..) to experiment with? I am getting lost with all the part numbers.
WOW!! Thats some great info, thank you
That is very true.
Then write in patterns, and use a couple of your counters in series to run through the addresses, and watch the LEDs change on the outputs.
If it were me I'd do what was mentioned in your other thread: slam a tv/monitor into a coffee table base with an old PC running a variety of interesting visual patterns. Windows Media Player alone had some pretty bitchin' visualizations.
That way your electronics development is minimized and you can focus on doing some nice construction and woodwork. That would tide her over. And if it turns out fabulous, you can always make another one with all the RGB LED gewgaws previously discussed.
I am defiantly going to try that one out. I does not seam that hard to use.
This project does not involve my wife. This is not for her table. This is for my own enjoyment.
As for , My wife has allready expressed her thoughts. I posted about it in the other thread. I would spend the rest of eternity on the couch if I did not give her what she wants. She wants a LED table, that can do as many colors as it can. She is completely understanding that this will take some time to do.
It gets confusing!
74xx series - the original ones, uses lots of power, don't use these
74LS - lower power. Needs 5V.
74HC - cmos version, uses less power again, and wider voltage range and can run at 3V3 or 5V. My favourite series.
74F - fast series, useful if you are going to push the speed
74HCT - similar to HC, ?faster, but only runs at 5V
74LVC series - can handle 5V inputs when powered by 3V
4000 series - wide range of voltages, some unique parts in this range
Of these, I tend to stick to the HC and the 4000 series. And just to confuse things, the 4000 series have been merged into the 74HC series so there are some 74HC4xxx chips.
I buy pretty much all my digital chips from the ones available on this single web page http://www.futurlec.com/IC74HC00Series.shtml
It can be fun to get a breadboard, three AAA batteries and a few 74HC and 4000 chips and test out some of the examples in Forrest Mims' books.
Then rip up the circuit, build a simple propeller circuit and get one RGB led working...
Reading from ram and outputting the data to an 8x16 array of leds is relatively simple and can be done with a reasonable number of chips. Early video terminals (glass teletype) did that. The hard part would be getting an image into the memory. There was a book I sent to someone on the forum that explained how to build such a terminal, but IIRC it was a character display.
Would you settle for scanning an image stored in eeprom, eprom, or some other non volatile memory?
Do you want to use the TLC chips for this?
It is really confusing. But thank you very much for breaking it down for me, it makes better sense.
And that site is perfect, I cant beleve that most of the chips are less than a dollar. That makes it hurt less when puff the blue dragon apears because I did something wrong. And trust me, I have seen him A LOT.
I am going to use Forrest Mims' book, there is a lot of info in there.
I think I would settle for that. But I am going to find a small one, just so I can play with it.
And yes, I plan on using the TLC chips. To me, I think it would be the easiest way. Just shift the data, latch in the data, then clock the GSCLK line 4096 times.
I totality agree, I am working on that now. should have it done for the weekend so I can play some more.
If you want to get beyond Forrest Mims, here you go -- a 10th edition.
http://www.amazon.com/Digital-Fundamentals-Edition-Thomas-Floyd/dp/0132359235
If $104 USD is too much, try Abe Books to locate USED copies for less.
Awesome, Thank you. It will be after I am done with Mims book.
I picked up a copy of the 7th edition of that book a few years ago for less than $10 including shipping. It's an excellent textbook, highly recommended. I would imagine a newer version would be even better. The 7th edition was very much focused on 7400 series chips.
I have a 9th edition/international edition that I picked up cheaply at a local on campus book sale. Students are not fond of all English books. Mine is paperback and I have no problem with that.. seems to be holding up well.
The international edition may be the same text, but priced cheaper for overseas markets. If they will ship it to you, it is worth the savings.
Between 'Digitial Electronics' and 'The Art of Electronics', I seem to have a very good library for microcontrollers. These two books are just about all you will need.. though 'The Art of Electronics' is getting a bit outdated.. not much about 3.3v logic.
http://www.eevblog.com/forum/chat/the-art-of-electronics-3rd-edition-finished-writing-and-copy-editing/
http://en.wikipedia.org/wiki/The_Art_of_Electronics#Third_edition