LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help - I2C write/read with TAOS TCS3414 light sensor using USB-8451

Hello, I'm new to labview and need help setting up a vi that will allow me to communicate with a digital light sensor (TAOS TCS3414) using a USB-8451. I need to use the sensor to measure light from a light source that I designed and built as part of a project im working on. I've tried looking at several labview I2C exampled but find them to be very confusing. I've used an arduino to interface with the sensor successfully but need to use labview and dont understand how to write the program. The actions are simple; I need initialize the sensor with a simple command and then request data from 8 data registers and then read that data. The data will then be used in further calculations. The portion i need help with is writing and reading from the sensor. I've attached the datasheet for the sensor as a guide. I can also provide the arduino code that i use to read data from the sensor if that would help. 

 

Pleae keep in mind that i am completely new to labVIEW. I really do want to learn from this but need quick results so the more help the better. It would greately appreciate any help or explaination. 

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

Hi Aaron,

 

Here you go, this is made with a USB-8452.

When you run the code tick the power en dac enable box on.

 

Maybe you can help me with my problem, I want to use a fiber to sense light from a led.

Do you use any fiber hardware with the TCS3414?

 

gr,

Message 2 of 4
(3,228 Views)

Thank you so much. This is such an incredible help. Your idea for using a fiber to measure the light output of an LED sounds interesting. As far as the optical calculations involved, i'm not your guy. I would assume that if the LED and Sensor are both inline with the axis of the fiber(input and output) then it would just be a matter of fixing the fiber to the sensor. The TCS3414 is available presoldered to a small DIP pcb from sources such as eBay. Personally, I fabrictaed my own pcb adapter. If you made a PCB adapter for the chip that would allow for the mounting of some hardware to hold the fiber in place directly over the sensor face, it could provide adequate results. 

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

It's nice to help.

Kudo's are welcome!

 

I already have a pcb with the chip on it, but still searching on the internet for a pcb connector where I can connect the fiber cable on.

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