Getting Inconsistent Data from NIR Sensor

Hi everyone,

I am working on a project for school where we are trying to sort plastics from non-recyclable materials. The end goal is to have a device which can be placed on top of a recycling/trash can that can identify whether an object is recyclable or not, then be able to place the given object in its respective can. We are using a few different tools to do this, and one path we are pursuing is using a Near-Infrared Sensor.

Anyways, I have the sparkfun AS7263 NIR and each time I use it I will get different data for the same object, placed the same distance away from the sensor. I’ve noticed that I’m still able to identify trends (plastic bottles will always return similar values), but these values change each time I turn the sensor on/off. This obviously creates a problem because the logic in our end code is going to have to say ‘if a certain criteria of data is met, then object is recyclable’, and if we get different results for the same objects every time, this would be incredibly unreliable.

I’ve attached a picture of 2 different data sets for the same object at the same distance, as well as a picture of my set up. Thanks in advance for the help and let me know if you guys need any more info!

Forgot to mention, I am using the sample code 1 posted on the sparkfun tutorial for the NIR Sensor.

You’re aiming the sensor at a clear bottle and the IR pulses from the sensor might be reflecting/refracting in strange ways. What happens if you substitute a opaque object for the clear bottle?

Sonar might be better at detecting clear objects than light.

Hello good afternoon,

I am working on a project that uses the AS7263 chip. I have tried different ways but i am not getting consistent data using the same sample (exactly like LU_sustainability), so I am asking what are the ideal conditions to get data. Light conditions (should i get a light bulb close the experiment and a dark room for it?) , sample to chip distance (1 cm or 10 cm for instance) and angle of incidence.

Also i need to know what values are getting in all the channels. In my arduino sketch i get these readings:

Reading: R[62.41] S[83.85] T[97.00] U[133.01] V[142.81] W[163.77]. These values are 62.41 μW/cm2 for R channel??

Hello good afternoon,

I am working on a project that uses the AS7263 chip. I have tried different ways but i am not getting consistent data using the same sample, so I am asking what are the ideal conditions to get data. Light conditions (should i get a light bulb close the experiment and a dark room for it?) , sample to chip distance (1 cm or 10 cm for instance) and angle of incidence.

Also i need to know what values are getting in all the channels. In my arduino sketch i get these readings:

Reading: R[62.41] S[83.85] T[97.00] U[133.01] V[142.81] W[163.77]. These values are 62.41 μW/cm2 for R channel??