Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5625

Arduino Emitter detector

$
0
0

In order to calculate the transparency of a liquid, I have an RGB LED and a light dependant resistor either side of some clear tubing inside a clamshell to trap all the light inside.

 

In my VI, I flash the light 100 x times and read the data from the LDR and put it into High Array. I then read the data 100 times with the LED turned OFF and enter this into Low Array. The data from High array is put into a 'LED ON Graph', and the data from Low array is put into 'LED OFF Graph'. Below is an example of my results.

 

EdwinStar_0-1683198386330.png

Does anyone know why my data from the 'LED ON' tends to the value that it reads when the value is OFF. Is there a better way of doing this to get a flat horizontal line for 'LED ON' Vales.

 

Thank you

 

 


Viewing all articles
Browse latest Browse all 5625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>