Arduino Light Intensity Lamp

by RifahT in Circuits > Arduino

167 Views, 0 Favorites, 0 Comments

Arduino Light Intensity Lamp

hh.JPG

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

hh.JPG

Wire the components on the breadboard by looking at the picture abov.e

Code

ss.JPG

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

qw.JPG

Make sure that everything is well connected and the code works without any errors and is all set to work!