Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO Smart Light Control with BH1750 Light Sensor and Relay Module

View and Edit Project In Cirkit DesignerImage of Arduino UNO Smart Light Control with BH1750 Light Sensor and Relay Module

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller interfacing with a BH1750 light sensor and a 4-channel relay module. The relays control the power to a bulb through a series of resistors. The circuit is powered by an AC supply.

Component List

  1. 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
  2. BH1750

    • Description: A digital light sensor.
    • Pins: VCC, GND, SCL, SDA, ADDR
  3. 4 Channel Relay Module

    • Description: A module with 4 relays for controlling high voltage devices.
    • Pins: N.O. 4, COM 4, N.C. 4, N.O. 3, COM 3, N.C. 3, N.O. 2, COM 2, N.C. 2, N.O. 1, COM 1, N.C. 1, Pin 13, Pin 14, Pin 15, Pin 16, Pin 17, Pin 18, Pin 19, Pin 20, Pin 21, Pin 22, Pin 23, Pin 24, VCC+, VCC- (GND), IN 1, IN 2, IN 3, IN 4
  4. Bulb

    • Description: A standard light bulb.
    • Pins: GND, power
  5. AC Supply

    • Description: An AC power supply.
    • Pins: +ve, -ve
  6. Resistors

    • Description: Resistors with various resistance values.
    • Pins: pin1, pin2
    • Properties:
      • Resistor 1: 200 Ohms
      • Resistor 2: 400 Ohms
      • Resistor 3: 600 Ohms
      • Resistor 4: 800 Ohms

Wiring Details

Arduino UNO

BH1750

4 Channel Relay Module

Bulb

AC Supply

Resistors

Documented Code

Arduino UNO Code (sketch.ino)

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

}

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

}

Additional Documentation (documentation.txt)