A low-cost color sensing system using an RGB LED and an LDR, exploring color detection through calibrated illumination and reflected light. DIY RGB + LDR Color Sensor (Arduino).
🔹PCB
🔹Schematic:
A low-cost color sensing system using an RGB LED and an LDR. The idea is to sequentially illuminate a surface with red, green, and blue light and measure reflected intensity to identify colors. It basically works like a human eye, detecting RGB reflections and determining the surface color.
🔹 Need
Commercial color sensors are expensive and opaque. This project explores how much can be achieved with basic components, calibration, and software logic. The fun part is that all the components used are super ubiquitous and affordable, so anyone can make it.
- Arduino (Pro mini)
- An LDR
- Resistors(10kΩ, 2x100Ω & 150Ω)
- An RGB LED with common cathode
- 0.96 inch I2C OLED display
- PCB(gerber included in hardware directory)
- MicroUSB female 5 pin
- 3x668 push buttons
- 2x12 2.54mm Female Headers + 1x2 2.54mm Female Headers
- Use the gerber files to create the PCB required for this project from assets
- Upload "firmware.ino" into Arduino pro mini
- Insert Arduino pro mini into the PCB header slots with correct orientation and solder other components
- Make sure that RGB led doesn't directly interfere with LDR readings, ie a separater may be used or correct angles must be ensured
- LDR and RGB must be close to/in contact with the surface for accurate readings


