![]() | ![]() | ![]() |
| | |||||||
| 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? |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| 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 ? | |
| |
| | (permalink) | |
| Quote:
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. | ||
| |
| | (permalink) |
| yea got it thanks , and if it was for current source what would be the difference or the change ? | |
| |
| | (permalink) | |
| Quote:
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/ | ||
| |
| | (permalink) |
| 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 ? | |
| |
| | (permalink) | |
| Quote:
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/ | ||
| |
| | (permalink) |
| hi, thanks | |
| |
| | (permalink) |
| 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 | |
| |
| | (permalink) |
| 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. | |
| |
| | (permalink) | |
| Quote:
5 times bigger the price of ULNXX. Last edited by Gayan Soyza; 18th July 2008 at 07:37 AM. | ||
| |
| | (permalink) | |
| Quote:
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. | ||
| |
| | (permalink) |
| 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 ? | |
| |
| | (permalink) | |
| Quote:
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/ | ||
| |
| | (permalink) |
| ok thanks | |
| |