Author Topic: UNL2803A relay driver pin connection  (Read 11669 times)

0 Members and 1 Guest are viewing this topic.

Offline sean87Topic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: nl
  • EE WannaBee
    • EMBEDONIX
UNL2803A relay driver pin connection
« on: June 26, 2011, 11:24:22 pm »
Hi all,

I want to use UNL2803A in my little project. Everything is good so far, but before I really put the relay driver in use, I want to know what is the PIN #10 Task and where should I connect it? In datasheet it is referred as "Common free wheeling diodes".

Also here is a picture of my breadboard, take a look please. The chip on the left is PICAXE 20X2 and the right chip is UNL2803A.

Thanks!
« Last Edit: June 27, 2011, 12:30:37 am by sean87 »
EMBEDONIX - Embedded Systems, Linux and good stuff!
 

Offline ivan747

  • Super Contributor
  • ***
  • Posts: 2052
  • Country: us
Re: UNL2803A relay driver pin connection
« Reply #1 on: June 26, 2011, 11:50:39 pm »
Hi all,

I want to use UNL2803A in my little project. Everything is good so far, but before I really put the relay driver in use, I want to know what is the PIN #10 Task and where should I connect it? In datasheet it is referred as "Common free wheeling diodes".

Also here is a picture of my breadboard, take a look place. The chip on the left is PICAXE 20X2 and the right chip is UNL2803A.

Thanks!

There are some diodes called the flyback diodes that go connected in parallel with your load. In this case your load goes from the positive of your power supply to the ULN2803.

When you have an inductive load such as a relay or a motor, they generate a very high voltage across their coil (in case of a relay, the coil is anything but the switch itself). This high voltage can destroy your ULN2803.

So normally, when you're dealing with inductive loads, you should add a diode like this


But the ULN2803 is nice enough to add them inside it for you


The diodes inside the are connected together and they have to be connected to the positive supply pin to ensure the relays don't fry your chip. The diodes go out on pin 10.

So it should look like the attachment

Bold fonts are given for quick reference and not for yelling at people.
Ivan
« Last Edit: June 27, 2011, 12:11:12 am by ivan747 »
 

Uncle Vernon

  • Guest
Re: UNL2803A relay driver pin connection
« Reply #2 on: June 26, 2011, 11:57:47 pm »
Hi all,

I want to use UNL2803A in my little project. Everything is good so far, but before I really put the relay driver in use, I want to know what is the PIN #10 Task and where should I connect it? In datasheet it is referred as "Common free wheeling diodes".

Also here is a picture of my breadboard, take a look place. The chip on the left is PICAXE 20X2 and the right chip is UNL2803A.

Thanks!

Pin 10 should go to your positive supply voltage,  this places a freewheel diode across each output to snub back EMF from inductive loads such as relays.  Your design will work without a pin 10 connection  but your chip may not last very long.
 

Offline sean87Topic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: nl
  • EE WannaBee
    • EMBEDONIX
Re: UNL2803A relay driver pin connection
« Reply #3 on: June 26, 2011, 11:59:47 pm »
Thanks a lot for nice information. I think I got the idea.

Just one question remains. I have a 5V DC and a 12V DC adapters which powers my circuit. Obviously the 5V is for PIC and some LED's and 12V is for relays.

Now where should I connect the PIN #9 of the UNL2803? Should it go to GND of my 5V adapter or the GND of 12V source? Or no difference?

Thanks again.
EMBEDONIX - Embedded Systems, Linux and good stuff!
 

Offline ivan747

  • Super Contributor
  • ***
  • Posts: 2052
  • Country: us
Re: UNL2803A relay driver pin connection
« Reply #4 on: June 27, 2011, 12:10:03 am »
Thanks a lot for nice information. I think I got the idea.

Just one question remains. I have a 5V DC and a 12V DC adapters which powers my circuit. Obviously the 5V is for PIC and some LED's and 12V is for relays.

Now where should I connect the PIN #9 of the UNL2803? Should it go to GND of my 5V adapter or the GND of 12V source? Or no difference?

Thanks again.
You must join the grounds of both, otherwise they circuit will be incomplete since the current will not be able to flow through anything connected to the other supply. If you are dealing with LEDs you must add a resistor in series, specially with a 12V power supply. I recommend 1K for 12V and 330 ohms for 5V.
 

Offline ivan747

  • Super Contributor
  • ***
  • Posts: 2052
  • Country: us
Re: UNL2803A relay driver pin connection
« Reply #5 on: June 27, 2011, 12:14:50 am »
By the way, is the 5V power supply regulated? If you don't know, check the label. If it doesn't say regulated, then it might be putting as much as 8 volts into your PICAXE! An unregulated 12V adapter is OK as long as you use it for things like relays.

Check out the Sparkfun unregulated power supply tutorial for more info on this. Just Google it. It is very interesting and important to know.
 

Offline sean87Topic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: nl
  • EE WannaBee
    • EMBEDONIX
Re: UNL2803A relay driver pin connection
« Reply #6 on: June 27, 2011, 12:25:00 am »
By the way, is the 5V power supply regulated? If you don't know, check the label. If it doesn't say regulated, then it might be putting as much as 8 volts into your PICAXE! An unregulated 12V adapter is OK as long as you use it for things like relays.

Check out the Sparkfun unregulated power supply tutorial for more info on this. Just Google it. It is very interesting and important to know.

Well yeah I am using a very nice DC adapter, and I already cheked it with volt meter, it does a nice 5.0V all the time, maybe sometims ~0.1V difference. I will later use a voltage reglature when I move these stuff onto a PCB!
EMBEDONIX - Embedded Systems, Linux and good stuff!
 

Offline ivan747

  • Super Contributor
  • ***
  • Posts: 2052
  • Country: us
Re: UNL2803A relay driver pin connection
« Reply #7 on: June 27, 2011, 12:58:23 am »
By the way, is the 5V power supply regulated? If you don't know, check the label. If it doesn't say regulated, then it might be putting as much as 8 volts into your PICAXE! An unregulated 12V adapter is OK as long as you use it for things like relays.

Check out the Sparkfun unregulated power supply tutorial for more info on this. Just Google it. It is very interesting and important to know.

Well yeah I am using a very nice DC adapter, and I already cheked it with volt meter, it does a nice 5.0V all the time, maybe sometims ~0.1V difference. I will later use a voltage reglature when I move these stuff onto a PCB!

A little off topic but get some proper drill bits for PCB work. If you are working with a Dremel, you better get rid of the conical bit for PCB related work unless you are working on a large hole. I recommend those bits that look like normal drill bits but have a 1/8" shank (if my memory serves well, that's the standard size for Dremel tools and the like). Get something from ~0.5 mm to 1 or 2 mm. No need for more than 10 of them. For anything bigger, a small conical tip from those assortments will do the job. Ah, and if you're working on a plastic enclosure, make sure to let the bits cool down once in a while, or else the plastic will start to melt and it will be difficult to control the Dremel and you might get a very bad hole.
 

Offline sean87Topic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: nl
  • EE WannaBee
    • EMBEDONIX
Re: UNL2803A relay driver pin connection
« Reply #8 on: June 27, 2011, 01:27:52 am »
Thanks for the tips! I will keep in mind. Actually I am very good with dremels :P
EMBEDONIX - Embedded Systems, Linux and good stuff!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf