AS-7262

I’ve got a few question about this sensor but don’t know where to ask it, so i’ll ask them here.

I hooked this sensor up to my arduino uno and got it al working and i get these mesuarement results for 5 colors.

Reading: V[28.89] B[32.12] G[88.24] Y[65.47] O[146.11] R[60.98] tempC[23]

Reading: V[27.63] B[32.12] G[88.24] Y[64.52] O[145.06] R[60.09] tempC[24]

Reading: V[20.09] B[22.75] G[71.05] Y[52.19] O[133.58] R[53.81] tempC[23]

Reading: V[26.37] B[32.12] G[72.20] Y[53.14] O[125.23] R[51.12] tempC[24]

Reading: V[25.12] B[28.10] G[82.51] Y[58.83] O[133.58] R[54.71] tempC[23]

Reading: V[23.86] B[26.77] G[80.22] Y[60.73] O[151.33] R[61.88] tempC[23]

Reading: V[50.24] B[74.95] G[173.05] Y[122.40] O[211.86] R[85.20] tempC[23]

Reading: V[31.40] B[34.80] G[103.14] Y[74.01] O[178.46] R[69.95] tempC[23]

Reading: V[30.14] B[33.46] G[99.70] Y[72.11] O[173.24] R[67.26] tempC[23]

Reading: V[30.14] B[33.46] G[97.41] Y[70.22] O[169.07] R[66.36] tempC[23]

Reading: V[28.89] B[32.12] G[92.83] Y[66.42] O[161.76] R[62.78] tempC[23]

Reading: V[27.63] B[30.78] G[91.68] Y[65.47] O[159.67] R[62.78] tempC[24]

Reading: V[28.89] B[30.78] G[92.83] Y[66.42] O[160.72] R[62.78] tempC[23]

Reading: V[28.89] B[30.78] G[92.83] Y[65.47] O[160.72] R[62.78] tempC[23]

Reading: V[28.89] B[30.78] G[92.83] Y[66.42] O[160.72] R[62.78] tempC[24]

However, i don’t really know what to do with this data.

  1. What do the numbers behind the letters that represent the colors mean? (as in on what scale?) Because when you use RGB, the values go from 0-255 but here the values go up to a 1000.

  2. Is there a way to program it so it gives out RGB values?

Thanks in advance.

Hi Casdouwes,

The AS-7262 returns irradiance data for each channel in counts per μW/cm2. If you look at the label for each channel you’ll notice they match a color on the visible spectrum (the good ol’ ROYGBIV) so to use it for RGB values you just want to read the data for the Red, Green and Blue channels. For more information about processing the data, I would recommend reading through the [AS7262 Datasheet.

I hope this helps.](https://cdn.sparkfun.com/assets/f/b/c/c/f/AS7262.pdf)