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

Arduino 101 Light-Activated LED with LDR Sensor

View and Edit Project In Cirkit DesignerImage of Arduino 101 Light-Activated LED with LDR Sensor

Circuit Documentation

Summary

This circuit involves an Arduino 101 microcontroller, a resistor, a red LED, and a Light Dependent Resistor (LDR) module. The circuit is designed to light up the LED when the LDR detects a low light level. The Arduino 101 reads the digital output from the LDR and controls the LED accordingly.

Component List

  1. Arduino 101

    • Description: A microcontroller board based on the Intel Curie module.
    • Pins: A5/SCL, A4/SDA, AREF, GND, D13/SCK, D12/MISO, D11 PWM/MOSI, D10 PWM/SS, D9 PWM, D8, D7, D6 PWM, D5 PWM, D4, D3 PWM, D2, D1/TX, D0/RX, AIN, ioref, RESET, 3V3, 5V, VIN, A0, A1, A2, A3, ICSP MISO, ICSP SCK, ICSP MOSI
  2. Resistor

    • Description: A 200 Ohm resistor.
    • Pins: pin1, pin2
    • Properties:
      • Resistance: 200 Ohms
  3. LED: Two Pin (red)

    • Description: A red LED with two pins.
    • Pins: cathode, anode
  4. Module LDR

    • Description: A Light Dependent Resistor (LDR) module.
    • Pins: VCC, GND, DO, AO

Wiring Details

Arduino 101

Resistor

LED: Two Pin (red)

Module LDR

Code Documentation

Arduino 101 Code

void setup() {
  pinMode(2, INPUT);
  pinMode(3, OUTPUT);
}

void loop() {
    if (digitalRead(2) == LOW) {
        digitalWrite(3, HIGH);
    } else {
        digitalWrite(3, LOW);
    }
}

Explanation: