Sunshine Land

来自Microduino Wikipedia
1304410487@qq.com讨论 | 贡献2015年5月21日 (四) 03:19的版本 (Created page with "{{Language| Sunshine Land}} {| style="width: 800px;" |- | ==Objective== Sense light intensity via photosensitve sensor and simulate the change in Scratch. ==Principle== Read ...")
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索
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