Prove that black absorb more rays than white

WST003

The amount of reflection light will depend upon the color of the surface from which it is being reflected. Black is said to be perfect absorber and white is to be said perfect reflector. The reflection will be different for different colors. Thus make it a color detector.

  1. Arduino UNO
  2. IR sensor
  3. Jumper Cable
  4. USB Cable A-B
  1. Connect the IR sensor to the Arduino UNO board.
    IR Sensor Arduino UNO
    VCC 5 v
    gnd Gnd
    OUT  Pin 8
  2. Upload the code.
  3. Test the value of the IR sensor for various colors.

    int ir=8;

void setup() {
  // put your setup code here, to run once:
Serial.begin(9600);
pinMode(ir,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
Serial.println(digitalRead(ir));
}