linear1 forums
[part of the linear1 network]
+ [linear1 case mods]
+ [LED Center]
+ [privacy policy]
Welcome, Guest. Please login or register.
March 19, 2010, 04:53:39 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Login Register

linear1 forums  |  LED discussion  |  Microcontroller madness  |  Topic: pic controler +74HC595 Shift Register Help! « previous next »
Pages: [1] 2 Print
Author Topic: pic controler +74HC595 Shift Register Help!  (Read 2951 times)
nosrak113
Strong like bull
*
Offline Offline

Posts: 10


« on: June 12, 2006, 07:41:52 PM »

Hi I’m new at making matrixes
Is it possible to control 8 74HC595 Shift Register differently with one pic micro controller so I can control each led?
If so can u suggest a microcontroller?
If any of this is wrong tell me to shut up plz no flaming thz in adv
-nos
Logged
justDIY
Microcontroller Madman
Administrator
Smart like tractor
*****
Offline Offline

Posts: 1652


UFOric


WWW
« Reply #1 on: June 12, 2006, 09:12:36 PM »

it depends on what you mean by differently.

in simplest of terms, think of the 595 as 8 switches that can be turned on and off by the computer ... it may also help to visualize each 595 as one "byte" in a buffer ... if you have eight 595's, you have an eight byte buffer.   you can control each bit in each byte of that buffer, so the same holds true for a 595

in my rainbow chaser project, I used three 595's connected in a daisychain to control 24 leds (eight rgb leds) ... I created different patterns by changing the bit sequence sent out to the string of 595s ... if there were leds that I didn't want changed, I just left their bits alone in the buffer

since the microcontroller pushes data out to the chips so quickly (20mhz / 8 = 2.5mhz serial clock estimated), the registers update so fast you can even do fancy things like time domain division... giving leds the appearance of different brightness levels (the waveform looks like pwm), but that is some fancy programming!

any microcontroller will work ... it depends on your application ... the inexpensive 16F628A or 16F88 are good all-purpose chips to start with ... the 12F683 and 12F639 are economical and very small pics, but are still very capable of running a large register of 595's.
Logged

Want to contact me directly? gmail gordonthree
My Project Blog - http://projects.dimension-x.net

Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
nosrak113
Strong like bull
*
Offline Offline

Posts: 10


« Reply #2 on: June 13, 2006, 07:17:38 AM »

What do u think would be more productive get a 16bit microcontroler with 2 bit shifters in series to  make a 16 bit one  orget a 8 bit controler with 2 shifters?
Logged
justDIY
Microcontroller Madman
Administrator
Smart like tractor
*****
Offline Offline

Posts: 1652


UFOric


WWW
« Reply #3 on: June 13, 2006, 09:00:10 AM »

the instruction size (or internal processor arrangement) of a microcontroller has little effect on anything when controlling simple devices like the 595.

if you're more comfortable with a 16 bit cpu (or 32 for that matter), by all means ... but this takes you out of the realm of the normal pic microcontrollers ... the new 24F chips have a 16 bit cpu, but most of them are still in pre-production, so you'll want to look at TI, Samsung, Motorola... most of these are much harder to program than a PIC however.

Logged

Want to contact me directly? gmail gordonthree
My Project Blog - http://projects.dimension-x.net

Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
nosrak113
Strong like bull
*
Offline Offline

Posts: 10


« Reply #4 on: June 14, 2006, 07:05:09 AM »

would the micro controlers u recomended above control 32 595 Shift Register, so I could have a 16X16 aray?
if not recomded a better one thz alot for you help already
Logged
justDIY
Microcontroller Madman
Administrator
Smart like tractor
*****
Offline Offline

Posts: 1652


UFOric


WWW
« Reply #5 on: June 14, 2006, 06:16:27 PM »

for a 16x16, you need 4 registers, not 32?

two for the 16 rows, two for the 16 columns

Logged

Want to contact me directly? gmail gordonthree
My Project Blog - http://projects.dimension-x.net

Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
nosrak113
Strong like bull
*
Offline Offline

Posts: 10


« Reply #6 on: June 14, 2006, 08:49:40 PM »

but it does not allow shapes or letters with holes in it like... for example
 0000000000000000
 0000000000000000
 00000XXX00000000
 00000X0X00000000
 00000XXX00000000
 0000000000000000
 0000000000000000
 0000000000000000
/\ /\this is imposable, if i set this up it would produce \/ \/
 0000000000000000
 0000000000000000
 00000XXX00000000
 00000XXX00000000
 00000XXX00000000
 0000000000000000
 0000000000000000
 0000000000000000
if im wrong yell at me ,but it in right can u u ansewer the perveuse post question
Logged
justDIY
Microcontroller Madman
Administrator
Smart like tractor
*****
Offline Offline

Posts: 1652


UFOric


WWW
« Reply #7 on: June 14, 2006, 10:00:15 PM »

my recommendation of microcontrollers hasn't changed, see my first reply to your question

to draw shapes or letters in a matrix, you need to 'strobe' the matrix ... you light one LED at a time, or one entire row at a time (depending on how your drivers are setup)

you do this so fast (easily with a microcontroller), and you get the apperance of a solid picture

check out multiplexing and led matrix drivers on google

see here and here for my thoughts on LED matrix's
Logged

Want to contact me directly? gmail gordonthree
My Project Blog - http://projects.dimension-x.net

Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
nosrak113
Strong like bull
*
Offline Offline

Posts: 10


« Reply #8 on: June 15, 2006, 06:45:54 AM »

thank you so much it would have taken me a long time time to get this info
last question say if i wanted to use eletro magnets insted of leds to control ferrofuild would that make a difference exsept for the voltage?
thz
Logged
justDIY
Microcontroller Madman
Administrator
Smart like tractor
*****
Offline Offline

Posts: 1652


UFOric


WWW
« Reply #9 on: June 15, 2006, 08:42:18 AM »

I don't think it would work at all

ferrofluid is a mechanical substance, it takes a "LONG time" to react in comparison to an electronic device such as an LED whose response is instant as far as we're concerned.

if you could take the time to lay out your project goals and ideas, perhaps someone will have some ideas for you.
Logged

Want to contact me directly? gmail gordonthree
My Project Blog - http://projects.dimension-x.net

Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
nosrak113
Strong like bull
*
Offline Offline

Posts: 10


« Reply #10 on: June 15, 2006, 09:03:20 AM »

basically i want to recreate
http://www.digital.udk-berlin.de/en/projects/winter0405/main/hauptprojekt/snoil.html
Logged
justDIY
Microcontroller Madman
Administrator
Smart like tractor
*****
Offline Offline

Posts: 1652


UFOric


WWW
« Reply #11 on: June 17, 2006, 09:57:28 AM »

i finally was able to download and watch that video for snoil ... I must say, that's quite a creation

did you see the circuit boards inside that thing!  the 595 is but a tiny slice of the much larger pie.  if you're serious about trying to reverse engineer that, it looks like a very steep learning curve is involved... I dont think anyone here will just whip out a schematic for you!  If it were me, I'd start with something like a 2x2 matrix, and work up.
Logged

Want to contact me directly? gmail gordonthree
My Project Blog - http://projects.dimension-x.net

Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
nosrak113
Strong like bull
*
Offline Offline

Posts: 10


« Reply #12 on: June 17, 2006, 06:29:14 PM »

it does not look at hard http://64.233.179.104/translate_c?hl=en&u=http://www.freymartin.de/blog/archives/2004/12/index.html&prev=/search%3Fq%3Dhttp://www.freymartin.de/blog/%2Bnov%26num%3D100%26hl%3Den%26lr%3D%26newwindow%3D1%26c2coff%3D1%26safe%3Doff%26sa%3DG
http://64.233.179.104/translate_c?hl=en&u=http://www.freymartin.de/blog/archives/2005/01/index.html&prev=/search%3Fq%3Dhttp://www.freymartin.de/blog/%2Bnov%26num%3D100%26hl%3Den%26lr%3D%26newwindow%3D1%26c2coff%3D1%26safe%3Doff%26sa%3DG
i just do not understand what the flip flop does
Logged
cadstarsucks
Smart like tractor
****
Offline Offline

Posts: 449


« Reply #13 on: June 25, 2008, 06:06:21 AM »

two 74ACT573s will directly drive the low lines and one with decoders with FETs to drive the high lines.  Driving the registers BYTE serial instead of BIT serial saves enough time that a PIC might be able to handle it. 

I have been able to scroll words on a 640 LED array with an 89C51 on a 12MHz crystal so you should be able to get a PIC at 40MHz to do it.  While PICs are pretty useless when it comes to performance per dollar they are more common among hobbyists.

For a speed reference the 12MHz 89C51 was running a 1uS per instruction while a 40MHz PIC (18F1220 @ $4.50 in single piece QTY) 25nS per instruction if memory serves.

To drive a matrix you would send out 3 bytes, 2 for the low lines and one that will drive one FET at a time.  You need to change which column you drive at least 1600 times a second.

You would not even need the registers accept then you need 20 port pins to drive the display.

http://forums.linear1.org/index.php/topic,1253.0.html
Logged
justDIY
Microcontroller Madman
Administrator
Smart like tractor
*****
Offline Offline

Posts: 1652


UFOric


WWW
« Reply #14 on: June 25, 2008, 06:24:24 PM »

dude, this thread is over two years old Wink
Logged

Want to contact me directly? gmail gordonthree
My Project Blog - http://projects.dimension-x.net

Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
Pages: [1] 2 Print 
linear1 forums  |  LED discussion  |  Microcontroller madness  |  Topic: pic controler +74HC595 Shift Register Help! « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.214 seconds with 17 queries.