Author Topic: fpga driving multiple leds, high amp concerns  (Read 973 times)

0 Members and 1 Guest are viewing this topic.

Offline aussie_laser_dudeTopic starter

  • Contributor
  • Posts: 46
  • Country: au
fpga driving multiple leds, high amp concerns
« on: April 07, 2020, 10:02:12 am »
Hi everyone,
this is my first forum post, hoping to enjoy my time reading through the forums :)

Can a DE0 nano FPGA evaluation board (a cyclone IV fpga) drive 16 standard LEDS (just the kind of common LEDS you get in hobbyist packs). I'm concerned that trying to light them all up at once could damage my fpga due to all the current passing through it. I'm unsure on how much current the fpga can handle?

I've just discovered fpgas, pretty blown away by the stuff they can do!
cheers
 

Offline TheHolyHorse

  • Regular Contributor
  • *
  • Posts: 179
  • Country: se
  • You don't need to be confused, just understand it.
Re: fpga driving multiple leds, high amp concerns
« Reply #1 on: April 07, 2020, 12:15:31 pm »
You should be able to find that information in the datasheet of the fpga.

Also in what configuration will the LEDs be in? Series, parallel?

Series will result in lower current but higher voltage (the forward voltage if the LEDs added together) which is probably gonna be way higher than the fpga can output.

The best solution is to get some external led driving circuitry.
 
The following users thanked this post: aussie_laser_dude

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9935
  • Country: us
Re: fpga driving multiple leds, high amp concerns
« Reply #2 on: April 07, 2020, 01:16:54 pm »
 
The following users thanked this post: aussie_laser_dude

Offline Jan Audio

  • Frequent Contributor
  • **
  • Posts: 820
  • Country: nl
Re: fpga driving multiple leds, high amp concerns
« Reply #3 on: April 07, 2020, 01:24:38 pm »
Or use higher resistors to keep it low current ( and less bright )
 
The following users thanked this post: aussie_laser_dude

Offline TheHolyHorse

  • Regular Contributor
  • *
  • Posts: 179
  • Country: se
  • You don't need to be confused, just understand it.
Re: fpga driving multiple leds, high amp concerns
« Reply #4 on: April 07, 2020, 04:48:52 pm »
Or use higher resistors to keep it low current ( and less bright )

He still needs the higher voltage. 4mA is enough to make the LEDs emit light, but if he connects them in series he's still gonna need like 32V assuming that the LEDs have a 2V forward voltage.
 
The following users thanked this post: aussie_laser_dude

Offline aussie_laser_dudeTopic starter

  • Contributor
  • Posts: 46
  • Country: au
Re: fpga driving multiple leds, high amp concerns
« Reply #5 on: April 07, 2020, 09:40:58 pm »
Thanks everyone. Table 1-15 for cyclone IV link given by rstofer saying +-4mA is what I was after. Looks like it'll handle 16 low power (<2ma) leds on 16 different I/O pins with no problem. Transistors are a nice idea if I need more power.

Thanks again guys  :-+
« Last Edit: April 07, 2020, 10:24:00 pm by aussie_laser_dude »
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3335
  • Country: gb
Re: fpga driving multiple leds, high amp concerns
« Reply #6 on: April 08, 2020, 09:16:26 am »
Thanks everyone. Table 1-15 for cyclone IV link given by rstofer saying +-4mA is what I was after. Looks like it'll handle 16 low power (<2ma) leds on 16 different I/O pins with no problem. Transistors are a nice idea if I need more power.

Thanks again guys  :-+

That is absolutely fine, I think many people were thinking you wanted to drive all those LEDs from one pin which wouldn't work well.
 

Offline TheHolyHorse

  • Regular Contributor
  • *
  • Posts: 179
  • Country: se
  • You don't need to be confused, just understand it.
Re: fpga driving multiple leds, high amp concerns
« Reply #7 on: April 08, 2020, 10:29:15 am »
Thanks everyone. Table 1-15 for cyclone IV link given by rstofer saying +-4mA is what I was after. Looks like it'll handle 16 low power (<2ma) leds on 16 different I/O pins with no problem. Transistors are a nice idea if I need more power.

Thanks again guys  :-+

I haven't read the datasheet but check the total allowed IO current. Just because max IO pin current is 4mA doesn't mean you can do that on to many pins at the same time.

Be sure to check that before you accidentally toast a chip.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf