# Defining resistors between Photon and ULN2803A

**URL:** <https://community.particle.io/t/defining-resistors-between-photon-and-uln2803a/20991>\
**Category:** Hardware\
**Created:** [March 12, 2016, 7:48am UTC](https://community.particle.io/t/defining-resistors-between-photon-and-uln2803a/20991 "2016-03-12T07:48:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![luxi](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/luxi/32/9315_2.png) [@luxi](https://community.particle.io/u/luxi)\
**Post date:** [March 12, 2016, 7:48am UTC](https://community.particle.io/t/defining-resistors-between-photon-and-uln2803a/20991/1 "2016-03-12T07:48:04Z")

</div>

I have a problem defining which resistors i have to use between Photon and ULN2803A. Photon output is 3.3v and ULN expect 5v i think, so the resistor is necessary.

 ![](https://us1.discourse-cdn.com/flex026/uploads/particle/original/2X/4/4a47dc189ef4579c4dab900bd31e3ceca0892538.jpg)

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [March 12, 2016, 7:55am UTC](https://community.particle.io/t/defining-resistors-between-photon-and-uln2803a/20991/2 "2016-03-12T07:55:15Z")

</div>

Uhm, when you say the output of a pin is 3.3V and your external device expects 5V a resistor won’t help since it only brings voltage down, but not up.  
To “boost” the voltage you’d need a transistor.

On the other hand, if your ext device “sends” 5V signals out which you want to read via D0, D1 on a Photon, you’ll be fine without resistors as these pins are 5V tolerant.  
But if they weren’t you’d need a voltage divider (two resistors with the pin attached to the mid point) rather than a mere in-line resistor.

BTW: The ULN2803A has a 2k7 current limiting input resistor builtin already and I’d say 3.3V might be enough to switch the darlington on. But to be sure, just test it, you won’t damage the Photon.

---

<div class="post-metadata">

**Author:** ![luxi](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/luxi/32/9315_2.png) [@luxi](https://community.particle.io/u/luxi)\
**Post date:** [March 12, 2016, 8:28am UTC](https://community.particle.io/t/defining-resistors-between-photon-and-uln2803a/20991/3 "2016-03-12T08:28:20Z")

</div>

Thanks for answer.

I fund this in documentation of ULN2803A

> The ULN2803A has a series base resistor to each Darlington pair, thus allowing  
> operation directly with TTL or CMOS operating at supply voltages of 5.0 V or 3.3 V

As you mention it has 2k7 resistor builtin and thats for max input 30v.

So all this means that i don't need resistors at all?

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [March 12, 2016, 8:35am UTC](https://community.particle.io/t/defining-resistors-between-photon-and-uln2803a/20991/4 "2016-03-12T08:35:02Z")

</div>

I’d say so.  
But where did you see 30V as **_input_** voltage for the ULN2803A?  
I’d say that does not apply to the control (input) pins but the supply for the **_controlled_** (output) pins.

---

<div class="post-metadata">

**Author:** ![luxi](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/luxi/32/9315_2.png) [@luxi](https://community.particle.io/u/luxi)\
**Post date:** [March 12, 2016, 8:42am UTC](https://community.particle.io/t/defining-resistors-between-photon-and-uln2803a/20991/5 "2016-03-12T08:42:34Z")

</div>

Okay.  
I saw in documentation the max input that ULN accept is 30v. I might understand it wrong, but in my case this isn’t relevant.

Thanks for help 😉
