Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 9th April 2007, 02:43 PM   (permalink)
Default

Sorry Peter. But I'm sure you're going to enjoy a wonderful and exciting new adventure and experiences while you're learning.

Have fun. Best regards, Mike

Last edited by Mike, K8LH; 9th April 2007 at 02:48 PM.
Mike, K8LH is offline  
Old 9th April 2007, 07:32 PM   (permalink)
Default

OH!!

Ok mike I see now.. the 2XXX IC's are just an array of transistors!

I thought they were another type of logic chip!

I will try out your designs, also Nigel, I will try yours.
__________________
"Stick around" - Arnold Schwarzenegger in The Predator after impaling a soldier to a wood post

9vDC Guitar Pedal PSU

PIC16F84a Game Module
Peter_wadley is offline  
Old 11th April 2007, 03:30 PM   (permalink)
Default

Mike, your design works very well thank you!

Using an 8x8 matrix ... +v powered by the PICs B port and GNDs are switched on and off with a 4017 decade counter.

8 npn BJT are used to increase GND current!

All I need to do know is find the right UDN chip to replace the transistors which are switches on and off by the 4017
__________________
"Stick around" - Arnold Schwarzenegger in The Predator after impaling a soldier to a wood post

9vDC Guitar Pedal PSU

PIC16F84a Game Module
Peter_wadley is offline  
Old 11th April 2007, 05:28 PM   (permalink)
Default A PIC or SX28 and 4017 scrolling LED message circuit

Have you seen this? I modified it for a Parallax Basic Stamp 2 / 2px and a SX28 circuit and it works well.

http://drew.hickmans.net/movingsign.htm
tdg8934 is offline  
Old 12th April 2007, 01:43 PM   (permalink)
Default

Quote:
Originally Posted by Peter_wadley
Mike, your design works very well thank you!

Using an 8x8 matrix ... +v powered by the PICs B port and GNDs are switched on and off with a 4017 decade counter.

8 npn BJT are used to increase GND current!

All I need to do know is find the right UDN chip to replace the transistors which are switches on and off by the 4017
You want a ULN2803 sinking driver. It'll accept the active high output from the 4017 and sink current to ground on your columns.

Have fun. Mike
Mike, K8LH is offline  
Old 12th April 2007, 01:55 PM   (permalink)
Default Transistor drivers vs IC drivers.

On the cathodes I use ULN2803 chips (pos in to the ULN2803 provides neg out ot the LED cathodes).

I had been using PNP transistors / resistor circuits on my LED anodes (neg in to the transistor provides pos out into the LED anodes).

However, after reading this thread more yesterday, I see that a UDN2981 is a good substitute for the PNP transistor / resistor circuits. I ordered some samples from Allegro Microsystems Inc. yesterday.
tdg8934 is offline  
Old 12th April 2007, 03:10 PM   (permalink)
Default

Yes, the ULN2803 chips is the one I was going to get today.

Will the chip reduce the amount of resistors in my circuit?

Right now I have 16!

8 to bias the transistor from the 4017 outputs and 8 to limit current on the HIGH outputs of the PIC...

Does the ULN need resistors? I dont want to burn it out..

So that should take care of the first 8.. is there a way bring the other 8 down with out making the LEDS lose brightness.. well I know there will be some brightness lost when they are all on..

Thanks tdg,
Peter W
__________________
"Stick around" - Arnold Schwarzenegger in The Predator after impaling a soldier to a wood post

9vDC Guitar Pedal PSU

PIC16F84a Game Module
Peter_wadley is offline  
Old 12th April 2007, 03:35 PM   (permalink)
Default Current Limiting Resistors are a must

The ULN2803 will allow more current to the LEDs that the PIC can not provide. You should have at least 500 ma to an 1 amp or more for your power supply. The resistors are current limiting resistors and they are only for the LEDs.

LED's will always need current limiting resistors added to them. The lower the value the brighter they will make the LED's appear. However, they also protect the LED's (make them last longer - no burn out) by using higher values like 220 or 470 ohms. I tend to make some sort of allowance and use 10 ohm (probably asking for trouble) to 100 ohm (little more safe) on every collumn or row.

I personnally believe that you only need to have a current limiting resistor for either every column or every row but you don't necessarily need to have them for both. So if you have 8 rows and 16 columns, I would put them on each of the 16 columns (to be safe) as there are more columns and more resistance to take in in excessive current / voltage. However, I have seen people use it both columns and rows - which you will probably see dimmer LEDs due also to duty cycle (refreshing rates for the LEDs). I think if you use LEDs with higher MCD ratings for brightness this will help too - but this would probably bring cost up too.

BTW: About LED's needing current limiting resistors, this is generally always the case EXCEPT for custom LED driver IC's which have them internally and use 1 external resistor for adjustment. An example of this would be the MAXIM 7219. The Maxim 7219 works with up to 64 LEDs of individual control and it works well. However, the only problem I have is figuring out how to cascade them in software (haven't quite mastered that yet).

Good luck.

Last edited by tdg8934; 12th April 2007 at 03:42 PM.
tdg8934 is offline  
Old 12th April 2007, 03:41 PM   (permalink)
Default

Thanks and also...

Does the ULN need resistors? I dont want to burn it out..

Peter W
__________________
"Stick around" - Arnold Schwarzenegger in The Predator after impaling a soldier to a wood post

9vDC Guitar Pedal PSU

PIC16F84a Game Module
Peter_wadley is offline  
Old 12th April 2007, 03:43 PM   (permalink)
Default

Sorry - I was editing my post. See the first paragraph. Short answer no. Resistors are for the LEDs.
tdg8934 is offline  
Old 14th April 2007, 11:07 AM   (permalink)
Default

Careful Peter, you're getting some sloppy advice.

If you're scanning columns (only one column is on at any one time) then you'll use current limiting resistors on the row drivers. If you were to put current limiting resistors on the column lines when you're scanning columns you'd get a different voltage drop across each resistor depending on how many LEDs are lighted in that column. Your row drivers are only ever driving a single LED at a time as you scan columns.

Last edited by Mike, K8LH; 14th April 2007 at 11:10 AM.
Mike, K8LH is offline  
Old 14th April 2007, 01:34 PM   (permalink)
Default

Peter,

Mike is correct. I failed to mention more specifically it refers to what is not being scanned. In most cases the columns are scanned so the rows would get the current limiting resistors as Mike stated.
tdg8934 is offline  
Old 14th April 2007, 03:49 PM   (permalink)
Default

Just a thought: If you are scanning 8 rows and the LEDs are dim because of a 12.5% duty cycle, could you put a capacitor on each LED before the resistor to hold a charge and keep it lit a little longer?
__________________
C:\WHUT ?
Beware the asterisk *
ClydeCrashKop is offline  
Old 14th April 2007, 04:06 PM   (permalink)
Default

Quote:
Originally Posted by ClydeCrashKop
Just a thought: If you are scanning 8 rows and the LEDs are dim because of a 12.5% duty cycle, could you put a capacitor on each LED before the resistor to hold a charge and keep it lit a little longer?
No, where's the current coming from to charge the capacitor? - if you had the excess current capability the LED would take it and be brighter.

If you need brighter, increase the current - adding drivers if required.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 14th April 2007, 04:30 PM   (permalink)
Default

And, you would need diodes to keep from back feeding the rows and columns.
Not practical.
__________________
C:\WHUT ?
Beware the asterisk *
ClydeCrashKop is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
4017 Decade counter markn Electronic Projects Design/Ideas/Reviews 19 30th July 2008 03:12 AM
Dual counter bananasiong Micro Controllers 45 24th March 2007 03:49 AM
How we can do it in Assembly..Help Needed Ayne Micro Controllers 37 29th December 2006 06:49 PM
Input Counter Pic16F84A (Code problems) loco Micro Controllers 4 26th September 2006 02:19 PM
16-step sequencer from two 4017 decade counters? october71 Electronic Projects Design/Ideas/Reviews 12 29th January 2004 10:11 AM



All times are GMT. The time now is 08:21 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker