Arduino UNO R4 WiFi Controlled LDR Sensor with I2C LCD Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit consists of an Arduino UNO R4 WiFi microcontroller, an I2C LCD 16x2 screen, a photocell (LDR), and a resistor. The Arduino UNO R4 WiFi is the central processing unit of the circuit, interfacing with the I2C LCD screen to display information and reading the analog value from the photocell through one of its analog pins. The resistor is used to form a voltage divider with the photocell, which allows the Arduino to measure changes in light intensity.
Component List
I2C LCD 16x2 Screen
- Description: A 16x2 character LCD display that uses the I2C communication protocol.
- Pins: SCL, SDA, VCC (5V), GND, VDD, VO, RS, RW, E, D0, D1, D2, D3, D4, D5, D6, D7, BLA, BLK
Arduino UNO R4 WiFi
- Description: A microcontroller board based on the ATmega328P with built-in WiFi capability.
- Pins: OFF, GND, VRTC, IIC0_SCL, IIC0_SDA, 3V3, GPIO 41, GPIO 0, GPIO 42, GPIO 43, GPIO 44, BOOT, IOREF, RESET, 5V, VIN, A0, A1, A2, A3, A4, A5, RSPCKA, CIPO, COPI, D0/RX, D1/TX, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, AREF, SDA, SCL
Photocell (LDR)
- Description: A light-dependent resistor whose resistance changes with light intensity.
- Pins: pin 0, pin 1
Resistor
- Description: A passive two-terminal electrical component that implements electrical resistance as a circuit element.
- Value: 220 Ohms
Wiring Details
I2C LCD 16x2 Screen
- SCL: Connected to Arduino UNO R4 WiFi SCL (A5)
- SDA: Connected to Arduino UNO R4 WiFi SDA (A4)
- VCC (5V): Connected to Arduino UNO R4 WiFi 5V
- GND: Shared ground with Arduino UNO R4 WiFi and Resistor
Arduino UNO R4 WiFi
- 5V: Provides power to the I2C LCD 16x2 Screen and Photocell (LDR)
- GND: Shared ground with I2C LCD 16x2 Screen and Resistor
- A0: Reads the voltage across the Resistor in the voltage divider with the Photocell (LDR)
- A4 (SDA): I2C data line connected to the I2C LCD 16x2 Screen SDA
- A5 (SCL): I2C clock line connected to the I2C LCD 16x2 Screen SCL
Photocell (LDR)
- pin 0: Connected to Arduino UNO R4 WiFi 5V
- pin 1: Connected to one end of the Resistor, forming a voltage divider
Resistor
- pin1: Connected to Photocell (LDR) pin 1 and Arduino UNO R4 WiFi A0
- pin2: Shared ground with Arduino UNO R4 WiFi and I2C LCD 16x2 Screen
Documented Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Filename: sketch.ino
Note: The provided code is a template and does not include specific functionality. It should be populated with the setup and loop functions to initialize the circuit components and define the main behavior of the circuit.