Project Motivation: The lights of the city will turn on when someone is close to the sensor, and they will turn off when the person leaves.
Parts list:
1 pcDuino
2 SHARP2Y0A21 F 39( Infrared Sensor)
Step 1: Install the Linker Base Shield to the pcDuino, and connect the Infrared Sensor according to the the following diagram:
Click to import the two role
Click the script to write the commands:
Click the Green flag, the effect will change from the black to bright.
Download :2-light.zip
Leave a Reply
You must be logged in to post a comment.