Tag Archive: light sensor


This project refers to an Arduino sketch that implements a light indicator with the help of an external sensor (photoresistor) for the recognition of light, and a bar graph of many LEDs used as a rating indicator. Furthermore, if the indicator reaches the last rating which indicates that there is “perfect” light (the maximum light that the sensor can identify) then it plays a melody with a piezo speaker located in the system.

Continue reading

This project refers to an Arduino sketch that implements a simple alarm clock using a light sensor, a piezo speaker, two buttons for functions such as ON, OFF and an LED as the function indicator. When the alarm is in OFF state, then it carries no real operation (just turns off the function indicator), and when in ON state, then it turns on the function indicator and examines whether there is sufficient ambient light (via the light sensor) to produces a musical tune with piezo speaker. This process is repeated continuously if there is sufficient light until the button OFF is pressed.

Continue reading

This project refers to an Arduino sketch which has the capability to send measurements collected by a light sensor to an account at Twitter to be seen by many through the World Wide Web.

Continue reading

This project refers to an Arduino sketch which with the help of a relay (electromechanical switch) and a light sensor can drive an external device (e.g. a household lamp, a car alarm, a home air conditioner). More specifically, the Arduino collects samples from a light sensor at a specific rate and calculates the mean of samples for best accuracy. Then, if the average exceeds a threshold limit, it will activate the device via the relay. Also, the opposite happens where, if the average sensor value drops below the limit mentioned, the device is turned off.

Continue reading

This project refers to an Arduino sketch which uses an LCD display (as output device) with in-built elementary Keypad (as input device) to display information from sensors. In this project, there are temperature, light and motion sensors. If we want to check the value of one of the sensors, we can do it via the keypad onto the LCD screen. We can choose the sensor of interest using the keys UP and DOWN.

Continue reading

This project refers to an Arduino sketch that implements a light indicator with the help of an external sensor (photoresistor) for the recognition of light (the sensor acts as input device for the Arduino), and a bar graph of many LEDs used as a rating indicator (the indicator functions as an output device for the Arduino).

In this project we use an 8-bit shift register (namely the 74HC595). This way we can drive 8 different LEDs in the output committing only three PINS of the Arduino.

Continue reading

This project refers to an Arduino sketch which with the help of an external light sensor (e.g: photoresistor) can control the rotation speed of a DC motor.

Continue reading

This project refers to an Arduino sketch which with the help of an external light sensor, as e.g. a photoresistor, one can move the position of a servo motor clockwise or counterclockwise.

Continue reading