# Extending gShield leds

**URL:** <https://community.inventables.com/t/extending-gshield-leds/15834>\
**Category:** Upgrades\
**Created:** [November 15, 2015, 4:44pm UTC](https://community.inventables.com/t/extending-gshield-leds/15834 "2015-11-15T16:44:06Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srednasoft](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/srednasoft/32/67365_2.png) [@Srednasoft](https://community.inventables.com/u/Srednasoft)\
**Post date:** [November 15, 2015, 4:44pm UTC](https://community.inventables.com/t/extending-gshield-leds/15834/1 "2015-11-15T16:44:06Z")

</div>

Is it possible to connect leds to the gShield that will light together or instead of the built in leds? I’m working on my own X-controller box and it would have been cool to have some leds showing operation outside the box.

**EDIT** :  
The leds are marked D1-D4. On the edge of the controller there are pin holes also marked D1-D4. Could those be connections for leds?

 ![](https://canada1.discourse-cdn.com/flex009/uploads/inventables/original/2X/b/b864cd4a20f1dfce7c18e4156fbf10a045240d00.jpeg)

---

<div class="post-metadata">

**Author:** ![LarryM](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/larrym/32/51450_2.png) [@LarryM](https://community.inventables.com/u/LarryM)\
**Post date:** [November 15, 2015, 5:53pm UTC](https://community.inventables.com/t/extending-gshield-leds/15834/2 "2015-11-15T17:53:04Z")

</div>

The green LEDs on the gShield are just hooked up in parallel with one of the motor windings.

If you wanted to have external LEDs you could just hook them up using the same method. You would hook an LED up in series with a current limit resistor between either pair of stepper motor wires (black/green or white/red).

Direction doesn’t matter as the voltage changes polarity regularly. The gShield uses 2.7 Kohm resistor which at 24 volts yields a current of approximately 9 mA.

You would need to check your LED characteristics to make sure you don’t exceed its maximum values for voltage and current.

I think the gshield has the LED cathode connected to black (if you followed the assembly instructions) and the anode connected (through a resistor) to green.

---

<div class="post-metadata">

**Author:** ![Srednasoft](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/srednasoft/32/67365_2.png) [@Srednasoft](https://community.inventables.com/u/Srednasoft)\
**Post date:** [November 15, 2015, 7:08pm UTC](https://community.inventables.com/t/extending-gshield-leds/15834/3 "2015-11-15T19:08:34Z")

</div>

I’ve done some testing.  
Used one green led from my Arduino Uno kit and a 2.2Kohm resistor.  
Connected to ground and any of the four stepper motor wires and got light.  
Didn’t get anything from the D holes on the controller.

---

<div class="post-metadata">

**Author:** ![Srednasoft](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/srednasoft/32/67365_2.png) [@Srednasoft](https://community.inventables.com/u/Srednasoft)\
**Post date:** [November 19, 2015, 11:19pm UTC](https://community.inventables.com/t/extending-gshield-leds/15834/4 "2015-11-19T23:19:00Z")

</div>

What will the average voltage on the steppermotor wires be over time. I read about 4-5V on each wire connection when motors not running. Measured between motorwire and -24VDC.  
I’m trying to calculate the best resistor to use for my leds. Green 3.3V 20mA leds.

---

<div class="post-metadata">

**Author:** ![LarryM](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/larrym/32/51450_2.png) [@LarryM](https://community.inventables.com/u/LarryM)\
**Post date:** [November 20, 2015, 12:24am UTC](https://community.inventables.com/t/extending-gshield-leds/15834/5 "2015-11-20T00:24:05Z")

</div>

[Oops! Edited to correct math error 11/20/2015]

You need to design your LEDs to work in the worst case.

24 volts - 3.3 volts = 20.7 volts you need to drop.

20.7 volts / 20 mA = 1035 ohms. Closest standard resistor value = 1100 ohms at 5% tolerance that’s 1100 +/- 55 ohms gives a range of 1045 to 1155 ohms.

P = voltage x current = 20.7 x 0.020 = 0.414 watts. Use next standard value = 1 watt.

Personally, I wouldn’t drive the LEDs that hard. I would plan on about 10 mA.

---

<div class="post-metadata">

**Author:** ![Srednasoft](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/srednasoft/32/67365_2.png) [@Srednasoft](https://community.inventables.com/u/Srednasoft)\
**Post date:** [November 20, 2015, 10:01am UTC](https://community.inventables.com/t/extending-gshield-leds/15834/6 "2015-11-20T10:01:15Z")

</div>

Ok, so the motors can potentially draw 24V on each wire.

Btw, is there a slight error in your calculation?  
I’m getting 1035ohms on 3.3V, 20mA. See picture.

If i run the LEDs on 10mA, I can use 2K ohms on them. They will look a little bit dim on low power, but there will be light.

 ![](https://canada1.discourse-cdn.com/flex009/uploads/inventables/original/2X/e/e71a665e4aec6313d1493b31297f57b2fffd8618.png)

---

<div class="post-metadata">

**Author:** ![LarryM](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/larrym/32/51450_2.png) [@LarryM](https://community.inventables.com/u/LarryM)\
**Post date:** [November 20, 2015, 1:23pm UTC](https://community.inventables.com/t/extending-gshield-leds/15834/7 "2015-11-20T13:23:26Z")

</div>

Yep, math error, shouldn’t do math late at night. Corrected the original.

It won’t hurt to drive them at 20mA if you need the brightness. I usually cut back some. I have a lot of equipment that can light up the room the LEDs are so bright.

The power supply for the motors is 24 volts. That’s what appears on the leads to the motors.

Since the motor voltage is turned on and off rapidly (and reversed at times) you will see a dimming effect much like the dimmer works on a house light.

---

<div class="post-metadata">

**Author:** ![Srednasoft](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/srednasoft/32/67365_2.png) [@Srednasoft](https://community.inventables.com/u/Srednasoft)\
**Post date:** [November 20, 2015, 1:57pm UTC](https://community.inventables.com/t/extending-gshield-leds/15834/8 "2015-11-20T13:57:59Z")

</div>

I will do some more testing. Maybe 1.5K ohm will be ok.

---

<div class="post-metadata">

**Author:** ![Srednasoft](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/srednasoft/32/67365_2.png) [@Srednasoft](https://community.inventables.com/u/Srednasoft)\
**Post date:** [November 20, 2015, 3:51pm UTC](https://community.inventables.com/t/extending-gshield-leds/15834/10 "2015-11-20T15:51:18Z")

</div>

Nice calculator page 😄

Sorry can’t help u with the op-amp. I don’t have a clue 😳

---

<div class="post-metadata">

**Author:** ![LarryM](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/larrym/32/51450_2.png) [@LarryM](https://community.inventables.com/u/LarryM)\
**Post date:** [November 20, 2015, 8:27pm UTC](https://community.inventables.com/t/extending-gshield-leds/15834/11 "2015-11-20T20:27:10Z")

</div>

The power available to the stepper motors is so overwhelming you don’t have to worry about the current syphoned off for an LED.

---

<div class="post-metadata">

**Author:** ![MichaelGrigg](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/michaelgrigg/32/12420_2.png) [@MichaelGrigg](https://community.inventables.com/u/MichaelGrigg)\
**Post date:** [November 20, 2015, 11:05pm UTC](https://community.inventables.com/t/extending-gshield-leds/15834/13 "2015-11-20T23:05:10Z")

</div>

Is it possible to add two LEDs to one stepper motor?

It would be neat to have a control panel that has six LEDs. Two for each axis. One that lights up with + moves on that axis and another that lights of for - movements on that axis.

Not just “Bells and whistles” any more. Now it is “Bells, Whistles, & LEDs”.

Lol

Be a nice “flashy” addition to a control box.

Happy X-Carving!!!

---

<div class="post-metadata">

**Author:** ![LarryM](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/larrym/32/51450_2.png) [@LarryM](https://community.inventables.com/u/LarryM)\
**Post date:** [November 20, 2015, 11:42pm UTC](https://community.inventables.com/t/extending-gshield-leds/15834/14 "2015-11-20T23:42:28Z")

</div>

> [@MichaelGrigg](#):
>
> Is it possible to add two LEDs to one stepper motor?

Yes. You would wire one up between the black and green wire with one polarity and then wire one up between the green and black with the other polarity. Similar arrangement for the white/red.

---

<div class="post-metadata">

**Author:** ![MichaelGrigg](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/michaelgrigg/32/12420_2.png) [@MichaelGrigg](https://community.inventables.com/u/MichaelGrigg)\
**Post date:** [November 20, 2015, 11:54pm UTC](https://community.inventables.com/t/extending-gshield-leds/15834/15 "2015-11-20T23:54:03Z")

</div>

Great! Thank you! Guess I’m off to get some LEDs to install in my control box. Might drop you a line if I have any questions.

Is there a program that makes it easy to draw up wiring diagrams? I am a complete newbie to virtual drawing and could use some advice. It would be very nice to be able to draw up my wiring diagrams for my control box.

Happy X-Carving

---

<div class="post-metadata">

**Author:** ![LarryM](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/larrym/32/51450_2.png) [@LarryM](https://community.inventables.com/u/LarryM)\
**Post date:** [November 20, 2015, 11:56pm UTC](https://community.inventables.com/t/extending-gshield-leds/15834/16 "2015-11-20T23:56:11Z")

</div>

Try this: [http://www.expresspcb.com/free-cad-software/](http://www.expresspcb.com/free-cad-software/)

---

<div class="post-metadata">

**Author:** ![MichaelGrigg](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/michaelgrigg/32/12420_2.png) [@MichaelGrigg](https://community.inventables.com/u/MichaelGrigg)\
**Post date:** [November 21, 2015, 12:41am UTC](https://community.inventables.com/t/extending-gshield-leds/15834/17 "2015-11-21T00:41:46Z")

</div>

Thanks Larry,  
Guess I should have mentioned that I am a Mac Man. I no longer even own a PC.

Are there options such as this for Mac users?

---

<div class="post-metadata">

**Author:** ![LarryM](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/larrym/32/51450_2.png) [@LarryM](https://community.inventables.com/u/LarryM)\
**Post date:** [November 21, 2015, 2:09am UTC](https://community.inventables.com/t/extending-gshield-leds/15834/18 "2015-11-21T02:09:22Z")

</div>

Not sure. I left Apple behind when they went to a closed architecture with the MacIntosh. 😄

---

<div class="post-metadata">

**Author:** ![MichaelGrigg](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/michaelgrigg/32/12420_2.png) [@MichaelGrigg](https://community.inventables.com/u/MichaelGrigg)\
**Post date:** [November 21, 2015, 3:24am UTC](https://community.inventables.com/t/extending-gshield-leds/15834/19 "2015-11-21T03:24:40Z")

</div>

😉👍
