Arduino and ESP32 CAM-Based Color Sensor with I2C LCD Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that integrates an Arduino UNO, an ESP32 CAM, a TCS3472 Color Light-to-Digital Converter, a 16x2 I2C LCD, resistors, and a 9V battery. The circuit is designed to interface various sensors and display modules with the Arduino UNO, which serves as the central microcontroller. The ESP32 CAM is also included for additional functionalities.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
ESP32 CAM
- Description: A low-cost development board with a camera module.
- Pins: 5V, GND, GPIO12, GPIO13, GPIO15, GPIO14, GPIO2, GPIO4, 3.3V, GPIO16, GPIO0, 3.3V / 5V / P_OUT, GPIO3 / RX, GPIO1 / TX
TCS3472 Color Light-to-Digital Converter with IR Filter
- Description: A sensor that converts light to digital values with an IR filter.
- Pins: LED, INT, SDA, SCL, 3V3, GND, VIN
16x2 I2C LCD
- Description: A 16x2 character LCD display with I2C interface.
- Pins: GND, VCC, SDA, SCL
Resistor (20k Ohms)
- Description: A resistor with a resistance of 20k Ohms.
- Pins: pin1, pin2
Resistor (10k Ohms)
- Description: A resistor with a resistance of 10k Ohms.
- Pins: pin1, pin2
9V Battery
- Description: A 9V battery for powering the circuit.
- Pins: -, +
Wiring Details
Arduino UNO
- 5V connected to VIN of TCS3472 Color Light-to-Digital Converter and VCC of 16x2 I2C LCD.
- GND connected to GND of TCS3472 Color Light-to-Digital Converter, GND of 16x2 I2C LCD, GND of ESP32 CAM, and - of 9V Battery.
- Vin connected to + of 9V Battery.
- A4 connected to SDA of TCS3472 Color Light-to-Digital Converter.
- A5 connected to SCL of TCS3472 Color Light-to-Digital Converter.
- SCL connected to SCL of 16x2 I2C LCD.
- SDA connected to SDA of 16x2 I2C LCD.
- D6 connected to LED of TCS3472 Color Light-to-Digital Converter.
- D5 connected to INT of TCS3472 Color Light-to-Digital Converter.
- D1 connected to pin1 of 10k Ohm Resistor.
- D0 connected to GPIO1 / TX of ESP32 CAM.
ESP32 CAM
- GND connected to GND of Arduino UNO and GND of 16x2 I2C LCD.
- GPIO1 / TX connected to D0 of Arduino UNO.
- GPIO3 / RX connected to pin2 of 10k Ohm Resistor.
- GND connected to pin2 of 20k Ohm Resistor.
TCS3472 Color Light-to-Digital Converter with IR Filter
- VIN connected to 5V of Arduino UNO.
- GND connected to GND of Arduino UNO.
- SDA connected to A4 of Arduino UNO.
- SCL connected to A5 of Arduino UNO.
- LED connected to D6 of Arduino UNO.
- INT connected to D5 of Arduino UNO.
16x2 I2C LCD
- VCC connected to 5V of Arduino UNO.
- GND connected to GND of Arduino UNO and GND of ESP32 CAM.
- SCL connected to SCL of Arduino UNO.
- SDA connected to SDA of Arduino UNO.
Resistor (20k Ohms)
- pin1 connected to pin2 of 10k Ohm Resistor.
- pin2 connected to GND of ESP32 CAM.
Resistor (10k Ohms)
- pin1 connected to D1 of Arduino UNO.
- pin2 connected to pin1 of 20k Ohm Resistor and GPIO3 / RX of ESP32 CAM.
9V Battery
- - connected to GND of Arduino UNO.
- + connected to Vin of Arduino UNO.
Documented Code
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation
This documentation provides a comprehensive overview of the circuit, including the components used, their wiring details, and the code for the Arduino UNO.