moko
Newbie level 3
My program is simple to light led's with the cheapest option uln2003,
Led's not connected directly to processor because max current through 89s52 should not exceed at any time more than 71mA.
right now only three led's are connected, each connected to 40mA current.
The uln2003 connection is per the datasheet of uln 2003.
the uln 2003 does operate when a single led is connected, however after connecting multiple led's (3 ) one led lights ok , second led lights a little dim and the third led does not lights. The story is same with the different pins of uln2003.
Uln2003 connections are
input pins connected to mcu p1.0 to p1.2
outputs connected to -ve side of led
pin 8 of uln2003 is connected to -ve
com pin is not connected.
My project needs the led's to be switched on and off at least 1/10th of a sec
when mcu starts:
p1.0 is 1 and p1.1 and p1.2 is 0
after 10ms
p1.0 and p1.1 is 0 , p1.2 is 1
after 10ms
same as above.
what can you guys recommend ?
diodes between mcu and uln2003?
or
resistors between mcu and uln2003
or
com pin of ULN 2003 to where ??
or
ULN cannot switch fast enough?
I am totally new to this area so a much descriptive reply is requested
Thankyou for your time and help in advance
Mokko
Led's not connected directly to processor because max current through 89s52 should not exceed at any time more than 71mA.
right now only three led's are connected, each connected to 40mA current.
The uln2003 connection is per the datasheet of uln 2003.
the uln 2003 does operate when a single led is connected, however after connecting multiple led's (3 ) one led lights ok , second led lights a little dim and the third led does not lights. The story is same with the different pins of uln2003.
Uln2003 connections are
input pins connected to mcu p1.0 to p1.2
outputs connected to -ve side of led
pin 8 of uln2003 is connected to -ve
com pin is not connected.
My project needs the led's to be switched on and off at least 1/10th of a sec
when mcu starts:
p1.0 is 1 and p1.1 and p1.2 is 0
after 10ms
p1.0 and p1.1 is 0 , p1.2 is 1
after 10ms
same as above.
what can you guys recommend ?
diodes between mcu and uln2003?
or
resistors between mcu and uln2003
or
com pin of ULN 2003 to where ??
or
ULN cannot switch fast enough?
I am totally new to this area so a much descriptive reply is requested
Thankyou for your time and help in advance
Mokko