Summary
The article describes a color sensor project using an AT89S52 microcontroller and ADC0808 analog-to-digital converter to identify colors based on reflected LED light on different surface finishes. The system uses red, yellow, and blue LEDs that illuminate the surface, and an LDR sensor detects the reflected light intensity. The LDR's analog signal is converted to digital data by ADC0808, which the microcontroller processes to determine color and display results on an LCD. Additional components include resistors, potentiometer for adjusting LED brightness, crystal oscillator, and voltage regulator.Parts used in the Color Sensor Circuit:
- 3 x Ultra bright LED
- 3 × 220 ohm resistor
- 820 ohm resistor
- 1 k ohm resistor
- LDR (Light Dependent Resistor)
- AT89S52 microcontroller
- 2 line - 16 characters LCD display
- 2 x 20pF capacitors
- 1 x 10pF capacitor
- 12 MHz crystal oscillator
- 10 k ohm potentiometer
- L7805 voltage regulator
- ADC0808 analog-to-digital converter
This color of the surface color to red when you bring to the surface, a sensor to read the LDR, yellow, blue.Red, yellow and blue lights in different surface finishes as a different yansıtmalarını works by taking a foothold. Will be reflected from the surface to send 3 ledlights, this ledlerin to read the value of LDR, its resistance to read to see which is the LCD, LCD ledin brightness potentiometer and different values to adjust resistors, AT89S52 microcontroller and ADC.
LDR to turn digital information to analog information from analog to digital converter-integration used ADC0808.This project did a non-microcontroller with built-in ADC.I have the same circuit with an internal ADC controller could have an easier way.
Color Sensor Circuit Diagram
Used Elements
- 3 x Ultra bright led
- 3 × 220 ohm resistor
- 820 ohm resistor
- 1 k resistor
- LDR
- AT89S52 microcontroller
- 2satır-16 characters LCD
- 2x20p, 1x10pf capacitor
- 12MHz chryristal
- 10 k potentiometer
- L7805 integrated
- ADC 0808
Operation Of The Circuit
Circuit mikrodenetleyicinin 18 and 19. uçarına XT oscillator is connected to the phone. The controller is needed to run the Palsy of the oscillator.Depending on the desired effect is poured directly from the source LEDs işığı. Adc 0808 of outputs connected to the P1 controller port on the mic. ADC0808 of analog input 8-bit numerical value digital information from döniştürüldükten and then P1 port.These numeric values are processed in the program of prayer and then sending that detect which color lcd to
Proteusta is not plotted on linear instead of LDR LDR of LDR. ADC 0808 of IN7 (analog input) to be converted to a numeric value from the tip of the voltage is done in the following way;
ADC is ultimately only a digital element portlarında unit produces the 1 ‘s and 0 ‘s information …
I can’t say that is sensitive to the values between 0 and 5v. ADC converts the information to a value from 0 to 255 and 256 volumes of information from the resolution.For this exercise, simply 8-bit adc.
As an example, it is worth to be read this * into * the adc Tip 2.1 volts, 107-108, there will be a number such as (2 * 256/5).
For more detail: Color Sensor Circuit with AT89S52 ADC0808