Sunshine Land

来自Microduino Wikipedia
跳转至: 导航搜索
Language English

Objective

Sense light intensity via photosensitve sensor and simulate the change in Scratch.

Principle

Read photosensitive sensor analog vallue. Tthe lightness of the picture turns dark along with the light.

Equipment

Hardware Buildup

  • Setup 1:Stack CoreUSB and Sensorhub
  • Setup 2:Connect light to the analog port—A0.

Software Debugging

  • Setup 1:Build Scratch programming environment.
  • Setup 2:Start programming. Example program download: 文件:Sunshine home.zip
  • Setup 3:Code description.
    • It can change the brightness of the picture by sensing light intensity. Users can change background picturen according to personal needs.

Result

The photosensitive sensor can detect light. The brightness of the picturen in Scratch changes along with the light intensity.

Video