Author Topic: Issue with constant current source for LED  (Read 1231 times)

0 Members and 1 Guest are viewing this topic.

Offline AluzTopic starter

  • Newbie
  • Posts: 7
  • Country: us
Issue with constant current source for LED
« on: June 07, 2023, 10:58:33 pm »
I've been trying to build a constant current led control circuit, but I'm not sure why it's not working. I'm using the arduino output to control I_SP. Output voltage for LED is extremely low for some reason. Should be around 7-8v but for 12v supply is around 2-3v.

Any help would be much appreciated.
 

Offline PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 2090
  • Country: au
Re: Issue with constant current source for LED
« Reply #1 on: June 08, 2023, 12:04:45 am »
It's more common to put the LED in the FET Drain, as that gives lowest voltage loss.
As you have it now, the VGS of the fet subtracts from the VCC range.
Moving the LED eliminates that Vgs dependance.
 
The following users thanked this post: MMMarco

Offline AluzTopic starter

  • Newbie
  • Posts: 7
  • Country: us
Re: Issue with constant current source for LED
« Reply #2 on: June 08, 2023, 12:08:07 am »
Oh I see, should the wire between R3 and Imeasure exist?
 

Offline PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 2090
  • Country: au
Re: Issue with constant current source for LED
« Reply #3 on: June 08, 2023, 12:41:22 am »
Oh I see, should the wire between R3 and Imeasure exist?

Yes, that's needed for feedback.
You move the UV LED up on the SCH to connect the + to VCC and - to MOSFET Drain
 
The following users thanked this post: Aluz

Offline magic

  • Super Contributor
  • ***
  • Posts: 7453
  • Country: pl
Re: Issue with constant current source for LED
« Reply #4 on: June 08, 2023, 04:46:24 pm »
Measure voltages at all inputs and output of U1 and Q1 and see what isn't behaving the way it should.

If you have a scope, check if there is no oscillation.

Not sure what's the point of R3? Maybe you copied this schematic from somewhere and R3 was meant to go to U1 IN- rather than VCC?
 
The following users thanked this post: Aluz

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6399
  • Country: es
Re: Issue with constant current source for LED
« Reply #5 on: June 08, 2023, 08:02:53 pm »
Don't use a N-Fet like that.

The gate threshold is usually around 2.5-3V, that voltage Will be dropped bt the fet.
Then the led drops another 2-3 volts, so 5Vcc won't work.

Place the led at the drain!
Also lower power loses by replace the sensing resistor with 1ohm, and dividing the output of the RC filter by 10.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 
The following users thanked this post: Aluz

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15794
  • Country: fr
Re: Issue with constant current source for LED
« Reply #6 on: June 08, 2023, 08:40:21 pm »
Yes to the above.

Use a current sink topology with a NMOS (source to GND) rather than a current source one.
If you insist on a current source topology for some reason (which doesn't seem justified here), in the same context, use a PMOS instead (the current will in this case be proportional to the difference between VCC and the input voltage).

 
The following users thanked this post: Aluz

Online Zero999

  • Super Contributor
  • ***
  • Posts: 20353
  • Country: gb
  • 0999
Re: Issue with constant current source for LED
« Reply #7 on: June 08, 2023, 09:07:04 pm »
Put the LED in the drain.
 
The following users thanked this post: Aluz

Offline AluzTopic starter

  • Newbie
  • Posts: 7
  • Country: us
Re: Issue with constant current source for LED
« Reply #8 on: June 09, 2023, 09:18:13 pm »
Ok awesome, I will test this out. Thank you.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf