Basic Arduino Light Intensity Lamp!
by 621396 in Circuits > Arduino
213 Views, 0 Favorites, 0 Comments
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.
Materials
- Small Breadboard (1); helps better organize circuit
- Arduino Uno R3 (1)
- 1K Resistor (1)
- Photoresistor (1)
- Light Bulb (1)
- Power Supply (1); voltage & current should be at 5
- Relay SPDT (1); increases voltage to ensure circuit will function
Circuit
Firstly start by taking out your breadboard along with an Arduino and connect the wires to the pins seen in the circuit picture.
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).
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.
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.