Sunday, October 19, 2008

LDR - Transistor - Arduino

Major Interactive - The Lights

* How it 'should' work :
- A user (pedestrian) passes by, the shadow triggers the LED to light up.
- There will be lights along the shortcut.
- The lights go dimmer as they approaches the end of the shortcut.
- Initial idea :
 * All the lights work together, if one LED is bright, the rest will also be bright.
 * Problem in the idea : there may not be only one pedestrian who does jaywalk at one moment. If the first person reaches a spot where the light goes dimmer, the second person comes in and he will make the lights go brighter.
- Idea changes to one LDR (as the light sensor) will control a set of lights and the lights are separated from the other lights.

   

* First try.
* Using arduino (Eng Tat's suggestion to control the light)
* Using the sketch of Digital Blink.
* Reverse effect (the light lights up when there is light and turns off when there is no light).

* Trying using 3 LEDs to create an array of lights.
* When a light is shone on the LDR, the LEDs turn off and when there is no light, the LEDs light up.


* Try using 2 LDRs.
* LED lights up where the LDR receives no light. The other LED is OFF because there is a light shone on it.


* Same as above.
* Trying on the other LDR and LED.

* Shine on both LDRs, both LEDs turn off.
* No light, both LEDs light up.


* Top view.

* Simple set up.
* LDRs are not sensitive enough.

* Problem :
- The intensity of light from both LEDs is the same.

* Using a transistor as a switch.


* The value of the resistor determines the brightness of the light.


* Placing the components on a board. (transistor-based switch).

* Transistor-based switch.
* LED lights up when there is no light. 
* LED turns off when there is light.



* Top view.

No comments:

Post a Comment