Automatic Color Detector Using LDR

This is a guide for building a automatic color detector using LDR (light dependent resistor). This is small in size, and can be built in less than a few minutes.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Things You Need

You need the following-

  • LDR (light dependent resistor).
  • LED- The color of the LED you need depends upon the color you need to detect. Eg., if you need to detect red color, then you need red LED.
  • 9V Battery
  • small lithim 3v battery for the led.
  • 22k resistor
  • small vibrator(just to alert you)
  • A switch
  • tape

Step 2:

Take the ldr and cover it with small amount of insulating tape as shown in the image. this is to protect the ldr from other lights.

Attach the led and ldr to the opposite sides of the battery. connect the led to the small lithium battery, while connect the ldr to the 9v battery, vibrator, resistor and a switch in series. The led and the ldr must be kept almost parallel, and slighty inclined to each other. cover the whole body except the led and the ldr can be covered with tape.

note: the led circuit and the ldr circuit are different.

For detecting white color, use a white led, and so on. hold the apparatus a few cm away from the surface of which you need to find the color. You can also use it in robot.

how it works-

if you want to detect white color, then use a white led. when the light from the led touches a white surface, then the light bounces and reaches the ldr as white light. The ldr responds to white light the most; therefore the vibrator gets switched on, alerting you. when it hits a surface, of different colour then an amount of light will be absorbed and a light of different wavelength reaches the ldr. In the latter, the vibrator doesn't get switched on. you can use red led for detecting red color and so on.

Automation Contest

Participated in the
Automation Contest

Be the First to Share

    Recommendations

    • CNC Contest

      CNC Contest
    • Make it Move

      Make it Move
    • Teacher Contest

      Teacher Contest

    9 Discussions

    0
    None
    ayushijain1

    1 year ago

    I have seen ready made sensor array that differentiate the red, green, blue and white color using green light.. Is it possible for us to do so??

    0
    None
    nafaq

    2 years ago

    Hi

    how can we detect white color if we use red and green LEDs?

    2 replies
    0
    None
    ajmal hassannafaq

    Reply 2 years ago

    You can't detect white color using red and green LEDs. You should use white LED to detect white.

    0
    None
    ajmal hassannafaq

    Reply 2 years ago

    no you have to use green led for detecting green color, and vice versa...

    you HAVE to use only white led to detect white color.

    0
    None
    ajmal hassanJohn_Singleton_

    Reply 2 years ago

    yes agreed.

    but i am using a small vibrator. it uses very less current, so you can use it.

    0
    None
    ajmal hassanKarthik Raj

    Reply 2 years ago

    no.

    the resistance of the LDR is very high. but there are circuits to boost the current.