ULN2003 chip seems not working ???

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

ULN2003 chip seems not working ???

Postby mohdismiaswaly » Wed Nov 04, 2015 8:15 am

Hello Guys,

I know that this miniature 3V DC motor need minimum 270mA @ 3.3V which is direct PIC output pin cannot supply that high current need. That’s why I use ULN2003 to drive up current from PIC to higher current then activate the 5V SPDT relay to throw the contactor to the other 5V side. (see photo)
Connection seems OK.

I try direct connecting motor to VDD & VSS of PIC and the motor is running. Just want to make sure motor is OK.
Then I put simple program code (ON RD0 continuously all times) – I want to confirm the current from output pin RD0 is not sufficient. And yes, motor is not running, but if put LED it will light up all times. Very true, I need to use ULN2003 to drive the motor.

I look everywhere (datasheet, google other blogs) but they were all the same connection to use ULN2003. I followed the connection. But the relay is not ‘clicking’ to show it is energized.

I again direct connect motor to output pin 16 of ULN2003 which is supposed to be output for pin 1 input. No response to the motor. I suspect the ULN2003 is not working.
Relay is working fine. I have tested the relay alone with 0V and 5V at 270mA & 100mA to both coils without problem.

Thanks.
Attachments
IMG_20151103_214216.jpg
PIC18F4550 to ULN2003 with 5V relay & 3V motor
mohdismiaswaly
Apprentice
 
Posts: 39
Joined: Mon Nov 05, 2012 2:51 pm

Re: ULN2003 chip seems not working ???

Postby Nurul.Syuhada » Wed Nov 04, 2015 1:25 pm

Hi, I think something wrong with your circuit. You need to place pull up resistor between output and COM pin at ULN2003. Hope it may help. :geek:
Nurul.Syuhada
Moderator
 
Posts: 17
Joined: Mon Jun 01, 2015 9:23 am

Re: ULN2003 chip seems not working ???

Postby Idris » Wed Nov 04, 2015 1:52 pm

Hi mohdismiaswaly, it looks like your circuit is wrong but I can't see the pin connection clearly, so could you post your schematic diagram here? Thanks.
Cytron Technologies invest time and resources providing tutorial, training and support for STEM education and maker movement. We need your support by purchasing products from Cytron Technologies. Thanks.
http://www.cytron.com.my
User avatar
Idris
Moderator
 
Posts: 409
Joined: Thu Mar 22, 2012 5:28 pm
Location: Pulau Pinang

Re: ULN2003 chip seems not working ???

Postby bengchet » Wed Nov 04, 2015 1:54 pm

Hi,

Take note that output from ULN2003 chip gives LOW output when input is HIGH. Therefore I think may be there are some modification you need to make for your circuit connection. Hope it helps! ;)
bengchet
Moderator
 
Posts: 237
Joined: Tue Aug 25, 2015 8:29 am

Re: ULN2003 chip seems not working ???

Postby mohdismiaswaly » Fri Nov 06, 2015 10:19 am

Hello Guys,

I have again tested the chip, but now I put LED blinking program code to test chip functionality.
Pin 8 to VSS & Pin 9 to VDD of PIC. RD1 go to Pin 1.

Also, have pull-up resistor of 220Ohm (more brighter LED), previously tested with 4.7kOhm but not as bright as 220Ohm.

So it is working to blink the LED 8-) I checked voltage across the LED only 2.2V.

However, after I remove the LED, now jump to relay coil (one side of the coil to pin 16 of the chip & the other side to GND of PIC), the relay not working (no clicking sounds). Seems the voltage from pin 16 is too low? :? My relay is 5V.

If I test relay coil with direct 5V regulated power supply, it is OK, with clicking sound.

Help anyone?
Attachments
IMG_20151106_095436.jpg
testing LED blinking with pull-up resistor 220Ohm
mohdismiaswaly
Apprentice
 
Posts: 39
Joined: Mon Nov 05, 2012 2:51 pm

Re: ULN2003 chip seems not working ???

Postby bengchet » Fri Nov 06, 2015 11:04 am

Hi,

Yes it might be caused by insufficient voltage across relay (or insufficient current) due to the 220 ohm resistor. Why don't you try turn another way around? ;) One coil of relay is connected to pin 16 of the chip, and another coil is connected directly to 5V? So that if input to the chip is HIGH, output is LOW and it will activate the relay. When the input is low, output will be open-circuit and 'deactivate' relay.

Hope it helps.

PS: 220ohm resistor is not needed in this case.
bengchet
Moderator
 
Posts: 237
Joined: Tue Aug 25, 2015 8:29 am

Re: ULN2003 chip seems not working ???

Postby Idris » Fri Nov 06, 2015 11:30 am

Hi mohdismiaswaly, I have google "ULN2003 + relay, interface with microcontroller" and found this schematic. You can try it.

ULN2003.png

Thanks.
Cytron Technologies invest time and resources providing tutorial, training and support for STEM education and maker movement. We need your support by purchasing products from Cytron Technologies. Thanks.
http://www.cytron.com.my
User avatar
Idris
Moderator
 
Posts: 409
Joined: Thu Mar 22, 2012 5:28 pm
Location: Pulau Pinang


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 3 guests

cron