03-18-2015 02:13 PM
Hi,
I have got my Arduino uno interfaced with Labview. As part of my project one of the task is to control the brightness of an actual LED using a Gaussian curve. The intensity should gradually increase and follow the gaussian curve. Led is connected to one of the PWM pins of arduino. I have got the code and it seems fine to me but I am not getting any output on the actual LED (all connections are fine). Just for the experiment I have tried the same technique using sine wave generator that works fine and LED follows the behavior of sine waveform.
I have attached both VIs (sine and gaussian). If I am following the wrong appraoch please rectify
I will be grateful if someone can help.
Thanks
03-18-2015 10:16 PM
03-19-2015 05:24 AM
Hi,
Firsrly, thanks for your reply.
- I have changed the baude rate to 9600 in Lifa as i was also using Bluetooth interface that required baude rate to be 9600.
- In terms of speed I just want it to complete a cycle. Maybe later on I can use delay or wait for timing if required.
- Like you said to "scaling" the output. How would I be able to do that? Some guidance would be beneficial.
And I'll put the "set pin" outside the while loop
Thanks for your help
Kind Regards
03-19-2015 06:06 AM
Thank at all
José Mª. Gómez de Salazar
Catedrático del Dpto. de C. de Materiales. (F. CC. Químicas)
Universidad Complutense de Madrid
tfno: 34913944351//34616497711
FAX. 34913944357
URL: www.ucm.es/info/tuma
2015-03-19 11:25 GMT+01:00 w1 <web.community@ni.com>:
<https://decibel.ni.com/content/index.jspa> Re: Labview Arduino LED
intensity created by w1 <https://decibel.ni.com/content/people/w1> in *LabVIEW
Interface for Arduino* - View the full discussion
<https://decibel.ni.com/content/message/96328#96328>
03-22-2015 02:58 PM
Basically you need to get your output into a ratio of the largest value (essentially a percentage of your largest value). So, you will have a value between 0 and 1. Then you simply multiply by the target range of 255.
03-31-2015 05:28 AM
Hi Nathan,
I have tried making an array with some help but I am not sure if I am
implementing it the right way or not. Can You please have a look on the
attached VI?
Kind Regards