Introduction: Basic Arduino Light Intensity Lamp!
Today's circuit is a fun little Arduino project for quarantine! This circuit focuses on two interesting materials; the Relay SPDT & Photoresistor. Moreover, the purpose of relay is to be a switch in a circuit electronically. Furthermore, photoresistor/LDR purpose is to detect light & change depending on the amount.
Step 1: Materials
Step 2: Circuit
Firstly start by taking out your breadboard along with an Arduino and connect the wires to the pins seen in the circuit picture.
Step 3: Add More Features
Once you have added your basic features; you can then proceed to adding the bulb, relay, resistor, power supply and LDR (you can see the placement and wiring in the picture).
Step 4: Coding
Lastly, after completing the circuit and wiring you can move onto coding. This step is quite easy, look at the following picture and insert this coding into your TinkerCAD code at the top right corner. The top line shows that the analog pin A0 is now put into serial mode. Next, is checking the actual value; the digital pin 4 is on low if the value of the A0 is equal or greater than 500 and if the value is less than it is on high. Lastly, the code shows that the relay is connected to pin 4.
Step 5: YOU'RE DONE
If you have completed all these steps your circuit should now function! if you have any questions regarding this circuit please leave them done below.