LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

color sensor

I am using an Sen 10904 color sensor and I am facing problems with it, the sensor light ON when connected but the voltages of the corresponding colors still in zero and don't change when a color is near the sensor.Please help.

 

 

afah.png

0 Kudos
Message 1 of 6
(4,416 Views)

I see that you're using LabVIEW Interface for Arduino here.
The sensor datasheet tells me that you don't need to give HIGH to the gain pins of this sensor. So try changing the values to LOW (0) instead of HIGH (1) and then observe.

 

 

Regards.

 

 


0 Kudos
Message 2 of 6
(4,340 Views)
The same problem but when I see the code in spark fun that corresponds to the sensor in addition they muktiplied the analog reading of each color by different value and when I erase them it give me the same problem as labview. So how can for example muktiply the analog reading of the red color by 10 in labview
0 Kudos
Message 3 of 6
(4,316 Views)

@zuzu12 wrote:
The same problem but when I see the code in spark fun that corresponds to the sensor in addition they muktiplied the analog reading of each color by different value and when I erase them it give me the same problem as labview. So how can for example muktiply the analog reading of the red color by 10 in labview

 

Can you provide a link to the sparkfun code? What did you erase, exactly?

Multiplying in LabVIEW is easy 😄

Why is your code so repetitive? You can use a FOR loop, autoindexing on an array of the only changing input.

What is your desired loop rate? As fast as the hardware allows?

0 Kudos
Message 4 of 6
(4,272 Views)
You search for sen 10904 in google, then when you enter the website of spark fun the code is provides beside the picture of the sensor.
0 Kudos
Message 5 of 6
(4,239 Views)
Since the example code writes to the serial port as is, why did you modify the code and not simply use a serial read? Did the original code work with the arduino serial monitor? What are you trying to do? Did you read the comments about the purpose of the multiplication?
0 Kudos
Message 6 of 6
(4,227 Views)