LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

intensity of lights/led

Hi,

 

Is it possible to control intensity of a led using sine wave or cosine when you have LV interfaced with Arduino? Basically to make it glow slowly by time and then intensity should decrease on its own with certain paatern of the signal or wave generated?

 

 

Thanks.

0 Kudos
Message 1 of 8
(3,625 Views)
From the hardware standpoint, you can change the intensity of an LED by varying the current through it. How you do that, depends on how you system is structured.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 8
(3,613 Views)

Thanks Mike for your reply.

 

Yes indeed, through hardware it is possible but what I'm trying to do is if it could be possible in LV code. 

for example using PWM pins of arduino it is possible to have different duty cycle but what if intensity increase or decreses with sine wave i.e. it varys with the curve, something like that.

 

 

thanks 

0 Kudos
Message 3 of 8
(3,558 Views)

If what you're asking is whether you can generate a PWM output, the answer is yes.


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 8
(3,548 Views)

I think I couldn't explain it well.

 

 I am asking whether it is possible to control brighness/intensity of the led using a sine wave or bell curve etc?

 

For example; when LED is switched on (or when program runs) it should automatically slowly reach to its max intensity by the time?

0 Kudos
Message 5 of 8
(3,531 Views)

Yes.  You just need to translate the value of the sine wave at a point of time to a PWM value to pass to the Arduino.

0 Kudos
Message 6 of 8
(3,529 Views)

and how it could be implemented? 

Just using the sine wave generator and connecting its output to PWM of arduino ?

0 Kudos
Message 7 of 8
(3,526 Views)

Sure.  You may have to do some scaling.

 

At some point you are going to have to just start programming and trying things out.

0 Kudos
Message 8 of 8
(3,518 Views)