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

Arduino Nano-Based Light Sensing Circuit with LED Indicator

Image of Arduino Nano-Based Light Sensing Circuit with LED Indicator

Circuit Documentation

Summary of the Circuit

This circuit consists of an Arduino Nano microcontroller, a 9V battery, a photodiode, a resistor, and a yellow LED. The Arduino Nano is the central processing unit of the circuit, interfacing with the photodiode to detect light levels and controlling the LED based on the input from the photodiode. The 9V battery provides power to the circuit, while the resistor is used to limit current to the photodiode. The LED serves as an output indicator.

Component List

9V Battery

  • Description: A standard 9V battery used to provide power to the circuit.

Photodiode

  • Pins: cathode, anode
  • Description: A light-sensitive component that generates a voltage when exposed to light.

Arduino Nano

  • Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
  • Description: A compact microcontroller board based on the ATmega328P, used for processing and controlling the components in the circuit.

Resistor

  • Pins: pin1, pin2
  • Description: A passive two-terminal electrical component that provides resistance to the flow of current.
  • Properties: Resistance: 10 Ohms

LED: Two Pin (yellow)

  • Pins: cathode, anode
  • Description: A yellow light-emitting diode used as an output indicator.

Wiring Details

9V Battery

  • Negative terminal (-) connected to:
    • Arduino Nano GND
    • Photodiode cathode
  • Positive terminal (+) connected to:
    • Resistor pin1

Photodiode

  • Cathode connected to:
    • Arduino Nano GND
    • 9V Battery negative terminal (-)
  • Anode connected to:
    • Resistor pin2

Arduino Nano

  • GND connected to:
    • 9V Battery negative terminal (-)
    • Photodiode cathode
    • LED cathode
  • 5V connected to:
    • Resistor pin1
  • A0 connected to:
    • Resistor pin2
    • Photodiode anode
  • D2 connected to:
    • LED anode

Resistor

  • Pin1 connected to:
    • Arduino Nano 5V
    • 9V Battery positive terminal (+)
  • Pin2 connected to:
    • Arduino Nano A0
    • Photodiode anode

LED: Two Pin (yellow)

  • Cathode connected to:
    • Arduino Nano GND
  • Anode connected to:
    • Arduino Nano D2

Documented Code

Arduino Nano Code (sketch.ino)

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

}

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

}

Additional Notes (documentation.txt)

No additional documentation provided for the code.