Circuit Documentation
Summary of the Circuit
This circuit integrates an Arduino Nano microcontroller with a photocell (LDR), a PIR sensor, a resistor, and an LED. The Arduino Nano serves as the central processing unit, controlling the LED based on input from the photocell and PIR sensor. The photocell is used to detect the ambient light level, while the PIR sensor detects motion. The resistor is used to form a voltage divider with the photocell, and the LED indicates the status of the sensor readings.
Component List
Arduino Nano
- Description: A compact microcontroller board based on the ATmega328P.
- 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.
Photocell (LDR)
- Description: A light-dependent resistor that changes resistance based on light intensity.
- Pins: pin 0, pin 1.
Resistor
- Description: A passive two-terminal electrical component that implements electrical resistance as a circuit element.
- Value: 10,000 Ohms.
LED: Two Pin (white)
- Description: A white light-emitting diode.
- Pins: cathode, anode.
PIR sensor
- Description: A passive infrared sensor that detects motion by measuring changes in the infrared levels emitted by surrounding objects.
- Pins: VDD, SIG, GND.
Wiring Details
Arduino Nano
- 5V connected to Photocell (LDR) pin 0 and PIR sensor VDD.
- GND connected to LED cathode, PIR sensor GND, and Resistor pin2.
- D2 connected to PIR sensor SIG.
- A0 connected to Photocell (LDR) pin 1 and Resistor pin1.
- D13/SCK connected to LED anode.
Photocell (LDR)
- pin 0 connected to Arduino Nano 5V.
- pin 1 connected to Arduino Nano A0 and Resistor pin1.
Resistor
- pin1 connected to Photocell (LDR) pin 1 and Arduino Nano A0.
- pin2 connected to Arduino Nano GND.
LED: Two Pin (white)
- cathode connected to Arduino Nano GND.
- anode connected to Arduino Nano D13/SCK.
PIR sensor
- VDD connected to Arduino Nano 5V.
- SIG connected to Arduino Nano D2.
- GND connected to Arduino Nano GND.
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 code documentation provided.
