• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeScratchA flower changes color (Scratch for pcDuino)
Previous Next

A flower changes color (Scratch for pcDuino)

Posted by: admin , May 6, 2014

Introduce:  The color of the flower will change its color  according to light.

Part list:

  • 1  x pcDuino
  • 1  x Light Sensor

Step 1 : Install the Linker Base Shield to the pcDuino, and connect the Light Sensor as the follows:

light Sensor

Step 2:Launch Scratch for pcDuino, click draw tool to draw the script 2 and script 3

draw the leaf draw the flowerflower 2

Step 3:  Click flower S to edit the flower script.

script fot the flpwer

 When the voltage  is below 3400 mv, click  the Green button

you will see the color of the flower change from red to green, as the follows!

Green Flower

Download the code: 6-flower.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