Thursday, February 16, 2012

Interfacing a Microcontroller: LDR



Here is a quick demonstration of me using an LDR sensor to let the microcontroller know when to send power signals to the appropriate outputs. Here, if the light sensor (gray sensor on the left) receives light, the red bulb will be lit. However, when I cover the light, the green bulb will light up and the red one will shut off. Using the DB-9 cable, I was able to use the picaxe programming tool to allow the microcontroller to accept values from the LDR and transmitting those values into data to be used to activate or deactivate a specific function of a mechanism or light.

No comments:

Post a Comment