LDR as a switch

I'm a beginner in this area, been looking around the net for the use of LDR as a switch which can cut the switch entirely or motor which connected to the board. How should i do it ? This is for Chem e car project.

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html

Did you try google arduino ldr motor

Can you tell us your electronics, programming, Arduino, hardware experience?

A link to the Chen E car event would be helpfull too.
Tom... :slight_smile:

Beji:
been looking around the net for the use of LDR as a switch

Your search didn't take you to adafruit it seems. They have this excellent tutorial on LDRs and how to use them. There are a couple of example sketches: one of them uses a number of thresholds to define various levels between Dark and Very Bright. You would probably do something similar, with only one threshold, Light vs Dark. That effectively digitalises an analog reading into on/off.