Author Topic: LED's on data buses  (Read 4608 times)

0 Members and 1 Guest are viewing this topic.

Offline SilenusTopic starter

  • Contributor
  • Posts: 48
LED's on data buses
« on: June 28, 2015, 03:28:34 am »
Hey guys. I am looking to put a bit of visibility on a pcb of mine and am considering putting LED's in places that have data transmission. I am unsure however, whether they will adversely affect the data signal if I put them in series with the data bus. For instance, if I have an rx/tx bus with 5V logic and LEDs with a forward bias voltage of ~0.9V then the logic high at the other end would be 4.1V correct? Would this data bus still work? Would I need to put a current limiting resistor for the LED as well?
 

Offline David_AVD

  • Super Contributor
  • ***
  • Posts: 2806
  • Country: au
Re: LED's on data buses
« Reply #1 on: June 28, 2015, 03:49:04 am »
Put the LED (and it's series resistor) from the data line to 0V (or Vcc if it's active low).

Use a high efficiency LED and a fairly high value resistor (say 4K7) to keep the loading on the data line low.
 

Offline SL4P

  • Super Contributor
  • ***
  • Posts: 2318
  • Country: au
  • There's more value if you figure it out yourself!
Re: LED's on data buses
« Reply #2 on: June 28, 2015, 03:50:47 am »
Don't put the LEDs in series.

You may get away with LED and series resistor in parallel with the target input, but you are far better off by buffering the LED from the buss.
That could be a small transistor, or a hex/octal buffer in a chip.

If the simple LED in parallel works, the two things you need to be aware of are maintaining the 0/1 voltage swing, and stray capacitance that could slow down the edges (if they are fast).

Good luck.  Good question.
EDIT: (Sorry David AVD, not trying to counter your simultaneous posting!)
« Last Edit: June 28, 2015, 03:52:44 am by SL4P »
Don't ask a question if you aren't willing to listen to the answer.
 

Offline SilenusTopic starter

  • Contributor
  • Posts: 48
Re: LED's on data buses
« Reply #3 on: June 28, 2015, 04:12:24 am »
Looking at the design for an arduino uno they have put the uart leds on two separate pins that I assume they just turn on in sequence with the uart data?
 

Offline SL4P

  • Super Contributor
  • ***
  • Posts: 2318
  • Country: au
  • There's more value if you figure it out yourself!
Re: LED's on data buses
« Reply #4 on: June 28, 2015, 04:17:11 am »
that's correct.
the USB coprocessor or FTDI chip manages the Tx/Rx LEDs independently of the data stream pints.
Fine if you have the spare pins, and cpu time between the serial bits to toggle the LED States.
Don't ask a question if you aren't willing to listen to the answer.
 

Offline SL4P

  • Super Contributor
  • ***
  • Posts: 2318
  • Country: au
  • There's more value if you figure it out yourself!
Re: LED's on data buses
« Reply #5 on: June 28, 2015, 04:28:37 am »
Yes... in 99% of applications.
Keep the LED wiring and resistor leads as short and tidy as possible if the data speeds are getting up higher.
Don't ask a question if you aren't willing to listen to the answer.
 

Offline SilenusTopic starter

  • Contributor
  • Posts: 48
Re: LED's on data buses
« Reply #6 on: June 28, 2015, 04:28:56 am »
Would something like this work?

 

Offline SilenusTopic starter

  • Contributor
  • Posts: 48
Re: LED's on data buses
« Reply #7 on: June 28, 2015, 04:30:13 am »
Yes... in 99% of applications.
Keep the LED wiring and resistor leads as short and tidy as possible if the data speeds are getting up higher.

Thanks :)  Sorry just realised I had my LEDs around the wrong way (used to the top power port being vcc) hence the deleted comment.
 

Offline Muxr

  • Super Contributor
  • ***
  • Posts: 1369
  • Country: us
Re: LED's on data buses
« Reply #8 on: June 29, 2015, 03:09:36 pm »
LEDs are not high impedance, usually data goes to high impedance components. This means data pins on an IC are not meant to provide current for driving components like a LED.

Will it work? It might. It will potentially degrade your signal, and put strain on the driving circuit. Your data may become corrupted because of degradation imposed by LEDs drawing current.

As SL4P has suggested you want to buffer the signal from data lines to LEDs. Use transistors as switches from your bus lines. This will limit the current drain imposed on the data lines since transistors will provide the current for the LEDs.
« Last Edit: June 29, 2015, 03:12:25 pm by Muxr »
 

Offline David_AVD

  • Super Contributor
  • ***
  • Posts: 2806
  • Country: au
Re: LED's on data buses
« Reply #9 on: June 30, 2015, 02:28:17 am »
Muxr, I'm not sure what ICs you normally use but ...

Your typical microcontroller output pin can source 10 - 20mA so putting an LED on there that draws 1 - 2mA is not going to be an issue.

Similarly, a lot of 74xx logic outputs will also be able to source plenty of current.

There are plenty of LEDs out there that will light brightly with only 0.5mA of current.
« Last Edit: June 30, 2015, 02:30:53 am by David_AVD »
 

Offline Muxr

  • Super Contributor
  • ***
  • Posts: 1369
  • Country: us
Re: LED's on data buses
« Reply #10 on: June 30, 2015, 02:58:38 am »
Muxr, I'm not sure what ICs you normally use but ...

Your typical microcontroller output pin can source 10 - 20mA so putting an LED on there that draws 1 - 2mA is not going to be an issue.

Similarly, a lot of 74xx logic outputs will also be able to source plenty of current.

There are plenty of LEDs out there that will light brightly with only 0.5mA of current.
I've ran into issues with SPI data signal quality on the esp8266 due to high load. Also usually IC's overall source and sink budget is much less than the sum of all its IO pins. So it would be prudent to buffer something as critical as the data bus. I agree though for 1 - 2 mA there shouldn't be too much issue.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf