Arduino Light Intensity Lamp
Arduino Intensity Lamp made on TinkerCAD in only a few simple steps! A fun little simple tutorial with easy to follow instructions to get your circuit done!
Materials
- LDR (1)
- Arduino microcontroller (1)
- Lightbulb (1)
- Relay (1)
- A power source (1)
- Breadboard (1)
Making the Circuit
Wire the components on the breadboard by looking at the picture abov.e
Code
For the code we are going to use the traditional text code. The code basically beings by showing that the analog pin A0 is put into serial mode and next is checking the original value. The digital pin 4 is low if the A0 value is equal or greater than 500 and if the value ends up being less that that then it is on high.
The Final Touches
Make sure that everything is well connected and the code works without any errors and is all set to work!