Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 16th July 2008, 06:44 PM   (permalink)
Default Ul2003

Hi, i tried to switch on/off a fan using this IC but used it as a current source it didnt work , i usd it as a current sink it worked, why that happend ? and why only current sink worked ?
ahmedragia21 is offline  
Old 16th July 2008, 06:46 PM   (permalink)
Default

Quote:
Originally Posted by ahmedragia21 View Post
Hi, i tried to switch on/off a fan using this IC but used it as a current source it didnt work , i usd it as a current sink it worked, why that happend ? and why only current sink worked ?
hi,
The ULN is a open collector output, there is no internal pull up transistor or resistor.

It can only sink current not source it.

Does this help.?
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 16th July 2008 at 06:47 PM.
ericgibbs is online now  
Old 16th July 2008, 06:50 PM   (permalink)
Default

yea got it thanks , and if it was for current source what would be the difference or the change ?
ahmedragia21 is offline  
Old 16th July 2008, 07:30 PM   (permalink)
Default

Quote:
Originally Posted by ahmedragia21 View Post
yea got it thanks , and if it was for current source what would be the difference or the change ?

You cant use the ULN as current source.

You would choose a PMOS FET or PNP transistor.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is online now  
Old 17th July 2008, 12:31 AM   (permalink)
Default

thanks got it ! , yea PNP would do it because when it saturates it will close on the load and the load will draw current from the supply correct ?
ahmedragia21 is offline  
Old 17th July 2008, 08:06 AM   (permalink)
Default

Quote:
Originally Posted by ahmedragia21 View Post
thanks got it ! , yea PNP would do it because when it saturates it will close on the load and the load will draw current from the supply correct ?
hi,
Thats correct.
You have not said what you are going to drive or whats driving it.?

Give us more details and we may suggest ways of doing it.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is online now  
Old 17th July 2008, 11:53 AM   (permalink)
Default

hi,
thanks , ah , its a uC 89S52 will drive that IC to switch on/off the fan
ahmedragia21 is offline  
Old 17th July 2008, 04:41 PM   (permalink)
Default

The input of the ULN2003 needs to have 150uA before doing anything.
For 100mA output the typical input current needs to be 250uA.

But the output high current from your micro-controller is only 60uA. So it won't work.
The same problem as when you tried using the TIP120 darlington in your other thread.
__________________
Uncle $crooge
audioguru is offline  
Old 18th July 2008, 02:51 AM   (permalink)
Default

audioguru , cant the uC used as current sinking device and it will output 1.3mA that will feed the ULN2003 ?

by the way , i used an inverter 74HC00 after the uC then fed that to the ULN2003 and it worked.
ahmedragia21 is offline  
Old 18th July 2008, 07:36 AM   (permalink)
Default

Quote:
Originally Posted by ahmedragia21 View Post
yea got it thanks , and if it was for current source what would be the difference or the change ?
One of my favorites that is UDN 2981 the source driver.

5 times bigger the price of ULNXX.
__________________
Gayan

My Website
http://gsmicro.blogspot.com/

Last edited by Gayan Soyza; 18th July 2008 at 07:37 AM.
Gayan Soyza is offline  
Old 18th July 2008, 07:39 AM   (permalink)
Default

Quote:
Originally Posted by ahmedragia21 View Post
audioguru , cant the uC used as current sinking device and it will output 1.3mA that will feed the ULN2003 ?

by the way , i used an inverter 74HC00 after the uC then fed that to the ULN2003 and it worked.
hi,
The 74HC00 invertor is a CMOS device and will drive a ULN2003A.

The MCU when used as a current sink cannot drive the ULN.
In order to sink current the pin of the MCU would have to be connected to +5V via a resistor.

If the MCU can sink 1.3mA, from say +5V, then the resistor would be about R= V/I = 5/0.0013 ,, 3K9.

If you now connect the ULN to the MCU pin, the MCU should be able to drive the ULN.
If you have 74HC00 I would use that method, remember the logic inversion.

What load current is the ULN going to sink.?

Remember for the ULN to be switched ON, the MCU pin must be high.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 18th July 2008 at 07:40 AM.
ericgibbs is online now  
Old 18th July 2008, 08:55 AM   (permalink)
Default

What load current is the ULN going to sink.?
0.2A

In order to sink current the pin of the MCU would have to be connected to +5V via a resistor.

why ? doesnt when i ouput zero at the pin of the MCU it doesnt act as a current sink ?
. OK, now this is for current sinking , what configuration should i design to let the MCU source current?

I dont know really why the 74HC00 solved the problem i found that the ULN doesnt work with zero Input that's why i made 74HC00 act as an inverter ,would you tell me the theory behind that ?
ahmedragia21 is offline  
Old 18th July 2008, 09:02 AM   (permalink)
Default

Quote:
Originally Posted by ahmedragia21 View Post
What load current is the ULN going to sink.?
0.2A

In order to sink current the pin of the MCU would have to be connected to +5V via a resistor.

why ? doesnt when i ouput zero at the pin of the MCU it doesnt act as a current sink ?
Yes its a current sink, BUT where is it going to get the current to sink if there is no current source,... the resistor to +5V supplies the current.
. OK, now this is for current sinking , what configuration should i design to let the MCU source current?
Set the MCU output pin High [+5V], BUT as 'agu' explained it can only source 60µA, which will NOT drive the ULN
I dont know really why the 74HC00 solved the problem
The 74HC00 solves the problem because its CMOS and only requires µAmps to switch it. The output of the 74HC00 has enough current to drive the ULN

i found that the ULN doesnt work with zero Input that's why i made 74HC00 act as an inverter ,would you tell me the theory behind that ?
hi,
The 74HC00 is acting as 'current amplifier ' buffer between the MCU and the ULN.

OK.?
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is online now  
Old 18th July 2008, 11:50 AM   (permalink)
Default

ok
thanks
ahmedragia21 is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 09:10 AM.


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

eXTReMe Tracker