0% found this document useful (0 votes)
69 views6 pages

Appendix A (LDR Circuit Components)

The document contains appendices that describe the components used in various circuits, including a light dependent resistor (LDR) circuit, PIR motion sensor circuit, solar circuit, and the tools used to implement circuits. It also includes the Arduino code for the LDR circuit, which reads the LDR value, prints it to the serial monitor, and turns on an LED if the LDR value is below a light sensitivity threshold.

Uploaded by

Wann Rexro
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views6 pages

Appendix A (LDR Circuit Components)

The document contains appendices that describe the components used in various circuits, including a light dependent resistor (LDR) circuit, PIR motion sensor circuit, solar circuit, and the tools used to implement circuits. It also includes the Arduino code for the LDR circuit, which reads the LDR value, prints it to the serial monitor, and turns on an LED if the LDR value is below a light sensitivity threshold.

Uploaded by

Wann Rexro
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 6

APPENDIX A ( LDR CIRCUIT COMPONENTS)

Components that involves in the circuit is :

APPENDIX B: PIR MOTION SENSOR COMPONENTS

Components that involves in the circuit :

Arduino Uno

Coding
:

PIR SENSOR

PIR SENSOR

SB 0061

PIR
MOTION
SENSOR
CIRCUIT

PIR
MOTION
SENSOR
CIRCUIT

APPENDIX C : COMPONENT FOR SOLAR CIRCUIT


Components that involve in the circuit :

APPENDIX D : CIRCUIT IMPLEMETATION TOOLS

APPENDIX E ( ARDUINO UNO CODING )


-int LDR = 0;

//analog pin to which LDR is connected, here we set it to 0 so it means A0

int LDRValue = 0;

//thats a variable to store LDR values

int light_sensitivity = 500;

//This is the approx value of light surrounding your LDR

void setup()
{
Serial.begin(9600);
//start the serial monitor with 9600 buad
pinMode(13, OUTPUT); //we mostly use 13 because there is already a built in yellow LED in
arduino which shows output when 13 pin is enabled
}
void loop()
{
LDRValue = analogRead(LDR);

//reads the ldrs value through LDR

Serial.println(LDRValue);
//prints the LDR values to serial monitor
delay(50);
//This is the speed by which LDR sends value to arduino
if (LDRValue < light_sensitivity)
{
digitalWrite(13, HIGH);
}
else
{
digitalWrite(13, LOW);
}

You might also like