Objective: To sense the object closer or farther from the Distance Sensor which in turn controls the intensity of the LED or if motion is detected should turn ON the LED.
Circuit Diagram:
Flowchart for Distance Sensor:
Flowchart for Motion Sensor:
Material Used:
1. FreeScale Motorola M52233demo board.
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=M52233DEMO&fsrch=1
2. Sensors from Parallax.
Ping))) Ultrasonic Sensor(for object detection) and PIR sensor (for motion detection)
3. Breadboard
http://www.radioshack.com/search/index.jsp?kwCatId=&kw=breadboard&origkw=breadboard&sr=1
4. Tools and Equipments
5. LED
http://www.globalsources.com/manufacturers/Square-LED.html
6. CodeWarrior Software
Related links:
- Ping Ultrasonic Range Finder, http://arduino.cc/en/Tutorial/Ping?from=Tutorial.UltrasoundSensor
- Blink, http://www.arduino.cc/en/Tutorial/Blink
- http://www.arduino.cc/playground/Main/UltrasonicSensor
- The World Famous Index of Arduino & Freeduino Knowledge http://www.freeduino.org/
2 comments:
You, casually, not the expert?
I agree with you
Post a Comment