Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino UNO Light Sensor with I2C LCD Display and Battery Power

Image of Arduino UNO Light Sensor with I2C LCD Display and Battery Power

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller, an LDR (Light Dependent Resistor), a 16x2 I2C LCD, and a 18650 Li-ion Battery. The circuit is designed to read light intensity using the LDR and display the readings on the LCD. The Arduino UNO serves as the central controller, interfacing with both the LDR and the LCD.

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

LDR (Light Dependent Resistor)

  • Description: A sensor that changes its resistance based on the light intensity.
  • Pins: A0, D0, GND, VCC

16x2 I2C LCD

  • Description: A 16x2 character LCD display with I2C interface.
  • Pins: GND, VCC, SDA, SCL

18650 Li-ion Battery

  • Description: A rechargeable lithium-ion battery.
  • Pins: -, +

Wiring Details

Arduino UNO

  • 5V: Connected to VCC of LDR and VCC of 16x2 I2C LCD
  • GND: Connected to GND of LDR, GND of 16x2 I2C LCD, and - of 18650 Li-ion Battery
  • Vin: Connected to + of 18650 Li-ion Battery
  • A0: Connected to D0 of LDR
  • A4: Connected to SDA of 16x2 I2C LCD
  • A5: Connected to SCL of 16x2 I2C LCD

LDR

  • VCC: Connected to 5V of Arduino UNO
  • GND: Connected to GND of Arduino UNO
  • D0: Connected to A0 of Arduino UNO

16x2 I2C LCD

  • VCC: 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

18650 Li-ion Battery

  • -: Connected to GND of Arduino UNO
  • +: Connected to Vin of Arduino UNO

Code Documentation

Arduino UNO Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This code is a basic template for the Arduino UNO. The setup() function is where you initialize your components and settings, and the loop() function is where the main logic of your program runs repeatedly.

Additional Documentation


This section is reserved for any additional documentation or notes related to the code or circuit. Currently, it is empty.