openobject.org

S3193683 Sensor report - project 4

From Physical Programming

  • How it works

The ambient light sensor detects environmental light and automatically increases or decreases the display backlighting to compensate for low light and highlight environments. For example the ambient light sensor detects low- light then a screen's brightness needs to increase.


  • Uses of ambient light sensor

The ambient light sensor is used in many industrial lighting, consumer electronics such as laptops, televisions and cell phones to sense the environment lighting conditions and allowing for adjustment of the screen's backlight to comfortable levels for the viewer and to save battery life.


  • Interfacing with Arduino

The ambient light sensor is component provides a variable resistor changes with light, which can be connected to Arduino board as an analog value. For example that and LED blinks according to value controls. The ambient light sensor pin definitions are 1 output, 2 complex and 3 power as 3 wires.

First connect three wires to the Arduino board. The first wire (output) goes to ground from one of the pins of the LDR. The second wire (complex) goes from 5 volts to one of the pins of the 1 kohm resistor, the other pin of the resistor goes to the free pin in the LDR. The third wire (power) goes from analog input 2 to the LDR pin that is connected to the resistor.

If you want to change the amount of light in the LDR, then change the amount of resistance on the LDR, witch changes the voltage value, giving different analog input. Read different values between 0V and 5V.

After set up everything then connect the board to the serial or USB port of your computer and to the power supply. The power LED will light up. The next step is to export the program by open the file in Arduino to set the right serial port and then press the reset button then to send the program to the board press export icon.


  • Uses on final project

I think of using a ambient light sensor on my final project to create a basket or a bowl that detects environmental light, depending on the brightness then increase or decrease the level of brightness of the basket or bowl using LED light.


  • Examples of interactive

Test with Arduino + light sensor + PD patchin

http://vimeo.com/4089352

Light sensor with LED light

http://video.yahoo.com/watch/3387081/9473589

Ambient Light Sensor on computer screen

http://www.vidoemo.com/yvideo.php?ambient-light-sensor-jsa-1119-demo-from-solteamopto-part2=&i=OGtWQ1VmcWuRpM21YREE

Ambient Light Sensor on Macbookpro

http://www.vidoemo.com/yvideo.php?i=SjJGTDFEcWuRpSHJWVnM&ambient-light-sensors-on-macbook-pro


  • References

http://webzone.k3.mah.se/projects/arduino-workshop/projects/arduino_meets_processing/instructions/ldr.html http://www.libelium.com/squidbee/index.php?title=Adding_a_light_sensorhttp://www.intersil.com/data/an/an1422.pdf http://www.vishay.com/docs/49670/pl0366.pdf