One of the great things about the Arduino microcontroller is that it can easily be made to react to its surroundings by using various different types of sensors. In this tutorial we will be focusing on using an analog light sensor to turn on an LED when it is dark and to turn it off when it is light. The tutorial is meant to teach you how to use an Arduino to read various analog sensor outputs and to then get your project to react to these inputs. The same basics instructions can be used for most analog sensors although some will need more tweaking if you want accurate measurements of the surroundings.
Continue Reading →