# New 3-Wire Digital In/Digital Out Devices support in VEXcode V5

**URL:** <https://plc.pd.vex.com/t/new-3-wire-digital-in-digital-out-devices-support-in-vexcode-v5/191>\
**Category:** VEX V5\
**Tags:** competition, vrc, vex-v5\
**Created:** [June 28, 2021, 5:27pm UTC](https://plc.pd.vex.com/t/new-3-wire-digital-in-digital-out-devices-support-in-vexcode-v5/191 "2021-06-28T17:27:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lauren\_Harter](https://plc.pd.vex.com/letter_avatar/lauren_harter/32/6_22734026db12803ebb3e059622ac3534.png) [@Lauren\_Harter](https://plc.pd.vex.com/u/Lauren_Harter)\
**Post date:** [June 28, 2021, 5:27pm UTC](https://plc.pd.vex.com/t/new-3-wire-digital-in-digital-out-devices-support-in-vexcode-v5/191/1 "2021-06-28T17:27:45Z")

</div>

Check out this new article that @David_Kelly wrote on using 3-Wire Digital In and Digital Out devices!

 ![Screen Shot 2021-06-28 at 1.27.15 PM](https://plc.pd.vex.com/uploads/default/original/1X/8e3d04cd5205880a1f35c33a9af349fb6cc1b61a.jpeg)

I think this is super helpful for anyone who has not used them before. Thanks David!

- [Using 3-Wire Digital In/Digital Out Devices](https://kb.vex.com/hc/en-us/articles/4402846880788-Using-3-Wire-Digital-In-Digital-Out-Devices)

---

<div class="post-metadata">

**Author:** ![David\_Kelly](https://plc.pd.vex.com/letter_avatar/david_kelly/32/6_22734026db12803ebb3e059622ac3534.png) [@David\_Kelly](https://plc.pd.vex.com/u/David_Kelly)\
**Post date:** [June 28, 2021, 10:07pm UTC](https://plc.pd.vex.com/t/new-3-wire-digital-in-digital-out-devices-support-in-vexcode-v5/191/2 "2021-06-28T22:07:31Z")

</div>

I had a lot of help from @Tim_Friez - THANKS!

---

<div class="post-metadata">

**Author:** ![Mark\_Johnston](https://plc.pd.vex.com/letter_avatar/mark_johnston/32/6_22734026db12803ebb3e059622ac3534.png) [@Mark\_Johnston](https://plc.pd.vex.com/u/Mark_Johnston)\
**Post date:** [July 14, 2021, 9:05pm UTC](https://plc.pd.vex.com/t/new-3-wire-digital-in-digital-out-devices-support-in-vexcode-v5/191/3 "2021-07-14T21:05:42Z")

</div>

> “One use of the Digital In device would be for Digital In/Digital Out communication between two V5 Robot Brains.”

This is very cool!

I was wondering, can the port be used to power LED’s? If so, what is the voltage? Would it overpower a red LED?

---

<div class="post-metadata">

**Author:** ![Lauren\_Harter](https://plc.pd.vex.com/letter_avatar/lauren_harter/32/6_22734026db12803ebb3e059622ac3534.png) [@Lauren\_Harter](https://plc.pd.vex.com/u/Lauren_Harter)\
**Post date:** [July 16, 2021, 2:34pm UTC](https://plc.pd.vex.com/t/new-3-wire-digital-in-digital-out-devices-support-in-vexcode-v5/191/4 "2021-07-16T14:34:18Z")

</div>

Hi @Mark_Johnston, great question! Yes! The port can be used for LEDs. The signal pin puts out 0 or 5V, however it does not put out much power. I would only recommend using [the ones from VEX’s website](https://www.vexrobotics.com/276-2176.html), just because that voltage is more controlled as opposed to a third party. There is actually an example project in VEXcode V5 to get up and running with that!

 ![Screen Shot 2021-07-16 at 10.25.45 AM](https://plc.pd.vex.com/uploads/default/original/1X/1aef2450f45ca03dd32ebe68592fb442171910fd.png)

---

<div class="post-metadata">

**Author:** ![Mark\_Johnston](https://plc.pd.vex.com/letter_avatar/mark_johnston/32/6_22734026db12803ebb3e059622ac3534.png) [@Mark\_Johnston](https://plc.pd.vex.com/u/Mark_Johnston)\
**Post date:** [July 27, 2021, 3:15am UTC](https://plc.pd.vex.com/t/new-3-wire-digital-in-digital-out-devices-support-in-vexcode-v5/191/5 "2021-07-27T03:15:06Z")

</div>

If you want to use LED’s with your V5 brain, you can get them from VEX [here](https://www.vexrobotics.com/276-2176.html). It is very easy to set them up in devices and then used them.

I didn’t have any VEX LEDs laying around but I wanted to play around with the LED stuff anyway so…

(WARNING: ATTEMPT THE FOLLOWING AT YOUR OWN RISK)

I finally found my little bag of LED’s I use for my Arduino projects. I decided to try them out on the V5 brain. Based on the article in this thread, I could see where the 5v would come from and surmise that the anode (+) should go there and that the cathode (-) should be plugged into the “control”.

In “devices”, I setup the port I used for the LED as “3-wire \> LED”.

I ran a loop to turn the led on for a second then off for a second. It works like a charm.

I am using LEDs very similar to these:  
[Amazon link to LEDs](https://www.amazon.com/Emitting-Assortment-Diffused-Yellow-Colors/dp/B07DQQCXV9/ref=sr_1_2?crid=2TC5AKX1SK8FS&dchild=1&keywords=led+lights+breadboard&qid=1627355097&sprefix=led+lights+bread%2Caps%2C221&sr=8-2)

Make sure your LED’s can handle 5V or else you’ll need to add a resistor.

 ![Screen Shot 2021-07-26 at 9.09.26 PM](https://plc.pd.vex.com/uploads/default/original/1X/85abd6bc63a29f2b521bc3b03558c9dab2288960.jpeg)
