• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeScratchInfrared Distance Sensor (Scratch for pcDuino)
Previous Next

Infrared Distance Sensor (Scratch for pcDuino)

Posted by: admin , May 18, 2014

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:

linkerbaseIMG_0309

Click button to import the two role

night1night2

两张

Click the script to write the commands:

code

Click the Green flag, the effect will change from the black to bright.

Infrared lights

 

Download :2-light.zip

 

Tags: Scratch

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors