LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MyDAQ beginners phototransistor resistor circuit help

Hello I am new to labview and a freshman in college so I'm pretty confused with this project I have to do and was looking for some help. I've researched online for a good chunk out of the day but I am still having trouble setting up labview. 

I have the hardware set up, its just trying to get labview to work is difficult for me.

 

The object is to create a phototransistor resistor voltage divider circuit with the MyDAQ box. I'm supposed to create a light circuit in which none of the LEDs light up in base state, only the green lights up when bright light is detected, and only the red lights up when an even brighter light is detected. 

 

How would I go about starting this? Any beginner light sensor guides would be helpful. 

Thank you

-Viv

0 Kudos
Message 1 of 4
(3,690 Views)

It is difficult to tell from a photo but it appears that your hardware is OK. I cannot tell if you have the photodiode polarity correct.

 

Consider the steps required for your process:

1. Initialize the MyDAQ to the required state - one analog input channel and two digital outputs.

2. Read the voltage produced by the photodetector circuit.

3. Compare the voltage read to thresholds determined by design calculations or experimental calibration.

4. Set LED outputs appropriately.

5. Wait a short time. 50-100 ms is probably suitable.

6. Repeat steps 2-5 until a stop condition is reached.

7. Reset the LEDs to off and clear the DAQ tasks.

 

Now, which steps have you done, which ones do you know how to do but have not tried yet, and which ones are complete mysteries?  Are you taking a LabVIEW class or learning it on your own? There are many on-line tutorials to help you get started.

 

We will not do your assignments for you but if you post your VI and ask specific questions about how something works, we will help you learn.

 

Lynn

0 Kudos
Message 2 of 4
(3,670 Views)

So far I have the input/output daq assistants configured and my waveform chart. I know how to manually light up the leds but I cannot figure out how to send a specific voltage to the led to make it light up on its own. 

0 Kudos
Message 3 of 4
(3,623 Views)

If you could show us what you had done already in terms of the LabVIEW program it might give us a better idea of where you are sitting at the moment.

 

When you say manually light up LEDs is this with a LabVIEW program?

 

If you have a look through the Example finder you should be able to find something that will show you most of what you want.

Digital - Continuous Output.VI covers the outputting to the LEDs.

Voltage- Continuous Input.VI covers all of the voltage reading.

 

So its just a matter of combining those two with some logic and you should be fine.

0 Kudos
Message 4 of 4
(3,604 Views)