Skip to content

CosmicDev404/rgb_color_reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rgb_color_reader

Screenshot 2026-01-09 142144

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

Screenshot 2026-01-08 134518Screenshot 2026-01-08 140915

🔹Schematic:

image

Description

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.

Cinematic

🔹 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.

Components/BOM:

  • 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

Instructions

  • 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

About

A low-cost color sensing system using an RGB LED and an LDR, exploring color detection through calibrated illumination and reflected light.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages